lentil 1.0.2 → 1.0.3

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: ae6220da9fff5468a8e4d1adefa04da3377855d7
4
- data.tar.gz: 47593f07564a9c03f675f60611322191c3691f41
3
+ metadata.gz: f0f1ba3dca5c251d625e3c36995d80f2a24d4115
4
+ data.tar.gz: 632b1928bb0b974c7039a25ef2a3c416b997feb6
5
5
  SHA512:
6
- metadata.gz: 3563ce96ccf937aeada4a5f2b68ea85d0d106b2fc76fdbc1b1ff182ebfcf74908d87322a347c8767677783565997683aa79571332174a58ca9b4c646ab8fa76a
7
- data.tar.gz: 27c06f5605cef7773ec2a26752baba82e93104c0938baaee7f110f3d4b84d1e96c9f494de18c3cdfd5af9a7dc80ab48a5748f7e97ab60ff9e8be0c59e2014068
6
+ metadata.gz: 0842afb191afa661db3a5f0997b3e1c6d406e9a217bf235ab545fc35e508ed09a601f87441931f6b47d6832b641c3660d6276152ccab89a6073ae0871e286651
7
+ data.tar.gz: 0690cdcb63ca66a1258faebb2cb84849b92aa5577dc0f7faaf6b51ccff8b64f9748db5a1e34d86e38ffeb857d39ae91fdd96efda14052647997165c2285a25a5
@@ -142,8 +142,12 @@ class Lentil::Image < ActiveRecord::Base
142
142
  end
143
143
 
144
144
  def https_ig_url(my_url = url)
145
- # instagr.am returns 301 to instagram.com and invalid SSL certificate
146
- my_url.sub(/^http:/, 'https:').sub(/\/\/instagr\.am/, '//instagram.com')
145
+ if my_url.respond_to?('sub')
146
+ # instagr.am returns 301 to instagram.com and invalid SSL certificate
147
+ my_url.sub(/^http:/, 'https:').sub(/\/\/instagr\.am/, '//instagram.com')
148
+ else
149
+ my_url
150
+ end
147
151
  end
148
152
 
149
153
  def large_url(https_ig = true)
@@ -1,3 +1,3 @@
1
1
  module Lentil
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lentil
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Casden
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-11-04 00:00:00.000000000 Z
14
+ date: 2016-11-06 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails