motion-giphy 1.2.1 → 1.2.2

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: 87b21f36407d56a9b9b8dc4c07547743e63ab811
4
- data.tar.gz: 22e47d15f0ad5e0c1da136ff19165c40adc1c68e
3
+ metadata.gz: 7ef23e948d6279898ddba7f6c08ba77dc5a174de
4
+ data.tar.gz: 2204a71e523af4d1769c47a9240e365659508a93
5
5
  SHA512:
6
- metadata.gz: 0315462202752747c25e867554aaf0fd7c212e36f73e921877d787f8742659bbc83f4e557238949d8899242dc521aff28e3f08a279e0cedd66d73f0c816d9ca1
7
- data.tar.gz: 13dc6fd3b507958ff4ca0b4b66787941ab82eaced1b6fc669559c398340ed0c050c0a59ff59929b44466bb7a2a02f1432e076b99ec4c137389955a3645c49626
6
+ metadata.gz: 2476f09c656bcfec52cbecd55338af65b9cf36c71dd12bfd1469255f1efa1cd7a6bc723f2d354ec47f7400593c4bf607319db52a1c2e44887da0a1dfc229f838
7
+ data.tar.gz: cd8c66c95d31e96efa3b061a97bb38c4a3ae52bee56a948a3c353b78b00875942f3f5d2d6f430dc91a20fcbe494add88e0622b654f51ee1edb7216e053f22057
@@ -18,6 +18,10 @@ module MotionGiphy
18
18
  hash["url"]
19
19
  end
20
20
 
21
+ def embed_url
22
+ hash["embed_url"]
23
+ end
24
+
21
25
  def original
22
26
  image.new(images["original"])
23
27
  end
@@ -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
@@ -9,7 +9,7 @@ module MotionGiphy
9
9
  private
10
10
 
11
11
  def client
12
- AFMotion::SessionClient.build("http://api.giphy.com/v1/gifs/") do
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.1
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-02-14 00:00:00.000000000 Z
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.1
93
+ rubygems_version: 2.2.2
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: Giphy API wrapper for RubyMotion