USPS-intelligent-barcode 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Gemfile.lock +6 -0
- data/USPS-intelligent-barcode.gemspec +5 -2
- data/VERSION +1 -1
- data/spec/MailerId_spec.rb +13 -3
- data/spec/spec_helper.rb +5 -0
- metadata +67 -84
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -11,6 +11,7 @@ GEM
|
|
11
11
|
rdoc
|
12
12
|
json (1.7.5)
|
13
13
|
memoizer (1.0.1)
|
14
|
+
multi_json (1.5.0)
|
14
15
|
rake (10.0.3)
|
15
16
|
rdoc (3.12)
|
16
17
|
json (~> 1.4)
|
@@ -22,6 +23,10 @@ GEM
|
|
22
23
|
rspec-expectations (2.12.1)
|
23
24
|
diff-lcs (~> 1.1.3)
|
24
25
|
rspec-mocks (2.12.1)
|
26
|
+
simplecov (0.7.1)
|
27
|
+
multi_json (~> 1.0)
|
28
|
+
simplecov-html (~> 0.7.1)
|
29
|
+
simplecov-html (0.7.1)
|
25
30
|
|
26
31
|
PLATFORMS
|
27
32
|
ruby
|
@@ -31,3 +36,4 @@ DEPENDENCIES
|
|
31
36
|
jeweler (~> 1.8)
|
32
37
|
memoizer (~> 1.0)
|
33
38
|
rspec (~> 2.12)
|
39
|
+
simplecov (~> 0.7)
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "USPS-intelligent-barcode"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Wayne Conrad"]
|
12
|
-
s.date = "2012-12-
|
12
|
+
s.date = "2012-12-30"
|
13
13
|
s.description = "A pure Ruby gem to generate a USPS Intelligent Mail barcode. It generates the string of characters to print with one of the USPS Intelligent Mail barcode fonts."
|
14
14
|
s.email = "wayne@databill.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -68,17 +68,20 @@ Gem::Specification.new do |s|
|
|
68
68
|
s.add_runtime_dependency(%q<memoizer>, ["~> 1.0"])
|
69
69
|
s.add_development_dependency(%q<rspec>, ["~> 2.12"])
|
70
70
|
s.add_development_dependency(%q<jeweler>, ["~> 1.8"])
|
71
|
+
s.add_development_dependency(%q<simplecov>, ["~> 0.7"])
|
71
72
|
else
|
72
73
|
s.add_dependency(%q<andand>, ["~> 1.3"])
|
73
74
|
s.add_dependency(%q<memoizer>, ["~> 1.0"])
|
74
75
|
s.add_dependency(%q<rspec>, ["~> 2.12"])
|
75
76
|
s.add_dependency(%q<jeweler>, ["~> 1.8"])
|
77
|
+
s.add_dependency(%q<simplecov>, ["~> 0.7"])
|
76
78
|
end
|
77
79
|
else
|
78
80
|
s.add_dependency(%q<andand>, ["~> 1.3"])
|
79
81
|
s.add_dependency(%q<memoizer>, ["~> 1.0"])
|
80
82
|
s.add_dependency(%q<rspec>, ["~> 2.12"])
|
81
83
|
s.add_dependency(%q<jeweler>, ["~> 1.8"])
|
84
|
+
s.add_dependency(%q<simplecov>, ["~> 0.7"])
|
82
85
|
end
|
83
86
|
end
|
84
87
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/spec/MailerId_spec.rb
CHANGED
@@ -104,9 +104,19 @@ module Imb
|
|
104
104
|
end
|
105
105
|
|
106
106
|
describe '#shift_and_add_to' do
|
107
|
-
|
108
|
-
|
109
|
-
|
107
|
+
|
108
|
+
context 'short' do
|
109
|
+
let(:mailer_id) {MailerId.new(999999)}
|
110
|
+
let(:long_mailer_id?) {false}
|
111
|
+
specify {mailer_id.shift_and_add_to(1, long_mailer_id?).should == 1999999}
|
112
|
+
end
|
113
|
+
|
114
|
+
context 'long' do
|
115
|
+
let(:mailer_id) {MailerId.new(999999999)}
|
116
|
+
let(:long_mailer_id?) {true}
|
117
|
+
specify {mailer_id.shift_and_add_to(1, long_mailer_id?).should == 1999999999}
|
118
|
+
end
|
119
|
+
|
110
120
|
end
|
111
121
|
|
112
122
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,92 +1,81 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: USPS-intelligent-barcode
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 1
|
10
|
-
version: 0.2.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Wayne Conrad
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-12-30 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: andand
|
22
|
-
|
23
|
-
type: :runtime
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &75112420 !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
18
|
+
requirements:
|
27
19
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 3
|
33
|
-
version: "1.3"
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: memoizer
|
37
|
-
prerelease: false
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.3'
|
38
22
|
type: :runtime
|
39
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *75112420
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: memoizer
|
27
|
+
requirement: &75112060 !ruby/object:Gem::Requirement
|
40
28
|
none: false
|
41
|
-
requirements:
|
29
|
+
requirements:
|
42
30
|
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
|
46
|
-
- 1
|
47
|
-
- 0
|
48
|
-
version: "1.0"
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: rspec
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.0'
|
33
|
+
type: :runtime
|
52
34
|
prerelease: false
|
53
|
-
|
54
|
-
|
35
|
+
version_requirements: *75112060
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec
|
38
|
+
requirement: &75111680 !ruby/object:Gem::Requirement
|
55
39
|
none: false
|
56
|
-
requirements:
|
40
|
+
requirements:
|
57
41
|
- - ~>
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
|
61
|
-
- 2
|
62
|
-
- 12
|
63
|
-
version: "2.12"
|
64
|
-
version_requirements: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: jeweler
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '2.12'
|
44
|
+
type: :development
|
67
45
|
prerelease: false
|
46
|
+
version_requirements: *75111680
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: jeweler
|
49
|
+
requirement: &75111120 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.8'
|
68
55
|
type: :development
|
69
|
-
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *75111120
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: simplecov
|
60
|
+
requirement: &75110850 !ruby/object:Gem::Requirement
|
70
61
|
none: false
|
71
|
-
requirements:
|
62
|
+
requirements:
|
72
63
|
- - ~>
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0.7'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *75110850
|
69
|
+
description: A pure Ruby gem to generate a USPS Intelligent Mail barcode. It generates
|
70
|
+
the string of characters to print with one of the USPS Intelligent Mail barcode
|
71
|
+
fonts.
|
81
72
|
email: wayne@databill.com
|
82
73
|
executables: []
|
83
|
-
|
84
74
|
extensions: []
|
85
|
-
|
86
|
-
extra_rdoc_files:
|
75
|
+
extra_rdoc_files:
|
87
76
|
- LICENSE.md
|
88
77
|
- README.rdoc
|
89
|
-
files:
|
78
|
+
files:
|
90
79
|
- Gemfile
|
91
80
|
- Gemfile.lock
|
92
81
|
- LICENSE.md
|
@@ -124,37 +113,31 @@ files:
|
|
124
113
|
- spec/ServiceType_spec.rb
|
125
114
|
- spec/spec_helper.rb
|
126
115
|
homepage: http://github.com/wconrad/USPS-intelligent-barcode
|
127
|
-
licenses:
|
116
|
+
licenses:
|
128
117
|
- MIT
|
129
118
|
post_install_message:
|
130
119
|
rdoc_options: []
|
131
|
-
|
132
|
-
require_paths:
|
120
|
+
require_paths:
|
133
121
|
- lib
|
134
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
135
123
|
none: false
|
136
|
-
requirements:
|
137
|
-
- -
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
|
140
|
-
segments:
|
124
|
+
requirements:
|
125
|
+
- - ! '>='
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '0'
|
128
|
+
segments:
|
141
129
|
- 0
|
142
|
-
|
143
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
|
+
hash: 320417517
|
131
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
132
|
none: false
|
145
|
-
requirements:
|
146
|
-
- -
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
|
149
|
-
segments:
|
150
|
-
- 0
|
151
|
-
version: "0"
|
133
|
+
requirements:
|
134
|
+
- - ! '>='
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
152
137
|
requirements: []
|
153
|
-
|
154
138
|
rubyforge_project:
|
155
139
|
rubygems_version: 1.8.17
|
156
140
|
signing_key:
|
157
141
|
specification_version: 3
|
158
142
|
summary: Generates a USPS Intelligent Mail Barcode.
|
159
143
|
test_files: []
|
160
|
-
|