File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ gemspec
6
6
# Add dependencies to develop your gem here.
7
7
# Include everything needed to run rake, tests, features, etc.
8
8
group :development do
9
- gem " bundler"
10
- gem " rake" , "> = 10.5"
11
- gem " RedCloth" , RUBY_PLATFORM == 'java' ? " = 4.2.9" : " >= 4.0.3"
12
- gem " term-ansicolor" , " >= 1.3.2"
13
- gem 'tins' , '>= 1.6.0'
14
- gem " shoulda-context" , " >= 1.2.1"
15
- gem " test-unit"
16
- gem " json" , " >= 1.8" if RUBY_VERSION < '1.9'
17
- gem " rdoc" , "> = 4.2.2"
9
+ gem ' bundler'
10
+ gem ' rake' , RUBY_VERSION < '1.9' ? '~> 10.5' : '> = 10.5'
11
+ gem ' RedCloth' , RUBY_PLATFORM == 'java' ? ' = 4.2.9' : ' >= 4.0.3'
12
+ gem ' term-ansicolor' , ' >= 1.3.2'
13
+ gem 'tins' , RUBY_VERSION < '2.0' ? '~> 1.6.0' : '>= 1.6.0'
14
+ gem ' shoulda-context' , RUBY_VERSION < '1.9' ? '= 1.2.1' : ' >= 1.2.1'
15
+ gem ' test-unit' , RUBY_VERSION < '1.9' ? '~> 2.0' : '>= 3.0'
16
+ gem ' json' , ' >= 1.8' if RUBY_VERSION < '1.9'
17
+ gem ' rdoc' , RUBY_VERSION < '1.9' ? '~> 4.2.2' : '> = 4.2.2'
18
18
end
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class Java < Scanner
44
44
'"' => /[^\\ "]+/ ,
45
45
'/' => /[^\\ \/ ]+/ ,
46
46
} # :nodoc:
47
- IDENT = /[[[:alpha:]]_][[[:alnum:]]_]*/ # :nodoc:
47
+ IDENT = RUBY_VERSION < '1.9' ? /[a-zA-Z_][A-Za-z_0-9]*/ : /[[[:alpha:]]_][[[:alnum:]]_]*/ # :nodoc:
48
48
49
49
protected
50
50
You can’t perform that action at this time.
0 commit comments