poptart 0.0.7 → 0.0.8
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/Gemfile.lock +1 -1
- data/README.md +28 -4
- data/lib/poptart/boolean_question.rb +14 -0
- data/lib/poptart/multiple_response_question.rb +9 -0
- data/lib/poptart/question.rb +14 -1
- data/lib/poptart/range_question.rb +9 -0
- data/lib/poptart/survey.rb +3 -1
- data/lib/poptart/user.rb +0 -5
- data/lib/poptart.rb +3 -0
- data/lib/version.rb +1 -1
- data/spec/requests/answering_survey_questions_spec.rb +2 -6
- data/spec/requests/answers_spec.rb +24 -0
- data/spec/requests/creating_questions_spec.rb +29 -0
- data/spec/vcr/answering/survey_questions_answers_a_multiple_choice_question.yml +381 -154
- data/spec/vcr/answering/survey_questions_answers_a_survey_question.yml +528 -329
- data/spec/vcr/creating/quesitons_returns_boolean_question.yml +207 -0
- data/spec/vcr/creating/quesitons_returns_multiple_question.yml +207 -0
- data/spec/vcr/creating/quesitons_returns_range_question.yml +206 -0
- data/spec/vcr/retrieving/answers_returns_answers.yml +1073 -0
- data/spec/vcr/retrieving/responses_returns_responses.yml +1198 -0
- metadata +19 -2
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poptart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Austen Ito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -209,8 +209,11 @@ files:
|
|
209
209
|
- Rakefile
|
210
210
|
- lib/poptart.rb
|
211
211
|
- lib/poptart/.DS_Store
|
212
|
+
- lib/poptart/boolean_question.rb
|
212
213
|
- lib/poptart/model.rb
|
214
|
+
- lib/poptart/multiple_response_question.rb
|
213
215
|
- lib/poptart/question.rb
|
216
|
+
- lib/poptart/range_question.rb
|
214
217
|
- lib/poptart/request.rb
|
215
218
|
- lib/poptart/root.rb
|
216
219
|
- lib/poptart/survey.rb
|
@@ -219,6 +222,8 @@ files:
|
|
219
222
|
- lib/version.rb
|
220
223
|
- poptart.gemspec
|
221
224
|
- spec/requests/answering_survey_questions_spec.rb
|
225
|
+
- spec/requests/answers_spec.rb
|
226
|
+
- spec/requests/creating_questions_spec.rb
|
222
227
|
- spec/requests/root_spec.rb
|
223
228
|
- spec/requests/user_management_spec.rb
|
224
229
|
- spec/spec_helper.rb
|
@@ -228,9 +233,14 @@ files:
|
|
228
233
|
- spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml
|
229
234
|
- spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml
|
230
235
|
- spec/vcr/answering/survey_questions_returns_all_answered_survey_questions_for_a_question.yml
|
236
|
+
- spec/vcr/creating/quesitons_returns_boolean_question.yml
|
237
|
+
- spec/vcr/creating/quesitons_returns_multiple_question.yml
|
238
|
+
- spec/vcr/creating/quesitons_returns_range_question.yml
|
231
239
|
- spec/vcr/poptart/root/builds_top_level_uri.yml
|
232
240
|
- spec/vcr/poptart/root/builds_urls.yml
|
233
241
|
- spec/vcr/poptart/root/returns_survey_links.yml
|
242
|
+
- spec/vcr/retrieving/answers_returns_answers.yml
|
243
|
+
- spec/vcr/retrieving/responses_returns_responses.yml
|
234
244
|
- spec/vcr/user/management_creates_a_user.yml
|
235
245
|
- spec/vcr/user/management_returns_a_user.yml
|
236
246
|
- tags
|
@@ -260,6 +270,8 @@ specification_version: 4
|
|
260
270
|
summary: The API client gem for the happines service
|
261
271
|
test_files:
|
262
272
|
- spec/requests/answering_survey_questions_spec.rb
|
273
|
+
- spec/requests/answers_spec.rb
|
274
|
+
- spec/requests/creating_questions_spec.rb
|
263
275
|
- spec/requests/root_spec.rb
|
264
276
|
- spec/requests/user_management_spec.rb
|
265
277
|
- spec/spec_helper.rb
|
@@ -269,8 +281,13 @@ test_files:
|
|
269
281
|
- spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml
|
270
282
|
- spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml
|
271
283
|
- spec/vcr/answering/survey_questions_returns_all_answered_survey_questions_for_a_question.yml
|
284
|
+
- spec/vcr/creating/quesitons_returns_boolean_question.yml
|
285
|
+
- spec/vcr/creating/quesitons_returns_multiple_question.yml
|
286
|
+
- spec/vcr/creating/quesitons_returns_range_question.yml
|
272
287
|
- spec/vcr/poptart/root/builds_top_level_uri.yml
|
273
288
|
- spec/vcr/poptart/root/builds_urls.yml
|
274
289
|
- spec/vcr/poptart/root/returns_survey_links.yml
|
290
|
+
- spec/vcr/retrieving/answers_returns_answers.yml
|
291
|
+
- spec/vcr/retrieving/responses_returns_responses.yml
|
275
292
|
- spec/vcr/user/management_creates_a_user.yml
|
276
293
|
- spec/vcr/user/management_returns_a_user.yml
|