campminder 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://beta-webapi.campminder.com/api/entity/person/getpersonidfromemail?email=andrew-tim@websitesthatdostuff.com
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization-Token:
11
+ - 1952015-07-20T18:49:49.396Z6628a875d20cee045f8c32054bddf5f596666131
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 403
17
+ message: Forbidden
18
+ headers:
19
+ Cache-Control:
20
+ - no-cache
21
+ Pragma:
22
+ - no-cache
23
+ Expires:
24
+ - "-1"
25
+ Server:
26
+ - Microsoft-IIS/7.5
27
+ X-Aspnet-Version:
28
+ - 4.0.30319
29
+ X-Powered-By:
30
+ - ASP.NET
31
+ Date:
32
+ - Mon, 20 Jul 2015 18:49:49 GMT
33
+ Connection:
34
+ - close
35
+ Content-Length:
36
+ - '0'
37
+ body:
38
+ encoding: UTF-8
39
+ string: ''
40
+ http_version:
41
+ recorded_at: Mon, 20 Jul 2015 18:49:49 GMT
42
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://webapi.campminder.com/api/customdata/telegraph/runsavedreportcsv?reportID=143986
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization-Token:
11
+ - 172014-09-04T15:07:53.985Z038a2c98aa51e5351cafa1fce60aedf6920a1524
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Cache-Control:
20
+ - no-cache
21
+ Pragma:
22
+ - no-cache
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ Expires:
26
+ - "-1"
27
+ Server:
28
+ - Microsoft-IIS/7.5
29
+ X-Aspnet-Version:
30
+ - 4.0.30319
31
+ X-Powered-By:
32
+ - ASP.NET
33
+ Date:
34
+ - Fri, 05 Sep 2014 15:07:55 GMT
35
+ Connection:
36
+ - close
37
+ Content-Length:
38
+ - '1212'
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"Result":"\"FIRSTNAME\",\"NICKNAME\",\"LASTNAME\",\"CMPERSONID\"\r\n\"Andrew\",\"Andrew\",\"Greene\",\"1180080\"\r\n\"awef\",\"\",\"awef\",\"4236000\"\r\n\"awefa\",\"awefa\",\"wefawef\",\"4274138\"\r\n\"Brandon\",\"Brandon\",\"Hushek\",\"3306855\"\r\n\"Bruce\",\"Batman\",\"Wayne\",\"3190523\"\r\n\"David\",\"david\",\"White\",\"1387715\"\r\n\"Elphons\",\"\",\"Rickards\",\"5014339\"\r\n\"Glee\",\"Gee\",\"Manui\",\"4696785\"\r\n\"Greg\",\"Greg\",\"Tollman\",\"1854674\"\r\n\"Hector\",\"\",\"Cruz\",\"4510906\"\r\n\"Holly\",\"Holly\",\"Kendrick\",\"3934961\"\r\n\"Hubris\",\"\",\"Wallis\",\"5165712\"\r\n\"Jim\",\"\",\"Halpert\",\"1977048\"\r\n\"Joey\",\"\",\"McBikerpants\",\"4531721\"\r\n\"Learta\",\"Lata\",\"Hasangjekaj\",\"1372771\"\r\n\"maximus\",\"\",\"gill\",\"4425012\"\r\n\"Melissa\",\"Melissa\",\"White\",\"1563624\"\r\n\"Mick\",\"Mick\",\"Anderson\",\"1456141\"\r\n\"Miles\",\"\",\"Knowles\",\"1180467\"\r\n\"NoName\",\"\",\"liz\",\"4113982\"\r\n\"Rich\",\"\",\"Rogers\",\"5014380\"\r\n\"Steven\",\"\",\"Spaxler\",\"4085978\"\r\n\"Susan\",\"Susan\",\"Halpert\",\"1977049\"\r\n\"Susie\",\"Susie\",\"Hushek\",\"3061681\"\r\n\"YearsBug\",\"\",\"White\",\"5079695\"\r\n","Success":true,"ErrorText":null}'
42
+ http_version:
43
+ recorded_at: Fri, 05 Sep 2014 15:07:56 GMT
44
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,45 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://webapi.campminder.com/api/customdata/telegraph/runsavedreportcsv?reportID=111000
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization-Token:
11
+ - 122014-09-05T15:07:56.312Z3e05f6d6e54fc55f0be70a3f9b6806d302c4cbe7
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Cache-Control:
20
+ - no-cache
21
+ Pragma:
22
+ - no-cache
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ Expires:
26
+ - "-1"
27
+ Server:
28
+ - Microsoft-IIS/7.5
29
+ X-Aspnet-Version:
30
+ - 4.0.30319
31
+ X-Powered-By:
32
+ - ASP.NET
33
+ Date:
34
+ - Fri, 05 Sep 2014 15:07:56 GMT
35
+ Connection:
36
+ - close
37
+ Content-Length:
38
+ - '99'
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"Result":null,"Success":false,"ErrorText":"Object reference not set
42
+ to an instance of an object."}'
43
+ http_version:
44
+ recorded_at: Fri, 05 Sep 2014 15:07:56 GMT
45
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://webapi.campminder.com/api/customdata/telegraph/runsavedreportcsv?reportID=143986
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization-Token:
11
+ - 92014-09-05T15:07:56.636Z9e5d241bd74d62ad502b2977ee839a66b602b0b9
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 403
17
+ message: Forbidden
18
+ headers:
19
+ Cache-Control:
20
+ - no-cache
21
+ Pragma:
22
+ - no-cache
23
+ Expires:
24
+ - "-1"
25
+ Server:
26
+ - Microsoft-IIS/7.5
27
+ X-Aspnet-Version:
28
+ - 4.0.30319
29
+ X-Powered-By:
30
+ - ASP.NET
31
+ Date:
32
+ - Fri, 05 Sep 2014 15:07:56 GMT
33
+ Connection:
34
+ - close
35
+ Content-Length:
36
+ - '0'
37
+ body:
38
+ encoding: UTF-8
39
+ string: ''
40
+ http_version:
41
+ recorded_at: Fri, 05 Sep 2014 15:07:56 GMT
42
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,67 @@
1
+ # Enable code coverage test.
2
+ require 'simplecov'
3
+ SimpleCov.start
4
+
5
+ require 'campminder'
6
+ require 'vcr'
7
+
8
+ RSpec.configure do |config|
9
+
10
+ # These two settings work together to allow you to limit a spec run
11
+ # to individual examples or groups you care about by tagging them with
12
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
13
+ # get run.
14
+ config.filter_run :focus
15
+ config.run_all_when_everything_filtered = true
16
+
17
+ # Many RSpec users commonly either run the entire suite or an individual
18
+ # file, and it's useful to allow more verbose output when running an
19
+ # individual spec file.
20
+ #if config.files_to_run.one?
21
+ # Use the documentation formatter for detailed output,
22
+ # unless a formatter has already been configured
23
+ # (e.g. via a command-line flag).
24
+ config.default_formatter = 'doc'
25
+ #end
26
+
27
+ # Print the 10 slowest examples and example groups at the
28
+ # end of the spec run, to help surface which specs are running
29
+ # particularly slow.
30
+ # config.profile_examples = 10
31
+
32
+ # Run specs in random order to surface order dependencies. If you find an
33
+ # order dependency and want to debug it, you can fix the order by providing
34
+ # the seed, which is printed after each run.
35
+ # --seed 1234
36
+ config.order = :random
37
+
38
+ # Seed global randomization in this process using the `--seed` CLI option.
39
+ # Setting this allows you to use `--seed` to deterministically reproduce
40
+ # test failures related to randomization by passing the same `--seed` value
41
+ # as the one that triggered the failure.
42
+ # Kernel.srand config.seed
43
+
44
+ # rspec-expectations config goes here. You can use an alternate
45
+ # assertion/expectation library such as wrong or the stdlib/minitest
46
+ # assertions if you prefer.
47
+ config.expect_with :rspec do |expectations|
48
+ # Enable only the newer, non-monkey-patching expect syntax.
49
+ # For more details, see:
50
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
51
+ expectations.syntax = :expect
52
+ end
53
+
54
+ # rspec-mocks config goes here. You can use an alternate test double
55
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
56
+ config.mock_with :rspec do |mocks|
57
+ # Enable only the newer, non-monkey-patching expect syntax.
58
+ # For more details, see:
59
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
60
+ mocks.syntax = :expect
61
+
62
+ # Prevents you from mocking or stubbing a method that does not exist on
63
+ # a real object. This is generally recommended.
64
+ mocks.verify_partial_doubles = true
65
+ end
66
+
67
+ end
metadata ADDED
@@ -0,0 +1,261 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: campminder
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Andrew Anderson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-08-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.1'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 10.1.0
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '10.1'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 10.1.0
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '3.0'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 3.0.0
57
+ type: :development
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: '3.0'
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 3.0.0
67
+ - !ruby/object:Gem::Dependency
68
+ name: simplecov
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: 0.9.0
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: 0.9.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.9.0
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: 0.9.0
87
+ - !ruby/object:Gem::Dependency
88
+ name: fuubar
89
+ requirement: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - "~>"
92
+ - !ruby/object:Gem::Version
93
+ version: 2.0.0
94
+ type: :development
95
+ prerelease: false
96
+ version_requirements: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - "~>"
99
+ - !ruby/object:Gem::Version
100
+ version: 2.0.0
101
+ - !ruby/object:Gem::Dependency
102
+ name: webmock
103
+ requirement: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - "~>"
106
+ - !ruby/object:Gem::Version
107
+ version: '1.18'
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 1.18.0
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.18'
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: 1.18.0
121
+ - !ruby/object:Gem::Dependency
122
+ name: vcr
123
+ requirement: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - "~>"
126
+ - !ruby/object:Gem::Version
127
+ version: '2.9'
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: 2.9.2
131
+ type: :development
132
+ prerelease: false
133
+ version_requirements: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: '2.9'
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: 2.9.2
141
+ - !ruby/object:Gem::Dependency
142
+ name: byebug
143
+ requirement: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
148
+ type: :development
149
+ prerelease: false
150
+ version_requirements: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ - !ruby/object:Gem::Dependency
156
+ name: json
157
+ requirement: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - "~>"
160
+ - !ruby/object:Gem::Version
161
+ version: '1.8'
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: 1.8.1
165
+ type: :runtime
166
+ prerelease: false
167
+ version_requirements: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - "~>"
170
+ - !ruby/object:Gem::Version
171
+ version: '1.8'
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: 1.8.1
175
+ - !ruby/object:Gem::Dependency
176
+ name: httparty
177
+ requirement: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: '0.11'
182
+ type: :runtime
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - "~>"
187
+ - !ruby/object:Gem::Version
188
+ version: '0.11'
189
+ description: Wrapper for CampMinder API.
190
+ email:
191
+ - andrew@websitesthatdostuff.com
192
+ executables: []
193
+ extensions: []
194
+ extra_rdoc_files: []
195
+ files:
196
+ - ".gitignore"
197
+ - ".ruby-version"
198
+ - Gemfile
199
+ - Gemfile.lock
200
+ - Guardfile
201
+ - HISTORY.md
202
+ - LICENSE.txt
203
+ - README.md
204
+ - RELEASE.md
205
+ - Rakefile
206
+ - campminder-ruby.gemspec
207
+ - lib/campminder.rb
208
+ - lib/campminder/campminder.rb
209
+ - lib/campminder/parser.rb
210
+ - lib/campminder/version.rb
211
+ - spec/campminder_spec.rb
212
+ - spec/fixtures/vcr_cassettes/add_custom_field_data.yml
213
+ - spec/fixtures/vcr_cassettes/add_new_lead_simple.yml
214
+ - spec/fixtures/vcr_cassettes/get_telegraph_reports.yml
215
+ - spec/fixtures/vcr_cassettes/get_telegraph_reports_invalid_token.yml
216
+ - spec/fixtures/vcr_cassettes/login.yml
217
+ - spec/fixtures/vcr_cassettes/retrieve_user_id.yml
218
+ - spec/fixtures/vcr_cassettes/retrieve_user_id_invalid_email.yml
219
+ - spec/fixtures/vcr_cassettes/retrieve_user_id_invalid_token.yml
220
+ - spec/fixtures/vcr_cassettes/run_report.yml
221
+ - spec/fixtures/vcr_cassettes/run_report_invalid_id.yml
222
+ - spec/fixtures/vcr_cassettes/run_report_invalid_token.yml
223
+ - spec/spec_helper.rb
224
+ homepage: https://bitbucket.org/ronningendesign/campminder-ruby
225
+ licenses:
226
+ - MIT
227
+ metadata: {}
228
+ post_install_message:
229
+ rdoc_options: []
230
+ require_paths:
231
+ - lib
232
+ required_ruby_version: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: 1.9.3
237
+ required_rubygems_version: !ruby/object:Gem::Requirement
238
+ requirements:
239
+ - - ">="
240
+ - !ruby/object:Gem::Version
241
+ version: '0'
242
+ requirements: []
243
+ rubyforge_project:
244
+ rubygems_version: 2.2.2
245
+ signing_key:
246
+ specification_version: 4
247
+ summary: A library to wrap the CampMinder API in Ruby.
248
+ test_files:
249
+ - spec/campminder_spec.rb
250
+ - spec/fixtures/vcr_cassettes/add_custom_field_data.yml
251
+ - spec/fixtures/vcr_cassettes/add_new_lead_simple.yml
252
+ - spec/fixtures/vcr_cassettes/get_telegraph_reports.yml
253
+ - spec/fixtures/vcr_cassettes/get_telegraph_reports_invalid_token.yml
254
+ - spec/fixtures/vcr_cassettes/login.yml
255
+ - spec/fixtures/vcr_cassettes/retrieve_user_id.yml
256
+ - spec/fixtures/vcr_cassettes/retrieve_user_id_invalid_email.yml
257
+ - spec/fixtures/vcr_cassettes/retrieve_user_id_invalid_token.yml
258
+ - spec/fixtures/vcr_cassettes/run_report.yml
259
+ - spec/fixtures/vcr_cassettes/run_report_invalid_id.yml
260
+ - spec/fixtures/vcr_cassettes/run_report_invalid_token.yml
261
+ - spec/spec_helper.rb