worldly 0.1.5 → 0.1.6

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: 87b9708551f34c1fcd9f955f245d9f77a924ffc4
4
- data.tar.gz: 91e4caf3bf6c13d8f7cc319e5609caa1e8297333
3
+ metadata.gz: e0ed9d026bb2d52abcbaa9ac6bcd4d1467284e74
4
+ data.tar.gz: 9750800f35a07ffd2df1f156d3cb37da49b56054
5
5
  SHA512:
6
- metadata.gz: 85c78264f6a72b21e4d02f0e0fb9222a2ac0945548bb65f5c4a3cd614440c7906aa22a9da338d3f362e4fd977eb814cf10c61aa5cd17e7e5c51d81828c057164
7
- data.tar.gz: c2f7ea92ec81da7561347c7a241bb9c56e9fd096d9b6a9e1af4b8b7610f57c7db428f1661ead5f104e315d94c7099223023a31e9c991d634fcd13400300a3352
6
+ metadata.gz: 72404dc222eaac30d4ef53e3f92c7841b3ee21fe4284aaf6a394d724d084d3b8ec9dd5a464519228d873712888b7a118c478c96c91cdbbf3febb3b81059bc1d3
7
+ data.tar.gz: 3d0da484107737c3989679ab9d19d7c98092a66b32f716849798a4a1c41a9dcd9b8ab06924f7470606750da803bb962161c8db113c1fcd2721ea501ea2306746
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ = Version 0.1.6 - 2015-04-09
2
+ * Fix: to_print method dup attributes to ensure original data not changed
3
+
1
4
  = Version 0.1.5 - 2014-07-04
2
5
  * Fix: country_code_options now sorts correctly by integer
3
6
 
@@ -37,6 +37,7 @@ module Worldly
37
37
  # attributes = {address1: '12 hey St', address2: '', locality:'Homeville', postcode: 'AHZ 312' }
38
38
  # sending country = 'AU'. If added the country name will be excluded from address
39
39
  def to_print(attributes, sending_country=nil)
40
+ attributes = attributes.dup
40
41
  # don't add country if sending from country
41
42
  unless sending_country.to_s.upcase == @code
42
43
  attributes.merge!({ country: name})
@@ -1,3 +1,3 @@
1
1
  module Worldly
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: worldly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lewis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-04 00:00:00.000000000 Z
11
+ date: 2015-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 2.3.0
89
+ rubygems_version: 2.2.2
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Country address formatting and telephone information