crowdskout 0.0.20 → 0.1.0

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: f5a9480ecb623e28ed0f00839dae2361e1359bbc
4
- data.tar.gz: 9584ea92cef3d1dd67afeb82dbe19ded1dbf8c1d
3
+ metadata.gz: af483fb507db0f7d33eb6bd7e8868e3d660fa7d8
4
+ data.tar.gz: dcc4c58377340d6f50aeef39d4c4145968c6ef81
5
5
  SHA512:
6
- metadata.gz: a81783f7a8bfa1dfcd6dd22b5a7814705795b77b9bcc4f1af79df5f15e4d26af03b6b68535133d51dd3c76e3954c178e006a5e0624c1e0e80270471671a40850
7
- data.tar.gz: b1331c76ac56f973e55fe63e07b918dc02e01b6fe8816ec2e156877e7e7c446e9de6a974281704199f8293fb6a1ece403545b2e34c1c5c1d2378b2c2c884e7fc
6
+ metadata.gz: 40be140cdd7f25ee93d756bc337570325e9af4067c5da017230aa5da9c935b2e62104dd91071082e623fe4eb0f8454c6b785df74ab38adce463bc8f9be8bb587
7
+ data.tar.gz: 9a2ac4648b3f55259e0f4ee921ef798659e9e8d596b6e39ca500baf3fe96cb6808d14ed65c3d7b287f9af715dbc357c0b81a4fc1da6752c0cd008010e4990fa4
data/crowdskout.gemspec CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "crowdskout"
8
- s.version = '0.0.20'
8
+ s.version = '0.1.0'
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.authors = ["Crowdskout", "Revv","Kyle Schutt"]
11
11
  s.homepage = "https://github.com/revvco/crowdskout"
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.require_paths = [ "lib" ]
25
25
  s.test_files = Dir['spec/**/*_spec.rb']
26
26
 
27
- s.add_runtime_dependency("rest-client", '~> 1.6', '>= 1.6.7')
27
+ s.add_runtime_dependency("rest-client", '< 4.0', '>= 1.6.7')
28
28
  s.add_runtime_dependency("json", '~> 1.8', '>= 1.8.1')
29
29
  s.add_runtime_dependency('mime-types', '~> 1.25', '>= 1.25.1')
30
30
  s.add_development_dependency("rspec", '~> 2.14')
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Crowdskout
22
- VERSION = '0.0.20'
22
+ VERSION = '0.1.0'
23
23
  end
@@ -16,7 +16,7 @@ describe Crowdskout::Services::AttributeService do
16
16
  json = load_file('attributes_response.json')
17
17
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
18
18
 
19
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
19
+ response = RestClient::Response.create(json, net_http_resp, @request)
20
20
  RestClient.stub(:get).and_return(response)
21
21
  attributes = Crowdskout::Services::AttributeService.get_attributes()
22
22
  attribute = attributes.results[0]
@@ -31,7 +31,7 @@ describe Crowdskout::Services::AttributeService do
31
31
  json = load_file('attribute_response.json')
32
32
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
33
33
 
34
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
34
+ response = RestClient::Response.create(json, net_http_resp, @request)
35
35
  RestClient.stub(:get).and_return(response)
36
36
  attribute = Crowdskout::Services::AttributeService.get_attribute(1)
37
37
 
@@ -44,7 +44,7 @@ describe Crowdskout::Services::AttributeService do
44
44
  json = load_file('attribute_response.json')
45
45
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
46
46
 
47
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
47
+ response = RestClient::Response.create(json, net_http_resp, @request)
48
48
  RestClient.stub(:post).and_return(response)
49
49
  new_attribute = Crowdskout::Components::Attribute.create(JSON.parse(json))
50
50
  attribute = Crowdskout::Services::AttributeService.create_attribute(new_attribute)
@@ -59,7 +59,7 @@ describe Crowdskout::Services::AttributeService do
59
59
  attribute_id = 196
60
60
  net_http_resp = Net::HTTPResponse.new(1.0, 204, 'No Content')
61
61
 
62
- response = RestClient::Response.create('', net_http_resp, {}, @request)
62
+ response = RestClient::Response.create('', net_http_resp, @request)
63
63
  RestClient.stub(:delete).and_return(response)
64
64
 
65
65
  result = Crowdskout::Services::AttributeService.delete_attribute(attribute_id)
@@ -72,7 +72,7 @@ describe Crowdskout::Services::AttributeService do
72
72
  json = load_file('attribute_response.json')
73
73
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
74
74
 
75
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
75
+ response = RestClient::Response.create(json, net_http_resp, @request)
76
76
  RestClient.stub(:put).and_return(response)
77
77
  attribute = Crowdskout::Components::Attribute.create(JSON.parse(json))
78
78
  result = Crowdskout::Services::AttributeService.update_attribute(attribute)
@@ -16,7 +16,7 @@ describe Crowdskout::Services::FieldService do
16
16
  json = load_file('field_response.json')
17
17
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
18
18
 
19
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
19
+ response = RestClient::Response.create(json, net_http_resp, @request)
20
20
  RestClient.stub(:get).and_return(response)
21
21
  field = Crowdskout::Services::FieldService.get_options_for_a_field("AddressCity")
22
22
 
@@ -16,7 +16,7 @@ describe Crowdskout::Services::ProfileService do
16
16
  json = load_file('profile_response.json')
17
17
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
18
18
 
19
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
19
+ response = RestClient::Response.create(json, net_http_resp, @request)
20
20
  RestClient.stub(:get).and_return(response)
21
21
  profile = Crowdskout::Services::ProfileService.get_profile(1, "Names,Genders")
22
22
 
@@ -40,7 +40,7 @@ describe Crowdskout::Services::ProfileService do
40
40
  json = load_file('profile_response.json')
41
41
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
42
42
 
43
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
43
+ response = RestClient::Response.create(json, net_http_resp, @request)
44
44
  RestClient.stub(:post).and_return(response)
45
45
  new_profile = Crowdskout::Components::Profile.create(JSON.parse(json)["data"])
46
46
  profile = Crowdskout::Services::ProfileService.create_profile(new_profile)
@@ -65,7 +65,7 @@ describe Crowdskout::Services::ProfileService do
65
65
  json = load_file('profile_bulk_response.json')
66
66
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
67
67
 
68
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
68
+ response = RestClient::Response.create(json, net_http_resp, @request)
69
69
  RestClient.stub(:post).and_return(response)
70
70
  profiles = []
71
71
  body = JSON.parse(json)
@@ -94,7 +94,7 @@ describe Crowdskout::Services::ProfileService do
94
94
  json = load_file('profile_response.json')
95
95
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
96
96
 
97
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
97
+ response = RestClient::Response.create(json, net_http_resp, @request)
98
98
  RestClient.stub(:put).and_return(response)
99
99
  profile = Crowdskout::Components::Profile.create(JSON.parse(json)["data"])
100
100
  result = Crowdskout::Services::ProfileService.update_profile(profile)
@@ -119,7 +119,7 @@ describe Crowdskout::Services::ProfileService do
119
119
  json = load_file('profile_bulk_response.json')
120
120
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
121
121
 
122
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
122
+ response = RestClient::Response.create(json, net_http_resp, @request)
123
123
  RestClient.stub(:put).and_return(response)
124
124
  profiles = []
125
125
  body = JSON.parse(json)
@@ -147,7 +147,7 @@ describe Crowdskout::Services::ProfileService do
147
147
  json = load_file('check_for_non_match_true_response.json')
148
148
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
149
149
 
150
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
150
+ response = RestClient::Response.create(json, net_http_resp, @request)
151
151
  RestClient.stub(:post).and_return(response)
152
152
  profile = Crowdskout::Components::Profile.create(JSON.parse(load_file('profile_response.json'))["data"])
153
153
  non_match_response = Crowdskout::Services::ProfileService.check_for_non_match(profile)
@@ -159,7 +159,7 @@ describe Crowdskout::Services::ProfileService do
159
159
  json = load_file('check_for_non_match_false_response.json')
160
160
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
161
161
 
162
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
162
+ response = RestClient::Response.create(json, net_http_resp, @request)
163
163
  RestClient.stub(:post).and_return(response)
164
164
  profile = Crowdskout::Components::Profile.create(JSON.parse(load_file('profile_response.json'))["data"])
165
165
  non_match_response = Crowdskout::Services::ProfileService.check_for_non_match(profile)
@@ -16,7 +16,7 @@ describe Crowdskout::Services::QuartermasterService do
16
16
  json = load_file('tracking_code_response.json')
17
17
  net_http_resp = Net::HTTPResponse.new(1.0, 200, 'OK')
18
18
 
19
- response = RestClient::Response.create(json, net_http_resp, {}, @request)
19
+ response = RestClient::Response.create(json, net_http_resp, @request)
20
20
  RestClient.stub(:get).and_return(response)
21
21
  tracking_code = Crowdskout::Services::QuartermasterService.tracking_code
22
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crowdskout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Crowdskout
@@ -10,15 +10,15 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-04-13 00:00:00.000000000 Z
13
+ date: 2017-05-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
19
+ - - "<"
20
20
  - !ruby/object:Gem::Version
21
- version: '1.6'
21
+ version: '4.0'
22
22
  - - ">="
23
23
  - !ruby/object:Gem::Version
24
24
  version: 1.6.7
@@ -26,9 +26,9 @@ dependencies:
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
- - - "~>"
29
+ - - "<"
30
30
  - !ruby/object:Gem::Version
31
- version: '1.6'
31
+ version: '4.0'
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: 1.6.7