beans-middleman 1.0.9 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/mm-build +3 -1
- data/bin/mm-deploy +12 -0
- data/bin/mm-rsync +22 -0
- metadata +31 -55
data/bin/mm-build
CHANGED
@@ -12,4 +12,6 @@ require 'middleman/builder'
|
|
12
12
|
# Middleman::Server.init!
|
13
13
|
Middleman::Builder.init!
|
14
14
|
|
15
|
-
Middleman::Generators.run_cli(Dir.pwd, 'mm-build', 1, %w(build --force).concat(ARGV))
|
15
|
+
Middleman::Generators.run_cli(Dir.pwd, 'mm-build', 1, %w(build --force).concat(ARGV))
|
16
|
+
|
17
|
+
`mkdir -p build/source && cp -r views/* build/source && ditto -ck build/ delivery.zip && rm -rf build/`
|
data/bin/mm-deploy
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
case ARGV.first
|
4
|
+
when 'preview'
|
5
|
+
puts `mm-preview && mm-rsync preview`
|
6
|
+
`rm -rf preview`
|
7
|
+
when 'delivery'
|
8
|
+
puts `mm-build && mm-rsync delivery`
|
9
|
+
`rm delivery.zip`
|
10
|
+
else
|
11
|
+
puts "Unknown type \"#{ARGV[1]}\", please choose \"preview\" or \"delivery\"."
|
12
|
+
end
|
data/bin/mm-rsync
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'digest/md5'
|
4
|
+
|
5
|
+
unless %w{preview delivery}.include? ARGV.first
|
6
|
+
puts "\e[31mPlease pass \"preview\" or \"delivery\" as the first argument.\e[0m"
|
7
|
+
exit
|
8
|
+
end
|
9
|
+
|
10
|
+
project_name = Dir.pwd.split('/').last
|
11
|
+
digest = Digest::MD5.hexdigest project_name
|
12
|
+
|
13
|
+
origin = "#{ARGV.first}#{ARGV.first == 'preview' ? '/*' : '.zip'}"
|
14
|
+
destination = "#{ARGV.first}/#{digest}/"
|
15
|
+
|
16
|
+
`rsync -glpPrtvz #{origin} slicecraft@slicecraft.nl:app/shared/#{destination}`
|
17
|
+
|
18
|
+
if $? == 0
|
19
|
+
puts "\e[32mThe #{ARGV.first} was successfully rsync-ed to http://www.slicecraft.nl/#{destination}#{ARGV.first == 'preview' ? 'index.html' : 'delivery.zip'}.\e[0m"
|
20
|
+
else
|
21
|
+
puts "\e[31mSomething went wrong while rsync-ing. Check the output for more information.\e[0m"
|
22
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beans-middleman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 5
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
8
|
+
- 11
|
9
|
+
version: 1.0.11
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Thomas Reynolds
|
@@ -15,18 +14,16 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2011-
|
17
|
+
date: 2011-06-14 00:00:00 +02:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: rack
|
23
22
|
prerelease: false
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
24
|
requirements:
|
27
25
|
- - ~>
|
28
26
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 15
|
30
27
|
segments:
|
31
28
|
- 1
|
32
29
|
- 0
|
@@ -37,11 +34,9 @@ dependencies:
|
|
37
34
|
name: thin
|
38
35
|
prerelease: false
|
39
36
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
37
|
requirements:
|
42
38
|
- - ~>
|
43
39
|
- !ruby/object:Gem::Version
|
44
|
-
hash: 31
|
45
40
|
segments:
|
46
41
|
- 1
|
47
42
|
- 2
|
@@ -53,11 +48,9 @@ dependencies:
|
|
53
48
|
name: shotgun
|
54
49
|
prerelease: false
|
55
50
|
requirement: &id003 !ruby/object:Gem::Requirement
|
56
|
-
none: false
|
57
51
|
requirements:
|
58
52
|
- - ~>
|
59
53
|
- !ruby/object:Gem::Version
|
60
|
-
hash: 63
|
61
54
|
segments:
|
62
55
|
- 0
|
63
56
|
- 8
|
@@ -69,11 +62,9 @@ dependencies:
|
|
69
62
|
name: templater
|
70
63
|
prerelease: false
|
71
64
|
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
65
|
requirements:
|
74
66
|
- - ~>
|
75
67
|
- !ruby/object:Gem::Version
|
76
|
-
hash: 23
|
77
68
|
segments:
|
78
69
|
- 1
|
79
70
|
- 0
|
@@ -85,11 +76,9 @@ dependencies:
|
|
85
76
|
name: tilt
|
86
77
|
prerelease: false
|
87
78
|
requirement: &id005 !ruby/object:Gem::Requirement
|
88
|
-
none: false
|
89
79
|
requirements:
|
90
80
|
- - ~>
|
91
81
|
- !ruby/object:Gem::Version
|
92
|
-
hash: 13
|
93
82
|
segments:
|
94
83
|
- 1
|
95
84
|
- 1
|
@@ -100,11 +89,9 @@ dependencies:
|
|
100
89
|
name: sinatra
|
101
90
|
prerelease: false
|
102
91
|
requirement: &id006 !ruby/object:Gem::Requirement
|
103
|
-
none: false
|
104
92
|
requirements:
|
105
93
|
- - ~>
|
106
94
|
- !ruby/object:Gem::Version
|
107
|
-
hash: 15
|
108
95
|
segments:
|
109
96
|
- 1
|
110
97
|
- 0
|
@@ -115,11 +102,9 @@ dependencies:
|
|
115
102
|
name: padrino-core
|
116
103
|
prerelease: false
|
117
104
|
requirement: &id007 !ruby/object:Gem::Requirement
|
118
|
-
none: false
|
119
105
|
requirements:
|
120
106
|
- - ~>
|
121
107
|
- !ruby/object:Gem::Version
|
122
|
-
hash: 59
|
123
108
|
segments:
|
124
109
|
- 0
|
125
110
|
- 9
|
@@ -131,11 +116,9 @@ dependencies:
|
|
131
116
|
name: padrino-helpers
|
132
117
|
prerelease: false
|
133
118
|
requirement: &id008 !ruby/object:Gem::Requirement
|
134
|
-
none: false
|
135
119
|
requirements:
|
136
120
|
- - ~>
|
137
121
|
- !ruby/object:Gem::Version
|
138
|
-
hash: 59
|
139
122
|
segments:
|
140
123
|
- 0
|
141
124
|
- 9
|
@@ -147,11 +130,9 @@ dependencies:
|
|
147
130
|
name: rack-test
|
148
131
|
prerelease: false
|
149
132
|
requirement: &id009 !ruby/object:Gem::Requirement
|
150
|
-
none: false
|
151
133
|
requirements:
|
152
134
|
- - ~>
|
153
135
|
- !ruby/object:Gem::Version
|
154
|
-
hash: 11
|
155
136
|
segments:
|
156
137
|
- 0
|
157
138
|
- 5
|
@@ -163,11 +144,9 @@ dependencies:
|
|
163
144
|
name: yui-compressor
|
164
145
|
prerelease: false
|
165
146
|
requirement: &id010 !ruby/object:Gem::Requirement
|
166
|
-
none: false
|
167
147
|
requirements:
|
168
148
|
- - ~>
|
169
149
|
- !ruby/object:Gem::Version
|
170
|
-
hash: 59
|
171
150
|
segments:
|
172
151
|
- 0
|
173
152
|
- 9
|
@@ -179,11 +158,9 @@ dependencies:
|
|
179
158
|
name: haml
|
180
159
|
prerelease: false
|
181
160
|
requirement: &id011 !ruby/object:Gem::Requirement
|
182
|
-
none: false
|
183
161
|
requirements:
|
184
162
|
- - ~>
|
185
163
|
- !ruby/object:Gem::Version
|
186
|
-
hash: 5
|
187
164
|
segments:
|
188
165
|
- 3
|
189
166
|
- 1
|
@@ -191,100 +168,101 @@ dependencies:
|
|
191
168
|
type: :runtime
|
192
169
|
version_requirements: *id011
|
193
170
|
- !ruby/object:Gem::Dependency
|
194
|
-
name:
|
171
|
+
name: sass
|
195
172
|
prerelease: false
|
196
173
|
requirement: &id012 !ruby/object:Gem::Requirement
|
197
|
-
none: false
|
198
174
|
requirements:
|
199
175
|
- - ~>
|
200
176
|
- !ruby/object:Gem::Version
|
201
|
-
|
177
|
+
segments:
|
178
|
+
- 3
|
179
|
+
- 1
|
180
|
+
version: "3.1"
|
181
|
+
type: :runtime
|
182
|
+
version_requirements: *id012
|
183
|
+
- !ruby/object:Gem::Dependency
|
184
|
+
name: compass
|
185
|
+
prerelease: false
|
186
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
187
|
+
requirements:
|
188
|
+
- - ~>
|
189
|
+
- !ruby/object:Gem::Version
|
202
190
|
segments:
|
203
191
|
- 0
|
204
192
|
- 11
|
205
193
|
version: "0.11"
|
206
194
|
type: :runtime
|
207
|
-
version_requirements: *
|
195
|
+
version_requirements: *id013
|
208
196
|
- !ruby/object:Gem::Dependency
|
209
197
|
name: json_pure
|
210
198
|
prerelease: false
|
211
|
-
requirement: &
|
212
|
-
none: false
|
199
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
213
200
|
requirements:
|
214
201
|
- - ~>
|
215
202
|
- !ruby/object:Gem::Version
|
216
|
-
hash: 7
|
217
203
|
segments:
|
218
204
|
- 1
|
219
205
|
- 4
|
220
206
|
- 0
|
221
207
|
version: 1.4.0
|
222
208
|
type: :runtime
|
223
|
-
version_requirements: *
|
209
|
+
version_requirements: *id014
|
224
210
|
- !ruby/object:Gem::Dependency
|
225
211
|
name: smusher
|
226
212
|
prerelease: false
|
227
|
-
requirement: &
|
228
|
-
none: false
|
213
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
229
214
|
requirements:
|
230
215
|
- - ~>
|
231
216
|
- !ruby/object:Gem::Version
|
232
|
-
hash: 5
|
233
217
|
segments:
|
234
218
|
- 0
|
235
219
|
- 4
|
236
220
|
- 5
|
237
221
|
version: 0.4.5
|
238
222
|
type: :runtime
|
239
|
-
version_requirements: *
|
223
|
+
version_requirements: *id015
|
240
224
|
- !ruby/object:Gem::Dependency
|
241
225
|
name: compass-slickmap
|
242
226
|
prerelease: false
|
243
|
-
requirement: &
|
244
|
-
none: false
|
227
|
+
requirement: &id016 !ruby/object:Gem::Requirement
|
245
228
|
requirements:
|
246
229
|
- - ~>
|
247
230
|
- !ruby/object:Gem::Version
|
248
|
-
hash: 15
|
249
231
|
segments:
|
250
232
|
- 0
|
251
233
|
- 4
|
252
234
|
- 0
|
253
235
|
version: 0.4.0
|
254
236
|
type: :runtime
|
255
|
-
version_requirements: *
|
237
|
+
version_requirements: *id016
|
256
238
|
- !ruby/object:Gem::Dependency
|
257
239
|
name: cucumber
|
258
240
|
prerelease: false
|
259
|
-
requirement: &
|
260
|
-
none: false
|
241
|
+
requirement: &id017 !ruby/object:Gem::Requirement
|
261
242
|
requirements:
|
262
243
|
- - ~>
|
263
244
|
- !ruby/object:Gem::Version
|
264
|
-
hash: 63
|
265
245
|
segments:
|
266
246
|
- 0
|
267
247
|
- 9
|
268
248
|
- 2
|
269
249
|
version: 0.9.2
|
270
250
|
type: :development
|
271
|
-
version_requirements: *
|
251
|
+
version_requirements: *id017
|
272
252
|
- !ruby/object:Gem::Dependency
|
273
253
|
name: rspec
|
274
254
|
prerelease: false
|
275
|
-
requirement: &
|
276
|
-
none: false
|
255
|
+
requirement: &id018 !ruby/object:Gem::Requirement
|
277
256
|
requirements:
|
278
257
|
- - ~>
|
279
258
|
- !ruby/object:Gem::Version
|
280
|
-
hash: 15
|
281
259
|
segments:
|
282
260
|
- 2
|
283
261
|
- 0
|
284
262
|
- 0
|
285
263
|
version: 2.0.0
|
286
264
|
type: :development
|
287
|
-
version_requirements: *
|
265
|
+
version_requirements: *id018
|
288
266
|
description: A static site generator utilizing Haml, Sass and providing YUI compression and cache busting.
|
289
267
|
email: tdreyno@gmail.com
|
290
268
|
executables:
|
@@ -327,8 +305,10 @@ files:
|
|
327
305
|
- lib/middleman/templater+dynamic_renderer.rb
|
328
306
|
- lib/middleman.rb
|
329
307
|
- bin/mm-build
|
308
|
+
- bin/mm-deploy
|
330
309
|
- bin/mm-init
|
331
310
|
- bin/mm-preview
|
311
|
+
- bin/mm-rsync
|
332
312
|
- bin/mm-server
|
333
313
|
- features/builder.feature
|
334
314
|
- features/coffee-script.feature
|
@@ -391,27 +371,23 @@ rdoc_options: []
|
|
391
371
|
require_paths:
|
392
372
|
- lib
|
393
373
|
required_ruby_version: !ruby/object:Gem::Requirement
|
394
|
-
none: false
|
395
374
|
requirements:
|
396
375
|
- - ">="
|
397
376
|
- !ruby/object:Gem::Version
|
398
|
-
hash: 3
|
399
377
|
segments:
|
400
378
|
- 0
|
401
379
|
version: "0"
|
402
380
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
403
|
-
none: false
|
404
381
|
requirements:
|
405
382
|
- - ">="
|
406
383
|
- !ruby/object:Gem::Version
|
407
|
-
hash: 3
|
408
384
|
segments:
|
409
385
|
- 0
|
410
386
|
version: "0"
|
411
387
|
requirements: []
|
412
388
|
|
413
389
|
rubyforge_project: middleman
|
414
|
-
rubygems_version: 1.3.
|
390
|
+
rubygems_version: 1.3.6
|
415
391
|
signing_key:
|
416
392
|
specification_version: 3
|
417
393
|
summary: A static site generator utilizing Haml, Sass and providing YUI compression and cache busting.
|