jekyll-gallery-generator 0.0.6 → 0.0.7

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: 463732edcf2226c5ef8bb6e121d018c064c5d0d7
4
- data.tar.gz: db6b775f92ab02808f85600538e4c569e83967cc
3
+ metadata.gz: 2ad269a0985e26c4b4f19e94220a9c7db7502ab3
4
+ data.tar.gz: a10db5a7838840497198ac74d85244d5f4b9e7e1
5
5
  SHA512:
6
- metadata.gz: d783bffb7a55a4b54ab28959b8c9958aa3ff5309c0f786b74b85fd13f74f1feff56538feab0d7c91662be074c4bb6647dbc7b9e1698888e82e242dbf15250b31
7
- data.tar.gz: 9b5ae5f8cc85999dd87ea1025d825fc4f30ab6f083c600785abd47805c0f58ce5668acf02698be8f818626bf001328fc23c0a23944befe29ed7631193dddc70a
6
+ metadata.gz: ad075ac071111343f2e87b89d2cf34bea4b0261e631427d2beebd19854ee5953892e453b54d80e667410b63e448b25d4c5963cd63300d1f70fc16b2f8645b092
7
+ data.tar.gz: cbfbcd359b29f93250c45d9b314279df09dd185d1022706a7ed1853fa81b9178ca4b348de29dd46070b7b58fb7ee7bba50636ea9d02869b4d5ecb3e102971b16
data/README.md CHANGED
@@ -22,7 +22,7 @@ gems:
22
22
  - jekyll-gallery-generator
23
23
  ```
24
24
 
25
- 3. Copy your image directories into `jekyl-site/photos/`. Here's what my directory structure looks like:
25
+ 3. Copy your image directories into `jekyll-site/photos/`. Here's what my directory structure looks like:
26
26
 
27
27
  ```bash
28
28
  $ ls jekyll-site/photos
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "jekyll-gallery-generator"
3
3
  spec.summary = "Generate galleries with thumbnails for your Jekyll site."
4
- spec.version = "0.0.6"
4
+ spec.version = "0.0.7"
5
5
  spec.authors = ["Geoff Greer"]
6
6
  spec.email = "geoff@greer.fm"
7
7
  spec.homepage = "https://github.com/ggreer/jekyll-gallery-generator"
@@ -1,5 +1,5 @@
1
1
  require 'exifr'
2
- require 'RMagick'
2
+ require 'rmagick'
3
3
  include Magick
4
4
 
5
5
  include FileUtils
@@ -16,15 +16,15 @@ module Jekyll
16
16
  class ReadYamlPage < Page
17
17
  def read_yaml(base, name, opts = {})
18
18
  begin
19
- self.content = File.read(File.join(base, name), merged_file_read_opts(opts))
19
+ self.content = File.read(File.join(base.to_s, name.to_s), merged_file_read_opts(opts))
20
20
  if content =~ /\A(---\s*\n.*?\n?)^((---|\.\.\.)\s*$\n?)/m
21
21
  self.content = $POSTMATCH
22
22
  self.data = SafeYAML.load($1)
23
23
  end
24
24
  rescue SyntaxError => e
25
- Jekyll.logger.warn "YAML Exception reading #{File.join(base, name)}: #{e.message}"
25
+ Jekyll.logger.warn "YAML Exception reading #{File.join(base.to_s, name.to_s)}: #{e.message}"
26
26
  rescue Exception => e
27
- Jekyll.logger.warn "Error reading file #{File.join(base, name)}: #{e.message}"
27
+ Jekyll.logger.warn "Error reading file #{File.join(base.to_s, name.to_s)}: #{e.message}"
28
28
  end
29
29
 
30
30
  self.data ||= {}
@@ -162,6 +162,7 @@ module Jekyll
162
162
  if File.file?(thumb_path) == false or File.mtime(image_path) > File.mtime(thumb_path)
163
163
  begin
164
164
  m_image = ImageList.new(image_path)
165
+ m_image.auto_orient!
165
166
  m_image.send("resize_to_#{scale_method}!", max_size_x, max_size_y)
166
167
  puts "Writing thumbnail to #{thumb_path}"
167
168
  m_image.write(thumb_path)
@@ -192,7 +193,7 @@ module Jekyll
192
193
  site.static_files = @site.static_files
193
194
  self.data["images"] = @images
194
195
  self.data["best_image"] = gallery_config["best_image"] || best_image
195
- best_image_path = File.join(dir, best_image)
196
+ best_image_path = File.join(dir.to_s, best_image.to_s)
196
197
  begin
197
198
  self.data["date_time"] = EXIFR::JPEG.new(best_image_path).date_time.to_i
198
199
  rescue Exception => e
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-gallery-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Greer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-28 00:00:00.000000000 Z
11
+ date: 2016-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: exifr
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.2'
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: '1.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rmagick
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.12'
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: '2.12'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jekyll
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.6'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.6'
69
69
  description:
@@ -72,8 +72,8 @@ executables: []
72
72
  extensions: []
73
73
  extra_rdoc_files: []
74
74
  files:
75
- - .gitignore
76
- - .travis.yml
75
+ - ".gitignore"
76
+ - ".travis.yml"
77
77
  - Gemfile
78
78
  - LICENSE
79
79
  - NOTICE
@@ -93,12 +93,12 @@ require_paths:
93
93
  - lib
94
94
  required_ruby_version: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - '>='
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: