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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca9711f73842034e2ff4310758770878deb94920
4
- data.tar.gz: c6c12fe6fbd619e6bdb433fcdbeb570231f2f7ec
3
+ metadata.gz: ca0d5f4186397910a4642938b656fbeeed1a6b01
4
+ data.tar.gz: 61797c0f3877631d6a72fd95d5b4b4224ac6818d
5
5
  SHA512:
6
- metadata.gz: a9a27843d7faf323de0771f138b8b680910738f70fe87f052c5a9467f2cd5faf6d817c52d5467c2133dcfca4c03e50235db5f012e3b0e77ce800c83abc56382b
7
- data.tar.gz: 22174606770f6109a4b9e367c4dc666e7ea50438ee0b98e35f205cb2fc992ea3f40e3b39f58ca9a168c5be56555c6587fcac7e1eb0bac2a4966b58c56785cf5b
6
+ metadata.gz: 4f32e73f809aa8c670272a1ae46684c0cb425c45cd68a5a679dd336cdf832ee66e1111712d2cda441392a67e8f4ef4fa0e54aa585325edbd5d9a28dcf93836af
7
+ data.tar.gz: 50a5daab8714d4986fe6ff8e9a95858a755d2356bc747361a4bc27583c8b1e53962069fce627f46fa7fcd28617d022be54fcacb4bc5842e1849aab36d1c55f9a
@@ -1,43 +1,75 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-retinamagick (0.0.1)
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
- classifier (1.3.3)
12
- fast-stemmer (>= 1.0.0)
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
- commander (4.1.5)
15
- highline (~> 1.6.11)
16
- directory_watcher (1.4.1)
21
+ execjs (2.5.2)
17
22
  fast-stemmer (1.0.2)
18
- highline (1.6.19)
19
- jekyll (1.2.1)
20
- classifier (~> 1.3)
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
- commander (~> 4.1.3)
23
- directory_watcher (~> 1.4.1)
24
- liquid (~> 2.5.2)
25
- maruku (~> 0.5)
26
- pygments.rb (~> 0.5.0)
27
- redcarpet (~> 2.3.0)
28
- safe_yaml (~> 0.7.0)
29
- liquid (2.5.2)
30
- maruku (0.7.0)
31
- mini_magick (3.6.0)
32
- subexec (~> 0.2.1)
33
- posix-spawn (0.3.6)
34
- pygments.rb (0.5.2)
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.1.0)
37
- redcarpet (2.3.0)
38
- safe_yaml (0.7.1)
39
- subexec (0.2.3)
40
- yajl-ruby (1.1.0)
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
@@ -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[:resize] = "#{Integer(width) * 2}x#{Integer(height) * 2}"
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
- image = ::MiniMagick::Image.open(path)
56
- @commands.each_pair do |command, arg|
57
- image.send command, arg
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
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Retinamagick
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  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.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: 2013-10-07 00:00:00.000000000 Z
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.0.3
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