js-routes 1.2.8 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/js_routes/engine.rb +6 -6
- data/lib/js_routes/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33fffcaa3c5d7614a35673b8a53ea0f06030dbed
|
4
|
+
data.tar.gz: b8c5ffa5eb34114667b2d8e3f53dec2809816f2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 989c63812f7821d21fc94b0bd42f43e87be6a933a2f934733a8f30f3b575f566cb43619a3ca64b49e39ec1dc91ea633ab5337f5be133804aa995756e252cc27f
|
7
|
+
data.tar.gz: 880139c994a2f813b4e0c65d16f281626252462010a08f68e4ef234f3743cab1ae141041fb3cb60f4bdc04fe5d2803dbb22694cc08cf1604e5da692bc3f6e6ef
|
data/CHANGELOG.md
CHANGED
data/lib/js_routes/engine.rb
CHANGED
@@ -30,13 +30,13 @@ end
|
|
30
30
|
class Engine < ::Rails::Engine
|
31
31
|
require 'sprockets/version'
|
32
32
|
v2 = Gem::Dependency.new('', ' ~> 2')
|
33
|
-
v3 = Gem::Dependency.new('', '
|
34
|
-
|
35
|
-
sprockets_version = Gem::Version.new(Sprockets::VERSION).release
|
33
|
+
v3 = Gem::Dependency.new('', ' >= 3' ,' < 3.7')
|
34
|
+
v37 = Gem::Dependency.new('', ' >= 3.7')
|
35
|
+
sprockets_version = Gem::Version.new(::Sprockets::VERSION).release
|
36
36
|
initializer_args = case sprockets_version
|
37
37
|
when -> (v) { v2.match?('', v) }
|
38
38
|
{ after: "sprockets.environment" }
|
39
|
-
when -> (v) { v3.match?('', v) ||
|
39
|
+
when -> (v) { v3.match?('', v) || v37.match?('', v) }
|
40
40
|
{ after: :engines_blank_point, before: :finisher_hook }
|
41
41
|
else
|
42
42
|
raise StandardError, "Sprockets version #{sprockets_version} is not supported"
|
@@ -60,10 +60,10 @@ class Engine < ::Rails::Engine
|
|
60
60
|
data
|
61
61
|
end
|
62
62
|
end
|
63
|
-
when -> (v) {
|
63
|
+
when -> (v) { v37.match?('', v) }
|
64
64
|
Sprockets.register_preprocessor 'application/javascript', JsRoutesSprocketsExtension
|
65
65
|
else
|
66
66
|
raise StandardError, "Sprockets version #{sprockets_version} is not supported"
|
67
67
|
end
|
68
68
|
end
|
69
|
-
end
|
69
|
+
end
|
data/lib/js_routes/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: js-routes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bogdan Gusiev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|