jekyll-exiftag 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll-exiftag.rb +5 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca8f546fce75ba487d52a210ad9e22180cb38965
4
- data.tar.gz: 0b876f2296153000c071b7ff1adfb6287bfe7125
3
+ metadata.gz: 9614d2b5525e4210adba662f681ed21ce08e2c65
4
+ data.tar.gz: 2e67cab85057b668371efb8af839268e66c3f6f9
5
5
  SHA512:
6
- metadata.gz: 985ddf22a624fcb12b813c85283a91cd9a56b45d5b1a2b57e7299a3743fa440313aebd1ebb886afc1520864de2104b414ae34954a548cff73c58f139f42fdace
7
- data.tar.gz: a83f5148cae0fc06fa5f733dc45fb00fc08b2038e4ea923ccf27b53c4dd6665c64c936284b5236ef9adb2b7f5c9e453440c5dd05ecdaecaa7858185c4c372b4c
6
+ metadata.gz: ad659507ff937d12b23335a125c5b3e3a3a0df675d16cfe08485d5fc53c867cb7433de9eb06e52d3f46679882fa84a3511c50730928672167b6ccb5d8865cc47
7
+ data.tar.gz: 7912f2c20073cf6efcc433ee58ae1c5aa363ad99bcf3f32d3119ff686e7efdbec7fb8cc3ccd56f829c67498699eb913344d2ab42a059a02808293a559f9a8586
@@ -6,7 +6,7 @@
6
6
  # Usage:
7
7
  #
8
8
  # {% exiftag tagname,[source],[file] %}
9
- #
9
+ #
10
10
  # Everything given as tagname is called on EXIFR::JPEG, so this could be model oder f_number.to_f (see https://github.com/remvee/exifr)
11
11
  # If you give a source, this source is used build the fullpath for the given file (you can also configure them in _config.yml, see below)
12
12
  # If the file is given, this is the file to get Exif Tags for, this can be alternatively defined in the YAML Front Matter as img: file
@@ -35,7 +35,7 @@ module Jekyll
35
35
 
36
36
  def render(context)
37
37
  sources = Array.new()
38
- if context.registers[:site].config['exiftag']['sources']
38
+ if if context.registers[:site].config['exiftag'] and context.registers[:site].config['exiftag']['sources']
39
39
  sources.unshift(*context.registers[:site].config['exiftag']['sources'])
40
40
  end
41
41
 
@@ -46,7 +46,7 @@ module Jekyll
46
46
  if @args.count > 1
47
47
  sources.unshift(@args[1])
48
48
  end
49
-
49
+
50
50
  # the image can be passed as the third parameter
51
51
  if @args.count > 2
52
52
  img = @args[2]
@@ -54,7 +54,7 @@ module Jekyll
54
54
  else
55
55
  img = context.environments.first["page"]["img"]
56
56
  end
57
-
57
+
58
58
  # first check if the given img is already the path
59
59
  if File.exist?(img)
60
60
  file_name = img
@@ -73,7 +73,7 @@ module Jekyll
73
73
  ""
74
74
  end
75
75
  end
76
-
76
+
77
77
  def split_params(params)
78
78
  params.split(",").map(&:strip)
79
79
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-exiftag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beni Buess
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-09 00:00:00.000000000 Z
11
+ date: 2015-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: exifr