diff --git a/.gemtest b/.gemtest deleted file mode 100644 index e69de29b..00000000 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 00000000..707570db --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,30 @@ + +name: test + +on: [ push, pull_request ] + +jobs: + + test: + + if: " ! (contains(github.event.head_commit.message, 'skip ci') || contains(github.event.head_commit.message, 'ci skip'))" + + name: ${{matrix.ruby}} on ${{matrix.os}} + + strategy: + matrix: + os: [ ubuntu-latest ] + ruby: [ 2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, jruby-9.2, jruby-9.3, truffleruby ] + experimental: [ false ] + fail-fast: false + runs-on: ${{matrix.os}} + continue-on-error: ${{matrix.experimental}} + + steps: + - uses: actions/checkout@v3 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{matrix.ruby}} + bundler-cache: true + - run: bundle exec rake + diff --git a/.gitignore b/.gitignore index 2c059691..c956b379 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ -pkg *.rbc -rdoc .yardoc -doc +/.bundle/ +/pkg/ +/coverage/ +/doc/ +/tags/ +Gemfile.lock diff --git a/.yardopts b/.yardopts deleted file mode 100644 index 6a5ddf21..00000000 --- a/.yardopts +++ /dev/null @@ -1,3 +0,0 @@ --m markdown ---readme README.md ---title "Chronic - Natural language date/time parsing" diff --git a/Gemfile b/Gemfile new file mode 100644 index 00000000..b4e2a20b --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source "https://rubygems.org" + +gemspec diff --git a/HISTORY.md b/HISTORY.md index 214afcde..3a5cf1a9 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,66 @@ +# 0.10.2 / 2013-09-09 + +* Fix 1.8.7 support (due to be dropped in 0.11.0) +* Bugfix for times with negative zones + +# 0.10.1 / 2013-08-27 + +* Support `ActiveSupport::TimeZone` (#209, #208) + +# 0.10.0 / 2013-08-25 + +* Chronic will parse subseconds correctly + for all supported date/time formats (#195, #198 and #200) +* Support for date format: dd.mm.yyyy (#197) +* Option `:hours24` to parse as 24 hour clock (#201 and #202) +* `:guess` option allows to specify which part of Span to return. + (accepted values `false`,`true`,`:begin`, `:middle`, `:end`) +* Replace `rcov` with `SimpleCov` for coverage generation +* Add more tests +* Various changes in codebase (#202 and #206) + +# 0.9.1 / 2013-02-25 + +* Ensure Chronic strips periods from day portions (#173) +* Properly numerize "twelfth", "twentieth" etc. (#172, James McKinney) +* Ensure Chronic is compatible with Ruby 2.0.0 (#165, Ravil Bayramgalin) + +# 0.9.0 / 2012-12-21 + +* Implement Chronic::Parser class and create an instance of this class + instead of leaving all data in the class level of Chronic +* Various bug fixes +* Add support for excel date formats (#149, @jmondo) +* Added support for time expressions such as '10 till' or 'half + past two' (#146, @chicagogrooves) +* Add support for RepeaterDayName, RepeaterMonthName, + Ordinal/ScalarDay and Time (#153, @kareemk) + +# 0.8.0 / 2012-09-16 + +* Support parsing " of this month" (#109) +* Support parsing ISO 8601 format (#115) +* Support parsing "on " without a timestamp (#117) +* Fix time parsing regexp (#125) +* Support time when parsing dd-mm-yyy