assette 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.8
@@ -4,15 +4,15 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{assette}
8
- s.version = "0.1.7"
7
+ s.name = "assette"
8
+ s.version = "0.1.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Tal Atlas}]
12
- s.date = %q{2012-01-17}
13
- s.description = %q{Renders all asset types (coffeescript/sass/scss) as equals}
14
- s.email = %q{me@tal.by}
15
- s.executables = [%q{assette}]
11
+ s.authors = ["Tal Atlas"]
12
+ s.date = "2012-03-28"
13
+ s.description = "Renders all asset types (coffeescript/sass/scss) as equals"
14
+ s.email = "me@tal.by"
15
+ s.executables = ["assette"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
18
18
  "README.rdoc"
@@ -84,11 +84,11 @@ Gem::Specification.new do |s|
84
84
  "test/helper.rb",
85
85
  "test/test_server.rb"
86
86
  ]
87
- s.homepage = %q{http://github.com/Talby/assette}
88
- s.licenses = [%q{MIT}]
89
- s.require_paths = [%q{lib}]
90
- s.rubygems_version = %q{1.8.8}
91
- s.summary = %q{Treat all assets as equal}
87
+ s.homepage = "http://github.com/Talby/assette"
88
+ s.licenses = ["MIT"]
89
+ s.require_paths = ["lib"]
90
+ s.rubygems_version = "1.8.10"
91
+ s.summary = "Treat all assets as equal"
92
92
  s.test_files = [
93
93
  "examples/config/assets.rb",
94
94
  "spec/assette_spec.rb",
@@ -18,5 +18,9 @@ cache_method 'path'
18
18
  minify true
19
19
 
20
20
  after_compile do |sha|
21
-
21
+ 3
22
22
  end
23
+
24
+ # cachebuster_string do
25
+ # 'mysha'
26
+ # end
@@ -104,7 +104,7 @@ module Assette
104
104
  Dir.mkdir('assets')
105
105
  end
106
106
 
107
- sha = Git.open('.').log.first.sha[0...8] rescue Time.now.strftime("%y%m%d_%H%M%S")
107
+ sha = Assette.config.cachebuster_string.call
108
108
  Assette.config.sha = sha
109
109
 
110
110
  Assette.config.file_paths.each do |path|
@@ -19,7 +19,7 @@ module Assette
19
19
  SINGLES = %w{asset_dir templates_path template_format cache_method
20
20
  template_preloader template_partial asset_version_file uglifier
21
21
  minify less sass}.freeze
22
- BLOCKS = %w{after_compile}.freeze
22
+ BLOCKS = %w{after_compile cachebuster_string}.freeze
23
23
 
24
24
  OPTIONS = begin
25
25
  arr = MULTIPLES.collect do |m|
@@ -41,6 +41,7 @@ module Assette
41
41
  :templates_path => 'app/templates',
42
42
  :template_format => 'AT.t[{*path*}] = {*template*};',
43
43
  :after_compile => Proc.new {},
44
+ :cachebuster_string => Proc.new {Git.open('.').log.first.sha[0...8] rescue Time.now.strftime("%y%m%d_%H%M%S")},
44
45
  :uglifier => {:copyright => false, :mangle => false},
45
46
  :less => {},
46
47
  :sass => {}
metadata CHANGED
@@ -1,209 +1,157 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: assette
3
- version: !ruby/object:Gem::Version
4
- hash: 21
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.8
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 7
10
- version: 0.1.7
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Tal Atlas
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-01-17 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- version_requirements: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-03-28 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rack
16
+ requirement: &70231735340380 !ruby/object:Gem::Requirement
22
17
  none: false
23
- requirements:
18
+ requirements:
24
19
  - - ~>
25
- - !ruby/object:Gem::Version
26
- hash: 1
27
- segments:
28
- - 1
29
- version: "1"
30
- name: rack
31
- prerelease: false
20
+ - !ruby/object:Gem::Version
21
+ version: '1'
32
22
  type: :runtime
33
- requirement: *id001
34
- - !ruby/object:Gem::Dependency
35
- version_requirements: &id002 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ version_requirements: *70231735340380
25
+ - !ruby/object:Gem::Dependency
26
+ name: thor
27
+ requirement: &70231735339880 !ruby/object:Gem::Requirement
36
28
  none: false
37
- requirements:
29
+ requirements:
38
30
  - - ~>
39
- - !ruby/object:Gem::Version
40
- hash: 3
41
- segments:
42
- - 0
43
- version: "0"
44
- name: thor
45
- prerelease: false
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
46
33
  type: :runtime
47
- requirement: *id002
48
- - !ruby/object:Gem::Dependency
49
- version_requirements: &id003 !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- hash: 7
55
- segments:
56
- - 1
57
- - 4
58
- version: "1.4"
59
- name: json
60
34
  prerelease: false
61
- type: :runtime
62
- requirement: *id003
63
- - !ruby/object:Gem::Dependency
64
- version_requirements: &id004 !ruby/object:Gem::Requirement
35
+ version_requirements: *70231735339880
36
+ - !ruby/object:Gem::Dependency
37
+ name: json
38
+ requirement: &70231735339340 !ruby/object:Gem::Requirement
65
39
  none: false
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- hash: 5
70
- segments:
71
- - 3
72
- - 1
73
- version: "3.1"
74
- name: sass
75
- prerelease: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '1.4'
76
44
  type: :runtime
77
- requirement: *id004
78
- - !ruby/object:Gem::Dependency
79
- version_requirements: &id005 !ruby/object:Gem::Requirement
80
- none: false
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- hash: 47
85
- segments:
86
- - 1
87
- - 16
88
- version: "1.16"
89
- name: mime-types
90
45
  prerelease: false
46
+ version_requirements: *70231735339340
47
+ - !ruby/object:Gem::Dependency
48
+ name: sass
49
+ requirement: &70231735338840 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '3.1'
91
55
  type: :runtime
92
- requirement: *id005
93
- - !ruby/object:Gem::Dependency
94
- version_requirements: &id006 !ruby/object:Gem::Requirement
56
+ prerelease: false
57
+ version_requirements: *70231735338840
58
+ - !ruby/object:Gem::Dependency
59
+ name: mime-types
60
+ requirement: &70231735338340 !ruby/object:Gem::Requirement
95
61
  none: false
96
- requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- hash: 3
100
- segments:
101
- - 0
102
- version: "0"
103
- name: git
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '1.16'
66
+ type: :runtime
104
67
  prerelease: false
68
+ version_requirements: *70231735338340
69
+ - !ruby/object:Gem::Dependency
70
+ name: git
71
+ requirement: &70231735337780 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
105
77
  type: :runtime
106
- requirement: *id006
107
- - !ruby/object:Gem::Dependency
108
- version_requirements: &id007 !ruby/object:Gem::Requirement
78
+ prerelease: false
79
+ version_requirements: *70231735337780
80
+ - !ruby/object:Gem::Dependency
81
+ name: coffee-script
82
+ requirement: &70231735337300 !ruby/object:Gem::Requirement
109
83
  none: false
110
- requirements:
84
+ requirements:
111
85
  - - ~>
112
- - !ruby/object:Gem::Version
113
- hash: 7
114
- segments:
115
- - 2
116
- version: "2"
117
- name: coffee-script
118
- prerelease: false
86
+ - !ruby/object:Gem::Version
87
+ version: '2'
119
88
  type: :runtime
120
- requirement: *id007
121
- - !ruby/object:Gem::Dependency
122
- version_requirements: &id008 !ruby/object:Gem::Requirement
123
- none: false
124
- requirements:
125
- - - ">="
126
- - !ruby/object:Gem::Version
127
- hash: 3
128
- segments:
129
- - 0
130
- version: "0"
131
- name: uglifier
132
89
  prerelease: false
90
+ version_requirements: *70231735337300
91
+ - !ruby/object:Gem::Dependency
92
+ name: uglifier
93
+ requirement: &70231735336820 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
133
99
  type: :runtime
134
- requirement: *id008
135
- - !ruby/object:Gem::Dependency
136
- version_requirements: &id009 !ruby/object:Gem::Requirement
100
+ prerelease: false
101
+ version_requirements: *70231735336820
102
+ - !ruby/object:Gem::Dependency
103
+ name: rspec
104
+ requirement: &70231735336320 !ruby/object:Gem::Requirement
137
105
  none: false
138
- requirements:
106
+ requirements:
139
107
  - - ~>
140
- - !ruby/object:Gem::Version
141
- hash: 31
142
- segments:
143
- - 2
144
- - 4
145
- - 0
108
+ - !ruby/object:Gem::Version
146
109
  version: 2.4.0
147
- name: rspec
148
- prerelease: false
149
110
  type: :development
150
- requirement: *id009
151
- - !ruby/object:Gem::Dependency
152
- version_requirements: &id010 !ruby/object:Gem::Requirement
111
+ prerelease: false
112
+ version_requirements: *70231735336320
113
+ - !ruby/object:Gem::Dependency
114
+ name: bundler
115
+ requirement: &70231735335840 !ruby/object:Gem::Requirement
153
116
  none: false
154
- requirements:
117
+ requirements:
155
118
  - - ~>
156
- - !ruby/object:Gem::Version
157
- hash: 23
158
- segments:
159
- - 1
160
- - 0
161
- - 0
119
+ - !ruby/object:Gem::Version
162
120
  version: 1.0.0
163
- name: bundler
164
- prerelease: false
165
121
  type: :development
166
- requirement: *id010
167
- - !ruby/object:Gem::Dependency
168
- version_requirements: &id011 !ruby/object:Gem::Requirement
122
+ prerelease: false
123
+ version_requirements: *70231735335840
124
+ - !ruby/object:Gem::Dependency
125
+ name: jeweler
126
+ requirement: &70231735335340 !ruby/object:Gem::Requirement
169
127
  none: false
170
- requirements:
128
+ requirements:
171
129
  - - ~>
172
- - !ruby/object:Gem::Version
173
- hash: 7
174
- segments:
175
- - 1
176
- - 5
177
- - 2
130
+ - !ruby/object:Gem::Version
178
131
  version: 1.5.2
179
- name: jeweler
180
- prerelease: false
181
132
  type: :development
182
- requirement: *id011
183
- - !ruby/object:Gem::Dependency
184
- version_requirements: &id012 !ruby/object:Gem::Requirement
185
- none: false
186
- requirements:
187
- - - ">="
188
- - !ruby/object:Gem::Version
189
- hash: 3
190
- segments:
191
- - 0
192
- version: "0"
193
- name: rack-test
194
133
  prerelease: false
134
+ version_requirements: *70231735335340
135
+ - !ruby/object:Gem::Dependency
136
+ name: rack-test
137
+ requirement: &70231735334840 !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
195
143
  type: :development
196
- requirement: *id012
144
+ prerelease: false
145
+ version_requirements: *70231735334840
197
146
  description: Renders all asset types (coffeescript/sass/scss) as equals
198
147
  email: me@tal.by
199
- executables:
148
+ executables:
200
149
  - assette
201
150
  extensions: []
202
-
203
- extra_rdoc_files:
151
+ extra_rdoc_files:
204
152
  - LICENSE.txt
205
153
  - README.rdoc
206
- files:
154
+ files:
207
155
  - .document
208
156
  - .irbrc
209
157
  - .rspec
@@ -270,39 +218,34 @@ files:
270
218
  - test/helper.rb
271
219
  - test/test_server.rb
272
220
  homepage: http://github.com/Talby/assette
273
- licenses:
221
+ licenses:
274
222
  - MIT
275
223
  post_install_message:
276
224
  rdoc_options: []
277
-
278
- require_paths:
225
+ require_paths:
279
226
  - lib
280
- required_ruby_version: !ruby/object:Gem::Requirement
227
+ required_ruby_version: !ruby/object:Gem::Requirement
281
228
  none: false
282
- requirements:
283
- - - ">="
284
- - !ruby/object:Gem::Version
285
- hash: 3
286
- segments:
229
+ requirements:
230
+ - - ! '>='
231
+ - !ruby/object:Gem::Version
232
+ version: '0'
233
+ segments:
287
234
  - 0
288
- version: "0"
289
- required_rubygems_version: !ruby/object:Gem::Requirement
235
+ hash: 2473515408051498368
236
+ required_rubygems_version: !ruby/object:Gem::Requirement
290
237
  none: false
291
- requirements:
292
- - - ">="
293
- - !ruby/object:Gem::Version
294
- hash: 3
295
- segments:
296
- - 0
297
- version: "0"
238
+ requirements:
239
+ - - ! '>='
240
+ - !ruby/object:Gem::Version
241
+ version: '0'
298
242
  requirements: []
299
-
300
243
  rubyforge_project:
301
- rubygems_version: 1.8.8
244
+ rubygems_version: 1.8.10
302
245
  signing_key:
303
246
  specification_version: 3
304
247
  summary: Treat all assets as equal
305
- test_files:
248
+ test_files:
306
249
  - examples/config/assets.rb
307
250
  - spec/assette_spec.rb
308
251
  - spec/config_spec.rb