diff --git a/.travis.yml b/.travis.yml index b8a28db..e96ae1d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,6 @@ language: ruby rvm: - 2.0.0-p598 - 2.1.6 - - 2.2.0 - - 2.2.2 + - 2.2.4 + - 2.3.0 - ruby-head diff --git a/README.md b/README.md index aff7ee3..70370de 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,24 @@ If you'd like to understand how/why this gem works, please check out my [blog po /written by tom lord/i.random_example #=> "WrITtEN bY tOM LORD" ``` +## Supported ruby versions +* MRI 2.0.x +* MRI 2.1.x +* MRI 2.2.x +* MRI 2.3.x +* MRI 2.4.0-dev + +MRI ≤ 1.9.3 are not supported. This is primarily because MRI 2.0.0 introduced a new +regexp engine (`Oniguruma` was replaced by `Onigmo`). Whilst *most* of this gem could +be made to work with MRI 1.9.x (or even 1.8.x), I feel the changes are too significant +to implement backwards compatability (especially since [long-term support for MRI +1.9.3 has now ended](https://www.ruby-lang.org/en/news/2014/01/10/ruby-1-9-3-will-end-on-2015/)). + +For example, named properties (e.g. `/\p{Alpha}/`) are illegal syntax on MRI 1.9.3. + +Other implementations, such as JRuby, could probably work fine - +but I haven't fully tried/tested it. Pull requests are welcome. + ## Installation Add this line to your application's Gemfile: diff --git a/db/unicode_ranges_2.3.pstore b/db/unicode_ranges_2.3.pstore deleted file mode 120000 index 7bd1dda..0000000 --- a/db/unicode_ranges_2.3.pstore +++ /dev/null @@ -1 +0,0 @@ -unicode_ranges_2.2.pstore \ No newline at end of file diff --git a/db/unicode_ranges_2.3.pstore b/db/unicode_ranges_2.3.pstore new file mode 100644 index 0000000..0359f42 Binary files /dev/null and b/db/unicode_ranges_2.3.pstore differ diff --git a/db/unicode_ranges_2.4.pstore b/db/unicode_ranges_2.4.pstore new file mode 100644 index 0000000..8b12125 Binary files /dev/null and b/db/unicode_ranges_2.4.pstore differ diff --git a/lib/regexp-examples/version.rb b/lib/regexp-examples/version.rb index 78fdf1b..803ab7c 100644 --- a/lib/regexp-examples/version.rb +++ b/lib/regexp-examples/version.rb @@ -1,4 +1,4 @@ # Gem version module RegexpExamples - VERSION = '1.1.3' + VERSION = '1.1.4' end