alephant-publisher-request 0.2.6 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b97592cbfbc2132a5071cdb64aa64be216d11de
4
- data.tar.gz: e07c865ec27195093473c41b98fbd86b03654dae
3
+ metadata.gz: e7d969e0c0b2621a831449cd891a95591dff9c0e
4
+ data.tar.gz: de7c1b9f1b03d5e87b788a5432335d8ad50072d2
5
5
  SHA512:
6
- metadata.gz: 26788dab6c0ef940d928e732da0d7ea9e0b56ff7218f9efe7227a8f7659f47609f229ff6c67e943394add84f0af64b3b8da7c7e77ad0c541bf5e1c6dde513be3
7
- data.tar.gz: e2b6c97b0f7de66910c16dbeea36aa96c9ea76fc2c89f3f821cbb424800c7c54de55f71ee1b257f33d8aeb382c872282cc6afc671e25f223ef527d115c5d7d10
6
+ metadata.gz: 3a7d85d7db7650c9227162d7f71f04334fa3022590cbd5c405ce87596f3319f80f51cc7ab99ce0e6e22df72fb1453e28f0b119c9f2ea46937018e7b298b2a201
7
+ data.tar.gz: 31460e53651192e8e7d675f48e76d3d0cda0500c0ddc15629163e74f937c7cb3a0a0910512d1ae0e3bcca84120e67d82cf73dff1a040945c7c8da72671695262
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  *.gem
2
+ *.log
2
3
  *.rbc
3
4
  .bundle
4
5
  .config
@@ -1 +1 @@
1
- jruby-1.7.17
1
+ 2.3
@@ -1,12 +1,12 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - "2.3"
3
4
  - "jruby"
4
5
  script:
5
6
  - bundle exec rake all
6
7
  notifications:
7
8
  email:
8
9
  recipients:
9
- - stevenmajack@gmail.com
10
- - mark.mxdc@gmail.com
10
+ - D&ENewsFrameworksTeam@bbc.co.uk
11
11
  on_failure: change
12
12
  on_success: never
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "alephant-publisher-request"
8
8
  spec.version = Alephant::Publisher::Request::VERSION
9
9
  spec.authors = ["BBC News"]
10
- spec.email = ["FutureMediaNewsRubyGems@bbc.co.uk"]
10
+ spec.email = ["D&ENewsFrameworksTeam@bbc.co.uk"]
11
11
  spec.summary = "..."
12
12
  spec.description = "..."
13
13
  spec.homepage = "https://github.com/BBC-News/alephant-publisher-request"
@@ -31,7 +31,6 @@ Gem::Specification.new do |spec|
31
31
  spec.add_runtime_dependency 'rack'
32
32
  spec.add_runtime_dependency 'rake'
33
33
  spec.add_runtime_dependency 'faraday'
34
- spec.add_runtime_dependency 'aws-sdk', '~> 1.0'
35
34
  spec.add_runtime_dependency 'alephant-logger'
36
35
  spec.add_runtime_dependency 'alephant-renderer'
37
36
  end
@@ -14,14 +14,14 @@ module Alephant
14
14
  end
15
15
 
16
16
  def get(uri)
17
- JSON::parse(request(uri).body, :symbolize_names => true)
17
+ ::JSON::parse(request(uri).body, :symbolize_names => true)
18
18
  rescue Faraday::ConnectionFailed => e
19
19
  log_error_with_metric(e, 'Connection#request', uri, "PublisherRequestConnectionConnectionFailed")
20
20
  raise ConnectionFailed
21
21
  rescue InvalidApiStatus => e
22
22
  log_error_with_metric(e, 'Connection#request', uri, "PublisherRequestConnectionInvalidStatus#{e.status}")
23
23
  raise e
24
- rescue JSON::ParserError => e
24
+ rescue ::JSON::ParserError => e
25
25
  log_error_with_metric(e, 'Connection#get', uri, "PublisherRequestConnectionInvalidApiResponse")
26
26
  raise InvalidApiResponse, "JSON parsing error: #{response.body}"
27
27
  rescue StandardError => e
@@ -1,7 +1,7 @@
1
1
  module Alephant
2
2
  module Publisher
3
3
  module Request
4
- VERSION = "0.2.6"
4
+ VERSION = "0.3.0"
5
5
  end
6
6
  end
7
7
  end
@@ -1,7 +1,6 @@
1
1
  require "pry"
2
2
 
3
3
  require "json"
4
- require "aws-sdk"
5
4
  require "faraday"
6
5
  require "alephant/renderer"
7
6
  require "alephant/publisher/request"
metadata CHANGED
@@ -1,235 +1,221 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-publisher-request
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BBC News
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-02 00:00:00.000000000 Z
11
+ date: 2018-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: bundler
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
- - - ~>
17
+ - - "~>"
17
18
  - !ruby/object:Gem::Version
18
19
  version: '1.5'
19
- name: bundler
20
- prerelease: false
21
20
  type: :development
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
+ name: rspec
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - '>='
31
+ - - ">="
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
- name: rspec
34
- prerelease: false
35
34
  type: :development
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
+ name: rspec-nc
42
43
  requirement: !ruby/object:Gem::Requirement
43
44
  requirements:
44
- - - '>='
45
+ - - ">="
45
46
  - !ruby/object:Gem::Version
46
47
  version: '0'
47
- name: rspec-nc
48
- prerelease: false
49
48
  type: :development
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
+ name: guard
56
57
  requirement: !ruby/object:Gem::Requirement
57
58
  requirements:
58
- - - '>='
59
+ - - ">="
59
60
  - !ruby/object:Gem::Version
60
61
  version: '0'
61
- name: guard
62
- prerelease: false
63
62
  type: :development
63
+ prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
+ name: guard-rake
70
71
  requirement: !ruby/object:Gem::Requirement
71
72
  requirements:
72
- - - '>='
73
+ - - ">="
73
74
  - !ruby/object:Gem::Version
74
75
  version: '0'
75
- name: guard-rake
76
- prerelease: false
77
76
  type: :development
77
+ prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
+ name: pry
84
85
  requirement: !ruby/object:Gem::Requirement
85
86
  requirements:
86
- - - '>='
87
+ - - ">="
87
88
  - !ruby/object:Gem::Version
88
89
  version: '0'
89
- name: pry
90
- prerelease: false
91
90
  type: :development
91
+ prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
+ name: rack-test
98
99
  requirement: !ruby/object:Gem::Requirement
99
100
  requirements:
100
- - - '>='
101
+ - - ">="
101
102
  - !ruby/object:Gem::Version
102
103
  version: '0'
103
- name: rack-test
104
- prerelease: false
105
104
  type: :development
105
+ prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
+ name: spurious-ruby-awssdk-helper
112
113
  requirement: !ruby/object:Gem::Requirement
113
114
  requirements:
114
- - - '>='
115
+ - - ">="
115
116
  - !ruby/object:Gem::Version
116
117
  version: '0'
117
- name: spurious-ruby-awssdk-helper
118
- prerelease: false
119
118
  type: :development
119
+ prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
+ name: rake-rspec
126
127
  requirement: !ruby/object:Gem::Requirement
127
128
  requirements:
128
- - - '>='
129
+ - - ">="
129
130
  - !ruby/object:Gem::Version
130
131
  version: '0'
131
- name: rake-rspec
132
- prerelease: false
133
132
  type: :development
133
+ prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
+ name: rack
140
141
  requirement: !ruby/object:Gem::Requirement
141
142
  requirements:
142
- - - '>='
143
+ - - ">="
143
144
  - !ruby/object:Gem::Version
144
145
  version: '0'
145
- name: rack
146
- prerelease: false
147
146
  type: :runtime
147
+ prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
+ name: rake
154
155
  requirement: !ruby/object:Gem::Requirement
155
156
  requirements:
156
- - - '>='
157
+ - - ">="
157
158
  - !ruby/object:Gem::Version
158
159
  version: '0'
159
- name: rake
160
- prerelease: false
161
160
  type: :runtime
161
+ prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
+ name: faraday
168
169
  requirement: !ruby/object:Gem::Requirement
169
170
  requirements:
170
- - - '>='
171
+ - - ">="
171
172
  - !ruby/object:Gem::Version
172
173
  version: '0'
173
- name: faraday
174
- prerelease: false
175
174
  type: :runtime
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - '>='
179
- - !ruby/object:Gem::Version
180
- version: '0'
181
- - !ruby/object:Gem::Dependency
182
- requirement: !ruby/object:Gem::Requirement
183
- requirements:
184
- - - ~>
185
- - !ruby/object:Gem::Version
186
- version: '1.0'
187
- name: aws-sdk
188
175
  prerelease: false
189
- type: :runtime
190
176
  version_requirements: !ruby/object:Gem::Requirement
191
177
  requirements:
192
- - - ~>
178
+ - - ">="
193
179
  - !ruby/object:Gem::Version
194
- version: '1.0'
180
+ version: '0'
195
181
  - !ruby/object:Gem::Dependency
182
+ name: alephant-logger
196
183
  requirement: !ruby/object:Gem::Requirement
197
184
  requirements:
198
- - - '>='
185
+ - - ">="
199
186
  - !ruby/object:Gem::Version
200
187
  version: '0'
201
- name: alephant-logger
202
- prerelease: false
203
188
  type: :runtime
189
+ prerelease: false
204
190
  version_requirements: !ruby/object:Gem::Requirement
205
191
  requirements:
206
- - - '>='
192
+ - - ">="
207
193
  - !ruby/object:Gem::Version
208
194
  version: '0'
209
195
  - !ruby/object:Gem::Dependency
196
+ name: alephant-renderer
210
197
  requirement: !ruby/object:Gem::Requirement
211
198
  requirements:
212
- - - '>='
199
+ - - ">="
213
200
  - !ruby/object:Gem::Version
214
201
  version: '0'
215
- name: alephant-renderer
216
- prerelease: false
217
202
  type: :runtime
203
+ prerelease: false
218
204
  version_requirements: !ruby/object:Gem::Requirement
219
205
  requirements:
220
- - - '>='
206
+ - - ">="
221
207
  - !ruby/object:Gem::Version
222
208
  version: '0'
223
- description: '...'
209
+ description: "..."
224
210
  email:
225
- - FutureMediaNewsRubyGems@bbc.co.uk
211
+ - D&ENewsFrameworksTeam@bbc.co.uk
226
212
  executables: []
227
213
  extensions: []
228
214
  extra_rdoc_files: []
229
215
  files:
230
- - .gitignore
231
- - .ruby-version
232
- - .travis.yml
216
+ - ".gitignore"
217
+ - ".ruby-version"
218
+ - ".travis.yml"
233
219
  - Gemfile
234
220
  - Guardfile
235
221
  - LICENSE.txt
@@ -261,26 +247,26 @@ homepage: https://github.com/BBC-News/alephant-publisher-request
261
247
  licenses:
262
248
  - MIT
263
249
  metadata: {}
264
- post_install_message:
250
+ post_install_message:
265
251
  rdoc_options: []
266
252
  require_paths:
267
253
  - lib
268
254
  required_ruby_version: !ruby/object:Gem::Requirement
269
255
  requirements:
270
- - - '>='
256
+ - - ">="
271
257
  - !ruby/object:Gem::Version
272
258
  version: '0'
273
259
  required_rubygems_version: !ruby/object:Gem::Requirement
274
260
  requirements:
275
- - - '>='
261
+ - - ">="
276
262
  - !ruby/object:Gem::Version
277
263
  version: '0'
278
264
  requirements: []
279
- rubyforge_project:
280
- rubygems_version: 2.1.9
281
- signing_key:
265
+ rubyforge_project:
266
+ rubygems_version: 2.6.12
267
+ signing_key:
282
268
  specification_version: 4
283
- summary: '...'
269
+ summary: "..."
284
270
  test_files:
285
271
  - spec/connection_spec.rb
286
272
  - spec/data_mapper_factory_spec.rb