juli 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/juli/macro/photo.rb +5 -0
- data/lib/juli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 819eb243a3c100e54f8fc29d85ac517b2c75a500
|
|
4
|
+
data.tar.gz: 6e96fe3382d178153490acd8d046bbc050a08a34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ed846f361c9ea71ef469099f9e972fe69b19d2673f33cc0a05a446dfaaf19fb8bf9d36a6851e8f56545018ab74b1dab029c2e8d637b60a8cd839e78bdc089c0
|
|
7
|
+
data.tar.gz: bf56b50ebe427d2a9791cd3416513484624a0ffa870792748a69c73c5d4ded50ec33ce3dde1ba0a4c2e444f5c2d158c3afe114b2e47d3726a5150b98bbf80630
|
data/lib/juli/macro/photo.rb
CHANGED
|
@@ -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
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.
|
|
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-
|
|
11
|
+
date: 2015-08-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: i18n
|