ea-area_lookup 0.2.1 → 0.2.2

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: c99ab0de6a724c2523342a8a449fbb9339775d9d
4
- data.tar.gz: 7116fcacb2bfdb3aefe0014a9529194c1378a749
3
+ metadata.gz: 2ebb3ce081b3b0c65c18e347c7c675f2dfaf0639
4
+ data.tar.gz: 8fc6e31040527ae90d4b4f87a0fbcbf3ab5b947f
5
5
  SHA512:
6
- metadata.gz: d2756f41e09bd6759e81287d85b915a82a4d79f81aced6c06d7c0d9ff4db316614ddd0e710b6c6c98df515e583ad6a222390a15b64b5c23235485046cb370f96
7
- data.tar.gz: d085bc9adadd4f24ebd109c9a42fcc48d9bc553e7f63c7622c3f6e0fd92dbed21a24f9b3f953cb61279c9d440b5c0dc0687571d13dbfd4b6fd4a69cdfe03db9c
6
+ metadata.gz: aee7fa970d492f90f616a145fb1339cd6bbf431bddd7fed2d94a109bb0dc86ab9d9c5d478b21220e1b1205247e5d823834cc471aaa4842c73e704a629bfb66db
7
+ data.tar.gz: 9de87e23e276a60f6589197cb5f3c075323e190bcc174eb1f0348ca889621d607f7c135c419f6c3c8df9cc6cec3aae34066b7d5b1f68e0a5380598f2c58c43bb
@@ -1,32 +1,29 @@
1
+ env:
2
+ global:
3
+ - CC_TEST_REPORTER_ID=5fb5a14e6e46bf106b2c94f3fcdc17624a6b7151c565095f254098e38de335db
4
+
1
5
  language: ruby
2
- cache: bundler
3
6
  rvm: 2.3.1
4
- before_install: gem install bundler -v 1.12.3
5
- bundler_args: "--binstubs=./bundler_stubs"
7
+ cache: bundler
8
+
9
+ before_install:
10
+ - export TZ=UTC
11
+ - gem install -v 1.17.3 bundler --no-document
12
+
6
13
  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
13
- # Have this option to stop travis-ci building twice. Currently we have travis set to build both
14
- # PR's and pushes. However this means when we push to a PR we have to wait for Travis to finish
15
- # 2 builds. If we unticked 'pushes' when the PR was finally merged that would not be built. The
16
- # brute force approach would be to untick build PR's and just build all pushes. We instead have
17
- # gone with the approach outlined here http://stackoverflow.com/a/31882307
18
- branches:
19
- only:
20
- - master
14
+ # Setup to support the CodeClimate test coverage submission
15
+ # As per CodeClimate's documentation, they suggest only running
16
+ # ./cc-test-reporter commands on travis-ci push builds only. Hence we wrap all
17
+ # the codeclimate test coverage related commands in a check that tests if we
18
+ # are in a pull request or not.
19
+ - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter; fi
20
+ - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then chmod +x ./cc-test-reporter; fi
21
+ - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter before-build; fi
22
+
23
+ after_script:
24
+ - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
21
25
 
22
- # This section was added as per https://docs.travis-ci.com/user/code-climate/
23
- # To protect our codeclimate stats rather than adding the Codeclimate API key for ea-area_lookup
24
- # in the open we used this guide https://docs.travis-ci.com/user/encryption-keys/ to encryt the
25
- # value. Essentially install travis gem, then run `travis encrypt <my_code_climate_api_key>`
26
26
  addons:
27
- code_climate:
28
- repo_token:
29
- secure: "DsWI1kzx5RIfB/QQysErQTW94FF6v512q3vqFChSXaAViJA6LgU9coBRiLtZ3RyE0YcvPzu0B1q/fqR4sDq4xG1L6VMY2PlF4ZI57AaPa1WFmzT9mCAhYCbpYKXuMySCoS4YvoHrHgwd30M0RYmiRtZY75Olmbd1PsbbZGfnIGwcEchujHb6oQ6WKgEAqq6zvHHf5QM18oSm4ZCFSYijGU7BvxMsLTToFuPnndGomWHCfMDSyBkC2wt5pmfdsjbirrsPPnFbYxCOCxGk77WWw9G+swUZclgUiUn1q2tSFgri27zufbFuGknDWf9HMiMqzgfCO8kut/78CqRjt5BtUm2otJLEhlpmL4t9rqDUKl/hmc+asxfoj04qP1cNRmjZf0QYbT4rFlsFlcNgYNcZcLf66ry9c8WXcpV6qvKukaT9Xyj1/KAVXDqO1EUd1oEBIoKnILW7H4Zhbjhu6lq2ga47Wux0IrMdtHE2RwjdtCxwfhkuUcblfnPpjW8tXeDND0nE/Se45rXZ/YwojZSeqyZCvZbcXMOvggzRQeAgi02sruw33oZU6W/f8VOjC5VrB1KEHm4j0n21dI6ENu0D+tbjBIW0TvI47hAuV/R1v7kHJVbSIcAedtxWt87mSdyQkOukCVSYHMOKJHY6T1EtZlK5V9RHDrHD8KIMeJV/Dx0="
30
27
  deploy:
31
28
  provider: rubygems
32
29
  api_key:
@@ -34,5 +31,5 @@ deploy:
34
31
  gem: ea-area_lookup
35
32
  on:
36
33
  tags: true
37
- repo: EnvironmentAgency/ea-area_lookup
34
+ repo: DEFRA/ea-area_lookup
38
35
  all_branches: true
@@ -1,4 +1,11 @@
1
- # Change log
1
+ # Changelog
2
+
3
+ ### 0.2.2
4
+
5
+ - Update Nokogiri
6
+ - Remove before_commit
7
+ - Modernise Travis CI config
8
+ - Fix Code Climate test reporting
2
9
 
3
10
  ### 0.1.1
4
11
 
@@ -6,6 +13,6 @@
6
13
  - Loosened gem dependency version restrictions
7
14
  - Alter Travis config to build using Ruby 2.3.1 and autodeploy to ruby gems on a tag push
8
15
 
9
- ### 0.1.0
16
+ ### 0.1.0
10
17
 
11
- Initial release
18
+ Initial release
data/Gemfile CHANGED
@@ -3,6 +3,3 @@ ruby "2.3.1"
3
3
 
4
4
  # Specify your gem's dependencies in gemspec
5
5
  gemspec
6
-
7
- # Required to enable codeclimate's test coverage functionality
8
- gem "codeclimate-test-reporter", group: :test, require: nil
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # EA::AreaLookup
2
2
 
3
- [![Build Status](https://travis-ci.org/EnvironmentAgency/ea-area_lookup.svg?branch=master)](https://travis-ci.org/EnvironmentAgency/ea-area_lookup)
4
- [![security](https://hakiri.io/github/EnvironmentAgency/ea-area_lookup/master.svg)](https://hakiri.io/github/EnvironmentAgency/ea-area_lookup/master)
5
- [![Code Climate](https://codeclimate.com/github/EnvironmentAgency/ea-area_lookup/badges/gpa.svg)](https://codeclimate.com/github/EnvironmentAgency/ea-area_lookup)
6
- [![Test Coverage](https://codeclimate.com/github/EnvironmentAgency/ea-area_lookup/badges/coverage.svg)](https://codeclimate.com/github/EnvironmentAgency/ea-area_lookup/coverage)
3
+ [![Build Status](https://travis-ci.org/DEFRA/ea-area_lookup.svg?branch=master)](https://travis-ci.org/DEFRA/ea-area_lookup)
4
+ [![security](https://hakiri.io/github/DEFRA/ea-area_lookup/master.svg)](https://hakiri.io/github/DEFRA/ea-area_lookup/master)
5
+ [![Code Climate](https://codeclimate.com/github/DEFRA/ea-area_lookup/badges/gpa.svg)](https://codeclimate.com/github/DEFRA/ea-area_lookup)
6
+ [![Test Coverage](https://codeclimate.com/github/DEFRA/ea-area_lookup/badges/coverage.svg)](https://codeclimate.com/github/DEFRA/ea-area_lookup/coverage)
7
7
  [![Gem Version](https://badge.fury.io/rb/ea-area_lookup.svg)](https://badge.fury.io/rb/ea-area_lookup)
8
8
 
9
9
  This ruby gem provides a means of looking up the Environment Agency Administrative Area (e.g. 'Wessex')
data/Rakefile CHANGED
@@ -3,8 +3,4 @@ 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
-
10
6
  task default: :spec
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
- spec.add_dependency "nokogiri", "~> 1.6.8"
24
+ spec.add_dependency "nokogiri", "~> 1.7"
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.11"
27
27
  spec.add_development_dependency "rake"
@@ -31,5 +31,4 @@ Gem::Specification.new do |spec|
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"
35
34
  end
@@ -1,5 +1,5 @@
1
1
  module EA
2
2
  module AreaLookup
3
- VERSION = "0.2.1".freeze
3
+ VERSION = "0.2.2".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ea-area_lookup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Digital Services Team, EnvironmentAgency
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-13 00:00:00.000000000 Z
11
+ date: 2019-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.6.8
19
+ version: '1.7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.6.8
26
+ version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -136,20 +136,6 @@ 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'
153
139
  description: Provides a means of looking-up an Environment Agency administrative area
154
140
  using the co-ordinates of any point in England.
155
141
  email: