giphy 1.0.1 → 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/.travis.yml +1 -0
- data/README.md +3 -2
- data/lib/giphy/cli.rb +2 -0
- data/lib/giphy/gif.rb +9 -9
- data/lib/giphy/version.rb +1 -1
- metadata +20 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87256e6a650cf0a1c13f060ed1f206ca47a37270
|
4
|
+
data.tar.gz: 90684779e03569a29694590f9945d355603b69f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3668a849fcf756b5118a7c6690b14f1e81007e49e4f68eb39c58cdb57d4a3ec9daacdb406dba493aa8b0dd91134cb804490185d544abe51f91659d65a2eda808
|
7
|
+
data.tar.gz: 89c38c5208b7383523ece82c87e5224c14014e7d4c14db67dee4024be2316b422dfbbc106deaa418d2fcb188aa7fa430b404eac9cff354b785d54d1511490863
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -110,8 +110,9 @@ command line and opens it on your browser. Just for fun.
|
|
110
110
|
This library aims to support and is tested against the following Ruby
|
111
111
|
implementations:
|
112
112
|
|
113
|
-
* Ruby 1.9
|
114
|
-
* Ruby 2.0
|
113
|
+
* Ruby 1.9
|
114
|
+
* Ruby 2.0
|
115
|
+
* Ruby 2.1
|
115
116
|
|
116
117
|
## Contributing
|
117
118
|
|
data/lib/giphy/cli.rb
CHANGED
data/lib/giphy/gif.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Giphy
|
2
2
|
class Gif
|
3
3
|
def self.build_batch_from(array)
|
4
|
-
array.map { |gif| new(gif)}
|
4
|
+
array.map { |gif| new(gif) }
|
5
5
|
end
|
6
6
|
|
7
7
|
def initialize(hash)
|
@@ -33,31 +33,31 @@ module Giphy
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def fixed_height_image
|
36
|
-
@fixed_height_image ||=
|
36
|
+
@fixed_height_image ||= image(images['fixed_height'])
|
37
37
|
end
|
38
38
|
|
39
39
|
def fixed_height_still_image
|
40
|
-
@fixed_height_still_image ||=
|
40
|
+
@fixed_height_still_image ||= image(images['fixed_height_still'])
|
41
41
|
end
|
42
42
|
|
43
43
|
def fixed_height_downsampled_image
|
44
|
-
@fixed_height_downsampled_image ||=
|
44
|
+
@fixed_height_downsampled_image ||= image(images['fixed_height_downsampled'])
|
45
45
|
end
|
46
46
|
|
47
47
|
def fixed_width_image
|
48
|
-
@fixed_width_image ||=
|
48
|
+
@fixed_width_image ||= image(images['fixed_width'])
|
49
49
|
end
|
50
50
|
|
51
51
|
def fixed_width_still_image
|
52
|
-
@fixed_width_still_image ||=
|
52
|
+
@fixed_width_still_image ||= image(images['fixed_width_still'])
|
53
53
|
end
|
54
54
|
|
55
55
|
def fixed_width_downsampled_image
|
56
|
-
@fixed_width_downsampled_image ||=
|
56
|
+
@fixed_width_downsampled_image ||= image(images['fixed_width_downsampled'])
|
57
57
|
end
|
58
58
|
|
59
59
|
def original_image
|
60
|
-
@original_image ||=
|
60
|
+
@original_image ||= image(images['original'])
|
61
61
|
end
|
62
62
|
|
63
63
|
def image_original_url
|
@@ -73,7 +73,7 @@ module Giphy
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def image(image_hash)
|
76
|
-
Giphy::Image.new(image_hash)
|
76
|
+
image_hash ? Giphy::Image.new(image_hash) : null_image
|
77
77
|
end
|
78
78
|
|
79
79
|
def null_image
|
data/lib/giphy/version.rb
CHANGED
metadata
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: giphy
|
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
|
- Sebastian Sogamoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
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.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.1'
|
34
34
|
type: :development
|
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: '10.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '2.14'
|
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.14'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: faraday
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.8.8
|
62
62
|
type: :runtime
|
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: 0.8.8
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: faraday_middleware-parse_oj
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 0.2.1
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.2.1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: launchy
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 2.4.2
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 2.4.2
|
97
97
|
description: A Ruby interface to the Giphy API.
|
@@ -102,9 +102,9 @@ executables:
|
|
102
102
|
extensions: []
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
105
|
-
- .gitignore
|
106
|
-
- .rspec
|
107
|
-
- .travis.yml
|
105
|
+
- ".gitignore"
|
106
|
+
- ".rspec"
|
107
|
+
- ".travis.yml"
|
108
108
|
- Gemfile
|
109
109
|
- LICENSE.md
|
110
110
|
- README.md
|
@@ -156,17 +156,17 @@ require_paths:
|
|
156
156
|
- lib
|
157
157
|
required_ruby_version: !ruby/object:Gem::Requirement
|
158
158
|
requirements:
|
159
|
-
- -
|
159
|
+
- - ">="
|
160
160
|
- !ruby/object:Gem::Version
|
161
161
|
version: '0'
|
162
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
requirements: []
|
168
168
|
rubyforge_project:
|
169
|
-
rubygems_version: 2.
|
169
|
+
rubygems_version: 2.2.2
|
170
170
|
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: Enjoy Giphy API from you Ruby programs and command line
|
@@ -188,4 +188,3 @@ test_files:
|
|
188
188
|
- spec/giphy/special_gif_spec.rb
|
189
189
|
- spec/shared_examples/special_gif_contract_spec.rb
|
190
190
|
- spec/spec_helper.rb
|
191
|
-
has_rdoc:
|