js_assets 0.0.6 → 0.0.7

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: 20e52e397c12176dd69a12ef005a180a295b2c48
4
- data.tar.gz: 3d7075f76d88a0ccd24cd62e32b674ff9653bcaa
3
+ metadata.gz: f8b1060c33321d0f72c7cde1a84b0dc7fabdc0bf
4
+ data.tar.gz: 05375b1d4e398937f92b77a73c96b31f98e97a4f
5
5
  SHA512:
6
- metadata.gz: b37111c29f9381c396c42a2b07e672f104961c9a930089751fe487477cf5540e7a5af8f4374f14d1f3aab480f93d39d2f57de03fe4368de6010780d8d68278ad
7
- data.tar.gz: 92e4acad04fd8e3243283ebe07dbc1656f5e655e074cf49d08e3ae28ad78af67388225e3f9c8e7e5bb92d868b88cba2d97c04268c0feb090c6028b18ec08f565
6
+ metadata.gz: 450d91468e2e5573bf7283d483dda2978870e6657124e191fa66dc029737799770270a54f426fc8df478eac0b65b572a49d34bab12109c12f2852acd99365bd0
7
+ data.tar.gz: 93daa28193e39fc833a3ccdb200f197f2bbbc951492677ed6037642876dbb77b82125a67b610cf046270b827cff4eac58f32ab2a08d74c36c555bd4eea192efa
@@ -12,9 +12,9 @@ module JsAssets
12
12
  if logical_path = ::Rails.application.assets.send(:logical_path_for_filename, filename, assets_filters)
13
13
  next if matches_filter(@exclude, logical_path, filename)
14
14
  next unless matches_filter(@allow, logical_path, filename)
15
- if ::Rails.env == 'development'
16
- project_assets[logical_path] = ::ApplicationController.helpers.asset_path(logical_path)
17
- elsif ::Rails.env == 'production'
15
+ if ::Rails.env.development? || ::Rails.env.test?
16
+ project_assets[logical_path] = '/assets/' + logical_path
17
+ elsif ::Rails.env.production?
18
18
  project_assets[logical_path] = '/assets/' + ::Rails.application.assets[logical_path].digest_path
19
19
  end
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module JsAssets
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zaur Abasmirzoev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-23 00:00:00.000000000 Z
11
+ date: 2014-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: yard
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
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
40
  version: '0'
41
41
  description: Provide asset_path helper in javascript
@@ -45,7 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - ".gitignore"
48
+ - .gitignore
49
49
  - Gemfile
50
50
  - MIT-LICENSE
51
51
  - README.md
@@ -67,17 +67,17 @@ require_paths:
67
67
  - lib
68
68
  required_ruby_version: !ruby/object:Gem::Requirement
69
69
  requirements:
70
- - - ">="
70
+ - - '>='
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ">="
75
+ - - '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.2.2
80
+ rubygems_version: 2.1.10
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Javascript helper