├── .github └── workflows │ ├── mysql.yml │ └── postgresql.yml ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── Gemfile ├── MIT-LICENSE ├── README.md ├── Rakefile ├── UPGRADING ├── by_star.gemspec ├── cleaner.rb ├── lib ├── by_star.rb └── by_star │ ├── base.rb │ ├── between.rb │ ├── directional.rb │ ├── kernel │ ├── date.rb │ ├── in_time_zone.rb │ └── time.rb │ ├── normalization.rb │ ├── orm │ ├── active_record │ │ └── by_star.rb │ └── mongoid │ │ ├── by_star.rb │ │ └── reorder.rb │ └── version.rb ├── spec ├── database.yml ├── fixtures │ ├── active_record │ │ ├── models.rb │ │ └── schema.rb │ ├── mongoid │ │ └── models.rb │ └── shared │ │ └── seeds.rb ├── gemfiles │ ├── Gemfile.rails │ ├── Gemfile.rails32 │ ├── Gemfile.rails40 │ ├── Gemfile.rails41 │ ├── Gemfile.rails42 │ ├── Gemfile.rails50 │ ├── Gemfile.rails51 │ ├── Gemfile.rails52 │ ├── Gemfile.rails60 │ └── Gemfile.rails61 ├── integration │ ├── active_record │ │ └── active_record_spec.rb │ ├── mongoid │ │ └── mongoid_spec.rb │ └── shared │ │ ├── at_time.rb │ │ ├── between_dates.rb │ │ ├── between_times.rb │ │ ├── by_calendar_month.rb │ │ ├── by_cweek.rb │ │ ├── by_day.rb │ │ ├── by_direction.rb │ │ ├── by_fortnight.rb │ │ ├── by_month.rb │ │ ├── by_quarter.rb │ │ ├── by_week.rb │ │ ├── by_weekend.rb │ │ ├── by_year.rb │ │ ├── index_scope_parameter.rb │ │ ├── offset_parameter.rb │ │ ├── order_parameter.rb │ │ └── relative.rb ├── spec_helper.rb └── unit │ ├── kernel_date_spec.rb │ ├── kernel_time_spec.rb │ └── normalization_spec.rb └── tmp └── .gitignore /.github/workflows/mysql.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/.github/workflows/mysql.yml -------------------------------------------------------------------------------- /.github/workflows/postgresql.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/.github/workflows/postgresql.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/Gemfile -------------------------------------------------------------------------------- /MIT-LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/MIT-LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/Rakefile -------------------------------------------------------------------------------- /UPGRADING: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/UPGRADING -------------------------------------------------------------------------------- /by_star.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/by_star.gemspec -------------------------------------------------------------------------------- /cleaner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/cleaner.rb -------------------------------------------------------------------------------- /lib/by_star.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/lib/by_star.rb -------------------------------------------------------------------------------- /lib/by_star/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/lib/by_star/base.rb -------------------------------------------------------------------------------- /lib/by_star/between.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/lib/by_star/between.rb -------------------------------------------------------------------------------- /lib/by_star/directional.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/lib/by_star/directional.rb -------------------------------------------------------------------------------- /lib/by_star/kernel/date.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/lib/by_star/kernel/date.rb -------------------------------------------------------------------------------- /lib/by_star/kernel/in_time_zone.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/lib/by_star/kernel/in_time_zone.rb -------------------------------------------------------------------------------- /lib/by_star/kernel/time.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/lib/by_star/kernel/time.rb -------------------------------------------------------------------------------- /lib/by_star/normalization.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/lib/by_star/normalization.rb -------------------------------------------------------------------------------- /lib/by_star/orm/active_record/by_star.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/lib/by_star/orm/active_record/by_star.rb -------------------------------------------------------------------------------- /lib/by_star/orm/mongoid/by_star.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/lib/by_star/orm/mongoid/by_star.rb -------------------------------------------------------------------------------- /lib/by_star/orm/mongoid/reorder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/lib/by_star/orm/mongoid/reorder.rb -------------------------------------------------------------------------------- /lib/by_star/version.rb: -------------------------------------------------------------------------------- 1 | module ByStar 2 | VERSION = '4.0.1' 3 | end 4 | -------------------------------------------------------------------------------- /spec/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/database.yml -------------------------------------------------------------------------------- /spec/fixtures/active_record/models.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/fixtures/active_record/models.rb -------------------------------------------------------------------------------- /spec/fixtures/active_record/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/fixtures/active_record/schema.rb -------------------------------------------------------------------------------- /spec/fixtures/mongoid/models.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/fixtures/mongoid/models.rb -------------------------------------------------------------------------------- /spec/fixtures/shared/seeds.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/fixtures/shared/seeds.rb -------------------------------------------------------------------------------- /spec/gemfiles/Gemfile.rails: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/gemfiles/Gemfile.rails -------------------------------------------------------------------------------- /spec/gemfiles/Gemfile.rails32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/gemfiles/Gemfile.rails32 -------------------------------------------------------------------------------- /spec/gemfiles/Gemfile.rails40: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/gemfiles/Gemfile.rails40 -------------------------------------------------------------------------------- /spec/gemfiles/Gemfile.rails41: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/gemfiles/Gemfile.rails41 -------------------------------------------------------------------------------- /spec/gemfiles/Gemfile.rails42: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/gemfiles/Gemfile.rails42 -------------------------------------------------------------------------------- /spec/gemfiles/Gemfile.rails50: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/gemfiles/Gemfile.rails50 -------------------------------------------------------------------------------- /spec/gemfiles/Gemfile.rails51: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/gemfiles/Gemfile.rails51 -------------------------------------------------------------------------------- /spec/gemfiles/Gemfile.rails52: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/gemfiles/Gemfile.rails52 -------------------------------------------------------------------------------- /spec/gemfiles/Gemfile.rails60: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/gemfiles/Gemfile.rails60 -------------------------------------------------------------------------------- /spec/gemfiles/Gemfile.rails61: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/gemfiles/Gemfile.rails61 -------------------------------------------------------------------------------- /spec/integration/active_record/active_record_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/active_record/active_record_spec.rb -------------------------------------------------------------------------------- /spec/integration/mongoid/mongoid_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/mongoid/mongoid_spec.rb -------------------------------------------------------------------------------- /spec/integration/shared/at_time.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/at_time.rb -------------------------------------------------------------------------------- /spec/integration/shared/between_dates.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/between_dates.rb -------------------------------------------------------------------------------- /spec/integration/shared/between_times.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/between_times.rb -------------------------------------------------------------------------------- /spec/integration/shared/by_calendar_month.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/by_calendar_month.rb -------------------------------------------------------------------------------- /spec/integration/shared/by_cweek.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/by_cweek.rb -------------------------------------------------------------------------------- /spec/integration/shared/by_day.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/by_day.rb -------------------------------------------------------------------------------- /spec/integration/shared/by_direction.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/by_direction.rb -------------------------------------------------------------------------------- /spec/integration/shared/by_fortnight.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/by_fortnight.rb -------------------------------------------------------------------------------- /spec/integration/shared/by_month.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/by_month.rb -------------------------------------------------------------------------------- /spec/integration/shared/by_quarter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/by_quarter.rb -------------------------------------------------------------------------------- /spec/integration/shared/by_week.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/by_week.rb -------------------------------------------------------------------------------- /spec/integration/shared/by_weekend.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/by_weekend.rb -------------------------------------------------------------------------------- /spec/integration/shared/by_year.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/by_year.rb -------------------------------------------------------------------------------- /spec/integration/shared/index_scope_parameter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/index_scope_parameter.rb -------------------------------------------------------------------------------- /spec/integration/shared/offset_parameter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/offset_parameter.rb -------------------------------------------------------------------------------- /spec/integration/shared/order_parameter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/order_parameter.rb -------------------------------------------------------------------------------- /spec/integration/shared/relative.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/integration/shared/relative.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/unit/kernel_date_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/unit/kernel_date_spec.rb -------------------------------------------------------------------------------- /spec/unit/kernel_time_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/unit/kernel_time_spec.rb -------------------------------------------------------------------------------- /spec/unit/normalization_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radar/by_star/HEAD/spec/unit/normalization_spec.rb -------------------------------------------------------------------------------- /tmp/.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | --------------------------------------------------------------------------------