qa 0.1.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -23
  3. data/Rakefile +9 -6
  4. data/lib/generators/qa/install/USAGE +5 -0
  5. data/lib/generators/qa/install/install_generator.rb +13 -0
  6. data/lib/generators/qa/install/templates/config/oclcts-authorities.yml +24 -0
  7. data/lib/qa/authorities/loc.rb +35 -18
  8. data/lib/qa/version.rb +1 -1
  9. data/spec/controllers/terms_controller_spec.rb +10 -10
  10. data/spec/fixtures/loc-response.txt +85 -2
  11. data/spec/internal/Gemfile +4 -6
  12. data/spec/internal/Gemfile.lock +42 -65
  13. data/spec/internal/config/application.rb +1 -1
  14. data/spec/internal/config/boot.rb +1 -1
  15. data/spec/internal/config/initializers/secret_token.rb +1 -1
  16. data/spec/internal/config/oclcts-authorities.yml +24 -0
  17. data/spec/internal/config/routes.rb +2 -0
  18. data/spec/internal/db/development.sqlite3 +0 -0
  19. data/spec/internal/db/migrate/20140611161143_create_qa_subject_mesh_terms.qa.rb +12 -0
  20. data/spec/internal/db/migrate/20140611161144_create_qa_mesh_tree.qa.rb +11 -0
  21. data/spec/internal/db/migrate/20140611161145_add_term_lower_to_qa_subject_mesh_terms.qa.rb +8 -0
  22. data/spec/internal/db/schema.rb +34 -0
  23. data/spec/internal/db/test.sqlite3 +0 -0
  24. data/spec/internal/lib/generators/test_app_generator.rb +13 -11
  25. data/spec/internal/log/development.log +212 -0
  26. data/spec/internal/public/robots.txt +1 -1
  27. data/spec/lib/authorities_loc_spec.rb +21 -0
  28. data/spec/spec_helper.rb +5 -1
  29. data/spec/test_app_templates/lib/generators/test_app_generator.rb +22 -0
  30. metadata +57 -24
  31. data/spec/support/lib/generators/test_app_generator.rb +0 -20
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Anderson
@@ -15,132 +15,146 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2014-03-07 00:00:00.000000000 Z
18
+ date: 2014-06-11 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rails
22
22
  requirement: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.0.0
27
27
  type: :runtime
28
28
  prerelease: false
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 4.0.0
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rest-client
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: nokogiri
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.6.0
55
55
  type: :runtime
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: 1.6.0
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: activerecord-import
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  type: :runtime
70
70
  prerelease: false
71
71
  version_requirements: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  - !ruby/object:Gem::Dependency
77
77
  name: deprecation
78
78
  requirement: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  type: :runtime
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  - !ruby/object:Gem::Dependency
91
91
  name: sqlite3
92
92
  requirement: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  type: :development
98
98
  prerelease: false
99
99
  version_requirements: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: rspec-rails
106
106
  requirement: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  type: :development
112
112
  prerelease: false
113
113
  version_requirements: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  - !ruby/object:Gem::Dependency
119
119
  name: webmock
120
120
  requirement: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  type: :development
126
126
  prerelease: false
127
127
  version_requirements: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  - !ruby/object:Gem::Dependency
133
133
  name: simplecov
134
134
  requirement: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  type: :development
140
140
  prerelease: false
141
141
  version_requirements: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ - !ruby/object:Gem::Dependency
147
+ name: engine_cart
148
+ requirement: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ type: :development
154
+ prerelease: false
155
+ version_requirements: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
144
158
  - !ruby/object:Gem::Version
145
159
  version: '0'
146
160
  description: Provides a set of uniform RESTful routes to query any controlled vocabulary
@@ -170,6 +184,9 @@ files:
170
184
  - db/migrate/20130917200611_create_qa_subject_mesh_terms.rb
171
185
  - db/migrate/20130917201026_create_qa_mesh_tree.rb
172
186
  - db/migrate/20130918141523_add_term_lower_to_qa_subject_mesh_terms.rb
187
+ - lib/generators/qa/install/USAGE
188
+ - lib/generators/qa/install/install_generator.rb
189
+ - lib/generators/qa/install/templates/config/oclcts-authorities.yml
173
190
  - lib/qa.rb
174
191
  - lib/qa/authorities.rb
175
192
  - lib/qa/authorities/base.rb
@@ -228,9 +245,17 @@ files:
228
245
  - spec/internal/config/initializers/session_store.rb
229
246
  - spec/internal/config/initializers/wrap_parameters.rb
230
247
  - spec/internal/config/locales/en.yml
248
+ - spec/internal/config/oclcts-authorities.yml
231
249
  - spec/internal/config/routes.rb
250
+ - spec/internal/db/development.sqlite3
251
+ - spec/internal/db/migrate/20140611161143_create_qa_subject_mesh_terms.qa.rb
252
+ - spec/internal/db/migrate/20140611161144_create_qa_mesh_tree.qa.rb
253
+ - spec/internal/db/migrate/20140611161145_add_term_lower_to_qa_subject_mesh_terms.qa.rb
254
+ - spec/internal/db/schema.rb
232
255
  - spec/internal/db/seeds.rb
256
+ - spec/internal/db/test.sqlite3
233
257
  - spec/internal/lib/generators/test_app_generator.rb
258
+ - spec/internal/log/development.log
234
259
  - spec/internal/public/404.html
235
260
  - spec/internal/public/422.html
236
261
  - spec/internal/public/500.html
@@ -246,7 +271,7 @@ files:
246
271
  - spec/lib/tasks/mesh.rake_spec.rb
247
272
  - spec/models/subject_mesh_term_spec.rb
248
273
  - spec/spec_helper.rb
249
- - spec/support/lib/generators/test_app_generator.rb
274
+ - spec/test_app_templates/lib/generators/test_app_generator.rb
250
275
  homepage: https://github.com/projecthydra/questioning_authority
251
276
  licenses:
252
277
  - APACHE-2
@@ -257,12 +282,12 @@ require_paths:
257
282
  - lib
258
283
  required_ruby_version: !ruby/object:Gem::Requirement
259
284
  requirements:
260
- - - '>='
285
+ - - ">="
261
286
  - !ruby/object:Gem::Version
262
287
  version: '0'
263
288
  required_rubygems_version: !ruby/object:Gem::Requirement
264
289
  requirements:
265
- - - '>='
290
+ - - ">="
266
291
  - !ruby/object:Gem::Version
267
292
  version: '0'
268
293
  requirements: []
@@ -307,12 +332,20 @@ test_files:
307
332
  - spec/internal/config/initializers/session_store.rb
308
333
  - spec/internal/config/initializers/wrap_parameters.rb
309
334
  - spec/internal/config/locales/en.yml
335
+ - spec/internal/config/oclcts-authorities.yml
310
336
  - spec/internal/config/routes.rb
311
337
  - spec/internal/config.ru
338
+ - spec/internal/db/development.sqlite3
339
+ - spec/internal/db/migrate/20140611161143_create_qa_subject_mesh_terms.qa.rb
340
+ - spec/internal/db/migrate/20140611161144_create_qa_mesh_tree.qa.rb
341
+ - spec/internal/db/migrate/20140611161145_add_term_lower_to_qa_subject_mesh_terms.qa.rb
342
+ - spec/internal/db/schema.rb
312
343
  - spec/internal/db/seeds.rb
344
+ - spec/internal/db/test.sqlite3
313
345
  - spec/internal/Gemfile
314
346
  - spec/internal/Gemfile.lock
315
347
  - spec/internal/lib/generators/test_app_generator.rb
348
+ - spec/internal/log/development.log
316
349
  - spec/internal/public/404.html
317
350
  - spec/internal/public/422.html
318
351
  - spec/internal/public/500.html
@@ -330,4 +363,4 @@ test_files:
330
363
  - spec/lib/tasks/mesh.rake_spec.rb
331
364
  - spec/models/subject_mesh_term_spec.rb
332
365
  - spec/spec_helper.rb
333
- - spec/support/lib/generators/test_app_generator.rb
366
+ - spec/test_app_templates/lib/generators/test_app_generator.rb
@@ -1,20 +0,0 @@
1
- require 'rails/generators'
2
-
3
- class TestAppGenerator < Rails::Generators::Base
4
- source_root File.expand_path("../../../../support", __FILE__)
5
-
6
- def inject_routes
7
- insert_into_file "config/routes.rb", :after => ".draw do" do
8
- %{
9
-
10
- mount Qa::Engine => '/qa'
11
-
12
- }
13
- end
14
- end
15
-
16
- def copy_configs
17
- copy_file "../../config/oclcts-authorities.yml", "config/oclcts-authorities.yml"
18
- end
19
-
20
- end