rails-assets-for-upyun 0.0.5 → 0.0.6

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: 19e6b840e95be0dd2bb2d65f46a9f7b152b876e6
4
- data.tar.gz: e13a023541c496eb1f6af0210a29b1838d2c9ced
3
+ metadata.gz: b9fbdd69a2b81d0a3bdf08fee5c795b8658ada71
4
+ data.tar.gz: f3996ffcbd4ec4e285b69a0fb73eb447dd929940
5
5
  SHA512:
6
- metadata.gz: a098a18a59d1e23a3d90bb8d3151e287c454a71732984de267a65e9457d51cc58078dd3154514bf26d9f4e605b045c658fdd8601094b90405967bb5ace355cb0
7
- data.tar.gz: a9f65456c7d618ec2e379736d02c5ca4851ced152ba0ff5a4b65fc5fbfda5640572331ec81dccf2d2b53cf9042bdcf04d4b34fab2a1599c72002567ae81c98ce
6
+ metadata.gz: 7362e2a22cc857d5377a6db064346d5a161ba18573b7fabe727c6fb194c29adbe397657ca9abe9a643782cc9af9c66fb7c3dda0b00a52c4572467ebf2590710f
7
+ data.tar.gz: 023a42f15e2cb6bdd7293f9dfcb857d95690fe02df9cf985807a1d49169da7665bf0531b4b9328c100995e69df168b28bd15b888dc6dcf58bedb2c8ed47eb996
data/README.md CHANGED
@@ -4,7 +4,7 @@ rails-assets-for-upyun
4
4
 
5
5
  ## 用法
6
6
 
7
- 1. 在 `Gemfile` 里引用我: `gem 'rails-assets-for-upyun', '>= 0.0.5'`
7
+ 1. 在 `Gemfile` 里引用我: `gem 'rails-assets-for-upyun', '>= 0.0.6'`
8
8
  2. 首先设置好在生产环境中调用 UpYun 上的资源
9
9
 
10
10
  ```
@@ -14,7 +14,9 @@ class RailsAssetsForUpyun
14
14
  nil
15
15
  end
16
16
  end
17
- unless size == (file_size = File.size file)
17
+ if size == (file_size = File.size file)
18
+ puts "skipping #{file}.."
19
+ else
18
20
  file_content = File.read(file)
19
21
  puts "uploading #{file}.."
20
22
  RestClient.put("#{upyun_ap}#{url}", file_content,{\
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "rails-assets-for-upyun"
6
- s.version = "0.0.5"
6
+ s.version = "0.0.6"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Michael Yin"]
9
9
  s.email = ["layerssss@gmail.com"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-assets-for-upyun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Yin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-02 00:00:00.000000000 Z
11
+ date: 2014-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client