kickscraper 0.2.2 → 0.2.3
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/kickscraper.gemspec +1 -1
- data/lib/kickscraper/client.rb +5 -2
- data/lib/kickscraper/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba1a20e5f786d4374a1ed1b426d204f03e87586d
|
|
4
|
+
data.tar.gz: 58d8352316ee6b7737e427e38176e9d0e2514ff0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81d96ddeee775f60577c26a0ca0b1373ddc25b7897e261c595539f38bd8c491bb1a3fcb5cf67048f1b475e10b7c78379d2b0890f7d3fd9d1f060f87379e03da0
|
|
7
|
+
data.tar.gz: 4e8e6207cf06940caee9dacced407c8008365650d483a219006cfb6547336de1ec04dff712aef79af0ce933aa274ccbb2ebfefa04453f471075f95ea2fbbe6f4
|
data/kickscraper.gemspec
CHANGED
|
@@ -26,6 +26,6 @@ Gem::Specification.new do |spec|
|
|
|
26
26
|
spec.add_runtime_dependency('faraday_middleware', '~> 0.8')
|
|
27
27
|
spec.add_runtime_dependency('multi_json', '>= 1.0.3', '~> 1.0')
|
|
28
28
|
spec.add_runtime_dependency('hashie', '~> 2')
|
|
29
|
-
spec.add_runtime_dependency('uri-query_params')
|
|
29
|
+
spec.add_runtime_dependency('uri-query_params', '~>0.7.1')
|
|
30
30
|
|
|
31
31
|
end
|
data/lib/kickscraper/client.rb
CHANGED
|
@@ -6,6 +6,8 @@ module Kickscraper
|
|
|
6
6
|
|
|
7
7
|
attr_accessor :user
|
|
8
8
|
|
|
9
|
+
CLIENT_ID = '2II5GGBZLOOZAA5XBU1U0Y44BU57Q58L8KOGM7H0E0YFHP3KTG'
|
|
10
|
+
|
|
9
11
|
def initialize
|
|
10
12
|
@more_projects_available = false
|
|
11
13
|
|
|
@@ -13,7 +15,7 @@ module Kickscraper
|
|
|
13
15
|
@user = nil
|
|
14
16
|
else
|
|
15
17
|
if Kickscraper.token.nil?
|
|
16
|
-
token_response = connection.post(
|
|
18
|
+
token_response = connection.post("xauth/access_token?client_id=#{CLIENT_ID}", {'email' => Kickscraper.email, 'password' => Kickscraper.password }.to_json)
|
|
17
19
|
if token_response.body.error_messages
|
|
18
20
|
raise token_response.body.error_messages.join("\n")
|
|
19
21
|
return
|
|
@@ -220,7 +222,8 @@ module Kickscraper
|
|
|
220
222
|
params[:page] = page unless page.nil?
|
|
221
223
|
params[:category_id] = category_id unless category_id.nil?
|
|
222
224
|
params[:state] = state unless state.nil?
|
|
223
|
-
|
|
225
|
+
params[:client_id] = CLIENT_ID if api_or_search == "api"
|
|
226
|
+
|
|
224
227
|
# make the connection and return the response
|
|
225
228
|
connection(api_or_search).get(path, params)
|
|
226
229
|
end
|
data/lib/kickscraper/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kickscraper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mark Olson
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date:
|
|
14
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: bundler
|
|
@@ -127,16 +127,16 @@ dependencies:
|
|
|
127
127
|
name: uri-query_params
|
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
|
129
129
|
requirements:
|
|
130
|
-
- - "
|
|
130
|
+
- - "~>"
|
|
131
131
|
- !ruby/object:Gem::Version
|
|
132
|
-
version:
|
|
132
|
+
version: 0.7.1
|
|
133
133
|
type: :runtime
|
|
134
134
|
prerelease: false
|
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
|
136
136
|
requirements:
|
|
137
|
-
- - "
|
|
137
|
+
- - "~>"
|
|
138
138
|
- !ruby/object:Gem::Version
|
|
139
|
-
version:
|
|
139
|
+
version: 0.7.1
|
|
140
140
|
description: Interact with Kickstarter through their API
|
|
141
141
|
email:
|
|
142
142
|
- theothermarkolson@gmail.com
|
|
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
199
199
|
version: '0'
|
|
200
200
|
requirements: []
|
|
201
201
|
rubyforge_project:
|
|
202
|
-
rubygems_version: 2.
|
|
202
|
+
rubygems_version: 2.4.8
|
|
203
203
|
signing_key:
|
|
204
204
|
specification_version: 4
|
|
205
205
|
summary: API library for Kickstarter
|