alephant-lookup 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +18 -7
- data/alephant-lookup.gemspec +1 -0
- data/lib/alephant/lookup/lookup_cache.rb +4 -4
- data/lib/alephant/lookup/version.rb +1 -1
- metadata +54 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: deaebe646ca7347e5bb7d2ecd027faefd36afd1f
|
4
|
+
data.tar.gz: 741d490929b137b788f302deba7737f5861e6fe9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 273c627e6a1944afe7dfa30366d1a8030711771e9c847f701c301eb38b3c18cff39810e327acebe7c4e53cd7fb47096a7f810a87c00a1682f2fbad6521c671d3
|
7
|
+
data.tar.gz: ec3d7c1f449386a622666c3f66536f1dc03dc1cee6c07baa1962679810e4f3f35608d5688c877f67b0cdaf0316e24682048d385836e0d97894444ce408dc17ba
|
data/.travis.yml
CHANGED
@@ -1,9 +1,20 @@
|
|
1
|
+
sudo: false
|
2
|
+
cache: bundler
|
1
3
|
language: ruby
|
4
|
+
|
5
|
+
# Ruby build matrix
|
2
6
|
rvm:
|
3
|
-
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
- 2.0
|
8
|
+
- 2.1
|
9
|
+
- 2.2
|
10
|
+
- 2.3.0
|
11
|
+
- ruby
|
12
|
+
- jruby
|
13
|
+
|
14
|
+
# Ensure we don't build for *every* commit (doesn't apply to PR builds)
|
15
|
+
branches:
|
16
|
+
only:
|
17
|
+
- master
|
18
|
+
|
19
|
+
script:
|
20
|
+
- bundle exec rspec --format documentation
|
data/alephant-lookup.gemspec
CHANGED
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency "pry"
|
25
25
|
spec.add_development_dependency "pry-remote"
|
26
26
|
spec.add_development_dependency "pry-nav"
|
27
|
+
spec.add_development_dependency "listen", "<= 3.0.8" # required by Guard, but newer versions break our version of JRuby
|
27
28
|
|
28
29
|
spec.add_development_dependency "bundler", "~> 1.5"
|
29
30
|
spec.add_development_dependency "rake"
|
@@ -42,11 +42,11 @@ module Alephant
|
|
42
42
|
private
|
43
43
|
|
44
44
|
def config_endpoint
|
45
|
-
config["elasticache_config_endpoint"]
|
45
|
+
config[:elasticache_config_endpoint] || config["elasticache_config_endpoint"]
|
46
46
|
end
|
47
47
|
|
48
48
|
def ttl
|
49
|
-
config["lookup_elasticache_ttl"] || DEFAULT_TTL
|
49
|
+
config[:lookup_elasticache_ttl] || config["lookup_elasticache_ttl"] || DEFAULT_TTL
|
50
50
|
end
|
51
51
|
|
52
52
|
def versioned(key)
|
@@ -54,7 +54,7 @@ module Alephant
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def cache_version
|
57
|
-
config["elasticache_cache_version"]
|
57
|
+
config[:elasticache_cache_version] || config["elasticache_cache_version"]
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
@@ -66,4 +66,4 @@ module Alephant
|
|
66
66
|
end
|
67
67
|
end
|
68
68
|
end
|
69
|
-
end
|
69
|
+
end
|
metadata
CHANGED
@@ -1,211 +1,225 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alephant-lookup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BBC News
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
14
20
|
requirement: !ruby/object:Gem::Requirement
|
15
21
|
requirements:
|
16
22
|
- - '>='
|
17
23
|
- !ruby/object:Gem::Version
|
18
24
|
version: '0'
|
19
|
-
name: rspec
|
20
25
|
prerelease: false
|
21
26
|
type: :development
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec-nc
|
22
29
|
version_requirements: !ruby/object:Gem::Requirement
|
23
30
|
requirements:
|
24
31
|
- - '>='
|
25
32
|
- !ruby/object:Gem::Version
|
26
33
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
34
|
requirement: !ruby/object:Gem::Requirement
|
29
35
|
requirements:
|
30
36
|
- - '>='
|
31
37
|
- !ruby/object:Gem::Version
|
32
38
|
version: '0'
|
33
|
-
name: rspec-nc
|
34
39
|
prerelease: false
|
35
40
|
type: :development
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: guard
|
36
43
|
version_requirements: !ruby/object:Gem::Requirement
|
37
44
|
requirements:
|
38
45
|
- - '>='
|
39
46
|
- !ruby/object:Gem::Version
|
40
47
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
48
|
requirement: !ruby/object:Gem::Requirement
|
43
49
|
requirements:
|
44
50
|
- - '>='
|
45
51
|
- !ruby/object:Gem::Version
|
46
52
|
version: '0'
|
47
|
-
name: guard
|
48
53
|
prerelease: false
|
49
54
|
type: :development
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: guard-rspec
|
50
57
|
version_requirements: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
59
|
- - '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
62
|
requirement: !ruby/object:Gem::Requirement
|
57
63
|
requirements:
|
58
64
|
- - '>='
|
59
65
|
- !ruby/object:Gem::Version
|
60
66
|
version: '0'
|
61
|
-
name: guard-rspec
|
62
67
|
prerelease: false
|
63
68
|
type: :development
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
64
71
|
version_requirements: !ruby/object:Gem::Requirement
|
65
72
|
requirements:
|
66
73
|
- - '>='
|
67
74
|
- !ruby/object:Gem::Version
|
68
75
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
76
|
requirement: !ruby/object:Gem::Requirement
|
71
77
|
requirements:
|
72
78
|
- - '>='
|
73
79
|
- !ruby/object:Gem::Version
|
74
80
|
version: '0'
|
75
|
-
name: pry
|
76
81
|
prerelease: false
|
77
82
|
type: :development
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry-remote
|
78
85
|
version_requirements: !ruby/object:Gem::Requirement
|
79
86
|
requirements:
|
80
87
|
- - '>='
|
81
88
|
- !ruby/object:Gem::Version
|
82
89
|
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
90
|
requirement: !ruby/object:Gem::Requirement
|
85
91
|
requirements:
|
86
92
|
- - '>='
|
87
93
|
- !ruby/object:Gem::Version
|
88
94
|
version: '0'
|
89
|
-
name: pry-remote
|
90
95
|
prerelease: false
|
91
96
|
type: :development
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry-nav
|
92
99
|
version_requirements: !ruby/object:Gem::Requirement
|
93
100
|
requirements:
|
94
101
|
- - '>='
|
95
102
|
- !ruby/object:Gem::Version
|
96
103
|
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
104
|
requirement: !ruby/object:Gem::Requirement
|
99
105
|
requirements:
|
100
106
|
- - '>='
|
101
107
|
- !ruby/object:Gem::Version
|
102
108
|
version: '0'
|
103
|
-
name: pry-nav
|
104
109
|
prerelease: false
|
105
110
|
type: :development
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: listen
|
106
113
|
version_requirements: !ruby/object:Gem::Requirement
|
107
114
|
requirements:
|
108
|
-
- -
|
115
|
+
- - <=
|
109
116
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
111
|
-
- !ruby/object:Gem::Dependency
|
117
|
+
version: 3.0.8
|
112
118
|
requirement: !ruby/object:Gem::Requirement
|
113
119
|
requirements:
|
114
|
-
- -
|
120
|
+
- - <=
|
115
121
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
117
|
-
name: bundler
|
122
|
+
version: 3.0.8
|
118
123
|
prerelease: false
|
119
124
|
type: :development
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: bundler
|
120
127
|
version_requirements: !ruby/object:Gem::Requirement
|
121
128
|
requirements:
|
122
129
|
- - ~>
|
123
130
|
- !ruby/object:Gem::Version
|
124
131
|
version: '1.5'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
132
|
requirement: !ruby/object:Gem::Requirement
|
127
133
|
requirements:
|
128
|
-
- -
|
134
|
+
- - ~>
|
129
135
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
131
|
-
name: rake
|
136
|
+
version: '1.5'
|
132
137
|
prerelease: false
|
133
138
|
type: :development
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rake
|
134
141
|
version_requirements: !ruby/object:Gem::Requirement
|
135
142
|
requirements:
|
136
143
|
- - '>='
|
137
144
|
- !ruby/object:Gem::Version
|
138
145
|
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
146
|
requirement: !ruby/object:Gem::Requirement
|
141
147
|
requirements:
|
142
|
-
- -
|
148
|
+
- - '>='
|
143
149
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
145
|
-
name: aws-sdk
|
150
|
+
version: '0'
|
146
151
|
prerelease: false
|
147
|
-
type: :
|
152
|
+
type: :development
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: aws-sdk
|
148
155
|
version_requirements: !ruby/object:Gem::Requirement
|
149
156
|
requirements:
|
150
157
|
- - ~>
|
151
158
|
- !ruby/object:Gem::Version
|
152
159
|
version: '1.0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
160
|
requirement: !ruby/object:Gem::Requirement
|
155
161
|
requirements:
|
156
|
-
- -
|
162
|
+
- - ~>
|
157
163
|
- !ruby/object:Gem::Version
|
158
|
-
version: '0'
|
159
|
-
name: alephant-logger
|
164
|
+
version: '1.0'
|
160
165
|
prerelease: false
|
161
166
|
type: :runtime
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: alephant-logger
|
162
169
|
version_requirements: !ruby/object:Gem::Requirement
|
163
170
|
requirements:
|
164
171
|
- - '>='
|
165
172
|
- !ruby/object:Gem::Version
|
166
173
|
version: '0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
174
|
requirement: !ruby/object:Gem::Requirement
|
169
175
|
requirements:
|
170
176
|
- - '>='
|
171
177
|
- !ruby/object:Gem::Version
|
172
178
|
version: '0'
|
173
|
-
name: alephant-support
|
174
179
|
prerelease: false
|
175
180
|
type: :runtime
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: alephant-support
|
176
183
|
version_requirements: !ruby/object:Gem::Requirement
|
177
184
|
requirements:
|
178
185
|
- - '>='
|
179
186
|
- !ruby/object:Gem::Version
|
180
187
|
version: '0'
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
188
|
requirement: !ruby/object:Gem::Requirement
|
183
189
|
requirements:
|
184
190
|
- - '>='
|
185
191
|
- !ruby/object:Gem::Version
|
186
192
|
version: '0'
|
187
|
-
name: dalli-elasticache
|
188
193
|
prerelease: false
|
189
194
|
type: :runtime
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: dalli-elasticache
|
190
197
|
version_requirements: !ruby/object:Gem::Requirement
|
191
198
|
requirements:
|
192
199
|
- - '>='
|
193
200
|
- !ruby/object:Gem::Version
|
194
201
|
version: '0'
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
202
|
requirement: !ruby/object:Gem::Requirement
|
197
203
|
requirements:
|
198
204
|
- - '>='
|
199
205
|
- !ruby/object:Gem::Version
|
200
206
|
version: '0'
|
201
|
-
name: crimp
|
202
207
|
prerelease: false
|
203
208
|
type: :runtime
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: crimp
|
204
211
|
version_requirements: !ruby/object:Gem::Requirement
|
205
212
|
requirements:
|
206
213
|
- - '>='
|
207
214
|
- !ruby/object:Gem::Version
|
208
215
|
version: '0'
|
216
|
+
requirement: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - '>='
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '0'
|
221
|
+
prerelease: false
|
222
|
+
type: :runtime
|
209
223
|
description:
|
210
224
|
email:
|
211
225
|
- FutureMediaNewsRubyGems@bbc.co.uk
|