js_image_paths 0.0.2 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9eff5ee35713ed29b812f244ce6a9f50d7d47ef
4
- data.tar.gz: a7067fc73ba22f769ed8b147e3663c9bd87a64f6
3
+ metadata.gz: 2300711ed1734f9093e806265e70c4abb5f82f9f
4
+ data.tar.gz: 1729f453490ab2ca4f1a80113145c9ec5fcb2b2a
5
5
  SHA512:
6
- metadata.gz: 256d5a17161ec7e2ce66c5e170504f37220bb4390e71d4d7c1092ca8f6f1c341170dce0ccbc700b26174de3fbf086b6dc216da5b957c344b46eca2f29a183483
7
- data.tar.gz: 5caf26237d07bdab7bfdcfdd7a0d9112809682e1a0d8f59dcaac927267ae0b27145939cd67e75622f5dd90d06490a41a0ad21b54f9252779893ec68c236088e8
6
+ metadata.gz: 48bae153c9fbd888ede8003deaa1040ba8a48117beb6358effbca8d5d9707beda031d4f96a942669a98a053c7955d45c3cecd50c2f111963ce49128f29a7c373
7
+ data.tar.gz: 67542cbc75bcd5b2ad6b6e47913fb676468ef5f5d51a3b20a7c3197a00af08ef7a079f8c637c5366ba0a2ed6b4af39c24233e554c06d864d1b701e00c88c11ef
@@ -4,7 +4,8 @@ module JsImagePaths
4
4
  isolate_namespace(JsImagePaths)
5
5
 
6
6
  initializer('js_image_paths.compile', after: 'sprockets.environment') do |application|
7
- application.assets.register_preprocessor('application/javascript', :'js_image_path.compile') do |context, data|
7
+ sprockets_env = application.assets || Sprockets
8
+ sprockets_env.register_preprocessor('application/javascript', :'js_image_path.compile') do |context, data|
8
9
  if context.logical_path == 'js_image_paths'
9
10
  JsImagePaths::Generator.context = context
10
11
  end
@@ -1,3 +1,3 @@
1
1
  module JsImagePaths
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js_image_paths
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonne Haß
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-31 00:00:00.000000000 Z
11
+ date: 2016-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.7'
33
+ version: '1.10'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.7'
40
+ version: '1.10'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -85,9 +85,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 2.4.1
88
+ rubygems_version: 2.5.1
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: Rails image paths in your JS
92
92
  test_files: []
93
- has_rdoc: