ea-area_lookup 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 548a57db3114a3cc09e50835c6aee5db409a7502
4
- data.tar.gz: 65e4bf7c47eb3e67437bcf1561233a004358468d
3
+ metadata.gz: ce5bd1266c4153e3c4e7b2d2efa730895cc44b2a
4
+ data.tar.gz: 93f39f191a47dee54dbcf1c2be3bcdb83302e238
5
5
  SHA512:
6
- metadata.gz: 94d7677a81b2fc5528a460b07c110bf61a56acd7184fec2771a9e93b402ae66a0514491ed8c9da9f2788e607f05a250597151928325d4d74ef3947cdcd1d1ec2
7
- data.tar.gz: 2b8ac1b2bb67326f6dff100ba092841add29a9582323ae77a816eaa3aaefb65ae70b34d2c0ab7eb568d2ce79a407c0b84d182d1ceddb3dbf41b1ab621c3a0043
6
+ metadata.gz: 628b9cafe1581ff45e0e2c9fde0b2acc11f4be469ba4d9782f1f204aa0159b9ee4b8518380bffaf12b6d32ad5f95a18cfec70e088732b738cf97255e24ba7ff7
7
+ data.tar.gz: d2dd70e04308dfe4c10ed420adf021100ad5f0a559d9081ca9e03ab6dce341890bdeafbf7995e9c9e2fe8ccb68982065dc4c2244099bc920402e9ec31d0b6015
data/.gitignore CHANGED
@@ -5,10 +5,6 @@
5
5
  /.overcommit_gems.rb
6
6
  /.overcommit_gems.rb.lock
7
7
  /.rubocop.yml
8
- /rubocop/gds-ruby-styleguide.yml
9
- /rubocop/other-lint.yml
10
- /rubocop/other-rails.yml
11
- /rubocop/other-style.yml
12
8
  /.bundle/
13
9
  /.yardoc
14
10
  /Gemfile.lock
@@ -21,3 +17,6 @@
21
17
  .DS_Store
22
18
  .byebug_history
23
19
  .rspec-local
20
+ .git-hooks/
21
+ .rubocop.yml
22
+ .htmlhintrc
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.3.1
data/.travis.yml CHANGED
@@ -1,11 +1,15 @@
1
1
  language: ruby
2
2
  cache: bundler
3
-
4
- rvm:
5
- - 2.2.3
6
-
7
- before_install: gem install bundler -v 1.11.2
8
-
3
+ rvm: 2.3.1
4
+ before_install: gem install bundler -v 1.12.3
5
+ bundler_args: "--binstubs=./bundler_stubs"
6
+ before_script:
7
+ script:
8
+ - bundle exec rake --trace before_commit:run_without_checks
9
+ - git config --global user.email test@example.com
10
+ - git config --global user.name "Test Example"
11
+ - BUNDLE_GEMFILE=.overcommit_gems.rb bundle exec overcommit --run
12
+ - bundle exec rspec
9
13
  # Have this option to stop travis-ci building twice. Currently we have travis set to build both
10
14
  # PR's and pushes. However this means when we push to a PR we have to wait for Travis to finish
11
15
  # 2 builds. If we unticked 'pushes' when the PR was finally merged that would not be built. The
@@ -23,3 +27,12 @@ addons:
23
27
  code_climate:
24
28
  repo_token:
25
29
  secure: "DsWI1kzx5RIfB/QQysErQTW94FF6v512q3vqFChSXaAViJA6LgU9coBRiLtZ3RyE0YcvPzu0B1q/fqR4sDq4xG1L6VMY2PlF4ZI57AaPa1WFmzT9mCAhYCbpYKXuMySCoS4YvoHrHgwd30M0RYmiRtZY75Olmbd1PsbbZGfnIGwcEchujHb6oQ6WKgEAqq6zvHHf5QM18oSm4ZCFSYijGU7BvxMsLTToFuPnndGomWHCfMDSyBkC2wt5pmfdsjbirrsPPnFbYxCOCxGk77WWw9G+swUZclgUiUn1q2tSFgri27zufbFuGknDWf9HMiMqzgfCO8kut/78CqRjt5BtUm2otJLEhlpmL4t9rqDUKl/hmc+asxfoj04qP1cNRmjZf0QYbT4rFlsFlcNgYNcZcLf66ry9c8WXcpV6qvKukaT9Xyj1/KAVXDqO1EUd1oEBIoKnILW7H4Zhbjhu6lq2ga47Wux0IrMdtHE2RwjdtCxwfhkuUcblfnPpjW8tXeDND0nE/Se45rXZ/YwojZSeqyZCvZbcXMOvggzRQeAgi02sruw33oZU6W/f8VOjC5VrB1KEHm4j0n21dI6ENu0D+tbjBIW0TvI47hAuV/R1v7kHJVbSIcAedtxWt87mSdyQkOukCVSYHMOKJHY6T1EtZlK5V9RHDrHD8KIMeJV/Dx0="
30
+ deploy:
31
+ provider: rubygems
32
+ api_key:
33
+ secure: BQYV2mKJ4LItAiYgYSW1ixVMIlk1ahzvbMXJz/xtH2XfZzT7T6r17VbjpH2pbJo5QbChwsWaZOAZq2nrPIsgrh09/liflZC010Qc60zIYqgB4LXOu7KM6XEpfSvc/NCf0NwPExIjF2jskuhAwQXJVWLCcDGEyUEGnNhn5NDPq7TXR9U0sQyY1MZfJvlQwUNgaOThGA7b6DzUiim7LpGTAs7PcBHKfgwr1hRqVQ0VMF1jZsdvVID9IPVqfojOrNnAzoN2MpgybhsUTkSueV6WaWPhbY0eXH2U0EKx9grlyb0TBHfYVSADC8tNKB/ooJv6ofHfL+cZTki4+gCKOmv+vs2IkNqs1fucLMwDaE48sI/9omvyPPD4t1SMAhA+IBCUGQdXz8CvIsLf6gf/N8srQnUv8QiAoHw1ArkCt4Y2D1iYAf8r+XGP4nuewVJwNHG+9qQILDz4xlCPUJFtBdbiDo1RjazoLtOhTfnSemXeDVl+GUE09fzO3iclBAN2wiGGLRy57SEs+VkQLmPGb9aaJ+LXuMgtr1lzqX0x4JdyG690qCoZcRF+uwDcnBX+HjJcZOzcHORpOlqJM8LaFl86oo3DrdnvJgpkumn3LllsS2CYOO191b3nWnN0lbEuLpT0TbtO4Mhk/YwDG9VZpbwAATiLBMd0IiAmlGbdZMw9ias=
34
+ gem: ea-area_lookup
35
+ on:
36
+ tags: true
37
+ repo: EnvironmentAgency/ea-area_lookup
38
+ all_branches: true
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # Change log
2
+
3
+ ### 0.1.1
4
+
5
+ - Added before_commit
6
+ - Loosened gem dependency version restrictions
7
+ - Alter Travis config to build using Ruby 2.3.1 and autodeploy to ruby gems on a tag push
8
+
9
+ ### 0.1.0
10
+
11
+ Initial release
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source "https://rubygems.org"
2
- ruby "2.2.3"
2
+ ruby "2.3.1"
3
3
 
4
4
  # Specify your gem's dependencies in gemspec
5
5
  gemspec
data/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  [![Build Status](https://travis-ci.org/EnvironmentAgency/ea-area_lookup.svg?branch=master)](https://travis-ci.org/EnvironmentAgency/ea-area_lookup)
4
4
  [![Code Climate](https://codeclimate.com/github/EnvironmentAgency/ea-area_lookup/badges/gpa.svg)](https://codeclimate.com/github/EnvironmentAgency/ea-area_lookup)
5
5
  [![Test Coverage](https://codeclimate.com/github/EnvironmentAgency/ea-area_lookup/badges/coverage.svg)](https://codeclimate.com/github/EnvironmentAgency/ea-area_lookup/coverage)
6
+ [![Gem Version](https://badge.fury.io/rb/ea-area_lookup.svg)](https://badge.fury.io/rb/ea-area_lookup)
6
7
 
7
8
  This ruby gem provides a means of looking up the Environment Agency Administrative Area (e.g. 'Wessex')
8
9
  for a given easting and northing. It wraps an API designed for this purpose.
data/Rakefile CHANGED
@@ -3,4 +3,8 @@ require "rspec/core/rake_task"
3
3
 
4
4
  RSpec::Core::RakeTask.new(:spec)
5
5
 
6
+ require 'before_commit'
7
+ spec = Gem::Specification.find_by_name 'before_commit'
8
+ load "#{spec.gem_dir}/lib/tasks/before_commit.rake"
9
+
6
10
  task default: :spec
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.homepage = "https://github.com/EnvironmentAgency"
16
16
  spec.license = "The Open Government Licence (OGL) Version 3"
17
17
 
18
- spec.required_ruby_version = '>= 2.2'
18
+ spec.required_ruby_version = ">= 2.2"
19
19
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
20
  spec.bindir = "exe"
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -24,11 +24,12 @@ Gem::Specification.new do |spec|
24
24
  spec.add_dependency "nokogiri", "~> 1.3"
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.11"
27
- spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "rake"
28
28
  spec.add_development_dependency "rspec", "~> 3.0"
29
29
  spec.add_development_dependency "byebug"
30
30
  spec.add_development_dependency "vcr", "~> 3.0"
31
31
  spec.add_development_dependency "webmock", "~> 1.24"
32
32
  spec.add_development_dependency "shoulda-matchers", "~> 3.1"
33
33
  spec.add_development_dependency "simplecov"
34
+ spec.add_development_dependency "before_commit"
34
35
  end
@@ -1,5 +1,5 @@
1
1
  module EA
2
2
  module AreaLookup
3
- VERSION = "0.1.0".freeze
3
+ VERSION = "0.1.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ea-area_lookup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Digital Services Team, EnvironmentAgency
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: before_commit
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
139
153
  description: Provides a means of looking-up an Environment Agency administrative area
140
154
  using the co-ordinates of any point in England.
141
155
  email:
@@ -147,8 +161,10 @@ files:
147
161
  - ".codeclimate.yml"
148
162
  - ".gitignore"
149
163
  - ".rspec"
164
+ - ".ruby-version"
150
165
  - ".simplecov"
151
166
  - ".travis.yml"
167
+ - CHANGELOG.md
152
168
  - Gemfile
153
169
  - LICENSE
154
170
  - README.md
@@ -183,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
199
  version: '0'
184
200
  requirements: []
185
201
  rubyforge_project:
186
- rubygems_version: 2.4.8
202
+ rubygems_version: 2.5.1
187
203
  signing_key:
188
204
  specification_version: 4
189
205
  summary: Provides a means of looking-up Environment Agency administrative areas.