smartystreets_ruby_sdk 5.5.4 → 5.6.0

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
  SHA256:
3
- metadata.gz: d63a911196a9b659202a8b1239377046c8546b4be3078fdfb57f12e1df97e51f
4
- data.tar.gz: c86e0bfdd1599212e502dbaeb8accd12891a70816354c88509c3b55ce1f9b3af
3
+ metadata.gz: 794413a1e06521762ba503facba2cb26a1c3ca7394611d2fe1aebc48d57720d4
4
+ data.tar.gz: dee93752476e4fd1c7ef53795ecddd497a7d02bae3cef58c001f9df139052cc0
5
5
  SHA512:
6
- metadata.gz: 8d2f2fdda91ca5e12289245ce3691cb9f56c3e3f0322712f91f71d1b3bb3001a294d723bcb3081a4f1d62b3459d092e8de237602ec03d1aee15481cf69c5becc
7
- data.tar.gz: 5a4c9872913d127603a7831cb00f22a31e762efce8fd038c7d842b4fa99312aae4ceccde80872795f888420d9524f5ae05b9ec786839d01b2637dc51c6b1fd8e
6
+ metadata.gz: f817be4207343dee1d4fe04afc4c2619d6b571feafb16d09dea1e5173dfb58cac6017fbed9b892b7cb676712a8c69cc521577ee60ca647dcbe43db18f6079d5a
7
+ data.tar.gz: b030694e778f413b5e5018968638fed3d4f0f963ea23a580a6deca8f6b54e7ea6cb881323cc729ddcab42f897722cb9d21b685f49a9b0166124043c7f2733082
@@ -0,0 +1,29 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Changed:
11
+
12
+ - Using `warn` instead of `log` to avoid conflict with builtin function.
13
+
14
+ ## [5.5.4] - 2018-09-18
15
+
16
+ ### Changed:
17
+
18
+ - Standardized `Makefile`.
19
+
20
+
21
+ ## [Earlier]
22
+
23
+ For details on earlier changes, please see the [releases listing](https://github.com/smartystreets/smartystreets-ruby-sdk/releases).
24
+
25
+ ------------
26
+
27
+ [Unreleased]: https://github.com/smartystreets/smartystreets-ruby-sdk/compare/5.5.4...HEAD
28
+ [5.5.4]: https://github.com/smartystreets/smartystreets-ruby-sdk/compare/5.5.3...5.5.4
29
+ [Earlier]: https://github.com/smartystreets/smartystreets-ruby-sdk/releases
data/Dockerfile CHANGED
@@ -5,3 +5,6 @@ WORKDIR /code
5
5
 
6
6
  RUN apk add -U make git && make dependencies \
7
7
  && wget -O - "https://github.com/smartystreets/version-tools/releases/download/0.0.6/release.tar.gz" | tar -xz -C /usr/local/bin/
8
+
9
+ ARG RUBYGEMS_API_KEY
10
+ RUN mkdir -p ~/.gem && umask 0277 && echo "${RUBYGEMS_API_KEY}" > ~/.gem/credentials
data/Makefile CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/make -f
2
2
 
3
+ VERSION := $(shell tagit -p --dry-run)
3
4
  VERSION_FILE := lib/smartystreets_ruby_sdk/version.rb
4
- IDENTITY_FILE := ~/.gem/credentials
5
5
 
6
6
  clean:
7
7
  rm -f *.gem
@@ -14,16 +14,12 @@ dependencies:
14
14
  gem install minitest
15
15
 
16
16
  package: clean dependencies test
17
- sed -i "s/0\.0\.0/$(shell tagit -p --dry-run)/g" "$(VERSION_FILE)" \
17
+ sed -i "s/0\.0\.0/$(VERSION)/g" "$(VERSION_FILE)" \
18
18
  && gem build *.gemspec \
19
19
  && git checkout "$(VERSION_FILE)"
20
20
 
21
- identity:
22
- test -f $(IDENTITY_FILE) || (mkdir -p $(dir $(IDENTITY_FILE)) \
23
- && echo ":rubygems_api_key: $(RUBYGEMS_API_KEY)" > $(IDENTITY_FILE) \
24
- && chmod 0600 $(IDENTITY_FILE))
25
-
26
- publish: package identity
21
+ publish: package
22
+ chmod 0600 /root/.gem/credentials
27
23
  gem push *.gem
28
24
 
29
25
  #####################################################################
@@ -34,4 +30,4 @@ workspace:
34
30
  release:
35
31
  docker-compose run sdk make publish && tagit -p && git push origin --tags
36
32
 
37
- .PHONY: clean test dependencies package publish identity workspace release
33
+ .PHONY: clean test dependencies package publish workspace release
@@ -1,10 +1,12 @@
1
1
  version: '3.7'
2
2
  services:
3
3
  sdk:
4
- build: .
4
+ build:
5
+ context: .
6
+ args:
7
+ - RUBYGEMS_API_KEY
5
8
  volumes:
6
9
  - .:/code
7
10
  environment:
8
11
  - SMARTY_AUTH_ID
9
12
  - SMARTY_AUTH_TOKEN
10
- - RUBYGEMS_API_KEY
@@ -27,7 +27,7 @@ module SmartyStreets
27
27
  def backoff(attempt)
28
28
  backoff_duration = [attempt, MAX_BACKOFF_DURATION].min
29
29
 
30
- @logger.log("There was an error processing the request. Retrying in #{backoff_duration} seconds...")
30
+ @logger.warn("There was an error processing the request. Retrying in #{backoff_duration} seconds...")
31
31
  @sleeper.sleep(backoff_duration)
32
32
  end
33
33
  end
@@ -11,7 +11,7 @@ module SmartyStreets
11
11
  @cmra = obj['dpv_cmra']
12
12
  @vacant = obj['dpv_vacant']
13
13
  @active = obj['active']
14
- @is_ews_match = obj['ews_match']
14
+ @is_ews_match = "Deprecated, refer to metadata.is_ews_match"
15
15
  @footnotes = obj['footnotes']
16
16
  @lacs_link_code = obj['lacslink_code']
17
17
  @lacs_link_indicator = obj['lacslink_indicator']
@@ -4,7 +4,7 @@ module SmartyStreets
4
4
  class Metadata
5
5
  attr_reader :elot_sort, :longitude, :elot_sequence, :county_fips, :building_default_indicator, :rdi,
6
6
  :congressional_district, :latitude, :precision, :time_zone, :zip_type, :county_name, :utc_offset,
7
- :record_type, :carrier_route, :obeys_dst
7
+ :record_type, :carrier_route, :obeys_dst, :is_an_ews_match
8
8
 
9
9
  def initialize(obj)
10
10
  @record_type = obj['record_type']
@@ -23,6 +23,7 @@ module SmartyStreets
23
23
  @time_zone = obj['time_zone']
24
24
  @utc_offset = obj['utc_offset']
25
25
  @obeys_dst = obj['dst']
26
+ @is_an_ews_match = obj['ews_match']
26
27
  end
27
28
  end
28
29
  end
@@ -1,3 +1,3 @@
1
1
  module SmartyStreets
2
- VERSION = '5.5.4' # DO NOT EDIT (this is updated by a build job when a new release is published)
2
+ VERSION = '5.6.0' # DO NOT EDIT (this is updated by a build job when a new release is published)
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartystreets_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.5.4
4
+ version: 5.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SmartyStreets SDK Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-18 00:00:00.000000000 Z
11
+ date: 2019-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,6 +80,7 @@ extensions: []
80
80
  extra_rdoc_files: []
81
81
  files:
82
82
  - ".gitignore"
83
+ - CHANGELOG.md
83
84
  - Dockerfile
84
85
  - Gemfile
85
86
  - LICENSE.txt
@@ -172,8 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
173
  - !ruby/object:Gem::Version
173
174
  version: '0'
174
175
  requirements: []
175
- rubyforge_project:
176
- rubygems_version: 2.7.7
176
+ rubygems_version: 3.0.1
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: An official library for the SmartyStreets APIs