File tree 3 files changed +9
-9
lines changed
opal/active_support/core_ext
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ source 'https://rubygems.org'
2
2
3
3
gemspec
4
4
5
- gem 'opal' , '~> 0.5.0'
5
+ gem 'opal' , :github => 'opal/opal'
6
+ gem 'opal-rspec' , '0.3.0.beta2'
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
20
20
gem . test_files = gem . files . grep ( %r{^(test|spec|features)/} )
21
21
gem . require_paths = [ 'lib' ]
22
22
23
- gem . add_dependency 'opal'
23
+ gem . add_dependency 'opal' , [ '>= 0.5.0' , '< 1.0.0' ]
24
24
gem . add_development_dependency 'rake'
25
25
gem . add_development_dependency 'opal-rspec'
26
26
end
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ def parameterize
4
4
end
5
5
6
6
def dasherize
7
- `#{ self } .replace(/[-_\\ s]+/g, '-')
8
- .replace(/([A-Z\\ d]+)([A-Z][a-z])/g, '$1-$2')
9
- .replace(/([a-z\\ d])([A-Z])/g, '$1-$2')
7
+ `#{ self } .replace(/[-_\s ]+/g, '-')
8
+ .replace(/([A-Z\d ]+)([A-Z][a-z])/g, '$1-$2')
9
+ .replace(/([a-z\d ])([A-Z])/g, '$1-$2')
10
10
.toLowerCase()`
11
11
end
12
12
@@ -23,9 +23,9 @@ def demodulize
23
23
end
24
24
25
25
def underscore
26
- `#{ self } .replace(/[-\\ s]+/g, '_')
27
- .replace(/([A-Z\\ d]+)([A-Z][a-z])/g, '$1_$2')
28
- .replace(/([a-z\\ d])([A-Z])/g, '$1_$2')
26
+ `#{ self } .replace(/[-\s ]+/g, '_')
27
+ .replace(/([A-Z\d ]+)([A-Z][a-z])/g, '$1_$2')
28
+ .replace(/([a-z\d ])([A-Z])/g, '$1_$2')
29
29
.replace(/-/g, '_')
30
30
.toLowerCase()`
31
31
end
@@ -37,5 +37,4 @@ def camelize(first_letter = :upper)
37
37
})`
38
38
end
39
39
alias_method :camelcase , :camelize
40
-
41
40
end
You can’t perform that action at this time.
0 commit comments