parliament-utils 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.hound.yml +4 -0
  4. data/.rspec +2 -0
  5. data/.rubocop.yml +55 -0
  6. data/.ruby-version +1 -0
  7. data/.travis.yml +5 -0
  8. data/CODE_OF_CONDUCT.md +74 -0
  9. data/Gemfile +7 -0
  10. data/Instructions - Steps to include in app.md +95 -0
  11. data/LICENSE +7 -0
  12. data/Makefile +16 -0
  13. data/README.md +177 -0
  14. data/Rakefile +6 -0
  15. data/bin/console +14 -0
  16. data/bin/setup +8 -0
  17. data/config/locales/en.yml +387 -0
  18. data/config/puma.rb +20 -0
  19. data/lib/parliament/utils/config/initializers/airbrake.rb +76 -0
  20. data/lib/parliament/utils/config/initializers/assets.rb +11 -0
  21. data/lib/parliament/utils/config/initializers/backtrace_silencers.rb +7 -0
  22. data/lib/parliament/utils/config/initializers/bandiera.rb +3 -0
  23. data/lib/parliament/utils/config/initializers/cookies_serializer.rb +3 -0
  24. data/lib/parliament/utils/config/initializers/filter_parameter_logging.rb +4 -0
  25. data/lib/parliament/utils/config/initializers/inflections.rb +16 -0
  26. data/lib/parliament/utils/config/initializers/mime_types.rb +7 -0
  27. data/lib/parliament/utils/config/initializers/session_store.rb +3 -0
  28. data/lib/parliament/utils/config/initializers/timeout.rb +1 -0
  29. data/lib/parliament/utils/config/initializers/wrap_parameters.rb +9 -0
  30. data/lib/parliament/utils/config/initializers.rb +16 -0
  31. data/lib/parliament/utils/helpers/application_helper.rb +68 -0
  32. data/lib/parliament/utils/helpers/flag_helper.rb +29 -0
  33. data/lib/parliament/utils/helpers/format_helper.rb +18 -0
  34. data/lib/parliament/utils/helpers/houses_helper.rb +80 -0
  35. data/lib/parliament/utils/helpers/parliament_helper.rb +22 -0
  36. data/lib/parliament/utils/helpers/postcode_helper.rb +72 -0
  37. data/lib/parliament/utils/helpers/request_helper.rb +30 -0
  38. data/lib/parliament/utils/helpers/translation_helper.rb +12 -0
  39. data/lib/parliament/utils/helpers/v_card_helper.rb +57 -0
  40. data/lib/parliament/utils/helpers.rb +18 -0
  41. data/lib/parliament/utils/railtie.rb +12 -0
  42. data/lib/parliament/utils/test_helpers/bandiera_helper.rb +19 -0
  43. data/lib/parliament/utils/test_helpers/rails_helper.rb +42 -0
  44. data/lib/parliament/utils/test_helpers/rspec_helper.rb +76 -0
  45. data/lib/parliament/utils/test_helpers/simplecov_helper.rb +20 -0
  46. data/lib/parliament/utils/test_helpers/vcr_helper.rb +83 -0
  47. data/lib/parliament/utils/test_helpers/webmock_helper.rb +13 -0
  48. data/lib/parliament/utils/test_helpers.rb +19 -0
  49. data/lib/parliament/utils/version.rb +5 -0
  50. data/lib/parliament/utils.rb +10 -0
  51. data/log/test.log +0 -0
  52. data/parliament-utils.gemspec +41 -0
  53. metadata +318 -0
@@ -0,0 +1,41 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ require 'parliament/utils/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'parliament-utils'
9
+ spec.version = Parliament::Utils::VERSION
10
+ spec.authors = ['Rebecca Appleyard']
11
+ spec.email = ['rklappleyard@gmail.com']
12
+
13
+ spec.summary = %q{Parliament Utils gem.}
14
+ spec.description = %q{Parliament Utils gem.}
15
+ spec.homepage = 'http://github.com/ukparliament/parliament-utils'
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = 'exe'
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ['lib']
23
+
24
+ spec.add_dependency 'parliament-ruby', '~> 0.7'
25
+ spec.add_dependency 'parliament-grom-decorators', '~> 0.2'
26
+ spec.add_dependency 'parliament-ntriple'
27
+ spec.add_dependency 'i18n'
28
+ spec.add_dependency 'vcard'
29
+ spec.add_dependency 'coveralls'
30
+ spec.add_dependency 'simplecov'
31
+ spec.add_dependency 'bandiera-client'
32
+ spec.add_dependency 'pugin'
33
+ spec.add_dependency 'haml'
34
+
35
+ spec.add_development_dependency 'bundler', '~> 1.15'
36
+ spec.add_development_dependency 'rake', '~> 10.0'
37
+ spec.add_development_dependency 'rspec', '~> 3.0'
38
+ spec.add_development_dependency 'vcr', '~> 3.0'
39
+ spec.add_development_dependency 'simplecov', '~> 0.12'
40
+ spec.add_development_dependency 'webmock', '~> 2.3'
41
+ end
metadata ADDED
@@ -0,0 +1,318 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: parliament-utils
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Rebecca Appleyard
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-07-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: parliament-ruby
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.7'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: parliament-grom-decorators
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: parliament-ntriple
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: i18n
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: vcard
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: coveralls
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: bandiera-client
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pugin
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: haml
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: bundler
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '1.15'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '1.15'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rake
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '10.0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '10.0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rspec
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '3.0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '3.0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: vcr
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '3.0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '3.0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: simplecov
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '0.12'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '0.12'
223
+ - !ruby/object:Gem::Dependency
224
+ name: webmock
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: '2.3'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: '2.3'
237
+ description: Parliament Utils gem.
238
+ email:
239
+ - rklappleyard@gmail.com
240
+ executables: []
241
+ extensions: []
242
+ extra_rdoc_files: []
243
+ files:
244
+ - ".gitignore"
245
+ - ".hound.yml"
246
+ - ".rspec"
247
+ - ".rubocop.yml"
248
+ - ".ruby-version"
249
+ - ".travis.yml"
250
+ - CODE_OF_CONDUCT.md
251
+ - Gemfile
252
+ - Instructions - Steps to include in app.md
253
+ - LICENSE
254
+ - Makefile
255
+ - README.md
256
+ - Rakefile
257
+ - bin/console
258
+ - bin/setup
259
+ - config/locales/en.yml
260
+ - config/puma.rb
261
+ - lib/parliament/utils.rb
262
+ - lib/parliament/utils/config/initializers.rb
263
+ - lib/parliament/utils/config/initializers/airbrake.rb
264
+ - lib/parliament/utils/config/initializers/assets.rb
265
+ - lib/parliament/utils/config/initializers/backtrace_silencers.rb
266
+ - lib/parliament/utils/config/initializers/bandiera.rb
267
+ - lib/parliament/utils/config/initializers/cookies_serializer.rb
268
+ - lib/parliament/utils/config/initializers/filter_parameter_logging.rb
269
+ - lib/parliament/utils/config/initializers/inflections.rb
270
+ - lib/parliament/utils/config/initializers/mime_types.rb
271
+ - lib/parliament/utils/config/initializers/session_store.rb
272
+ - lib/parliament/utils/config/initializers/timeout.rb
273
+ - lib/parliament/utils/config/initializers/wrap_parameters.rb
274
+ - lib/parliament/utils/helpers.rb
275
+ - lib/parliament/utils/helpers/application_helper.rb
276
+ - lib/parliament/utils/helpers/flag_helper.rb
277
+ - lib/parliament/utils/helpers/format_helper.rb
278
+ - lib/parliament/utils/helpers/houses_helper.rb
279
+ - lib/parliament/utils/helpers/parliament_helper.rb
280
+ - lib/parliament/utils/helpers/postcode_helper.rb
281
+ - lib/parliament/utils/helpers/request_helper.rb
282
+ - lib/parliament/utils/helpers/translation_helper.rb
283
+ - lib/parliament/utils/helpers/v_card_helper.rb
284
+ - lib/parliament/utils/railtie.rb
285
+ - lib/parliament/utils/test_helpers.rb
286
+ - lib/parliament/utils/test_helpers/bandiera_helper.rb
287
+ - lib/parliament/utils/test_helpers/rails_helper.rb
288
+ - lib/parliament/utils/test_helpers/rspec_helper.rb
289
+ - lib/parliament/utils/test_helpers/simplecov_helper.rb
290
+ - lib/parliament/utils/test_helpers/vcr_helper.rb
291
+ - lib/parliament/utils/test_helpers/webmock_helper.rb
292
+ - lib/parliament/utils/version.rb
293
+ - log/test.log
294
+ - parliament-utils.gemspec
295
+ homepage: http://github.com/ukparliament/parliament-utils
296
+ licenses: []
297
+ metadata: {}
298
+ post_install_message:
299
+ rdoc_options: []
300
+ require_paths:
301
+ - lib
302
+ required_ruby_version: !ruby/object:Gem::Requirement
303
+ requirements:
304
+ - - ">="
305
+ - !ruby/object:Gem::Version
306
+ version: '0'
307
+ required_rubygems_version: !ruby/object:Gem::Requirement
308
+ requirements:
309
+ - - ">="
310
+ - !ruby/object:Gem::Version
311
+ version: '0'
312
+ requirements: []
313
+ rubyforge_project:
314
+ rubygems_version: 2.6.12
315
+ signing_key:
316
+ specification_version: 4
317
+ summary: Parliament Utils gem.
318
+ test_files: []