Skip to content

Commit

Permalink
Updated syntax versions for latest ruby releases.
Browse files Browse the repository at this point in the history
- Updated Travis CI test versions.
- Bumped gem version for new release.
  • Loading branch information
ammar committed Aug 29, 2015
1 parent 85c78ac commit a1f26aa
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ rvm:
- '1.8.7'
- '1.9.3'
- '2.0.0'
- '2.1.6'
- '2.2.2'
- '2.1.7'
- '2.2.3'

script: 'bundle exec rake test:full'

4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Sat Aug 29 2015 Ammar Ali <ammarabuali@gmail.com>

* Updated ruby versions for latest releases; 2.1.7, 2.2.3

Sun Aug 6 2015 Ammar Ali <ammarabuali@gmail.com>

* Added UnicodeBlocks support to the parser.
Expand Down
2 changes: 2 additions & 0 deletions lib/regexp_parser/syntax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def self.new(name)
when 'ruby/2.1.4'; syntax = Regexp::Syntax::Ruby::V214.new
when 'ruby/2.1.5'; syntax = Regexp::Syntax::Ruby::V215.new
when 'ruby/2.1.6'; syntax = Regexp::Syntax::Ruby::V216.new
when 'ruby/2.1.7'; syntax = Regexp::Syntax::Ruby::V217.new

# aliases for the latest 2.1 implementations
when 'ruby/2.1'; syntax = Regexp::Syntax::Ruby::V21.new
Expand All @@ -75,6 +76,7 @@ def self.new(name)
when 'ruby/2.2.0'; syntax = Regexp::Syntax::Ruby::V220.new
when 'ruby/2.2.1'; syntax = Regexp::Syntax::Ruby::V221.new
when 'ruby/2.2.2'; syntax = Regexp::Syntax::Ruby::V222.new
when 'ruby/2.2.3'; syntax = Regexp::Syntax::Ruby::V223.new

# aliases for the latest 2.2 implementations
when 'ruby/2.2'; syntax = Regexp::Syntax::Ruby::V22.new
Expand Down
13 changes: 13 additions & 0 deletions lib/regexp_parser/syntax/ruby/2.1.7.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require File.expand_path('../2.1.6', __FILE__)

module Regexp::Syntax
module Ruby

class V217 < Regexp::Syntax::Ruby::V216
def initialize
super
end
end

end
end
4 changes: 2 additions & 2 deletions lib/regexp_parser/syntax/ruby/2.1.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require File.expand_path('../2.1.6', __FILE__)
require File.expand_path('../2.1.7', __FILE__)

module Regexp::Syntax
module Ruby
# uses the latest 2.1 release
class V21 < Regexp::Syntax::Ruby::V216; end
class V21 < Regexp::Syntax::Ruby::V217; end
end
end
13 changes: 13 additions & 0 deletions lib/regexp_parser/syntax/ruby/2.2.3.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require File.expand_path('../2.2.2', __FILE__)

module Regexp::Syntax
module Ruby

class V223 < Regexp::Syntax::Ruby::V222
def initialize
super
end
end

end
end
4 changes: 2 additions & 2 deletions lib/regexp_parser/syntax/ruby/2.2.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require File.expand_path('../2.2.2', __FILE__)
require File.expand_path('../2.2.3', __FILE__)

module Regexp::Syntax
module Ruby
# uses the latest 2.2 release
class V22 < Regexp::Syntax::Ruby::V222; end
class V22 < Regexp::Syntax::Ruby::V223; end
end
end
2 changes: 1 addition & 1 deletion lib/regexp_parser/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Regexp
module Parser
VERSION = '0.3.0'
VERSION = '0.3.1'
end
end

0 comments on commit a1f26aa

Please sign in to comment.