snapcat 0.2.0 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 02bc2e3e1b3a5384325e48b2af48c69f572f3f66
4
- data.tar.gz: 4d654973822879e5111929c95dd67d7951b4f686
3
+ metadata.gz: bbe678c0f6fd991ae9e35c57e1e7f12fd3246615
4
+ data.tar.gz: aa74e743b1e2efad72d5bdad29fbdfda6431b0fe
5
5
  SHA512:
6
- metadata.gz: 5f150d9c8edf85e201cabeee00661c0a0047aeebba12bbb8ca6399571b5f6555ecccf47fba8e76c0d97978da49851202843ee932d872f8e2fc575ce0aa935580
7
- data.tar.gz: 8407f0a8eb5fdd434841bee7be32e65fe951d0de21e087d5c0bc0c63959a6178ac2bedd200c21483a6a7e0904b6603375fd82258e0c754cc9105cd761c2f48fe
6
+ metadata.gz: 7676b65e134593a58052b99ca6191eeb0894f84787b596a72c364766aaf0391f23ada74e8dee5d3964a0ce261fb227f58d3641b14228325db50efa1b0d8bc82d
7
+ data.tar.gz: f01a12b1f3978bfd1d6409b282f0d4749816eac833d81663a229d3d354b33ef9f13c21c2de7c1ec8c91f4f5950fbfb354be4b5ff624e075b9f3561aafc49c2a8
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.2.0'
16
+ gem 'snapcat', '~> 0.2.1'
17
17
 
18
18
  And then execute:
19
19
 
@@ -2,7 +2,6 @@ module Snapcat
2
2
  class Requestor
3
3
  include HTTMultiParty
4
4
 
5
- APP_VERSION = '6.0.0'
6
5
  SECRET = 'iEk21fuwZApXlz93750dmW22pw389dPwOk'
7
6
  STATIC_TOKEN = 'm198sOkJEn37DjqZ32lpRu76xmw288xSQ9'
8
7
  HASH_PATTERN = '0001110111101110001111010101111011010001001110011000110001000110'
@@ -19,11 +18,11 @@ module Snapcat
19
18
  def request(endpoint, data = {})
20
19
  response = self.class.post(
21
20
  "/#{endpoint}",
22
- { body: merge_defaults_with(data) }
21
+ body: merge_defaults_with(data)
23
22
  )
24
23
 
25
24
  additional_fields = additional_fields_for(data)
26
- result = Snapcat::Response.new(response, additional_fields)
25
+ result = Response.new(response, additional_fields)
27
26
 
28
27
  auth_token_from(result, endpoint)
29
28
  result
@@ -100,8 +99,7 @@ module Snapcat
100
99
 
101
100
  data.merge!({
102
101
  req_token: built_token(@auth_token, now),
103
- timestamp: now,
104
- version: APP_VERSION
102
+ timestamp: now
105
103
  })
106
104
  end
107
105
  end
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.2.0'
7
+ spec.version = '0.2.1'
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.2.0
4
+ version: 0.2.1
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-22 00:00:00.000000000 Z
11
+ date: 2014-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httmultiparty
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  version: '0'
191
191
  requirements: []
192
192
  rubyforge_project:
193
- rubygems_version: 2.2.0
193
+ rubygems_version: 2.2.2
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: Ruby wrapper for Snapchat's private API