runeblog 0.0.27 → 0.0.28

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: bf0dcc8def748a2e0a54573512b6a89a534dbe98
4
- data.tar.gz: 9cce56ddeeab4c3e614f3d8fa22a11f6a0cdf500
3
+ metadata.gz: 547f18b29a540d3c7dab31ac0ffc3dc1a5aac9b8
4
+ data.tar.gz: 1296071d218746ea5001eaf3264fa7e339c75441
5
5
  SHA512:
6
- metadata.gz: d8b53758adf82ef1a5b2354e05e4a02f44c1ec6358344674f188fc99c55bea224ea738d16f99f3e0bdbd759dfd210425be36f15bc3666383936e232609248d5d
7
- data.tar.gz: 26280aae2cd1fcab1fe8e991bdd676ef7d9029cd96e53882e908b5dd9446b36cd40aabd50461def6583c0795179832a916d7424285231afd465e77ce99499823
6
+ metadata.gz: 5a4bf4fcd77a8f1b861814e219386d1d294c128e33556de5b1c25bd3a82771caad57b0c67e096d0b9cf4d0345815623e14150304e1feb6ae69a2510335d13b9f
7
+ data.tar.gz: b39cc9d2648300e5d3d3f9b6ef8116d9a95f451b60d68e543dcc299ab6440a83a9980b845f0ca946a1601c35df1d1b0f820d755377ca39aa0ead8d4266a4c941
data/data/VERSION CHANGED
@@ -1 +1 @@
1
- RuneBlog v 0.0.27 2017-05-10
1
+ RuneBlog v 0.0.28 2017-05-10
@@ -0,0 +1 @@
1
+ Initial creation
data/lib/runeblog.rb CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.0.27"
3
+ VERSION = "0.0.28"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  DefaultData = Path + "/../data"
@@ -190,11 +190,16 @@ def deploy
190
190
  vdir = @config.viewdir(@view)
191
191
  files = ["#{vdir}/index.html"]
192
192
  files += Dir.entries(vdir).grep(/^\d\d\d\d/).map {|x| "#{vdir}/#{x}" }
193
+ files.reject! {|f| File.mtime(f) < File.mtime("#{vdir}/last_deployed") }
194
+ puts "Files:"
195
+ files.each {|f| puts " " + f }
196
+ puts
193
197
  dir = "#{sroot}/#{spath}"
194
198
  cmd = "scp -r #{files.join(' ')} root@#{server}:#{dir} >/dev/null 2>&1"
195
199
  print red("\n Deploying #{files.size} files... ")
196
200
  # puts cmd
197
201
  system(cmd)
202
+ File.write("#{vdir}/last_deployed", files)
198
203
  puts red("finished.")
199
204
  end
200
205
 
@@ -370,6 +375,7 @@ def new_view(arg = nil)
370
375
  File.write(dir + "custom/blog_trailer.html", RuneBlog::BlogTrailer)
371
376
  File.write(dir + "custom/post_header.html", RuneBlog::PostHeader)
372
377
  File.write(dir + "custom/post_trailer.html", RuneBlog::PostTrailer)
378
+ File.write(dir + "last_deployed", "Initial creation")
373
379
  @config.views << arg
374
380
  end
375
381
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runeblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton
@@ -24,6 +24,7 @@ files:
24
24
  - data/sequence
25
25
  - data/views/_default/blog_header.html
26
26
  - data/views/_default/blog_trailer.html
27
+ - data/views/_default/last_deployed
27
28
  - data/views/_default/post_header.html
28
29
  - data/views/_default/post_trailer.html
29
30
  - lib/runeblog.rb