ppl 1.22.0 → 1.22.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/ppl.rb CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  module Ppl
3
3
 
4
- Version = "1.21.0"
4
+ Version = "1.22.1"
5
5
 
6
6
  module Adapter
7
7
  end
@@ -64,7 +64,13 @@ class Ppl::Format::Contact::Full < Ppl::Format::Contact
64
64
  end
65
65
 
66
66
  def format_phone_numbers(contact)
67
- push_list("Phone Numbers", contact.phone_numbers)
67
+ unless contact.phone_numbers.empty?
68
+ @lines << ""
69
+ @lines << "Phone Numbers"
70
+ contact.phone_numbers.each do |pn|
71
+ @lines << " #{pn.number}"
72
+ end
73
+ end
68
74
  end
69
75
 
70
76
  def format_postal_addresses(contact)
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |spec|
3
3
 
4
4
  spec.name = "ppl"
5
- spec.version = "1.22.0"
5
+ spec.version = "1.22.1"
6
6
  spec.date = "2013-04-20"
7
7
 
8
8
  spec.required_ruby_version = ">= 1.9.3"
@@ -42,7 +42,7 @@ describe Ppl::Format::Contact::Full do
42
42
  end
43
43
 
44
44
  it "should show their phone number if available" do
45
- @contact.phone_numbers.push("01234567890")
45
+ @contact.phone_numbers << Ppl::Entity::PhoneNumber.new("01234567890")
46
46
  @format.process(@contact).should include "01234567890"
47
47
  end
48
48
 
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ppl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.0
4
+ version: 1.22.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Henry Smith
@@ -13,6 +14,7 @@ dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: colored
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - '='
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - '='
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: inifile
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - '='
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - '='
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: mail
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - '='
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - '='
53
60
  - !ruby/object:Gem::Version
@@ -55,6 +62,7 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: morphine
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - '='
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - '='
67
76
  - !ruby/object:Gem::Version
@@ -69,6 +78,7 @@ dependencies:
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: rugged
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - '='
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - '='
81
92
  - !ruby/object:Gem::Version
@@ -83,6 +94,7 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: greencard
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
99
  - - '='
88
100
  - !ruby/object:Gem::Version
@@ -90,6 +102,7 @@ dependencies:
90
102
  type: :runtime
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
107
  - - '='
95
108
  - !ruby/object:Gem::Version
@@ -97,57 +110,65 @@ dependencies:
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: cucumber
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - '>='
115
+ - - ! '>='
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
- - - '>='
123
+ - - ! '>='
109
124
  - !ruby/object:Gem::Version
110
125
  version: '0'
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: rspec
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - '>='
131
+ - - ! '>='
116
132
  - !ruby/object:Gem::Version
117
133
  version: '0'
118
134
  type: :development
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
- - - '>='
139
+ - - ! '>='
123
140
  - !ruby/object:Gem::Version
124
141
  version: '0'
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: rake
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
- - - '>='
147
+ - - ! '>='
130
148
  - !ruby/object:Gem::Version
131
149
  version: '0'
132
150
  type: :development
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
- - - '>='
155
+ - - ! '>='
137
156
  - !ruby/object:Gem::Version
138
157
  version: '0'
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: fakefs
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
- - - '>='
163
+ - - ! '>='
144
164
  - !ruby/object:Gem::Version
145
165
  version: '0'
146
166
  type: :development
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
149
170
  requirements:
150
- - - '>='
171
+ - - ! '>='
151
172
  - !ruby/object:Gem::Version
152
173
  version: '0'
153
174
  description: CLI Address Book
@@ -321,25 +342,26 @@ files:
321
342
  homepage: http://ppladdressbook.org
322
343
  licenses:
323
344
  - GPL-2
324
- metadata: {}
325
345
  post_install_message:
326
346
  rdoc_options: []
327
347
  require_paths:
328
348
  - lib
329
349
  required_ruby_version: !ruby/object:Gem::Requirement
350
+ none: false
330
351
  requirements:
331
- - - '>='
352
+ - - ! '>='
332
353
  - !ruby/object:Gem::Version
333
354
  version: 1.9.3
334
355
  required_rubygems_version: !ruby/object:Gem::Requirement
356
+ none: false
335
357
  requirements:
336
- - - '>='
358
+ - - ! '>='
337
359
  - !ruby/object:Gem::Version
338
360
  version: '0'
339
361
  requirements: []
340
362
  rubyforge_project:
341
- rubygems_version: 2.0.3
363
+ rubygems_version: 1.8.23
342
364
  signing_key:
343
- specification_version: 4
365
+ specification_version: 3
344
366
  summary: CLI Address Book
345
367
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 79637d676d43f3ea665175757a75c223a905ca14
4
- data.tar.gz: 0d15db490e218c10fadce8645bdf1742e4b13fed
5
- SHA512:
6
- metadata.gz: 8b7a614e6263f4a84369c40739f798dccb6450734fe21499f6a61d39b6ff2f98c81628e0feb2c5ddb71660d4624d535bc13c62123c7d1c59d16cc8d7e2a021a7
7
- data.tar.gz: 31f74366a975ee52ca1210644df881da618df5a2d0bdd577df63cc65b0b18038bf5a27ea2462474090ba08ca6a2953e00d3f9228ade37d6a30cba96b7b7cff2d