juli 2.0.2 → 2.0.3

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: 1aa85850fa030a5d6bd73269973f9804c778af9e
4
- data.tar.gz: c9bb94db4654752a43d880f27692485d5dba45bc
3
+ metadata.gz: 819eb243a3c100e54f8fc29d85ac517b2c75a500
4
+ data.tar.gz: 6e96fe3382d178153490acd8d046bbc050a08a34
5
5
  SHA512:
6
- metadata.gz: 167d609ead91b3647b9a487bbbec7d948070b2b924dbb4f1e814d2a5f603e24ecb284e4307c1539f5ec9c8035e5a35ac9f9a3396a22525b4763f594e5544b8a4
7
- data.tar.gz: 15b2e55dcb8bb9e5ad0a6beb0b7ec794fb8fe0837dbde89b86d7527f7bd621493dc067850d36386e603a165e048ae0b87659ae9b761e2800654460559efa60c7
6
+ metadata.gz: 7ed846f361c9ea71ef469099f9e972fe69b19d2673f33cc0a05a446dfaaf19fb8bf9d36a6851e8f56545018ab74b1dab029c2e8d637b60a8cd839e78bdc089c0
7
+ data.tar.gz: bf56b50ebe427d2a9791cd3416513484624a0ffa870792748a69c73c5d4ded50ec33ce3dde1ba0a4c2e444f5c2d158c3afe114b2e47d3726a5150b98bbf80630
@@ -112,6 +112,11 @@ EOM
112
112
  # url:: when true, return url, else, return physical file-system path
113
113
  def intern(path, size = :small, url = true)
114
114
  protected_path = File.join(conf_photo['mount'], path)
115
+ if !File.exist?(protected_path)
116
+ warn("WARN: no source photo path(#{protected_path})")
117
+ return ''
118
+ end
119
+
115
120
  public_phys_path = photo_path(path, size, false)
116
121
  if !File.exist?(public_phys_path) ||
117
122
  File::Stat.new(public_phys_path).mtime < File::Stat.new(protected_path).mtime
data/lib/juli/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Juli
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: juli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ido
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-21 00:00:00.000000000 Z
11
+ date: 2015-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n