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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd742d686437361f2d20fe7644ec39eeca842321
4
- data.tar.gz: 625e04e1a36df51e96b8f9afe10dbe72390071a0
3
+ metadata.gz: 33fffcaa3c5d7614a35673b8a53ea0f06030dbed
4
+ data.tar.gz: b8c5ffa5eb34114667b2d8e3f53dec2809816f2e
5
5
  SHA512:
6
- metadata.gz: 356d2bf3c489cff5c3de2ef37ecd41e6c5f0ebd5e08bb5ab3b1e9c415440de07ac101a1e20d15253c61b1692df18c3b9df14357754204427651ff1f65b60c5f5
7
- data.tar.gz: 5138a17eced6dbf6f0f6e634e78a6eb5f4377bd10f0ce15109f3d2230686ba8e46c8a9567bb534fe8a11e1b317fcaabc54b81aa76242ba2c1a6846f7698855e0
6
+ metadata.gz: 989c63812f7821d21fc94b0bd42f43e87be6a933a2f934733a8f30f3b575f566cb43619a3ca64b49e39ec1dc91ea633ab5337f5be133804aa995756e252cc27f
7
+ data.tar.gz: 880139c994a2f813b4e0c65d16f281626252462010a08f68e4ef234f3743cab1ae141041fb3cb60f4bdc04fe5d2803dbb22694cc08cf1604e5da692bc3f6e6ef
@@ -1,5 +1,9 @@
1
1
  ## master
2
2
 
3
+ ## v1.2.9
4
+
5
+ * Fixed deprecation varning on Sprockets 3.7
6
+
3
7
  ## v1.2.8
4
8
 
5
9
  * Bugfix warning on Sprockets 4.0 #202
@@ -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('', ' ~> 3')
34
- v4 = Gem::Dependency.new('', ' >= 4')
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) || v4.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) { v4.match?('', 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
@@ -1,3 +1,3 @@
1
1
  class JsRoutes
2
- VERSION = "1.2.8"
2
+ VERSION = "1.2.9"
3
3
  end
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.8
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-05 00:00:00.000000000 Z
11
+ date: 2016-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties