addressable_record 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDQxMWYwOWIyYjcxYzUzMzNjMWVkOWQ1OGU4NWI1OGQ2N2M2MDNhYg==
5
+ data.tar.gz: !binary |-
6
+ ZWRkMmM5ZmE5YWJmNmJjMzdlNDBjNDNjMTA0Nzg5YThjOTA3ZmFjYQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MjJhNjNkMTIwOTllNmYyYTk1OTAxMDY4ZTliOWI2MzUxNWYyZWNkNjk3MTU3
10
+ OTA4MzQzNTFkNjViMWZkNmJiZmNjMDg3YjU0ZTI1ODY4ZTUxZjk0ZTY4ODE5
11
+ YzgwNjMyOWNmYWIxZDYzYmNjNDgzN2FkYzFkN2YwNjFjMDg5MjI=
12
+ data.tar.gz: !binary |-
13
+ MjY0ZDE0ZDczMTQyNTU4OTljYTljMzg4YzVlMjZhNjlkNWQwNWY4YjUxYzhk
14
+ ODM1YzY1ZmE5MGIxODA0MDAwZTgyNTNiNzVhZTU4M2IzYWMwZmRmMmZiNzI3
15
+ NTJhNGRhMjliNzc5OWRkMWFiM2UxN2RkZTUzOWY1YzIxZGMxMTE=
@@ -76,8 +76,12 @@ Call the macro in an ActiveRecord descendant:
76
76
 
77
77
  Set the field equal to something:
78
78
 
79
- @user.home_address = AddressableRecord::Address.new( :raw_street => '123 Jones Street###Suite 540', :city => 'Atlanta',
80
- :state_or_province => 'GA', :raw_zip_code => '333331111', :country => 'U.S.A.' )
79
+ @user.home_address = AddressableRecord::Address.new(
80
+ :raw_street => '123 Jones Street###Suite 540',
81
+ :city => 'Atlanta',
82
+ :state_or_province => 'GA',
83
+ :raw_zip_code => '333331111',
84
+ :country => 'U.S.A.' )
81
85
 
82
86
  or (with identical results):
83
87
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.5.0
@@ -2,14 +2,15 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: addressable_record 1.5.0 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "addressable_record"
8
- s.version = "1.4.0"
9
+ s.version = "1.5.0"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
12
  s.authors = ["C. Jason Harrelson (midas)"]
12
- s.date = "2013-09-20"
13
+ s.date = "2014-01-13"
13
14
  s.description = "Encapsulates the composed of pattern for addresses into any easy to use library. Provides convenience methods for formatting, parsing, etc."
14
15
  s.email = "jason@lookforwardenterprises.com"
15
16
  s.extra_rdoc_files = [
@@ -44,11 +45,11 @@ Gem::Specification.new do |s|
44
45
  ]
45
46
  s.homepage = "http://github.com/midas/addressable_record"
46
47
  s.require_paths = ["lib"]
47
- s.rubygems_version = "1.8.25"
48
+ s.rubygems_version = "2.1.10"
48
49
  s.summary = "Encapsulates the composed of pattern for addresses into any easy to use library."
49
50
 
50
51
  if s.respond_to? :specification_version then
51
- s.specification_version = 3
52
+ s.specification_version = 4
52
53
 
53
54
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
54
55
  s.add_runtime_dependency(%q<geographer>, [">= 1.1.1"])
@@ -4,7 +4,7 @@ require 'addressable_record/address'
4
4
  require 'addressable_record/active_record_extesions'
5
5
 
6
6
  module AddressableRecord
7
- VERSION = '1.2.0'
7
+ VERSION = '1.5.0'
8
8
  end
9
9
 
10
10
  ActiveRecord::Base.send( :include, AddressableRecord::ActiveRecordExtensions ) if defined?( ActiveRecord::Base )
@@ -129,8 +129,6 @@ module AddressableRecord
129
129
  return options[:country] ? to_return + "#{options[:delimiter]}#{self.country}" : to_return
130
130
  end
131
131
 
132
- protected
133
-
134
132
  def raw_street #:nodoc:
135
133
  return @streets.nil? ? '' : @streets.join( @@street_delimiter ) #@streets.join( @@street_delimiter )
136
134
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: addressable_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
5
- prerelease:
4
+ version: 1.5.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - C. Jason Harrelson (midas)
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-20 00:00:00.000000000 Z
11
+ date: 2014-01-13 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: geographer
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: activerecord
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -94,26 +87,25 @@ files:
94
87
  - spec/spec_helper.rb
95
88
  homepage: http://github.com/midas/addressable_record
96
89
  licenses: []
90
+ metadata: {}
97
91
  post_install_message:
98
92
  rdoc_options: []
99
93
  require_paths:
100
94
  - lib
101
95
  required_ruby_version: !ruby/object:Gem::Requirement
102
- none: false
103
96
  requirements:
104
97
  - - ! '>='
105
98
  - !ruby/object:Gem::Version
106
99
  version: '0'
107
100
  required_rubygems_version: !ruby/object:Gem::Requirement
108
- none: false
109
101
  requirements:
110
102
  - - ! '>='
111
103
  - !ruby/object:Gem::Version
112
104
  version: '0'
113
105
  requirements: []
114
106
  rubyforge_project:
115
- rubygems_version: 1.8.25
107
+ rubygems_version: 2.1.10
116
108
  signing_key:
117
- specification_version: 3
109
+ specification_version: 4
118
110
  summary: Encapsulates the composed of pattern for addresses into any easy to use library.
119
111
  test_files: []