jekyll-retinamagick 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +59 -27
- data/lib/jekyll-retinamagick.rb +14 -6
- data/lib/jekyll-retinamagick/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca0d5f4186397910a4642938b656fbeeed1a6b01
|
4
|
+
data.tar.gz: 61797c0f3877631d6a72fd95d5b4b4224ac6818d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f32e73f809aa8c670272a1ae46684c0cb425c45cd68a5a679dd336cdf832ee66e1111712d2cda441392a67e8f4ef4fa0e54aa585325edbd5d9a28dcf93836af
|
7
|
+
data.tar.gz: 50a5daab8714d4986fe6ff8e9a95858a755d2356bc747361a4bc27583c8b1e53962069fce627f46fa7fcd28617d022be54fcacb4bc5842e1849aab36d1c55f9a
|
data/Gemfile.lock
CHANGED
@@ -1,43 +1,75 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
jekyll-retinamagick (
|
4
|
+
jekyll-retinamagick (1.0.2)
|
5
5
|
jekyll (>= 0.10.0)
|
6
6
|
mini_magick (>= 3.3)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: http://rubygems.org/
|
10
10
|
specs:
|
11
|
-
|
12
|
-
|
11
|
+
blankslate (2.1.2.4)
|
12
|
+
celluloid (0.16.0)
|
13
|
+
timers (~> 4.0.0)
|
14
|
+
classifier-reborn (2.0.3)
|
15
|
+
fast-stemmer (~> 1.0)
|
16
|
+
coffee-script (2.4.1)
|
17
|
+
coffee-script-source
|
18
|
+
execjs
|
19
|
+
coffee-script-source (1.9.1.1)
|
13
20
|
colorator (0.1)
|
14
|
-
|
15
|
-
highline (~> 1.6.11)
|
16
|
-
directory_watcher (1.4.1)
|
21
|
+
execjs (2.5.2)
|
17
22
|
fast-stemmer (1.0.2)
|
18
|
-
|
19
|
-
|
20
|
-
|
23
|
+
ffi (1.9.8)
|
24
|
+
hitimes (1.2.2)
|
25
|
+
jekyll (2.5.3)
|
26
|
+
classifier-reborn (~> 2.0)
|
21
27
|
colorator (~> 0.1)
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
28
|
+
jekyll-coffeescript (~> 1.0)
|
29
|
+
jekyll-gist (~> 1.0)
|
30
|
+
jekyll-paginate (~> 1.0)
|
31
|
+
jekyll-sass-converter (~> 1.0)
|
32
|
+
jekyll-watch (~> 1.1)
|
33
|
+
kramdown (~> 1.3)
|
34
|
+
liquid (~> 2.6.1)
|
35
|
+
mercenary (~> 0.3.3)
|
36
|
+
pygments.rb (~> 0.6.0)
|
37
|
+
redcarpet (~> 3.1)
|
38
|
+
safe_yaml (~> 1.0)
|
39
|
+
toml (~> 0.1.0)
|
40
|
+
jekyll-coffeescript (1.0.1)
|
41
|
+
coffee-script (~> 2.2)
|
42
|
+
jekyll-gist (1.2.1)
|
43
|
+
jekyll-paginate (1.1.0)
|
44
|
+
jekyll-sass-converter (1.3.0)
|
45
|
+
sass (~> 3.2)
|
46
|
+
jekyll-watch (1.2.1)
|
47
|
+
listen (~> 2.7)
|
48
|
+
kramdown (1.7.0)
|
49
|
+
liquid (2.6.2)
|
50
|
+
listen (2.10.0)
|
51
|
+
celluloid (~> 0.16.0)
|
52
|
+
rb-fsevent (>= 0.9.3)
|
53
|
+
rb-inotify (>= 0.9)
|
54
|
+
mercenary (0.3.5)
|
55
|
+
mini_magick (4.2.7)
|
56
|
+
parslet (1.5.0)
|
57
|
+
blankslate (~> 2.0)
|
58
|
+
posix-spawn (0.3.11)
|
59
|
+
pygments.rb (0.6.3)
|
35
60
|
posix-spawn (~> 0.3.6)
|
36
|
-
yajl-ruby (~> 1.
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
61
|
+
yajl-ruby (~> 1.2.0)
|
62
|
+
rb-fsevent (0.9.5)
|
63
|
+
rb-inotify (0.9.5)
|
64
|
+
ffi (>= 0.5.0)
|
65
|
+
redcarpet (3.2.3)
|
66
|
+
safe_yaml (1.0.4)
|
67
|
+
sass (3.4.14)
|
68
|
+
timers (4.0.1)
|
69
|
+
hitimes
|
70
|
+
toml (0.1.2)
|
71
|
+
parslet (~> 1.5.0)
|
72
|
+
yajl-ruby (1.2.1)
|
41
73
|
|
42
74
|
PLATFORMS
|
43
75
|
ruby
|
data/lib/jekyll-retinamagick.rb
CHANGED
@@ -26,7 +26,7 @@ module Jekyll
|
|
26
26
|
if @commands.has_key?("resize")
|
27
27
|
size = @commands["resize"]
|
28
28
|
width, height = size.match(/([0-9]+)x([0-9]+)/i).captures
|
29
|
-
@commands[
|
29
|
+
@commands["resize"] = "#{Integer(width) * 2}x#{Integer(height) * 2}"
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
@@ -51,13 +51,22 @@ module Jekyll
|
|
51
51
|
|
52
52
|
@@mtimes[path] = mtime
|
53
53
|
|
54
|
+
cache_path = File.join(@base, ".minimagick-cache", @dst_dir, @name)
|
55
|
+
|
56
|
+
FileUtils.mkdir_p(File.dirname(cache_path))
|
54
57
|
FileUtils.mkdir_p(File.dirname(dest_path))
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
+
|
59
|
+
# If the file isn't cached, generate it
|
60
|
+
if not (File.size? cache_path and File.stat(cache_path).mtime.to_i > mtime)
|
61
|
+
image = ::MiniMagick::Image.open(path)
|
62
|
+
@commands.each_pair do |command, arg|
|
63
|
+
image.send command, arg
|
64
|
+
end
|
65
|
+
image.write cache_path
|
58
66
|
end
|
59
|
-
image.write dest_path
|
60
67
|
|
68
|
+
FileUtils.cp(cache_path, dest_path)
|
69
|
+
|
61
70
|
true
|
62
71
|
end
|
63
72
|
|
@@ -82,6 +91,5 @@ module Jekyll
|
|
82
91
|
end
|
83
92
|
end
|
84
93
|
end
|
85
|
-
|
86
94
|
end
|
87
95
|
end
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-retinamagick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brendan Tobolaski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.10.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.10.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mini_magick
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '3.3'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3.3'
|
41
41
|
description: Use MiniMagick to create the image sizes that you need. A fork of jekyll-minimagick.
|
@@ -45,7 +45,7 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
48
|
+
- ".gitignore"
|
49
49
|
- Gemfile
|
50
50
|
- Gemfile.lock
|
51
51
|
- Rakefile
|
@@ -62,17 +62,17 @@ require_paths:
|
|
62
62
|
- lib
|
63
63
|
required_ruby_version: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- -
|
65
|
+
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
69
|
requirements:
|
70
|
-
- -
|
70
|
+
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
74
|
rubyforge_project: jekyll-retinamagick
|
75
|
-
rubygems_version: 2.
|
75
|
+
rubygems_version: 2.4.5
|
76
76
|
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: MiniMagick integration, including retina support, for Jekyll
|