snapcat 0.1.0 → 0.2.0

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: aef10d3c529df778a318445e623c2f40326b9eca
4
- data.tar.gz: a80ad2981ef72c4edbfd3fb9eed71c870a23a621
3
+ metadata.gz: 02bc2e3e1b3a5384325e48b2af48c69f572f3f66
4
+ data.tar.gz: 4d654973822879e5111929c95dd67d7951b4f686
5
5
  SHA512:
6
- metadata.gz: 5b4418a99a483435d91e786261700ac97277d8321f6a50a1282da3f77978abeaa4973a748d845a001f59ef433db8ac93e1d6b3bf79f9e6ecfe612cf34bfe7c8a
7
- data.tar.gz: e5f0c9e61597ec7ea2f93841183e9fef759c96c23c620cff89eae58f96a557a74cd34381b0150dec61a872a138defa710440944910a5a9c39111337cba11cd58
6
+ metadata.gz: 5f150d9c8edf85e201cabeee00661c0a0047aeebba12bbb8ca6399571b5f6555ecccf47fba8e76c0d97978da49851202843ee932d872f8e2fc575ce0aa935580
7
+ data.tar.gz: 8407f0a8eb5fdd434841bee7be32e65fe951d0de21e087d5c0bc0c63959a6178ac2bedd200c21483a6a7e0904b6603375fd82258e0c754cc9105cd761c2f48fe
data/README.md CHANGED
@@ -13,7 +13,7 @@ Installation
13
13
 
14
14
  Add this line to your application's `Gemfile`:
15
15
 
16
- gem 'snapcat', '0.0.5'
16
+ gem 'snapcat', '~> 0.2.0'
17
17
 
18
18
  And then execute:
19
19
 
@@ -24,9 +24,9 @@ module Snapcat
24
24
  private
25
25
 
26
26
  def format_recognized_content(content_type, content)
27
- if content_type == 'application/json'
27
+ if content_type.include? 'application/json'
28
28
  JSON.parse(content, symbolize_names: true)
29
- elsif content_type == 'application/octet-stream'
29
+ elsif content_type.include? 'application/octet-stream'
30
30
  { media: Media.new(content) }
31
31
  end
32
32
  end
@@ -40,7 +40,9 @@ module Snapcat
40
40
  end
41
41
 
42
42
  def recognized_content_type?(content_type)
43
- RECOGNIZED_CONTENT_TYPES.include? content_type
43
+ RECOGNIZED_CONTENT_TYPES.detect do |recognized_content_type|
44
+ content_type.include? recognized_content_type
45
+ end
44
46
  end
45
47
 
46
48
  def response_empty?(response)
data/snapcat.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'snapcat'
7
- spec.version = '0.1.0'
7
+ spec.version = '0.2.0'
8
8
  spec.authors = ['Neal Kemp']
9
9
  spec.email = ['']
10
10
  spec.description = %q{Snapchat API wrapper}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neal Kemp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-02 00:00:00.000000000 Z
11
+ date: 2014-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httmultiparty