poptart 0.0.1

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.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +22 -0
  3. data/.rspec +1 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +3 -0
  6. data/Gemfile +3 -0
  7. data/Gemfile.lock +88 -0
  8. data/README.md +0 -0
  9. data/Rakefile +18 -0
  10. data/lib/poptart/.DS_Store +0 -0
  11. data/lib/poptart/model.rb +17 -0
  12. data/lib/poptart/question.rb +19 -0
  13. data/lib/poptart/request.rb +48 -0
  14. data/lib/poptart/root.rb +11 -0
  15. data/lib/poptart/survey.rb +37 -0
  16. data/lib/poptart/survey_question.rb +42 -0
  17. data/lib/poptart/user.rb +46 -0
  18. data/lib/poptart.rb +22 -0
  19. data/lib/version.rb +3 -0
  20. data/poptart.gemspec +31 -0
  21. data/spec/requests/answering_survey_questions_spec.rb +56 -0
  22. data/spec/requests/root_spec.rb +8 -0
  23. data/spec/requests/user_management_spec.rb +17 -0
  24. data/spec/spec_helper.rb +68 -0
  25. data/spec/vcr/answering/survey_questions_answers_a_survey_question.yml +1588 -0
  26. data/spec/vcr/answering/survey_questions_creates_and_returns_a_random_question_survey.yml +330 -0
  27. data/spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml +272 -0
  28. data/spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml +330 -0
  29. data/spec/vcr/poptart/root/returns_survey_links.yml +72 -0
  30. data/spec/vcr/poptart/user/answers_a_survey_question.yml +1580 -0
  31. data/spec/vcr/poptart/user/creates_a_user.yml +135 -0
  32. data/spec/vcr/poptart/user/creates_and_returns_a_random_question_survey.yml +341 -0
  33. data/spec/vcr/poptart/user/creates_and_returns_an_empty_survey.yml +272 -0
  34. data/spec/vcr/poptart/user/finds_survey_question_for_id.yml +327 -0
  35. data/spec/vcr/poptart/user/returns_a_user.yml +267 -0
  36. data/spec/vcr/user/management_creates_a_user.yml +135 -0
  37. data/spec/vcr/user/management_returns_a_user.yml +267 -0
  38. data/tags +72 -0
  39. metadata +266 -0
data/tags ADDED
@@ -0,0 +1,72 @@
1
+ !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
2
+ !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
3
+ !_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
4
+ !_TAG_PROGRAM_NAME Exuberant Ctags //
5
+ !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
6
+ !_TAG_PROGRAM_VERSION 5.8 //
7
+ Cli lib/resty/cli.rb /^ class Cli$/;" c class:Resty
8
+ Command lib/resty/override_pry_help.rb /^ class Command::Help < Pry::ClassCommand$/;" c class:Pry
9
+ ConfigFileError lib/resty/options.rb /^ class ConfigFileError < StandardError; end$/;" c class:Resty
10
+ Options lib/resty/options.rb /^ class Options$/;" c class:Resty
11
+ PrettyPrinter lib/resty/pretty_printer.rb /^ class PrettyPrinter$/;" c class:Resty
12
+ Pry lib/resty/override_pry_help.rb /^class Pry$/;" c
13
+ Repl lib/resty/repl.rb /^ class Repl$/;" c class:Resty
14
+ Request lib/resty/request.rb /^ class Request$/;" c class:Resty
15
+ Resty lib/resty.rb /^module Resty$/;" m
16
+ Resty lib/resty/cli.rb /^module Resty$/;" m
17
+ Resty lib/resty/options.rb /^module Resty$/;" m
18
+ Resty lib/resty/pretty_printer.rb /^module Resty$/;" m
19
+ Resty lib/resty/repl.rb /^module Resty$/;" m
20
+ Resty lib/resty/request.rb /^module Resty$/;" m
21
+ Resty lib/version.rb /^module Resty$/;" m
22
+ String spec/spec_helper.rb /^class String$/;" c
23
+ basic_auth_invalid? lib/resty/cli.rb /^ def basic_auth_invalid?(options)$/;" f class:Resty.Cli
24
+ build_data lib/resty/commands/method_command.rb /^ def build_data$/;" f
25
+ build_line lib/resty/pretty_printer.rb /^ def build_line(line)$/;" f class:Resty.PrettyPrinter
26
+ build_pair lib/resty/options.rb /^ def self.build_pair(header)$/;" F class:Resty.Options
27
+ data lib/resty/commands/method_command.rb /^ def data$/;" f
28
+ data lib/resty/request.rb /^ def data$/;" f class:Resty.Request
29
+ data_invalid? lib/resty/commands/method_command.rb /^ def data_invalid?$/;" f
30
+ data_required lib/resty/request.rb /^ def self.data_required?(method)$/;" F class:Resty.Request
31
+ eval_response lib/resty/commands/method_command.rb /^ def eval_response(response)$/;" f
32
+ eval_ruby lib/resty/commands/method_command.rb /^ def eval_ruby(input)$/;" f
33
+ generate lib/resty/pretty_printer.rb /^ def generate $/;" f class:Resty.PrettyPrinter
34
+ global_options lib/resty/commands/method_command.rb /^ def global_options$/;" f
35
+ headers lib/resty/options.rb /^ def headers$/;" f class:Resty.Options
36
+ help_text_for_commands lib/resty/override_pry_help.rb /^ def help_text_for_commands(name, commands)$/;" f class:Pry.Command
37
+ host lib/resty/options.rb /^ def host$/;" f class:Resty.Options
38
+ host_alias lib/resty/options.rb /^ def host_alias$/;" f class:Resty.Options
39
+ http_method lib/resty/commands/method_command.rb /^ def http_method$/;" f
40
+ initialize lib/resty/options.rb /^ def initialize(options)$/;" f class:Resty.Options
41
+ initialize lib/resty/pretty_printer.rb /^ def initialize(options, params)$/;" f class:Resty.PrettyPrinter
42
+ initialize lib/resty/repl.rb /^ def initialize(resty_options)$/;" f class:Resty.Repl
43
+ initialize lib/resty/request.rb /^ def initialize(global_options, params)$/;" f class:Resty.Request
44
+ load_config_file lib/resty/options.rb /^ def load_config_file$/;" f class:Resty.Options
45
+ method lib/resty/request.rb /^ def method$/;" f class:Resty.Request
46
+ missing_host_or_alias? lib/resty/cli.rb /^ def missing_host_or_alias?(options)$/;" f class:Resty.Cli
47
+ options lib/resty/commands/method_command.rb /^ def options(opt)$/;" f
48
+ parse_headers lib/resty/options.rb /^ def self.parse_headers(headers)$/;" F class:Resty.Options
49
+ parse_json lib/resty/commands/method_command.rb /^ def parse_json(input)$/;" f
50
+ password lib/resty/options.rb /^ def password$/;" f class:Resty.Options
51
+ path lib/resty/commands/method_command.rb /^ def path$/;" f
52
+ path lib/resty/request.rb /^ def path$/;" f class:Resty.Request
53
+ path_missing? lib/resty/commands/method_command.rb /^ def path_missing?$/;" f
54
+ pretty_print_response lib/resty/pretty_printer.rb /^ def pretty_print_response(response)$/;" f class:Resty.PrettyPrinter
55
+ process lib/resty/commands/method_command.rb /^ def process$/;" f
56
+ read_config_file lib/resty/options.rb /^ def read_config_file$/;" f class:Resty.Options
57
+ readline lib/resty/repl.rb /^ def readline(current_prompt)$/;" f class:Resty.Repl
58
+ request lib/resty/pretty_printer.rb /^ def request$/;" f class:Resty.PrettyPrinter
59
+ request_headers lib/resty/commands/method_command.rb /^ def request_headers$/;" f
60
+ request_options lib/resty/request.rb /^ def request_options$/;" f class:Resty.Request
61
+ response lib/resty/pretty_printer.rb /^ def response$/;" f class:Resty.PrettyPrinter
62
+ run lib/resty/cli.rb /^ def run$/;" f class:Resty.Cli
63
+ send_request lib/resty/request.rb /^ def send_request(options = {})$/;" f class:Resty.Request
64
+ setup lib/resty/commands/method_command.rb /^ def setup$/;" f
65
+ start lib/resty/repl.rb /^ def self.start(resty_options)$/;" F class:Resty.Repl
66
+ unindent spec/spec_helper.rb /^ def unindent$/;" f class:String
67
+ url lib/resty/request.rb /^ def url$/;" f class:Resty.Request
68
+ username lib/resty/options.rb /^ def username$/;" f class:Resty.Options
69
+ validate_config_entries lib/resty/options.rb /^ def validate_config_entries(config)$/;" f class:Resty.Options
70
+ verbose? lib/resty/options.rb /^ def verbose?$/;" f class:Resty.Options
71
+ verbose? lib/resty/pretty_printer.rb /^ def verbose?$/;" f class:Resty.PrettyPrinter
72
+ visible_commands lib/resty/override_pry_help.rb /^ def visible_commands$/;" f class:Pry.Command
metadata ADDED
@@ -0,0 +1,266 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: poptart
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Austen Ito
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-05-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.2.13
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.2.13
27
+ - !ruby/object:Gem::Dependency
28
+ name: hashie
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: faraday
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bourne
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 1.5.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 1.5.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: guard
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard-rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: mocha
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.14.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.14.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rake
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: vcr
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: webmock
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ description: The API client gem for the happines service
182
+ email:
183
+ - austen.dev@gmail.com
184
+ executables: []
185
+ extensions: []
186
+ extra_rdoc_files: []
187
+ files:
188
+ - ".gitignore"
189
+ - ".rspec"
190
+ - ".ruby-version"
191
+ - ".travis.yml"
192
+ - Gemfile
193
+ - Gemfile.lock
194
+ - README.md
195
+ - Rakefile
196
+ - lib/poptart.rb
197
+ - lib/poptart/.DS_Store
198
+ - lib/poptart/model.rb
199
+ - lib/poptart/question.rb
200
+ - lib/poptart/request.rb
201
+ - lib/poptart/root.rb
202
+ - lib/poptart/survey.rb
203
+ - lib/poptart/survey_question.rb
204
+ - lib/poptart/user.rb
205
+ - lib/version.rb
206
+ - poptart.gemspec
207
+ - spec/requests/answering_survey_questions_spec.rb
208
+ - spec/requests/root_spec.rb
209
+ - spec/requests/user_management_spec.rb
210
+ - spec/spec_helper.rb
211
+ - spec/vcr/answering/survey_questions_answers_a_survey_question.yml
212
+ - spec/vcr/answering/survey_questions_creates_and_returns_a_random_question_survey.yml
213
+ - spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml
214
+ - spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml
215
+ - spec/vcr/poptart/root/returns_survey_links.yml
216
+ - spec/vcr/poptart/user/answers_a_survey_question.yml
217
+ - spec/vcr/poptart/user/creates_a_user.yml
218
+ - spec/vcr/poptart/user/creates_and_returns_a_random_question_survey.yml
219
+ - spec/vcr/poptart/user/creates_and_returns_an_empty_survey.yml
220
+ - spec/vcr/poptart/user/finds_survey_question_for_id.yml
221
+ - spec/vcr/poptart/user/returns_a_user.yml
222
+ - spec/vcr/user/management_creates_a_user.yml
223
+ - spec/vcr/user/management_returns_a_user.yml
224
+ - tags
225
+ homepage: https://github.com/austenito/poptart
226
+ licenses:
227
+ - MIT
228
+ metadata: {}
229
+ post_install_message:
230
+ rdoc_options: []
231
+ require_paths:
232
+ - lib
233
+ required_ruby_version: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - ">="
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
238
+ required_rubygems_version: !ruby/object:Gem::Requirement
239
+ requirements:
240
+ - - ">="
241
+ - !ruby/object:Gem::Version
242
+ version: '0'
243
+ requirements: []
244
+ rubyforge_project:
245
+ rubygems_version: 2.2.2
246
+ signing_key:
247
+ specification_version: 4
248
+ summary: The API client gem for the happines service
249
+ test_files:
250
+ - spec/requests/answering_survey_questions_spec.rb
251
+ - spec/requests/root_spec.rb
252
+ - spec/requests/user_management_spec.rb
253
+ - spec/spec_helper.rb
254
+ - spec/vcr/answering/survey_questions_answers_a_survey_question.yml
255
+ - spec/vcr/answering/survey_questions_creates_and_returns_a_random_question_survey.yml
256
+ - spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml
257
+ - spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml
258
+ - spec/vcr/poptart/root/returns_survey_links.yml
259
+ - spec/vcr/poptart/user/answers_a_survey_question.yml
260
+ - spec/vcr/poptart/user/creates_a_user.yml
261
+ - spec/vcr/poptart/user/creates_and_returns_a_random_question_survey.yml
262
+ - spec/vcr/poptart/user/creates_and_returns_an_empty_survey.yml
263
+ - spec/vcr/poptart/user/finds_survey_question_for_id.yml
264
+ - spec/vcr/poptart/user/returns_a_user.yml
265
+ - spec/vcr/user/management_creates_a_user.yml
266
+ - spec/vcr/user/management_returns_a_user.yml