app_stack 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/app_stack/version.rb +1 -1
- data/lib/app_stack.rb +11 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmZiZGVmMDdmMjNlZTg2NjlkOGYyZTIzZGY5MDI4MjAyMGZiNmMxZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDFmZGI0YmJlNTM5NzQ3ZGJlMDcwYWM2OTEzZTg1ZjJmMjc1OTFlNA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTdjOTAyNzUyZGUzNTY5NGEwOTk2YjdkZDU2MmQ0YzBmZTc0OGU2NzFiZjA3
|
10
|
+
NjI1ZDAwNzhlOTczZWIzOGEwN2ZiYzE5NDM2MDE5YWRkNWQ2NTVkZDQxMTU5
|
11
|
+
NTBiZDM4MzZkMTExNGYyYmE3MjhiODI4Y2YzMGQzNzNlYTZmYjg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjE2Yzc2NzdjOGRkMjllMDdiNDJiNzU1MjYxNGFmYzhiMTM5NGFmOGIxZjMz
|
14
|
+
NjVkYjNjMDgwZjU1ODU2NTQ4ODBhMmI5OWRlY2E1ODIxNmI3MGI1YWE2OGEw
|
15
|
+
NGYwMzc2NDU3YzFjMDQ1ZTViZTUyYTAzZTlkMTU0MzY1YzBjZDI=
|
data/lib/app_stack/version.rb
CHANGED
data/lib/app_stack.rb
CHANGED
@@ -247,17 +247,17 @@ module AppStack
|
|
247
247
|
# render from erb if newer
|
248
248
|
def render_file!(f, target)
|
249
249
|
done = 'keep'.white
|
250
|
-
unless newer?(target, f)
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
end
|
260
|
-
done
|
250
|
+
# unless newer?(target, f)
|
251
|
+
tilt = Tilt::ERBTemplate.new(f)
|
252
|
+
oh = File.open(target, 'wb')
|
253
|
+
oh.write tilt.render(OpenStruct.new(@attrs.deep_merge(@config['attrs'])))
|
254
|
+
oh.close
|
255
|
+
|
256
|
+
# update template timestamp
|
257
|
+
FileUtils.touch(f)
|
258
|
+
done = 'rendered'.bold.green
|
259
|
+
# end
|
260
|
+
# done
|
261
261
|
end
|
262
262
|
|
263
263
|
# use module variables, skip `new`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_stack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Huang Wei
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tilt
|