generated-assets 2.0.0 → 2.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: 54936af45e8a5b75c076039de0cbfeebdb9226a1
4
- data.tar.gz: bc47ab27bccbd8c4e6eebad3b08e888b6db96def
3
+ metadata.gz: add4536a7a0013e569f12f64f1ea996f3c55cc4b
4
+ data.tar.gz: 43f86fc8aa80dd2b224ce1706cb9b888ecc6eda7
5
5
  SHA512:
6
- metadata.gz: 14b69e6cbc8b47ad87d6d5ca95fe73719b5da7db172ac1592ff00b121938bdf9cca95f5326325a7770eb0684862c0074fd037639dd8d58cc68fbae6e82203234
7
- data.tar.gz: 57dfcf0336f982584f611be4eddfe1eecf4cc530e82feebc8f40bd55be30ec280dde1fbcd0538ee513ee2fa0b22cc1371f71869924a5e7044ae932badecbc152
6
+ metadata.gz: 17538360c03bd0ef7b18c8087c9dbe587cc7235a988a7747d95d9a7afce7418e2743705123eb89dac1da5d90d1b85ce0426ac8ef648479a15361c83fda69d10d
7
+ data.tar.gz: dee43a47f26244d17cafbd5220ab866ae568992778b4993a9176da1fa8261d44a5b00d6d1863189056241a2846c19103116730f958c00ec201edfa8d55073278
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  if ENV['RAILS_VERSION']
17
17
  s.add_dependency 'railties', "~> #{ENV['RAILS_VERSION']}"
18
18
  else
19
- s.add_dependency 'railties', '>= 3.2.0', '< 5'
19
+ s.add_dependency 'railties', '>= 3.2'
20
20
  end
21
21
 
22
22
  s.add_dependency 'sprockets-rails'
@@ -4,7 +4,7 @@ module GeneratedAssets
4
4
  class Railtie < ::Rails::Railtie
5
5
  config.before_configuration do |app|
6
6
  app.config.assets.generated = GeneratedAssets::Manifest.new(
7
- app, File.join(GeneratedAssets.asset_dir, app.class.parent_name)
7
+ app, File.join(GeneratedAssets.asset_dir, RailtieHelper.app_name_for(app))
8
8
  )
9
9
  end
10
10
 
@@ -14,8 +14,19 @@ module GeneratedAssets
14
14
 
15
15
  initializer :generated_assets, group: :all do |app|
16
16
  app.config.assets.paths << File.join(
17
- GeneratedAssets.asset_dir, app.class.parent_name
17
+ GeneratedAssets.asset_dir, RailtieHelper.app_name_for(app)
18
18
  )
19
19
  end
20
20
  end
21
+
22
+ module RailtieHelper
23
+ def self.app_name_for(app)
24
+ case app
25
+ when Class # rails 5
26
+ app.parent_name
27
+ else
28
+ app.class.parent_name # rails 3, 4
29
+ end
30
+ end
31
+ end
21
32
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module GeneratedAssets
4
- VERSION = '2.0.0'
4
+ VERSION = '2.1.0'
5
5
  end
data/spec/log/test.log CHANGED
@@ -84,3 +84,22 @@ Compiled application.js (0ms) (pid 80699)
84
84
  Compiled application.js (0ms) (pid 81069)
85
85
  Compiled application.js (0ms) (pid 81075)
86
86
  Compiled application.js (0ms) (pid 81080)
87
+ Compiled application.js (0ms) (pid 84162)
88
+ Compiled application.js (0ms) (pid 84168)
89
+ Compiled application.js (0ms) (pid 84173)
90
+ Compiled application.js (0ms) (pid 84178)
91
+ Compiled application.js (0ms) (pid 84703)
92
+ Compiled application.js (0ms) (pid 84709)
93
+ Compiled application.js (0ms) (pid 84714)
94
+ Compiled application.js (0ms) (pid 84719)
95
+ Compiled application.js (0ms) (pid 85120)
96
+ Compiled application.js (0ms) (pid 85126)
97
+ Compiled application.js (0ms) (pid 85131)
98
+ Compiled application.js (0ms) (pid 85136)
99
+ Compiled application.js (0ms) (pid 35162)
100
+ Compiled application.js (0ms) (pid 35168)
101
+ Compiled application.js (0ms) (pid 35176)
102
+ Compiled application.js (0ms) (pid 36618)
103
+ Compiled application.js (0ms) (pid 36624)
104
+ Compiled application.js (0ms) (pid 36830)
105
+ Compiled application.js (0ms) (pid 36835)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: generated-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-21 00:00:00.000000000 Z
11
+ date: 2017-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.0
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '5'
19
+ version: '3.2'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: 3.2.0
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '5'
26
+ version: '3.2'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: sprockets-rails
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -107,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
101
  version: '0'
108
102
  requirements: []
109
103
  rubyforge_project:
110
- rubygems_version: 2.6.6
104
+ rubygems_version: 2.5.2
111
105
  signing_key:
112
106
  specification_version: 4
113
107
  summary: Programmatically generate assets for the Rails asset pipeline.