salsa_labs 0.0.1 → 0.0.2.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.travis.yml +10 -0
- data/Gemfile.lock +10 -10
- data/README.md +3 -3
- data/lib/salsa_labs/version.rb +1 -1
- data/salsa_labs.gemspec +8 -9
- data/spec/vcr_cassettes/get_objects/action.yml +131 -0
- metadata +42 -52
- /data/lib/salsa_labs/{API_Client.rb → api_client.rb} +0 -0
- /data/{salsa_labs.rb → lib/salsa_labs.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47ec06a20ffc63c76de20bb1b485975570f28eb5
|
4
|
+
data.tar.gz: 0a059ad4f635a74052e1f3306e52e016169920e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5e1c9420a5905b6c8c8736caf9f668b47a1a85aca7bbee516c8c3fb875da62a9259e2f6a73ad5dff4a312be199b4f4fbc45a733dbf2435cc15599e8867763b0
|
7
|
+
data.tar.gz: b9d8561c84221ec1c9540975b3c42ab9f0a6e92a603ad00b17b82bd38f4daef82154876dfb3deaccc5da52d5987d602272b951294630d04c7b6b2819647ff9a2
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
salsa_labs (0.0.
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
salsa_labs (0.0.2.alpha)
|
5
|
+
dotenv (~> 0.9)
|
6
|
+
faraday (~> 0.8)
|
7
|
+
httparty (~> 0.12)
|
8
|
+
nokogiri (~> 1.5)
|
8
9
|
|
9
10
|
GEM
|
10
11
|
remote: https://rubygems.org/
|
@@ -14,7 +15,7 @@ GEM
|
|
14
15
|
safe_yaml (~> 0.9.0)
|
15
16
|
diff-lcs (1.2.5)
|
16
17
|
docile (1.1.1)
|
17
|
-
|
18
|
+
dotenv (0.9.0)
|
18
19
|
faraday (0.8.8)
|
19
20
|
multipart-post (~> 1.2.0)
|
20
21
|
httparty (0.12.0)
|
@@ -50,9 +51,8 @@ PLATFORMS
|
|
50
51
|
ruby
|
51
52
|
|
52
53
|
DEPENDENCIES
|
53
|
-
|
54
|
-
rspec
|
54
|
+
rspec (~> 2.14)
|
55
55
|
salsa_labs!
|
56
|
-
simplecov
|
57
|
-
vcr
|
58
|
-
webmock
|
56
|
+
simplecov (~> 0.8)
|
57
|
+
vcr (~> 2.8)
|
58
|
+
webmock (~> 1.16)
|
data/README.md
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
[![Gem
|
4
4
|
Version](https://badge.fury.io/rb/salsa_labs.png)](http://badge.fury.io/rb/salsa_labs)
|
5
|
-
[![Build Status](https://travis-ci.org/
|
6
|
-
[![Dependency Status](https://gemnasium.com/
|
7
|
-
[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/
|
5
|
+
[![Build Status](https://travis-ci.org/VelocityStrategies/ruby-salsa_labs.png?branch=master)](https://travis-ci.org/VelocityStrategies/ruby-salsa_labs)
|
6
|
+
[![Dependency Status](https://gemnasium.com/VelocityStrategies/ruby-salsa_labs.png)](https://gemnasium.com/VelocityStrategies/ruby-salsa_labs)
|
7
|
+
[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/VelocityStrategies/ruby-salsa_labs)
|
8
8
|
|
9
9
|
``salsa_labs`` can fetch data from the [Salsa Labs](http://salsalabs.com) API.
|
10
10
|
|
data/lib/salsa_labs/version.rb
CHANGED
data/salsa_labs.gemspec
CHANGED
@@ -16,15 +16,14 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.require_paths = ['lib']
|
17
17
|
gem.licenses = ['LICENSE']
|
18
18
|
|
19
|
-
gem.add_runtime_dependency 'dotenv'
|
20
|
-
gem.add_runtime_dependency 'faraday'
|
21
|
-
gem.add_runtime_dependency 'httparty'
|
22
|
-
gem.add_runtime_dependency 'nokogiri'
|
19
|
+
gem.add_runtime_dependency 'dotenv', '~> 0.9'
|
20
|
+
gem.add_runtime_dependency 'faraday', '~> 0.8'
|
21
|
+
gem.add_runtime_dependency 'httparty', '~> 0.12'
|
22
|
+
gem.add_runtime_dependency 'nokogiri', '~> 1.5'
|
23
23
|
|
24
|
-
gem.add_development_dependency '
|
25
|
-
gem.add_development_dependency '
|
26
|
-
gem.add_development_dependency '
|
27
|
-
gem.add_development_dependency '
|
28
|
-
gem.add_development_dependency 'webmock'
|
24
|
+
gem.add_development_dependency 'rspec', '~> 2.14'
|
25
|
+
gem.add_development_dependency 'simplecov', '~> 0.8'
|
26
|
+
gem.add_development_dependency 'vcr', '~> 2.8'
|
27
|
+
gem.add_development_dependency 'webmock', '~> 1.16'
|
29
28
|
|
30
29
|
end
|
@@ -0,0 +1,131 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://hq-salsa.wiredforchange.com/api/authenticate.sjs?email=allison%40wearevelocity.com&password=password
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
cookie:
|
13
|
+
- ''
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message:
|
18
|
+
headers:
|
19
|
+
server:
|
20
|
+
- nginx/1.0.0
|
21
|
+
date:
|
22
|
+
- Sat, 28 Dec 2013 02:59:27 GMT
|
23
|
+
content-type:
|
24
|
+
- text/xml;charset=UTF-8
|
25
|
+
transfer-encoding:
|
26
|
+
- chunked
|
27
|
+
connection:
|
28
|
+
- keep-alive
|
29
|
+
keep-alive:
|
30
|
+
- timeout=20
|
31
|
+
set-cookie:
|
32
|
+
- JSESSIONID=262F7F3397C20DC57A40B31D49F2D35E-n4; Path=/; Secure; HttpOnly,
|
33
|
+
hqtab_2=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT, READONLY_Short_Name="";
|
34
|
+
Expires=Thu, 01-Jan-1970 00:00:10 GMT, SRV=vweb217; path=/
|
35
|
+
requesturi:
|
36
|
+
- "/api/authenticate.sjs?email=allison%40wearevelocity.com&password=password"
|
37
|
+
cache-control:
|
38
|
+
- private
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: "<?xml version=\"1.0\"?>\n\t\t\t<data organization_KEY=\"6120\">\n\t\t\t<message>Successful
|
42
|
+
Login</message>\n\t\t\t</data>"
|
43
|
+
http_version:
|
44
|
+
recorded_at: Sat, 28 Dec 2013 02:59:27 GMT
|
45
|
+
- request:
|
46
|
+
method: get
|
47
|
+
uri: https://hq-salsa.wiredforchange.com/api/getObjects.sjs?object=Action
|
48
|
+
body:
|
49
|
+
encoding: US-ASCII
|
50
|
+
string: ''
|
51
|
+
headers:
|
52
|
+
User-Agent:
|
53
|
+
- Faraday v0.8.8
|
54
|
+
cookie:
|
55
|
+
- JSESSIONID=262F7F3397C20DC57A40B31D49F2D35E-n4; Path=/; Secure; HttpOnly,
|
56
|
+
hqtab_2=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT, READONLY_Short_Name="";
|
57
|
+
Expires=Thu, 01-Jan-1970 00:00:10 GMT, SRV=vweb217; path=/
|
58
|
+
response:
|
59
|
+
status:
|
60
|
+
code: 200
|
61
|
+
message:
|
62
|
+
headers:
|
63
|
+
server:
|
64
|
+
- nginx/1.0.0
|
65
|
+
date:
|
66
|
+
- Sat, 28 Dec 2013 02:59:27 GMT
|
67
|
+
content-type:
|
68
|
+
- text/xml;charset=UTF-8
|
69
|
+
transfer-encoding:
|
70
|
+
- chunked
|
71
|
+
connection:
|
72
|
+
- keep-alive
|
73
|
+
keep-alive:
|
74
|
+
- timeout=20
|
75
|
+
requesturi:
|
76
|
+
- "/api/getObjects.sjs?object=Action"
|
77
|
+
body:
|
78
|
+
encoding: UTF-8
|
79
|
+
string: |-
|
80
|
+
<?xml version="1.0"?>
|
81
|
+
<data organization_KEY="6120">
|
82
|
+
<Action>
|
83
|
+
<item>
|
84
|
+
<action_KEY>6656</action_KEY>
|
85
|
+
<organization_KEY>6120</organization_KEY>
|
86
|
+
<chapter_KEY/>
|
87
|
+
<Last_Modified>Tue Dec 17 2013 11:08:58 GMT-0500 (EST)</Last_Modified>
|
88
|
+
<Date_Created>Wed Sep 26 2012 14:30:02 GMT-0400 (EDT)</Date_Created>
|
89
|
+
<Reference_Name>My TItle</Reference_Name>
|
90
|
+
<Title>My Action Title</Title>
|
91
|
+
<Description><p>&#160;</p></Description>
|
92
|
+
<Allow_Comments_BOOLVALUE>false</Allow_Comments_BOOLVALUE>
|
93
|
+
<Allow_Comments>false</Allow_Comments>
|
94
|
+
<Comment_Question/>
|
95
|
+
<Max_Number_Of_Emails/>
|
96
|
+
<Max_Number_Of_Faxes/>
|
97
|
+
<Signatures/>
|
98
|
+
<Signature_Goal/>
|
99
|
+
<Deadline/>
|
100
|
+
<Signature_Minimum_for_Display/>
|
101
|
+
<Allow_Anonymous_BOOLVALUE>false</Allow_Anonymous_BOOLVALUE>
|
102
|
+
<Allow_Anonymous>false</Allow_Anonymous>
|
103
|
+
<Footer><p>&#160;</p></Footer>
|
104
|
+
<Request>First_Name,Last_Name,Street,Street_2,City,State,Zip,Email</Request>
|
105
|
+
<Required>First_Name,Last_Name,Street,City,State,Zip,Email</Required>
|
106
|
+
<Thank_You_Text/>
|
107
|
+
<redirect_path/>
|
108
|
+
<alternate_action_path/>
|
109
|
+
<email_trigger_KEYS/>
|
110
|
+
<add_to_groups_KEYS/>
|
111
|
+
<optionally_add_to_groups_KEYS/>
|
112
|
+
<Restriction_Type/>
|
113
|
+
<Restricted_Regions/>
|
114
|
+
<Restricted_Districts/>
|
115
|
+
<Restricted_Text/>
|
116
|
+
<No_Target_Text/>
|
117
|
+
<template_KEY/>
|
118
|
+
<Style>Targeted</Style>
|
119
|
+
<style_path/>
|
120
|
+
<Status/>
|
121
|
+
<linkRequest/>
|
122
|
+
<linkRequired/>
|
123
|
+
<key>6656</key>
|
124
|
+
<object>action</object>
|
125
|
+
</item>
|
126
|
+
<count>1</count>
|
127
|
+
</Action>
|
128
|
+
</data>
|
129
|
+
http_version:
|
130
|
+
recorded_at: Sat, 28 Dec 2013 02:59:27 GMT
|
131
|
+
recorded_with: VCR 2.8.0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salsa_labs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2.alpha
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geoff Harcourt
|
@@ -9,134 +9,120 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-12-
|
12
|
+
date: 2013-12-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dotenv
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '0'
|
20
|
+
version: '0.9'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '0'
|
27
|
+
version: '0.9'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: faraday
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '0'
|
34
|
+
version: '0.8'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '0'
|
41
|
+
version: '0.8'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: httparty
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - "
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '0'
|
48
|
+
version: '0.12'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - "
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '0'
|
55
|
+
version: '0.12'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: nokogiri
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - "
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
62
|
+
version: '1.5'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - "
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: fakeweb
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
73
|
-
requirements:
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '0'
|
77
|
-
type: :development
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - ">="
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '0'
|
69
|
+
version: '1.5'
|
84
70
|
- !ruby/object:Gem::Dependency
|
85
71
|
name: rspec
|
86
72
|
requirement: !ruby/object:Gem::Requirement
|
87
73
|
requirements:
|
88
|
-
- - "
|
74
|
+
- - "~>"
|
89
75
|
- !ruby/object:Gem::Version
|
90
|
-
version: '
|
76
|
+
version: '2.14'
|
91
77
|
type: :development
|
92
78
|
prerelease: false
|
93
79
|
version_requirements: !ruby/object:Gem::Requirement
|
94
80
|
requirements:
|
95
|
-
- - "
|
81
|
+
- - "~>"
|
96
82
|
- !ruby/object:Gem::Version
|
97
|
-
version: '
|
83
|
+
version: '2.14'
|
98
84
|
- !ruby/object:Gem::Dependency
|
99
85
|
name: simplecov
|
100
86
|
requirement: !ruby/object:Gem::Requirement
|
101
87
|
requirements:
|
102
|
-
- - "
|
88
|
+
- - "~>"
|
103
89
|
- !ruby/object:Gem::Version
|
104
|
-
version: '0'
|
90
|
+
version: '0.8'
|
105
91
|
type: :development
|
106
92
|
prerelease: false
|
107
93
|
version_requirements: !ruby/object:Gem::Requirement
|
108
94
|
requirements:
|
109
|
-
- - "
|
95
|
+
- - "~>"
|
110
96
|
- !ruby/object:Gem::Version
|
111
|
-
version: '0'
|
97
|
+
version: '0.8'
|
112
98
|
- !ruby/object:Gem::Dependency
|
113
99
|
name: vcr
|
114
100
|
requirement: !ruby/object:Gem::Requirement
|
115
101
|
requirements:
|
116
|
-
- - "
|
102
|
+
- - "~>"
|
117
103
|
- !ruby/object:Gem::Version
|
118
|
-
version: '
|
104
|
+
version: '2.8'
|
119
105
|
type: :development
|
120
106
|
prerelease: false
|
121
107
|
version_requirements: !ruby/object:Gem::Requirement
|
122
108
|
requirements:
|
123
|
-
- - "
|
109
|
+
- - "~>"
|
124
110
|
- !ruby/object:Gem::Version
|
125
|
-
version: '
|
111
|
+
version: '2.8'
|
126
112
|
- !ruby/object:Gem::Dependency
|
127
113
|
name: webmock
|
128
114
|
requirement: !ruby/object:Gem::Requirement
|
129
115
|
requirements:
|
130
|
-
- - "
|
116
|
+
- - "~>"
|
131
117
|
- !ruby/object:Gem::Version
|
132
|
-
version: '
|
118
|
+
version: '1.16'
|
133
119
|
type: :development
|
134
120
|
prerelease: false
|
135
121
|
version_requirements: !ruby/object:Gem::Requirement
|
136
122
|
requirements:
|
137
|
-
- - "
|
123
|
+
- - "~>"
|
138
124
|
- !ruby/object:Gem::Version
|
139
|
-
version: '
|
125
|
+
version: '1.16'
|
140
126
|
description: A Ruby binding for the Salsa Labs (http://salsalabs.com) API.
|
141
127
|
email:
|
142
128
|
- asheren@gmail.com
|
@@ -144,24 +130,27 @@ executables: []
|
|
144
130
|
extensions: []
|
145
131
|
extra_rdoc_files: []
|
146
132
|
files:
|
133
|
+
- ".gitignore"
|
134
|
+
- ".travis.yml"
|
147
135
|
- Gemfile
|
148
136
|
- Gemfile.lock
|
149
137
|
- LICENSE
|
150
138
|
- README.md
|
151
139
|
- Rakefile
|
152
|
-
- lib/salsa_labs
|
140
|
+
- lib/salsa_labs.rb
|
153
141
|
- lib/salsa_labs/action.rb
|
154
142
|
- lib/salsa_labs/actions_fetcher.rb
|
143
|
+
- lib/salsa_labs/api_client.rb
|
155
144
|
- lib/salsa_labs/salsa_object.rb
|
156
145
|
- lib/salsa_labs/version.rb
|
157
146
|
- salsa_labs.gemspec
|
158
|
-
- salsa_labs.rb
|
159
147
|
- spec/fixtures/getObjects.sjs_action.xml
|
160
148
|
- spec/salsa_labs/action_spec.rb
|
161
149
|
- spec/salsa_labs/actions_fetcher_spec.rb
|
162
150
|
- spec/salsa_labs/api_client_spec.rb
|
163
151
|
- spec/salsa_labs/salsa_object_spec.rb
|
164
152
|
- spec/spec_helper.rb
|
153
|
+
- spec/vcr_cassettes/get_objects/action.yml
|
165
154
|
- spec/vcr_cassettes/successful_authentication.yml
|
166
155
|
- spec/vcr_cassettes/unsuccessful_authentication.yml
|
167
156
|
homepage: http://github.com/geoffharcourt/ruby-salsa_labs
|
@@ -179,9 +168,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
179
168
|
version: '0'
|
180
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
170
|
requirements:
|
182
|
-
- - "
|
171
|
+
- - ">"
|
183
172
|
- !ruby/object:Gem::Version
|
184
|
-
version:
|
173
|
+
version: 1.3.1
|
185
174
|
requirements: []
|
186
175
|
rubyforge_project:
|
187
176
|
rubygems_version: 2.2.0
|
@@ -196,5 +185,6 @@ test_files:
|
|
196
185
|
- spec/salsa_labs/api_client_spec.rb
|
197
186
|
- spec/salsa_labs/salsa_object_spec.rb
|
198
187
|
- spec/spec_helper.rb
|
188
|
+
- spec/vcr_cassettes/get_objects/action.yml
|
199
189
|
- spec/vcr_cassettes/successful_authentication.yml
|
200
190
|
- spec/vcr_cassettes/unsuccessful_authentication.yml
|
File without changes
|
File without changes
|