maglove 0.6.3 → 0.6.4

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: ff5d1ae99cc8d4b474c2ba740bf92e44fe3dec08
4
- data.tar.gz: 4247ba7aa9b33c14e38dabef3bb2473cf72b3e51
3
+ metadata.gz: 2fd154b28d57f471d72a6c5c72a45bb5fb9fa8a2
4
+ data.tar.gz: 8f43e164c1eef52ade4225b54e8f852f609cfcb2
5
5
  SHA512:
6
- metadata.gz: 80c3a41b527d7e9c3ec05f7fdf7dc1ea8e1f84719a317dc073934591206ab9f29f0f3ed451e21357857ce4e83dcd691da90939ec75b2a4e42458d711254d6c77
7
- data.tar.gz: 5d85bed1d547b9636a9e0a885e196ff055b48d9a46a32c5fbffe692c265878c3ca1fdbab3674d51f78efa62fcea6284d883a0df3e888287f8046787ce0ee4a9f
6
+ metadata.gz: a0ea4dcce898f0fac35cd20adfd8eb50659658d91ab44efb86b5830fd2b18060ba5a339d58df64f81a176b2c79252d390bfdc773cf2aae3d64b1c3d0fb25b0f7
7
+ data.tar.gz: f8f4eb2cef8bd477577f72eadafca739bc3e586cd8d083dda9fa8020833fe5beee6eb6143d6952a0343745106f070b8bea0c66c39b55157c877dbb3e32c6f124
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maglove (0.6.3)
4
+ maglove (0.6.4)
5
5
  activesupport (~> 4.2)
6
6
  bundler (~> 1.10)
7
7
  coffee-script (~> 2.4)
@@ -23,7 +23,7 @@ PATH
23
23
  GEM
24
24
  remote: https://rubygems.org/
25
25
  specs:
26
- activesupport (4.2.5.1)
26
+ activesupport (4.2.6)
27
27
  i18n (~> 0.7)
28
28
  json (~> 1.7, >= 1.7.7)
29
29
  minitest (~> 5.1)
@@ -37,11 +37,11 @@ GEM
37
37
  coffee-script-source
38
38
  execjs
39
39
  coffee-script-source (1.10.0)
40
- commander (4.3.7)
40
+ commander (4.4.0)
41
41
  highline (~> 1.7.2)
42
42
  commonjs (0.2.7)
43
43
  diff-lcs (1.2.5)
44
- dotenv (2.1.0)
44
+ dotenv (2.1.1)
45
45
  execjs (2.6.0)
46
46
  exifr (1.2.4)
47
47
  filewatcher (0.5.3)
@@ -49,36 +49,35 @@ GEM
49
49
  fspath (2.1.1)
50
50
  haml (4.0.7)
51
51
  tilt
52
- hamloft (0.1.7)
53
- activesupport (~> 4.2)
52
+ hamloft (0.1.8)
54
53
  haml (~> 4.0)
55
54
  nokogiri (~> 1.6)
56
55
  highline (1.7.8)
57
56
  i18n (0.7.0)
58
- image_optim (0.22.0)
57
+ image_optim (0.22.1)
59
58
  exifr (~> 1.2, >= 1.2.2)
60
59
  fspath (~> 2.1)
61
60
  image_size (~> 1.3)
62
61
  in_threads (~> 1.3)
63
62
  progress (~> 3.0, >= 3.0.1)
64
- image_optim_pack (0.2.1.20160119)
63
+ image_optim_pack (0.2.1.20160413)
65
64
  fspath (~> 2.1)
66
65
  image_optim (~> 0.19)
67
- image_size (1.4.1)
66
+ image_size (1.4.2)
68
67
  in_threads (1.3.1)
69
68
  json (1.8.3)
70
69
  less (2.6.0)
71
70
  commonjs (~> 0.2.7)
72
71
  libv8 (3.16.14.13)
73
72
  little-plugger (1.1.4)
74
- logging (2.0.0)
73
+ logging (2.1.0)
75
74
  little-plugger (~> 1.1)
76
75
  multi_json (~> 1.10)
77
76
  method_source (0.8.2)
78
77
  mini_portile2 (2.0.0)
79
78
  minitar (0.5.4)
80
79
  minitest (5.8.4)
81
- multi_json (1.11.2)
80
+ multi_json (1.11.3)
82
81
  nokogiri (1.6.7.2)
83
82
  mini_portile2 (~> 2.0.0.rc2)
84
83
  parser (2.2.2.6)
@@ -111,7 +110,7 @@ GEM
111
110
  rainbow (>= 1.99.1, < 3.0)
112
111
  ruby-progressbar (~> 1.4)
113
112
  ruby-progressbar (1.7.5)
114
- rubyzip (1.1.7)
113
+ rubyzip (1.2.0)
115
114
  slop (3.6.0)
116
115
  therubyracer (0.12.2)
117
116
  libv8 (~> 3.16.14.0)
data/bin/maglove CHANGED
@@ -14,8 +14,4 @@ Tilt.mappings["coffee"] = [MagLove::Tilt::CoffeeTemplate]
14
14
  Tilt.mappings["js"] = [MagLove::Tilt::JsTemplate]
15
15
  Tilt.mappings["twig"] = [MagLove::Tilt::TwigTemplate]
16
16
 
17
- # Fix RbConfig warning
18
- Object.send :remove_const, :Config
19
- Config = RbConfig
20
-
21
17
  MagLove::Application.new.run
@@ -23,7 +23,7 @@ module MagLove
23
23
  if ::Tilt[input_type]
24
24
  template = ::Tilt.new(absolute_path)
25
25
  locals[:base_path] = theme_base_path(nil, theme)
26
- @contents = template.render(nil, locals)
26
+ @contents = template.render(Object.new, locals)
27
27
  else
28
28
  @contents = File.read(absolute_path)
29
29
  end
@@ -12,21 +12,13 @@ module MagLove
12
12
  tgz = Zlib::GzipWriter.new(File.open(target, "wb"))
13
13
  Archive::Tar::Minitar::Output.open(tgz) do |tar|
14
14
  Dir["themes/#{options.theme}/**/*"].reject{|file| file == target}.each do |file|
15
- Archive::Tar::Minitar::pack_file(file, tar)
15
+ if !(/^themes\/#{options.theme}\/(images|thumbs|templates)/.match(file))
16
+ Archive::Tar::Minitar::pack_file(file, tar)
17
+ end
16
18
  end
17
19
  end
18
20
  end
19
21
 
20
- # Dir.chdir(path) do
21
- # tgz = Zlib::GzipWriter.new(File.open(target, 'wb'))
22
- # Archive::Tar::Minitar::Output.open(tgz) do |tar|
23
- # Dir[pattern].reject{|file| file == target}.each do |file|
24
- # Archive::Tar::Minitar::pack_file(file, tar)
25
- # end
26
- # end
27
- # end
28
-
29
-
30
22
  debug("▸ created #{options.theme}.tar.gz")
31
23
  end
32
24
 
@@ -31,7 +31,7 @@ module MagLove
31
31
 
32
32
  if File.exists?(include_path)
33
33
  include_template = ::Tilt.new(include_path)
34
- include_template.render(nil, locals)
34
+ include_template.render(Object.new, locals)
35
35
  else
36
36
  raise "Path not found: #{include_path}"
37
37
  end
@@ -21,7 +21,7 @@ module MagLove
21
21
 
22
22
  if File.exists?(include_path)
23
23
  include_template = ::Tilt.new(include_path)
24
- include_contents = include_template.render(nil, locals)
24
+ include_contents = include_template.render(Object.new, locals)
25
25
  else
26
26
  raise "Path not found: #{include_path}"
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module MagLove
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
metadata CHANGED
@@ -1,293 +1,293 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maglove
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-26 00:00:00.000000000 Z
11
+ date: 2016-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.10'
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: '1.10'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: dotenv
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.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
40
  version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: haml
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '4.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '4.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: hamloft
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.1.7
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.1.7
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubyzip
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '1.1'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.1'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: activesupport
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '4.2'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '4.2'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: logging
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '2.0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '2.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: tilt
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '1.4'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '1.4'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: coffee-script
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ~>
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
131
  version: '2.4'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ~>
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '2.4'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: minitar
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ~>
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0.5'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ~>
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0.5'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: therubyracer
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ~>
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0.12'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ~>
164
+ - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0.12'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: less
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ~>
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
173
  version: '2.6'
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ~>
178
+ - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: '2.6'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: webrick
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ~>
185
+ - - "~>"
186
186
  - !ruby/object:Gem::Version
187
187
  version: '1.3'
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - ~>
192
+ - - "~>"
193
193
  - !ruby/object:Gem::Version
194
194
  version: '1.3'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: commander
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - ~>
199
+ - - "~>"
200
200
  - !ruby/object:Gem::Version
201
201
  version: '4.3'
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - ~>
206
+ - - "~>"
207
207
  - !ruby/object:Gem::Version
208
208
  version: '4.3'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: filewatcher
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - ~>
213
+ - - "~>"
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0.5'
216
216
  type: :runtime
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - ~>
220
+ - - "~>"
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0.5'
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: image_optim
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - ~>
227
+ - - "~>"
228
228
  - !ruby/object:Gem::Version
229
229
  version: '0.21'
230
230
  type: :runtime
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - ~>
234
+ - - "~>"
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0.21'
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: image_optim_pack
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
- - - ~>
241
+ - - "~>"
242
242
  - !ruby/object:Gem::Version
243
243
  version: '0.2'
244
244
  type: :runtime
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
- - - ~>
248
+ - - "~>"
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0.2'
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: rspec
253
253
  requirement: !ruby/object:Gem::Requirement
254
254
  requirements:
255
- - - ~>
255
+ - - "~>"
256
256
  - !ruby/object:Gem::Version
257
257
  version: '3.3'
258
258
  type: :development
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
- - - ~>
262
+ - - "~>"
263
263
  - !ruby/object:Gem::Version
264
264
  version: '3.3'
265
265
  - !ruby/object:Gem::Dependency
266
266
  name: pry
267
267
  requirement: !ruby/object:Gem::Requirement
268
268
  requirements:
269
- - - ~>
269
+ - - "~>"
270
270
  - !ruby/object:Gem::Version
271
271
  version: '0.10'
272
272
  type: :development
273
273
  prerelease: false
274
274
  version_requirements: !ruby/object:Gem::Requirement
275
275
  requirements:
276
- - - ~>
276
+ - - "~>"
277
277
  - !ruby/object:Gem::Version
278
278
  version: '0.10'
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: rubocop
281
281
  requirement: !ruby/object:Gem::Requirement
282
282
  requirements:
283
- - - ~>
283
+ - - "~>"
284
284
  - !ruby/object:Gem::Version
285
285
  version: '0.32'
286
286
  type: :development
287
287
  prerelease: false
288
288
  version_requirements: !ruby/object:Gem::Requirement
289
289
  requirements:
290
- - - ~>
290
+ - - "~>"
291
291
  - !ruby/object:Gem::Version
292
292
  version: '0.32'
293
293
  description: This gem contains development and built tools for creating MagLoft themes.
@@ -298,7 +298,7 @@ executables:
298
298
  extensions: []
299
299
  extra_rdoc_files: []
300
300
  files:
301
- - .gitignore
301
+ - ".gitignore"
302
302
  - Gemfile
303
303
  - Gemfile.lock
304
304
  - README.md
@@ -414,17 +414,17 @@ require_paths:
414
414
  - lib
415
415
  required_ruby_version: !ruby/object:Gem::Requirement
416
416
  requirements:
417
- - - '>='
417
+ - - ">="
418
418
  - !ruby/object:Gem::Version
419
419
  version: '0'
420
420
  required_rubygems_version: !ruby/object:Gem::Requirement
421
421
  requirements:
422
- - - '>='
422
+ - - ">="
423
423
  - !ruby/object:Gem::Version
424
424
  version: 2.4.7
425
425
  requirements: []
426
426
  rubyforge_project:
427
- rubygems_version: 2.5.1
427
+ rubygems_version: 2.6.3
428
428
  signing_key:
429
429
  specification_version: 4
430
430
  summary: MagLove - MagLoft Theme Toolkit.