motion-giphy 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/motion-giphy/gif.rb +4 -0
- data/lib/motion-giphy/image.rb +2 -1
- data/lib/motion-giphy/request.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7ef23e948d6279898ddba7f6c08ba77dc5a174de
|
|
4
|
+
data.tar.gz: 2204a71e523af4d1769c47a9240e365659508a93
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2476f09c656bcfec52cbecd55338af65b9cf36c71dd12bfd1469255f1efa1cd7a6bc723f2d354ec47f7400593c4bf607319db52a1c2e44887da0a1dfc229f838
|
|
7
|
+
data.tar.gz: cd8c66c95d31e96efa3b061a97bb38c4a3ae52bee56a948a3c353b78b00875942f3f5d2d6f430dc91a20fcbe494add88e0622b654f51ee1edb7216e053f22057
|
data/lib/motion-giphy/gif.rb
CHANGED
data/lib/motion-giphy/image.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module MotionGiphy
|
|
2
2
|
class Image
|
|
3
|
-
attr_reader :url, :width, :height, :frames, :size
|
|
3
|
+
attr_reader :url, :width, :height, :frames, :size, :mp4
|
|
4
4
|
|
|
5
5
|
def initialize(image_hash)
|
|
6
6
|
@url = image_hash["url"]
|
|
@@ -8,6 +8,7 @@ module MotionGiphy
|
|
|
8
8
|
@height = image_hash["height"].to_i
|
|
9
9
|
@frames = image_hash["frames"].to_i
|
|
10
10
|
@size = image_hash["size"].to_i
|
|
11
|
+
@mp4 = image_hash["mp4"]
|
|
11
12
|
end
|
|
12
13
|
end
|
|
13
14
|
end
|
data/lib/motion-giphy/request.rb
CHANGED
|
@@ -9,7 +9,7 @@ module MotionGiphy
|
|
|
9
9
|
private
|
|
10
10
|
|
|
11
11
|
def client
|
|
12
|
-
AFMotion::SessionClient.
|
|
12
|
+
AFMotion::SessionClient.build_shared("http://api.giphy.com/v1/gifs/") do
|
|
13
13
|
session_configuration :default
|
|
14
14
|
header "Accept", "application/json"
|
|
15
15
|
response_serializer :json
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: motion-giphy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Will Raxworthy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-06-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: motion-cocoapods
|
|
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
90
90
|
version: '0'
|
|
91
91
|
requirements: []
|
|
92
92
|
rubyforge_project:
|
|
93
|
-
rubygems_version: 2.2.
|
|
93
|
+
rubygems_version: 2.2.2
|
|
94
94
|
signing_key:
|
|
95
95
|
specification_version: 4
|
|
96
96
|
summary: Giphy API wrapper for RubyMotion
|