siteleaf 0.9.21 → 0.9.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/siteleaf +1 -2
  2. data/lib/siteleaf/version.rb +1 -1
  3. metadata +2 -2
data/bin/siteleaf CHANGED
@@ -4,7 +4,6 @@ require 'siteleaf'
4
4
  require 'fileutils'
5
5
  require 'open-uri'
6
6
  require 'digest/md5'
7
- require 'securerandom'
8
7
 
9
8
  def help
10
9
  %Q(
@@ -91,7 +90,7 @@ def get_theme_assets(site_id)
91
90
  # file is up to date
92
91
  else
93
92
  print "Downloading #{asset.filename}..."
94
- file = open("#{asset.file['url']}?#{SecureRandom.hex(16)}", /^1\.8/.match(RUBY_VERSION) ? 'r' : 'r:UTF-8') { |f| f.read }
93
+ file = open(asset.file['url'], /^1\.8/.match(RUBY_VERSION) ? 'r' : 'r:UTF-8') { |f| f.read }
95
94
  FileUtils.mkdir_p(File.dirname(asset.filename))
96
95
  File.open(asset.filename, /^1\.8/.match(RUBY_VERSION) ? 'w' : 'w:UTF-8') { |f| f.write(file) }
97
96
  updated_count += 1
@@ -1,3 +1,3 @@
1
1
  module Siteleaf
2
- VERSION = "0.9.21"
2
+ VERSION = "0.9.22"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siteleaf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.21
4
+ version: 0.9.22
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-01 00:00:00.000000000 Z
12
+ date: 2014-07-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty