openstax_exchange 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. data/.gitignore +15 -0
  2. data/.rspec +1 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +8 -0
  6. data/Gemfile +4 -0
  7. data/MIT-LICENSE +3 -1
  8. data/README.md +58 -20
  9. data/Rakefile +5 -13
  10. data/exchange-client.gemspec +30 -0
  11. data/lib/openstax/exchange/client_instance.rb +23 -0
  12. data/lib/openstax/exchange/configuration.rb +12 -0
  13. data/lib/openstax/exchange/exceptions.rb +21 -0
  14. data/lib/openstax/exchange/exchange.rb +65 -0
  15. data/lib/openstax/exchange/fake_client/configuration.rb +13 -0
  16. data/lib/openstax/exchange/fake_client/fake_client.rb +71 -0
  17. data/lib/openstax/exchange/real_client/real_client.rb +76 -0
  18. data/lib/openstax/exchange/version.rb +1 -1
  19. data/lib/openstax_exchange.rb +8 -112
  20. data/spec/cassettes/OpenStax_Exchange/client_instance_configuration/can_be_configured_to_use_a_real_exchange_client.yml +48 -0
  21. data/spec/cassettes/OpenStax_Exchange/internal_client_instance/_client_defaults_to_a_real_exchange_client.yml +48 -0
  22. data/spec/cassettes/OpenStax_Exchange/internal_client_instance/_reset_causes_a_new_client_object_to_be_returned_by_client.yml +48 -0
  23. data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_create_identifier/success/creates_a_distinct_identifer_per_invokation.yml +146 -0
  24. data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_create_identifier/success/creates_and_returns_a_new_identifier.yml +97 -0
  25. data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_initialize/invalid_platform_id/raises_an_exception.yml +52 -0
  26. data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_initialize/invalid_platform_secret/raises_an_exception.yml +52 -0
  27. data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_initialize/success/initializes_the_authentication_token.yml +48 -0
  28. data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/duplicate_identifer_resource_trial_triplet/raises_an_exception.yml +194 -0
  29. data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/invalid_resource_string/raises_an_exception.yml +145 -0
  30. data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/success/allows_answers_with_distinct_identifiers_to_be_saved.yml +244 -0
  31. data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/success/allows_answers_with_distinct_resources_to_be_saved.yml +195 -0
  32. data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/success/allows_answers_with_distinct_trials_to_be_saved.yml +195 -0
  33. data/spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/success/creates_a_multiple_choice_answer_associated_with_the_given_identifier.yml +146 -0
  34. data/spec/lib/openstax/exchange/client_configuration_spec.rb +58 -0
  35. data/spec/lib/openstax/exchange/fake_client_v1_spec.rb +14 -0
  36. data/spec/lib/openstax/exchange/real_client_v1_spec.rb +9 -0
  37. data/spec/lib/openstax/exchange/shared_examples_for_exchange_client_v1.rb +208 -0
  38. data/spec/spec_helper.rb +52 -38
  39. metadata +97 -100
  40. checksums.yaml +0 -15
  41. data/spec/dummy/README.md +0 -1
  42. data/spec/dummy/Rakefile +0 -7
  43. data/spec/dummy/app/assets/javascripts/application.js +0 -15
  44. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  45. data/spec/dummy/app/controllers/api/dummy_controller.rb +0 -11
  46. data/spec/dummy/app/controllers/api/events_controller.rb +0 -7
  47. data/spec/dummy/app/controllers/application_controller.rb +0 -7
  48. data/spec/dummy/app/controllers/oauth_controller.rb +0 -8
  49. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  50. data/spec/dummy/config.ru +0 -4
  51. data/spec/dummy/config/application.rb +0 -55
  52. data/spec/dummy/config/boot.rb +0 -10
  53. data/spec/dummy/config/database.yml +0 -25
  54. data/spec/dummy/config/environment.rb +0 -5
  55. data/spec/dummy/config/environments/development.rb +0 -29
  56. data/spec/dummy/config/environments/production.rb +0 -69
  57. data/spec/dummy/config/environments/test.rb +0 -35
  58. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  59. data/spec/dummy/config/initializers/inflections.rb +0 -15
  60. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  61. data/spec/dummy/config/initializers/openstax_exchange.rb +0 -10
  62. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  63. data/spec/dummy/config/initializers/session_store.rb +0 -8
  64. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  65. data/spec/dummy/config/locales/en.yml +0 -5
  66. data/spec/dummy/config/routes.rb +0 -11
  67. data/spec/dummy/db/development.sqlite3 +0 -0
  68. data/spec/dummy/db/schema.rb +0 -16
  69. data/spec/dummy/db/test.sqlite3 +0 -0
  70. data/spec/dummy/log/development.log +0 -929
  71. data/spec/dummy/log/test.log +0 -46753
  72. data/spec/dummy/public/404.html +0 -26
  73. data/spec/dummy/public/422.html +0 -26
  74. data/spec/dummy/public/500.html +0 -25
  75. data/spec/dummy/public/favicon.ico +0 -0
  76. data/spec/dummy/script/rails +0 -6
  77. data/spec/lib/openstax_exchange_spec.rb +0 -23
metadata CHANGED
@@ -1,19 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_exchange
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
- - JP Slavinsky
8
- - Dante Soares
8
+ - Kevin Burleigh
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-22 00:00:00.000000000 Z
12
+ date: 2015-01-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth2
16
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
17
18
  requirements:
18
19
  - - ! '>='
19
20
  - !ruby/object:Gem::Version
@@ -21,41 +22,47 @@ dependencies:
21
22
  type: :runtime
22
23
  prerelease: false
23
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ! '>='
26
28
  - !ruby/object:Gem::Version
27
29
  version: 0.5.0
28
30
  - !ruby/object:Gem::Dependency
29
- name: rails
31
+ name: bundler
30
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
31
34
  requirements:
32
- - - ! '>='
35
+ - - ~>
33
36
  - !ruby/object:Gem::Version
34
- version: '3.1'
37
+ version: '1.7'
35
38
  type: :development
36
39
  prerelease: false
37
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
- - - ! '>='
43
+ - - ~>
40
44
  - !ruby/object:Gem::Version
41
- version: '3.1'
45
+ version: '1.7'
42
46
  - !ruby/object:Gem::Dependency
43
- name: sqlite3
47
+ name: rake
44
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
45
50
  requirements:
46
- - - ! '>='
51
+ - - ~>
47
52
  - !ruby/object:Gem::Version
48
- version: '0'
53
+ version: '10.0'
49
54
  type: :development
50
55
  prerelease: false
51
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
52
58
  requirements:
53
- - - ! '>='
59
+ - - ~>
54
60
  - !ruby/object:Gem::Version
55
- version: '0'
61
+ version: '10.0'
56
62
  - !ruby/object:Gem::Dependency
57
- name: rspec-rails
63
+ name: rspec
58
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
59
66
  requirements:
60
67
  - - ! '>='
61
68
  - !ruby/object:Gem::Version
@@ -63,13 +70,15 @@ dependencies:
63
70
  type: :development
64
71
  prerelease: false
65
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
66
74
  requirements:
67
75
  - - ! '>='
68
76
  - !ruby/object:Gem::Version
69
77
  version: '0'
70
78
  - !ruby/object:Gem::Dependency
71
- name: capybara
79
+ name: simplecov
72
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
73
82
  requirements:
74
83
  - - ! '>='
75
84
  - !ruby/object:Gem::Version
@@ -77,13 +86,15 @@ dependencies:
77
86
  type: :development
78
87
  prerelease: false
79
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
80
90
  requirements:
81
91
  - - ! '>='
82
92
  - !ruby/object:Gem::Version
83
93
  version: '0'
84
94
  - !ruby/object:Gem::Dependency
85
- name: quiet_assets
95
+ name: vcr
86
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
87
98
  requirements:
88
99
  - - ! '>='
89
100
  - !ruby/object:Gem::Version
@@ -91,13 +102,15 @@ dependencies:
91
102
  type: :development
92
103
  prerelease: false
93
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
94
106
  requirements:
95
107
  - - ! '>='
96
108
  - !ruby/object:Gem::Version
97
109
  version: '0'
98
110
  - !ruby/object:Gem::Dependency
99
- name: thin
111
+ name: webmock
100
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
101
114
  requirements:
102
115
  - - ! '>='
103
116
  - !ruby/object:Gem::Version
@@ -105,120 +118,104 @@ dependencies:
105
118
  type: :development
106
119
  prerelease: false
107
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
108
122
  requirements:
109
123
  - - ! '>='
110
124
  - !ruby/object:Gem::Version
111
125
  version: '0'
112
- description: Ruby common code and bindings and for the 'Exchange' API
126
+ description: ''
113
127
  email:
114
- - jps@kindlinglabs.com
115
- - dms3@rice.edu
128
+ - klb@kindlinglabs
116
129
  executables: []
117
130
  extensions: []
118
131
  extra_rdoc_files: []
119
132
  files:
133
+ - .gitignore
134
+ - .rspec
135
+ - .ruby-gemset
136
+ - .ruby-version
137
+ - .travis.yml
138
+ - Gemfile
120
139
  - MIT-LICENSE
121
140
  - README.md
122
141
  - Rakefile
142
+ - exchange-client.gemspec
143
+ - lib/openstax/exchange/client_instance.rb
144
+ - lib/openstax/exchange/configuration.rb
145
+ - lib/openstax/exchange/exceptions.rb
146
+ - lib/openstax/exchange/exchange.rb
147
+ - lib/openstax/exchange/fake_client/configuration.rb
148
+ - lib/openstax/exchange/fake_client/fake_client.rb
149
+ - lib/openstax/exchange/real_client/real_client.rb
123
150
  - lib/openstax/exchange/version.rb
124
151
  - lib/openstax_exchange.rb
125
- - spec/dummy/README.md
126
- - spec/dummy/Rakefile
127
- - spec/dummy/app/assets/javascripts/application.js
128
- - spec/dummy/app/assets/stylesheets/application.css
129
- - spec/dummy/app/controllers/api/dummy_controller.rb
130
- - spec/dummy/app/controllers/api/events_controller.rb
131
- - spec/dummy/app/controllers/application_controller.rb
132
- - spec/dummy/app/controllers/oauth_controller.rb
133
- - spec/dummy/app/helpers/application_helper.rb
134
- - spec/dummy/config.ru
135
- - spec/dummy/config/application.rb
136
- - spec/dummy/config/boot.rb
137
- - spec/dummy/config/database.yml
138
- - spec/dummy/config/environment.rb
139
- - spec/dummy/config/environments/development.rb
140
- - spec/dummy/config/environments/production.rb
141
- - spec/dummy/config/environments/test.rb
142
- - spec/dummy/config/initializers/backtrace_silencers.rb
143
- - spec/dummy/config/initializers/inflections.rb
144
- - spec/dummy/config/initializers/mime_types.rb
145
- - spec/dummy/config/initializers/openstax_exchange.rb
146
- - spec/dummy/config/initializers/secret_token.rb
147
- - spec/dummy/config/initializers/session_store.rb
148
- - spec/dummy/config/initializers/wrap_parameters.rb
149
- - spec/dummy/config/locales/en.yml
150
- - spec/dummy/config/routes.rb
151
- - spec/dummy/db/development.sqlite3
152
- - spec/dummy/db/schema.rb
153
- - spec/dummy/db/test.sqlite3
154
- - spec/dummy/log/development.log
155
- - spec/dummy/log/test.log
156
- - spec/dummy/public/404.html
157
- - spec/dummy/public/422.html
158
- - spec/dummy/public/500.html
159
- - spec/dummy/public/favicon.ico
160
- - spec/dummy/script/rails
161
- - spec/lib/openstax_exchange_spec.rb
152
+ - spec/cassettes/OpenStax_Exchange/client_instance_configuration/can_be_configured_to_use_a_real_exchange_client.yml
153
+ - spec/cassettes/OpenStax_Exchange/internal_client_instance/_client_defaults_to_a_real_exchange_client.yml
154
+ - spec/cassettes/OpenStax_Exchange/internal_client_instance/_reset_causes_a_new_client_object_to_be_returned_by_client.yml
155
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_create_identifier/success/creates_a_distinct_identifer_per_invokation.yml
156
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_create_identifier/success/creates_and_returns_a_new_identifier.yml
157
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_initialize/invalid_platform_id/raises_an_exception.yml
158
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_initialize/invalid_platform_secret/raises_an_exception.yml
159
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_initialize/success/initializes_the_authentication_token.yml
160
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/duplicate_identifer_resource_trial_triplet/raises_an_exception.yml
161
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/invalid_resource_string/raises_an_exception.yml
162
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/success/allows_answers_with_distinct_identifiers_to_be_saved.yml
163
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/success/allows_answers_with_distinct_resources_to_be_saved.yml
164
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/success/allows_answers_with_distinct_trials_to_be_saved.yml
165
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/success/creates_a_multiple_choice_answer_associated_with_the_given_identifier.yml
166
+ - spec/lib/openstax/exchange/client_configuration_spec.rb
167
+ - spec/lib/openstax/exchange/fake_client_v1_spec.rb
168
+ - spec/lib/openstax/exchange/real_client_v1_spec.rb
169
+ - spec/lib/openstax/exchange/shared_examples_for_exchange_client_v1.rb
162
170
  - spec/spec_helper.rb
163
171
  homepage: http://github.com/openstax/exchange-ruby
164
- licenses: []
165
- metadata: {}
172
+ licenses:
173
+ - MIT
166
174
  post_install_message:
167
175
  rdoc_options: []
168
176
  require_paths:
169
177
  - lib
170
178
  required_ruby_version: !ruby/object:Gem::Requirement
179
+ none: false
171
180
  requirements:
172
181
  - - ! '>='
173
182
  - !ruby/object:Gem::Version
174
183
  version: '0'
184
+ segments:
185
+ - 0
186
+ hash: 149071873678705480
175
187
  required_rubygems_version: !ruby/object:Gem::Requirement
188
+ none: false
176
189
  requirements:
177
190
  - - ! '>='
178
191
  - !ruby/object:Gem::Version
179
192
  version: '0'
193
+ segments:
194
+ - 0
195
+ hash: 149071873678705480
180
196
  requirements: []
181
197
  rubyforge_project:
182
- rubygems_version: 2.2.2
198
+ rubygems_version: 1.8.23.2
183
199
  signing_key:
184
- specification_version: 4
185
- summary: Ruby common code and bindings and for the 'Exchange' API
200
+ specification_version: 3
201
+ summary: Ruby client for OpenStax Exchange
186
202
  test_files:
187
- - spec/dummy/app/assets/javascripts/application.js
188
- - spec/dummy/app/assets/stylesheets/application.css
189
- - spec/dummy/app/controllers/api/dummy_controller.rb
190
- - spec/dummy/app/controllers/api/events_controller.rb
191
- - spec/dummy/app/controllers/application_controller.rb
192
- - spec/dummy/app/controllers/oauth_controller.rb
193
- - spec/dummy/app/helpers/application_helper.rb
194
- - spec/dummy/config/application.rb
195
- - spec/dummy/config/boot.rb
196
- - spec/dummy/config/database.yml
197
- - spec/dummy/config/environment.rb
198
- - spec/dummy/config/environments/development.rb
199
- - spec/dummy/config/environments/production.rb
200
- - spec/dummy/config/environments/test.rb
201
- - spec/dummy/config/initializers/backtrace_silencers.rb
202
- - spec/dummy/config/initializers/inflections.rb
203
- - spec/dummy/config/initializers/mime_types.rb
204
- - spec/dummy/config/initializers/openstax_exchange.rb
205
- - spec/dummy/config/initializers/secret_token.rb
206
- - spec/dummy/config/initializers/session_store.rb
207
- - spec/dummy/config/initializers/wrap_parameters.rb
208
- - spec/dummy/config/locales/en.yml
209
- - spec/dummy/config/routes.rb
210
- - spec/dummy/config.ru
211
- - spec/dummy/db/development.sqlite3
212
- - spec/dummy/db/schema.rb
213
- - spec/dummy/db/test.sqlite3
214
- - spec/dummy/log/development.log
215
- - spec/dummy/log/test.log
216
- - spec/dummy/public/404.html
217
- - spec/dummy/public/422.html
218
- - spec/dummy/public/500.html
219
- - spec/dummy/public/favicon.ico
220
- - spec/dummy/Rakefile
221
- - spec/dummy/README.md
222
- - spec/dummy/script/rails
223
- - spec/lib/openstax_exchange_spec.rb
203
+ - spec/cassettes/OpenStax_Exchange/client_instance_configuration/can_be_configured_to_use_a_real_exchange_client.yml
204
+ - spec/cassettes/OpenStax_Exchange/internal_client_instance/_client_defaults_to_a_real_exchange_client.yml
205
+ - spec/cassettes/OpenStax_Exchange/internal_client_instance/_reset_causes_a_new_client_object_to_be_returned_by_client.yml
206
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_create_identifier/success/creates_a_distinct_identifer_per_invokation.yml
207
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_create_identifier/success/creates_and_returns_a_new_identifier.yml
208
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_initialize/invalid_platform_id/raises_an_exception.yml
209
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_initialize/invalid_platform_secret/raises_an_exception.yml
210
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_initialize/success/initializes_the_authentication_token.yml
211
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/duplicate_identifer_resource_trial_triplet/raises_an_exception.yml
212
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/invalid_resource_string/raises_an_exception.yml
213
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/success/allows_answers_with_distinct_identifiers_to_be_saved.yml
214
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/success/allows_answers_with_distinct_resources_to_be_saved.yml
215
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/success/allows_answers_with_distinct_trials_to_be_saved.yml
216
+ - spec/cassettes/OpenStax_Exchange_RealClient/behaves_like_exchange_client_api_v1/_record_multiple_choice_answer/success/creates_a_multiple_choice_answer_associated_with_the_given_identifier.yml
217
+ - spec/lib/openstax/exchange/client_configuration_spec.rb
218
+ - spec/lib/openstax/exchange/fake_client_v1_spec.rb
219
+ - spec/lib/openstax/exchange/real_client_v1_spec.rb
220
+ - spec/lib/openstax/exchange/shared_examples_for_exchange_client_v1.rb
224
221
  - spec/spec_helper.rb
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YWU4ZWFmNWI0NzZiMWMwNjQxOWQ5YjhhODRkMGVjOTY0ZGVkYWE4Mw==
5
- data.tar.gz: !binary |-
6
- NDM4OTFkNWQ2YmI2NGFiMTY0MWIxZjcyNjhlZjg3OTdiZDY4MTlkMg==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- OTc4OGNlNGVkMzg5ODBmZTc2YmU4OTYzMDVlOGVhZmVjOTVjNzRlMTc5OTZk
10
- NzkzOTUwZDQ3NmNlMDkxMWYyMzViZjNmM2FlZTYxY2FkYWQ3NTI1ZTM2YWIw
11
- NDI1NDc2NmI5ZTdkZDQyOWEyOGZjNDBkYjBhZTlmM2I3MWJhNGQ=
12
- data.tar.gz: !binary |-
13
- MTM5ZjdkZjE0MDcxNzRiOGExYzVhNTQ2ODBlZWQ1MGQxZmUwNTJlZTdlZDRl
14
- YTVhMjMwYmI1OTUzMTQ0MzNkYTZjOTQwNzk5NzdhN2JkMTBmNWRiZDJlYWQ4
15
- NTBmM2NiZDdkNjk3ODJkNTQ3NGZiYmMyY2E5ODMxMjczYmNjOTU=
data/spec/dummy/README.md DELETED
@@ -1 +0,0 @@
1
- Dummy application used to test the OpenStax Exchange gem.
data/spec/dummy/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env rake
2
- # Add your own tasks in files placed in lib/tasks ending in .rake,
3
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
-
5
- require File.expand_path('../config/application', __FILE__)
6
-
7
- Dummy::Application.load_tasks
@@ -1,15 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // the compiled file.
9
- //
10
- // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
- // GO AFTER THE REQUIRES BELOW.
12
- //
13
- //= require jquery
14
- //= require jquery_ujs
15
- //= require_tree .
@@ -1,13 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
10
- *
11
- *= require_self
12
- *= require_tree .
13
- */
@@ -1,11 +0,0 @@
1
- module Api
2
- class DummyController < ApplicationController
3
- class << self; attr_accessor :last_action, :last_params end
4
-
5
- def dummy(action_name = :dummy)
6
- self.class.last_action = action_name
7
- self.class.last_params = params
8
- render :json => { :head => :no_content }
9
- end
10
- end
11
- end
@@ -1,7 +0,0 @@
1
- module Api
2
- class EventsController < DummyController
3
- def index
4
- dummy(:index)
5
- end
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
-
4
- def index
5
- render :json => {head: 'no_content'}
6
- end
7
- end
@@ -1,8 +0,0 @@
1
- class OauthController < ApplicationController
2
- respond_to :json
3
-
4
- def token
5
- render :json => { :access_token => 'dummy',
6
- :token_type => 'dummy' }
7
- end
8
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
data/spec/dummy/config.ru DELETED
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Dummy::Application
@@ -1,55 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- Bundler.require(*Rails.groups)
6
- require "openstax_exchange"
7
-
8
- module Dummy
9
- class Application < Rails::Application
10
- # Settings in config/environments/* take precedence over those specified here.
11
- # Application configuration should go into files in config/initializers
12
- # -- all .rb files in that directory are automatically loaded.
13
-
14
- # Custom directories with classes and modules you want to be autoloadable.
15
- # config.autoload_paths += %W(#{config.root}/extras)
16
-
17
- # Only load the plugins named here, in the order given (default is alphabetical).
18
- # :all can be used as a placeholder for all plugins not explicitly named.
19
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
20
-
21
- # Activate observers that should always be running.
22
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
23
-
24
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
25
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
26
- # config.time_zone = 'Central Time (US & Canada)'
27
-
28
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
29
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
30
- # config.i18n.default_locale = :de
31
-
32
- # Configure the default encoding used in templates for Ruby 1.9.
33
- config.encoding = "utf-8"
34
-
35
- # Configure sensitive parameters which will be filtered from the log file.
36
- config.filter_parameters += [:password]
37
-
38
- # Enable escaping HTML in JSON.
39
- config.active_support.escape_html_entities_in_json = true
40
-
41
- # Use SQL instead of Active Record's schema dumper when creating the database.
42
- # This is necessary if your schema can't be completely dumped by the schema dumper,
43
- # like if you have constraints or database-specific column types
44
- # config.active_record.schema_format = :sql
45
-
46
- # Enable the asset pipeline
47
- config.assets.enabled = true
48
-
49
- # Version of your assets, change this if you want to expire all your assets
50
- config.assets.version = '1.0'
51
-
52
- # Suppress warning
53
- config.i18n.enforce_available_locales = true
54
- end
55
- end