js_assets 0.0.10 → 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: a1a10f59a0e95a03b6091c0589cf6c4bcff0351c
4
- data.tar.gz: eedeea95af58ca5859eb5f986720e033db980307
3
+ metadata.gz: 5a935da2d758b301b4ab3042570df305c4692b59
4
+ data.tar.gz: bc63a9e2feb7244989a25cc9dd20079418a3b0ff
5
5
  SHA512:
6
- metadata.gz: 525c6615b7dc5dd210dfe6b92ad8ad23854860fa8eff2d95940674c9eb7ea4c07bd9885de15dfc570c51f6a7645c25e08693365f5fdcd56f58ce357f006222f8
7
- data.tar.gz: 3b3384bb5e211e02cc34b676287d53bd451194fd8570247adfa8c62dd6c990af166dad12b0f315fc95ab01a0de0e9082d0fc520e57b7d22aee6307a72477e1f1
6
+ metadata.gz: 63aab5c79eaa3d76d29b1c9d67af414b828885682450a7c4fdfdac92ad0fddc9f11cdeb4b08989cb7dcd0c719e702b1e0e5cd857308be408fcc412692dad377b
7
+ data.tar.gz: a936d56ecacb7fe752f8ce8734e99e0eb0cdace5ffb70bbf52aa2716e189c7ed3d27727635fd1d19c43121a12baaa76f1f2c89748055d60663366f32b89dbf81
data/README.md CHANGED
@@ -10,7 +10,10 @@ gem 'js_assets'
10
10
  ```
11
11
  And run `bundle install`.
12
12
 
13
- The current version supports only `Sprockets 2.x`. Support of `Sprockets 3.x` in the course of development.
13
+ The current version supports only `Sprockets 3.x`. For `Sprockets 2.x` use version `0.0.10`
14
+ ```ruby
15
+ gem 'js_assets', '<= 0.0.10'
16
+ ```
14
17
 
15
18
  ## Usage
16
19
 
data/js_assets.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.test_files = Dir["test/**/*"]
19
19
 
20
20
  s.add_dependency 'rails'
21
- s.add_dependency 'sprockets', '~> 2.0'
21
+ s.add_dependency 'sprockets', '>= 3.0'
22
22
 
23
23
  s.add_development_dependency "yard"
24
24
  end
@@ -7,25 +7,22 @@ module JsAssets
7
7
  @allow = ['*.html']
8
8
  def self.fetch
9
9
  project_assets = {}
10
- assets_filters = ::Rails.application.config.assets.precompile
11
- ::Rails.application.assets.each_file do |filename|
12
- if logical_path = ::Rails.application.assets.send(:logical_path_for_filename, filename, assets_filters)
13
- next if matches_filter(@exclude, logical_path, filename)
14
- next unless matches_filter(@allow, logical_path, filename)
15
- if ::Rails.application.config.assets.digest
16
- project_assets[logical_path] = File.join('/', ::Rails.application.config.assets.prefix,
17
- ::Rails.application.assets[logical_path].digest_path)
18
- else
19
- project_assets[logical_path] = File.join('/', ::Rails.application.config.assets.prefix,
20
- logical_path)
21
- end
10
+ ::Rails.application.assets.logical_paths do |logical_path, filename|
11
+ next if matches_filter(@exclude, logical_path, filename)
12
+ next unless matches_filter(@allow, logical_path, filename)
13
+ if ::Rails.application.assets.file_digest(filename)
14
+ project_assets[logical_path] = File.join('/', ::Rails.application.config.assets.prefix,
15
+ ::Rails.application.assets[logical_path].digest_path)
16
+ else
17
+ project_assets[logical_path] = File.join('/', ::Rails.application.config.assets.prefix,
18
+ logical_path)
22
19
  end
23
20
  end
24
21
  return project_assets
25
22
  end
26
23
 
27
24
  protected
28
- # from
25
+ # from
29
26
  # https://github.com/sstephenson/sprockets/blob/master/lib/sprockets/base.rb:418
30
27
  def self.matches_filter(filters, logical_path, filename)
31
28
  return true if filters.nil? || filters.empty?
@@ -1,3 +1,3 @@
1
1
  module JsAssets
2
- VERSION = "0.0.10"
2
+ VERSION = "0.1.0"
3
3
  end
data/test/dummy/Gemfile CHANGED
@@ -1,12 +1,11 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
-
4
3
  # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5
- gem 'rails', '4.1.5'
4
+ gem 'rails', '4.2.1'
6
5
  gem 'uglifier', '>= 1.3.0'
7
6
  gem 'js_assets', :path => '../../'
8
7
 
9
8
  group :development do
10
9
  gem 'guard'
11
10
  gem 'guard-shell'
12
- end
11
+ end
@@ -1,40 +1,42 @@
1
- PATH
2
- remote: ../../
3
- specs:
4
- js_assets (0.0.9)
5
- rails
6
- sprockets (~> 2.0)
7
-
8
1
  GEM
9
2
  remote: https://rubygems.org/
10
3
  specs:
11
- actionmailer (4.1.5)
12
- actionpack (= 4.1.5)
13
- actionview (= 4.1.5)
14
- mail (~> 2.5.4)
15
- actionpack (4.1.5)
16
- actionview (= 4.1.5)
17
- activesupport (= 4.1.5)
18
- rack (~> 1.5.2)
4
+ actionmailer (4.2.1)
5
+ actionpack (= 4.2.1)
6
+ actionview (= 4.2.1)
7
+ activejob (= 4.2.1)
8
+ mail (~> 2.5, >= 2.5.4)
9
+ rails-dom-testing (~> 1.0, >= 1.0.5)
10
+ actionpack (4.2.1)
11
+ actionview (= 4.2.1)
12
+ activesupport (= 4.2.1)
13
+ rack (~> 1.6)
19
14
  rack-test (~> 0.6.2)
20
- actionview (4.1.5)
21
- activesupport (= 4.1.5)
15
+ rails-dom-testing (~> 1.0, >= 1.0.5)
16
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
17
+ actionview (4.2.1)
18
+ activesupport (= 4.2.1)
22
19
  builder (~> 3.1)
23
20
  erubis (~> 2.7.0)
24
- activemodel (4.1.5)
25
- activesupport (= 4.1.5)
21
+ rails-dom-testing (~> 1.0, >= 1.0.5)
22
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
23
+ activejob (4.2.1)
24
+ activesupport (= 4.2.1)
25
+ globalid (>= 0.3.0)
26
+ activemodel (4.2.1)
27
+ activesupport (= 4.2.1)
26
28
  builder (~> 3.1)
27
- activerecord (4.1.5)
28
- activemodel (= 4.1.5)
29
- activesupport (= 4.1.5)
30
- arel (~> 5.0.0)
31
- activesupport (4.1.5)
32
- i18n (~> 0.6, >= 0.6.9)
29
+ activerecord (4.2.1)
30
+ activemodel (= 4.2.1)
31
+ activesupport (= 4.2.1)
32
+ arel (~> 6.0)
33
+ activesupport (4.2.1)
34
+ i18n (~> 0.7)
33
35
  json (~> 1.7, >= 1.7.7)
34
36
  minitest (~> 5.1)
35
- thread_safe (~> 0.1)
37
+ thread_safe (~> 0.3, >= 0.3.4)
36
38
  tzinfo (~> 1.1)
37
- arel (5.0.1.20140414130214)
39
+ arel (6.0.0)
38
40
  builder (3.2.2)
39
41
  celluloid (0.16.0)
40
42
  timers (~> 4.0.0)
@@ -43,6 +45,8 @@ GEM
43
45
  execjs (2.5.2)
44
46
  ffi (1.9.8)
45
47
  formatador (0.2.5)
48
+ globalid (0.3.5)
49
+ activesupport (>= 4.1.0)
46
50
  guard (2.12.5)
47
51
  formatador (>= 0.2.4)
48
52
  listen (~> 2.7)
@@ -59,44 +63,59 @@ GEM
59
63
  hike (1.2.3)
60
64
  hitimes (1.2.2)
61
65
  i18n (0.7.0)
66
+ js_assets (0.0.10)
67
+ rails
68
+ sprockets (~> 2.0)
62
69
  json (1.8.2)
63
70
  listen (2.10.0)
64
71
  celluloid (~> 0.16.0)
65
72
  rb-fsevent (>= 0.9.3)
66
73
  rb-inotify (>= 0.9)
74
+ loofah (2.0.2)
75
+ nokogiri (>= 1.5.9)
67
76
  lumberjack (1.0.9)
68
- mail (2.5.4)
69
- mime-types (~> 1.16)
70
- treetop (~> 1.4.8)
77
+ mail (2.6.3)
78
+ mime-types (>= 1.16, < 3)
71
79
  method_source (0.8.2)
72
- mime-types (1.25.1)
80
+ mime-types (2.6.1)
81
+ mini_portile (0.6.2)
73
82
  minitest (5.6.1)
74
83
  multi_json (1.11.0)
75
84
  nenv (0.2.0)
85
+ nokogiri (1.6.6.2)
86
+ mini_portile (~> 0.6.0)
76
87
  notiffany (0.0.6)
77
88
  nenv (~> 0.1)
78
89
  shellany (~> 0.0)
79
- polyglot (0.3.5)
80
90
  pry (0.10.1)
81
91
  coderay (~> 1.1.0)
82
92
  method_source (~> 0.8.1)
83
93
  slop (~> 3.4)
84
- rack (1.5.2)
94
+ rack (1.6.1)
85
95
  rack-test (0.6.3)
86
96
  rack (>= 1.0)
87
- rails (4.1.5)
88
- actionmailer (= 4.1.5)
89
- actionpack (= 4.1.5)
90
- actionview (= 4.1.5)
91
- activemodel (= 4.1.5)
92
- activerecord (= 4.1.5)
93
- activesupport (= 4.1.5)
97
+ rails (4.2.1)
98
+ actionmailer (= 4.2.1)
99
+ actionpack (= 4.2.1)
100
+ actionview (= 4.2.1)
101
+ activejob (= 4.2.1)
102
+ activemodel (= 4.2.1)
103
+ activerecord (= 4.2.1)
104
+ activesupport (= 4.2.1)
94
105
  bundler (>= 1.3.0, < 2.0)
95
- railties (= 4.1.5)
96
- sprockets-rails (~> 2.0)
97
- railties (4.1.5)
98
- actionpack (= 4.1.5)
99
- activesupport (= 4.1.5)
106
+ railties (= 4.2.1)
107
+ sprockets-rails
108
+ rails-deprecated_sanitizer (1.0.3)
109
+ activesupport (>= 4.2.0.alpha)
110
+ rails-dom-testing (1.0.6)
111
+ activesupport (>= 4.2.0.beta, < 5.0)
112
+ nokogiri (~> 1.6.0)
113
+ rails-deprecated_sanitizer (>= 1.0.1)
114
+ rails-html-sanitizer (1.0.2)
115
+ loofah (~> 2.0)
116
+ railties (4.2.1)
117
+ actionpack (= 4.2.1)
118
+ activesupport (= 4.2.1)
100
119
  rake (>= 0.8.7)
101
120
  thor (>= 0.18.1, < 2.0)
102
121
  rake (10.4.2)
@@ -110,7 +129,7 @@ GEM
110
129
  multi_json (~> 1.0)
111
130
  rack (~> 1.0)
112
131
  tilt (~> 1.1, != 1.3.0)
113
- sprockets-rails (2.2.4)
132
+ sprockets-rails (2.3.1)
114
133
  actionpack (>= 3.0)
115
134
  activesupport (>= 3.0)
116
135
  sprockets (>= 2.8, < 4.0)
@@ -119,298 +138,6 @@ GEM
119
138
  tilt (1.4.1)
120
139
  timers (4.0.1)
121
140
  hitimes
122
- treetop (1.4.15)
123
- polyglot
124
- polyglot
125
- polyglot
126
- polyglot
127
- polyglot
128
- polyglot
129
- polyglot
130
- polyglot
131
- polyglot
132
- polyglot
133
- polyglot
134
- polyglot
135
- polyglot
136
- polyglot
137
- polyglot
138
- polyglot
139
- polyglot
140
- polyglot (>= 0.3.1)
141
- polyglot (>= 0.3.1)
142
- polyglot (>= 0.3.1)
143
- polyglot (>= 0.3.1)
144
- polyglot (>= 0.3.1)
145
- polyglot (>= 0.3.1)
146
- polyglot (>= 0.3.1)
147
- polyglot (>= 0.3.1)
148
- polyglot (>= 0.3.1)
149
- polyglot (>= 0.3.1)
150
- polyglot (>= 0.3.1)
151
- polyglot (>= 0.3.1)
152
- polyglot (>= 0.3.1)
153
- polyglot (>= 0.3.1)
154
- polyglot (>= 0.3.1)
155
- polyglot (>= 0.3.1)
156
- polyglot (>= 0.3.1)
157
- polyglot (>= 0.3.1)
158
- polyglot (>= 0.3.1)
159
- polyglot (>= 0.3.1)
160
- polyglot (>= 0.3.1)
161
- polyglot (>= 0.3.1)
162
- polyglot (>= 0.3.1)
163
- polyglot (>= 0.3.1)
164
- polyglot (>= 0.3.1)
165
- polyglot (>= 0.3.1)
166
- polyglot (>= 0.3.1)
167
- polyglot (>= 0.3.1)
168
- polyglot (>= 0.3.1)
169
- polyglot (>= 0.3.1)
170
- polyglot (>= 0.3.1)
171
- polyglot (>= 0.3.1)
172
- polyglot (>= 0.3.1)
173
- polyglot (>= 0.3.1)
174
- polyglot (>= 0.3.1)
175
- polyglot (>= 0.3.1)
176
- polyglot (>= 0.3.1)
177
- polyglot (>= 0.3.1)
178
- polyglot (>= 0.3.1)
179
- polyglot (>= 0.3.1)
180
- polyglot (>= 0.3.1)
181
- polyglot (>= 0.3.1)
182
- polyglot (>= 0.3.1)
183
- polyglot (>= 0.3.1)
184
- polyglot (>= 0.3.1)
185
- polyglot (>= 0.3.1)
186
- polyglot (>= 0.3.1)
187
- polyglot (>= 0.3.1)
188
- polyglot (>= 0.3.1)
189
- polyglot (>= 0.3.1)
190
- polyglot (>= 0.3.1)
191
- polyglot (>= 0.3.1)
192
- polyglot (>= 0.3.1)
193
- polyglot (>= 0.3.1)
194
- polyglot (>= 0.3.1)
195
- polyglot (>= 0.3.1)
196
- polyglot (>= 0.3.1)
197
- polyglot (>= 0.3.1)
198
- polyglot (>= 0.3.1)
199
- polyglot (>= 0.3.1)
200
- polyglot (>= 0.3.1)
201
- polyglot (>= 0.3.1)
202
- polyglot (>= 0.3.1)
203
- polyglot (>= 0.3.1)
204
- polyglot (>= 0.3.1)
205
- polyglot (>= 0.3.1)
206
- polyglot (>= 0.3.1)
207
- polyglot (>= 0.3.1)
208
- polyglot (>= 0.3.1)
209
- polyglot (>= 0.3.1)
210
- polyglot (>= 0.3.1)
211
- polyglot (>= 0.3.1)
212
- polyglot (>= 0.3.1)
213
- polyglot (>= 0.3.1)
214
- polyglot (>= 0.3.1)
215
- polyglot (>= 0.3.1)
216
- polyglot (>= 0.3.1)
217
- polyglot (>= 0.3.1)
218
- polyglot (>= 0.3.1)
219
- polyglot (>= 0.3.1)
220
- polyglot (>= 0.3.1)
221
- polyglot (>= 0.3.1)
222
- polyglot (>= 0.3.1)
223
- polyglot (>= 0.3.1)
224
- polyglot (>= 0.3.1)
225
- polyglot (>= 0.3.1)
226
- polyglot (>= 0.3.1)
227
- polyglot (>= 0.3.1)
228
- polyglot (>= 0.3.1)
229
- polyglot (>= 0.3.1)
230
- polyglot (>= 0.3.1)
231
- polyglot (>= 0.3.1)
232
- polyglot (>= 0.3.1)
233
- polyglot (>= 0.3.1)
234
- polyglot (>= 0.3.1)
235
- polyglot (>= 0.3.1)
236
- polyglot (>= 0.3.1)
237
- polyglot (>= 0.3.1)
238
- polyglot (>= 0.3.1)
239
- polyglot (>= 0.3.1)
240
- polyglot (>= 0.3.1)
241
- polyglot (>= 0.3.1)
242
- polyglot (>= 0.3.1)
243
- polyglot (>= 0.3.1)
244
- polyglot (>= 0.3.1)
245
- polyglot (>= 0.3.1)
246
- polyglot (>= 0.3.1)
247
- polyglot (>= 0.3.1)
248
- polyglot (>= 0.3.1)
249
- polyglot (>= 0.3.1)
250
- polyglot (>= 0.3.1)
251
- polyglot (>= 0.3.1)
252
- polyglot (>= 0.3.1)
253
- polyglot (>= 0.3.1)
254
- polyglot (>= 0.3.1)
255
- polyglot (>= 0.3.1)
256
- polyglot (>= 0.3.1)
257
- polyglot (>= 0.3.1)
258
- polyglot (>= 0.3.1)
259
- polyglot (>= 0.3.1)
260
- polyglot (>= 0.3.1)
261
- polyglot (>= 0.3.1)
262
- polyglot (>= 0.3.1)
263
- polyglot (>= 0.3.1)
264
- polyglot (>= 0.3.1)
265
- polyglot (>= 0.3.1)
266
- polyglot (>= 0.3.1)
267
- polyglot (>= 0.3.1)
268
- polyglot (>= 0.3.1)
269
- polyglot (>= 0.3.1)
270
- polyglot (>= 0.3.1)
271
- polyglot (>= 0.3.1)
272
- polyglot (>= 0.3.1)
273
- polyglot (>= 0.3.1)
274
- polyglot (>= 0.3.1)
275
- polyglot (>= 0.3.1)
276
- polyglot (>= 0.3.1)
277
- polyglot (>= 0.3.1)
278
- polyglot (>= 0.3.1)
279
- polyglot (>= 0.3.1)
280
- polyglot (>= 0.3.1)
281
- polyglot (>= 0.3.1)
282
- polyglot (>= 0.3.1)
283
- polyglot (>= 0.3.1)
284
- polyglot (>= 0.3.1)
285
- polyglot (>= 0.3.1)
286
- polyglot (>= 0.3.1)
287
- polyglot (>= 0.3.1)
288
- polyglot (>= 0.3.1)
289
- polyglot (>= 0.3.1)
290
- polyglot (>= 0.3.1)
291
- polyglot (>= 0.3.1)
292
- polyglot (>= 0.3.1)
293
- polyglot (>= 0.3.1)
294
- polyglot (>= 0.3.1)
295
- polyglot (>= 0.3.1)
296
- polyglot (>= 0.3.1)
297
- polyglot (>= 0.3.1)
298
- polyglot (>= 0.3.1)
299
- polyglot (>= 0.3.1)
300
- polyglot (>= 0.3.1)
301
- polyglot (>= 0.3.1)
302
- polyglot (>= 0.3.1)
303
- polyglot (>= 0.3.1)
304
- polyglot (>= 0.3.1)
305
- polyglot (>= 0.3.1)
306
- polyglot (>= 0.3.1)
307
- polyglot (>= 0.3.1)
308
- polyglot (>= 0.3.1)
309
- polyglot (>= 0.3.1)
310
- polyglot (>= 0.3.1)
311
- polyglot (>= 0.3.1)
312
- polyglot (>= 0.3.1)
313
- polyglot (>= 0.3.1)
314
- polyglot (>= 0.3.1)
315
- polyglot (>= 0.3.1)
316
- polyglot (>= 0.3.1)
317
- polyglot (>= 0.3.1)
318
- polyglot (>= 0.3.1)
319
- polyglot (>= 0.3.1)
320
- polyglot (>= 0.3.1)
321
- polyglot (>= 0.3.1)
322
- polyglot (>= 0.3.1)
323
- polyglot (>= 0.3.1)
324
- polyglot (>= 0.3.1)
325
- polyglot (>= 0.3.1)
326
- polyglot (>= 0.3.1)
327
- polyglot (>= 0.3.1)
328
- polyglot (>= 0.3.1)
329
- polyglot (>= 0.3.1)
330
- polyglot (>= 0.3.1)
331
- polyglot (>= 0.3.1)
332
- polyglot (>= 0.3.1)
333
- polyglot (>= 0.3.1)
334
- polyglot (>= 0.3.1)
335
- polyglot (>= 0.3.1)
336
- polyglot (>= 0.3.1)
337
- polyglot (>= 0.3.1)
338
- polyglot (>= 0.3.1)
339
- polyglot (>= 0.3.1)
340
- polyglot (>= 0.3.1)
341
- polyglot (>= 0.3.1)
342
- polyglot (>= 0.3.1)
343
- polyglot (>= 0.3.1)
344
- polyglot (>= 0.3.1)
345
- polyglot (>= 0.3.1)
346
- polyglot (>= 0.3.1)
347
- polyglot (>= 0.3.1)
348
- polyglot (>= 0.3.1)
349
- polyglot (>= 0.3.1)
350
- polyglot (>= 0.3.1)
351
- polyglot (>= 0.3.1)
352
- polyglot (>= 0.3.1)
353
- polyglot (>= 0.3.1)
354
- polyglot (>= 0.3.1)
355
- polyglot (>= 0.3.1)
356
- polyglot (>= 0.3.1)
357
- polyglot (>= 0.3.1)
358
- polyglot (>= 0.3.1)
359
- polyglot (>= 0.3.1)
360
- polyglot (>= 0.3.1)
361
- polyglot (>= 0.3.1)
362
- polyglot (>= 0.3.1)
363
- polyglot (>= 0.3.1)
364
- polyglot (>= 0.3.1)
365
- polyglot (>= 0.3.1)
366
- polyglot (>= 0.3.1)
367
- polyglot (>= 0.3.1)
368
- polyglot (>= 0.3.1)
369
- polyglot (>= 0.3.1)
370
- polyglot (>= 0.3.1)
371
- polyglot (>= 0.3.1)
372
- polyglot (>= 0.3.1)
373
- polyglot (>= 0.3.1)
374
- polyglot (>= 0.3.1)
375
- polyglot (>= 0.3.1)
376
- polyglot (>= 0.3.1)
377
- polyglot (>= 0.3.1)
378
- polyglot (>= 0.3.1)
379
- polyglot (>= 0.3.1)
380
- polyglot (>= 0.3.1)
381
- polyglot (>= 0.3.1)
382
- polyglot (>= 0.3.1)
383
- polyglot (>= 0.3.1)
384
- polyglot (>= 0.3.1)
385
- polyglot (>= 0.3.1)
386
- polyglot (>= 0.3.1)
387
- polyglot (>= 0.3.1)
388
- polyglot (>= 0.3.1)
389
- polyglot (>= 0.3.1)
390
- polyglot (>= 0.3.1)
391
- polyglot (>= 0.3.1)
392
- polyglot (>= 0.3.1)
393
- polyglot (>= 0.3.1)
394
- polyglot (>= 0.3.1)
395
- polyglot (>= 0.3.1)
396
- polyglot (>= 0.3.1)
397
- polyglot (>= 0.3.1)
398
- polyglot (>= 0.3.1)
399
- polyglot (>= 0.3.1)
400
- polyglot (>= 0.3.1)
401
- polyglot (>= 0.3.1)
402
- polyglot (>= 0.3.1)
403
- polyglot (>= 0.3.1)
404
- polyglot (>= 0.3.1)
405
- polyglot (>= 0.3.1)
406
- polyglot (>= 0.3.1)
407
- polyglot (>= 0.3.1)
408
- polyglot (>= 0.3.1)
409
- polyglot (>= 0.3.1)
410
- polyglot (>= 0.3.1)
411
- polyglot (>= 0.3.1)
412
- polyglot (>= 0.3.1)
413
- polyglot (>= 0.3.1)
414
141
  tzinfo (1.2.2)
415
142
  thread_safe (~> 0.1)
416
143
  uglifier (2.7.1)
@@ -423,6 +150,6 @@ PLATFORMS
423
150
  DEPENDENCIES
424
151
  guard
425
152
  guard-shell
426
- js_assets!
427
- rails (= 4.1.5)
153
+ js_assets (<= 0.0.10)
154
+ rails (= 4.2.1)
428
155
  uglifier (>= 1.3.0)
@@ -0,0 +1,2 @@
1
+ class TestController < ApplicationController
2
+ end
@@ -0,0 +1,14 @@
1
+ <h1>Assets</h1>
2
+
3
+ <ul id="assets"></ul>
4
+
5
+ <script>
6
+ (function(){
7
+ var assetList = document.getElementById("assets");
8
+ Object.keys(project_assets).forEach(function(key){
9
+ var asset = document.createElement("li");
10
+ asset.appendChild(document.createTextNode(key+": "+project_assets[key]));
11
+ assetList.appendChild(asset);
12
+ });
13
+ })();
14
+ </script>
@@ -3,7 +3,7 @@ Rails.application.routes.draw do
3
3
  # See how all your routes lay out with "rake routes".
4
4
 
5
5
  # You can have the root of your site routed with "root"
6
- # root 'welcome#index'
6
+ root 'test#show'
7
7
 
8
8
  # Example of regular route:
9
9
  # get 'products/:id' => 'catalog#view'
@@ -167,3 +167,24 @@ Started GET "/assets/app_assets.js" for 127.0.0.1 at 2014-09-19 10:42:15 +0400
167
167
 
168
168
 
169
169
  Started GET "/assets/app_assets.js" for 127.0.0.1 at 2015-04-29 14:13:49 +0300
170
+
171
+
172
+ Started GET "/" for 127.0.0.1 at 2015-05-27 18:38:39 +0300
173
+ Processing by TestController#show as */*
174
+ Rendered test/show.html.erb within layouts/application (0.9ms)
175
+ Completed 200 OK in 39ms (Views: 38.7ms)
176
+
177
+
178
+ Started GET "/" for 127.0.0.1 at 2015-05-27 18:38:50 +0300
179
+ Processing by TestController#show as HTML
180
+ Rendered test/show.html.erb within layouts/application (0.3ms)
181
+ Completed 200 OK in 11ms (Views: 10.5ms)
182
+
183
+
184
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-05-27 18:38:50 +0300
185
+
186
+
187
+ Started GET "/assets/app_assets.js?body=1" for 127.0.0.1 at 2015-05-27 18:38:50 +0300
188
+
189
+
190
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-05-27 18:38:50 +0300
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zaur Abasmirzoev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-29 00:00:00.000000000 Z
11
+ date: 2015-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: sprockets
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '3.0'
34
34
  type: :runtime
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: '2.0'
40
+ version: '3.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: yard
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -85,11 +85,13 @@ files:
85
85
  - test/dummy/app/assets/stylesheets/application.css
86
86
  - test/dummy/app/controllers/application_controller.rb
87
87
  - test/dummy/app/controllers/concerns/.keep
88
+ - test/dummy/app/controllers/test_controller.rb
88
89
  - test/dummy/app/helpers/application_helper.rb
89
90
  - test/dummy/app/mailers/.keep
90
91
  - test/dummy/app/models/.keep
91
92
  - test/dummy/app/models/concerns/.keep
92
93
  - test/dummy/app/views/layouts/application.html.erb
94
+ - test/dummy/app/views/test/show.html.erb
93
95
  - test/dummy/bin/bundle
94
96
  - test/dummy/bin/rails
95
97
  - test/dummy/bin/rake
@@ -136,9 +138,18 @@ files:
136
138
  - test/dummy/test/mailers/.keep
137
139
  - test/dummy/test/models/.keep
138
140
  - test/dummy/test/test_helper.rb
141
+ - test/dummy/tmp/cache/assets/development/sprockets/0e8f1ccd40c028e07d6de01e4802c9fe
142
+ - test/dummy/tmp/cache/assets/development/sprockets/0f6a69b0769dff4013183abd557f1080
143
+ - test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
139
144
  - test/dummy/tmp/cache/assets/development/sprockets/16ac18782e25d6d504b259f06b656310
140
145
  - test/dummy/tmp/cache/assets/development/sprockets/2c57d2ceb3813a3e282a80bc90835347
146
+ - test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
147
+ - test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
148
+ - test/dummy/tmp/cache/assets/development/sprockets/ac379709ca7bbe2435ae2d76b88649bf
149
+ - test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
150
+ - test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
141
151
  - test/dummy/tmp/cache/assets/development/sprockets/f2258d3d05e44c19def553db3b6a8ac2
152
+ - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
142
153
  - test/dummy/vendor/assets/javascripts/.keep
143
154
  - test/dummy/vendor/assets/stylesheets/.keep
144
155
  homepage: https://github.com/kavkaz/js_assets
@@ -172,8 +183,10 @@ test_files:
172
183
  - test/dummy/app/assets/javascripts/bar.html
173
184
  - test/dummy/app/assets/stylesheets/application.css
174
185
  - test/dummy/app/controllers/application_controller.rb
186
+ - test/dummy/app/controllers/test_controller.rb
175
187
  - test/dummy/app/helpers/application_helper.rb
176
188
  - test/dummy/app/views/layouts/application.html.erb
189
+ - test/dummy/app/views/test/show.html.erb
177
190
  - test/dummy/bin/bundle
178
191
  - test/dummy/bin/rails
179
192
  - test/dummy/bin/rake
@@ -216,7 +229,16 @@ test_files:
216
229
  - test/dummy/Rakefile
217
230
  - test/dummy/README.rdoc
218
231
  - test/dummy/test/test_helper.rb
232
+ - test/dummy/tmp/cache/assets/development/sprockets/0e8f1ccd40c028e07d6de01e4802c9fe
233
+ - test/dummy/tmp/cache/assets/development/sprockets/0f6a69b0769dff4013183abd557f1080
234
+ - test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
219
235
  - test/dummy/tmp/cache/assets/development/sprockets/16ac18782e25d6d504b259f06b656310
220
236
  - test/dummy/tmp/cache/assets/development/sprockets/2c57d2ceb3813a3e282a80bc90835347
237
+ - test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
238
+ - test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
239
+ - test/dummy/tmp/cache/assets/development/sprockets/ac379709ca7bbe2435ae2d76b88649bf
240
+ - test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
241
+ - test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
221
242
  - test/dummy/tmp/cache/assets/development/sprockets/f2258d3d05e44c19def553db3b6a8ac2
243
+ - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
222
244
  has_rdoc: