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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODBhNmFjMWJjMWZmYjAxZjY2Mjc1MWJkMWM5ZjcxZWE0ODU2Yjk5MQ==
4
+ NmZiZGVmMDdmMjNlZTg2NjlkOGYyZTIzZGY5MDI4MjAyMGZiNmMxZA==
5
5
  data.tar.gz: !binary |-
6
- MmNmMjE5MmZiZDYyODQwOTcyZjgyNGVlNDViMGI4YmFmYzM3ZDhjNw==
6
+ ZDFmZGI0YmJlNTM5NzQ3ZGJlMDcwYWM2OTEzZTg1ZjJmMjc1OTFlNA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YWIxZjRiM2I5MjRmZGE0NDY5MTNiNDlkMWU0NzliZWJkMDJkMGEyMzE5YTVj
10
- ZDU2NDYxMGFkNGI1OGI4MzAwZjJjNWE0NTRjN2FiMWY4YzNjYWVjZGExNmIz
11
- ZGY5MDE0MDg5MjExMDYyODEyOGFjZjJiNTZmMTUzZTY0Y2Y3ZDk=
9
+ MTdjOTAyNzUyZGUzNTY5NGEwOTk2YjdkZDU2MmQ0YzBmZTc0OGU2NzFiZjA3
10
+ NjI1ZDAwNzhlOTczZWIzOGEwN2ZiYzE5NDM2MDE5YWRkNWQ2NTVkZDQxMTU5
11
+ NTBiZDM4MzZkMTExNGYyYmE3MjhiODI4Y2YzMGQzNzNlYTZmYjg=
12
12
  data.tar.gz: !binary |-
13
- YjkzYmE5NTYwN2E0NWU3MTFhN2M4ODMyYjNkZjMwZTU3N2UyMGI5Njc2Mzdj
14
- OTgwNjM4NjlmOGMxOTg2NGQyZDhjZjZiYWY1ZDUxMDAyMjk3MGViNDhlZThi
15
- MGZiNGU0ODQ3YTAwYjkyZTU3ODg5MTFiYmYxNmQ4YWE1MWU4MTM=
13
+ ZjE2Yzc2NzdjOGRkMjllMDdiNDJiNzU1MjYxNGFmYzhiMTM5NGFmOGIxZjMz
14
+ NjVkYjNjMDgwZjU1ODU2NTQ4ODBhMmI5OWRlY2E1ODIxNmI3MGI1YWE2OGEw
15
+ NGYwMzc2NDU3YzFjMDQ1ZTViZTUyYTAzZTlkMTU0MzY1YzBjZDI=
@@ -2,5 +2,5 @@
2
2
 
3
3
  # AppStack module
4
4
  module AppStack
5
- VERSION = '1.1.1'
5
+ VERSION = '1.1.2'
6
6
  end
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
- 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
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.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-13 00:00:00.000000000 Z
11
+ date: 2013-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tilt