umlaut_journal_tocs 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +37 -0
- data/app/item_decorators/umlaut_journal_tocs_decorator.rb +50 -0
- data/app/service_adaptors/journal_tocs_adapter.rb +51 -0
- data/app/views/umlaut_journal_tocs/_bento_item.html.erb +80 -0
- data/app/views/umlaut_journal_tocs/_resolve_section.html.erb +10 -0
- data/config/locales/en.yml +5 -0
- data/config/routes.rb +2 -0
- data/lib/tasks/umlaut_journal_tocs_tasks.rake +4 -0
- data/lib/umlaut_journal_tocs.rb +26 -0
- data/lib/umlaut_journal_tocs/engine.rb +18 -0
- data/lib/umlaut_journal_tocs/version.rb +3 -0
- data/test/controller_test.rb +36 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +17 -0
- data/test/dummy/app/assets/stylesheets/application.css +19 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/umlaut_controller.rb +136 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +60 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +45 -0
- data/test/dummy/config/environments/production.rb +83 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/umlaut_journal_tocs.rb +20 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +57 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config/umlaut_services.yml +23 -0
- data/test/dummy/db/migrate/20150901192508_umlaut_init.umlaut.rb +106 -0
- data/test/dummy/db/migrate/20150901192509_umlaut_add_service_response_index.umlaut.rb +10 -0
- data/test/dummy/db/schema.rb +118 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/journal_tocs_adapter_test.rb +93 -0
- data/test/support/vcr_filter.rb +45 -0
- data/test/test_helper.rb +39 -0
- data/test/vcr_cassettes/generates_no_response.yml +49 -0
- data/test/vcr_cassettes/generates_response.yml +952 -0
- data/test/vcr_cassettes/gets_results.yml +804 -0
- data/test/vcr_cassettes/registers_proper_error.yml +40 -0
- metadata +200 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://www.journaltocs.ac.uk/api/journals/12345678?output=articles&user=nobody@nowhere.com
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.6.0.1, ruby 2.2.2 (2015-04-13))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Thu, 03 Sep 2015 20:09:21 GMT
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 401
|
19
|
+
message: Unauthorized
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Thu, 03 Sep 2015 20:09:21 GMT
|
23
|
+
Server:
|
24
|
+
- Apache
|
25
|
+
X-Powered-By:
|
26
|
+
- PHP/5.3.3
|
27
|
+
Content-Length:
|
28
|
+
- '237'
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
Content-Type:
|
32
|
+
- text/xml; charset=utf-8
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<notice>\n\t<noticeCode>1</noticeCode>\n\t<noticeDescription>:-(
|
36
|
+
Sorry, your account is invalid. If you think it is my fault, pl let know by
|
37
|
+
email to: journaltocs@hw.ac.uk</noticeDescription>\n</notice> "
|
38
|
+
http_version:
|
39
|
+
recorded_at: Thu, 03 Sep 2015 20:09:21 GMT
|
40
|
+
recorded_with: VCR 2.9.3
|
metadata
ADDED
@@ -0,0 +1,200 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: umlaut_journal_tocs
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jonathan Rochkind
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-09-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bento_search
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.4'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.4.2
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.4'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.4.2
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: umlaut
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '4.1'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '4.1'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: sqlite3
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
description:
|
62
|
+
email:
|
63
|
+
- jonathan@dnil.net
|
64
|
+
executables: []
|
65
|
+
extensions: []
|
66
|
+
extra_rdoc_files: []
|
67
|
+
files:
|
68
|
+
- MIT-LICENSE
|
69
|
+
- Rakefile
|
70
|
+
- app/item_decorators/umlaut_journal_tocs_decorator.rb
|
71
|
+
- app/service_adaptors/journal_tocs_adapter.rb
|
72
|
+
- app/views/umlaut_journal_tocs/_bento_item.html.erb
|
73
|
+
- app/views/umlaut_journal_tocs/_resolve_section.html.erb
|
74
|
+
- config/locales/en.yml
|
75
|
+
- config/routes.rb
|
76
|
+
- lib/tasks/umlaut_journal_tocs_tasks.rake
|
77
|
+
- lib/umlaut_journal_tocs.rb
|
78
|
+
- lib/umlaut_journal_tocs/engine.rb
|
79
|
+
- lib/umlaut_journal_tocs/version.rb
|
80
|
+
- test/controller_test.rb
|
81
|
+
- test/dummy/README.rdoc
|
82
|
+
- test/dummy/Rakefile
|
83
|
+
- test/dummy/app/assets/javascripts/application.js
|
84
|
+
- test/dummy/app/assets/stylesheets/application.css
|
85
|
+
- test/dummy/app/controllers/application_controller.rb
|
86
|
+
- test/dummy/app/controllers/umlaut_controller.rb
|
87
|
+
- test/dummy/app/helpers/application_helper.rb
|
88
|
+
- test/dummy/app/views/layouts/application.html.erb
|
89
|
+
- test/dummy/bin/bundle
|
90
|
+
- test/dummy/bin/rails
|
91
|
+
- test/dummy/bin/rake
|
92
|
+
- test/dummy/bin/setup
|
93
|
+
- test/dummy/config.ru
|
94
|
+
- test/dummy/config/application.rb
|
95
|
+
- test/dummy/config/boot.rb
|
96
|
+
- test/dummy/config/database.yml
|
97
|
+
- test/dummy/config/environment.rb
|
98
|
+
- test/dummy/config/environments/development.rb
|
99
|
+
- test/dummy/config/environments/production.rb
|
100
|
+
- test/dummy/config/environments/test.rb
|
101
|
+
- test/dummy/config/initializers/assets.rb
|
102
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
103
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
104
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
105
|
+
- test/dummy/config/initializers/inflections.rb
|
106
|
+
- test/dummy/config/initializers/mime_types.rb
|
107
|
+
- test/dummy/config/initializers/session_store.rb
|
108
|
+
- test/dummy/config/initializers/umlaut_journal_tocs.rb
|
109
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
110
|
+
- test/dummy/config/locales/en.yml
|
111
|
+
- test/dummy/config/routes.rb
|
112
|
+
- test/dummy/config/secrets.yml
|
113
|
+
- test/dummy/config/umlaut_services.yml
|
114
|
+
- test/dummy/db/migrate/20150901192508_umlaut_init.umlaut.rb
|
115
|
+
- test/dummy/db/migrate/20150901192509_umlaut_add_service_response_index.umlaut.rb
|
116
|
+
- test/dummy/db/schema.rb
|
117
|
+
- test/dummy/public/404.html
|
118
|
+
- test/dummy/public/422.html
|
119
|
+
- test/dummy/public/500.html
|
120
|
+
- test/dummy/public/favicon.ico
|
121
|
+
- test/journal_tocs_adapter_test.rb
|
122
|
+
- test/support/vcr_filter.rb
|
123
|
+
- test/test_helper.rb
|
124
|
+
- test/vcr_cassettes/generates_no_response.yml
|
125
|
+
- test/vcr_cassettes/generates_response.yml
|
126
|
+
- test/vcr_cassettes/gets_results.yml
|
127
|
+
- test/vcr_cassettes/registers_proper_error.yml
|
128
|
+
homepage: https://github.com/team-umlaut/umlaut_journal_tocs
|
129
|
+
licenses:
|
130
|
+
- MIT
|
131
|
+
metadata: {}
|
132
|
+
post_install_message:
|
133
|
+
rdoc_options: []
|
134
|
+
require_paths:
|
135
|
+
- lib
|
136
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
requirements: []
|
147
|
+
rubyforge_project:
|
148
|
+
rubygems_version: 2.4.5
|
149
|
+
signing_key:
|
150
|
+
specification_version: 4
|
151
|
+
summary: Umlaut plugin for Recent Articles display from JournalTocs
|
152
|
+
test_files:
|
153
|
+
- test/controller_test.rb
|
154
|
+
- test/dummy/app/assets/javascripts/application.js
|
155
|
+
- test/dummy/app/assets/stylesheets/application.css
|
156
|
+
- test/dummy/app/controllers/application_controller.rb
|
157
|
+
- test/dummy/app/controllers/umlaut_controller.rb
|
158
|
+
- test/dummy/app/helpers/application_helper.rb
|
159
|
+
- test/dummy/app/views/layouts/application.html.erb
|
160
|
+
- test/dummy/bin/bundle
|
161
|
+
- test/dummy/bin/rails
|
162
|
+
- test/dummy/bin/rake
|
163
|
+
- test/dummy/bin/setup
|
164
|
+
- test/dummy/config/application.rb
|
165
|
+
- test/dummy/config/boot.rb
|
166
|
+
- test/dummy/config/database.yml
|
167
|
+
- test/dummy/config/environment.rb
|
168
|
+
- test/dummy/config/environments/development.rb
|
169
|
+
- test/dummy/config/environments/production.rb
|
170
|
+
- test/dummy/config/environments/test.rb
|
171
|
+
- test/dummy/config/initializers/assets.rb
|
172
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
173
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
174
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
175
|
+
- test/dummy/config/initializers/inflections.rb
|
176
|
+
- test/dummy/config/initializers/mime_types.rb
|
177
|
+
- test/dummy/config/initializers/session_store.rb
|
178
|
+
- test/dummy/config/initializers/umlaut_journal_tocs.rb
|
179
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
180
|
+
- test/dummy/config/locales/en.yml
|
181
|
+
- test/dummy/config/routes.rb
|
182
|
+
- test/dummy/config/secrets.yml
|
183
|
+
- test/dummy/config/umlaut_services.yml
|
184
|
+
- test/dummy/config.ru
|
185
|
+
- test/dummy/db/migrate/20150901192508_umlaut_init.umlaut.rb
|
186
|
+
- test/dummy/db/migrate/20150901192509_umlaut_add_service_response_index.umlaut.rb
|
187
|
+
- test/dummy/db/schema.rb
|
188
|
+
- test/dummy/public/404.html
|
189
|
+
- test/dummy/public/422.html
|
190
|
+
- test/dummy/public/500.html
|
191
|
+
- test/dummy/public/favicon.ico
|
192
|
+
- test/dummy/Rakefile
|
193
|
+
- test/dummy/README.rdoc
|
194
|
+
- test/journal_tocs_adapter_test.rb
|
195
|
+
- test/support/vcr_filter.rb
|
196
|
+
- test/test_helper.rb
|
197
|
+
- test/vcr_cassettes/generates_no_response.yml
|
198
|
+
- test/vcr_cassettes/generates_response.yml
|
199
|
+
- test/vcr_cassettes/gets_results.yml
|
200
|
+
- test/vcr_cassettes/registers_proper_error.yml
|