agery 1.0.0 → 1.0.1
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.
- data/.rspec +0 -1
- data/Rakefile +3 -2
- data/lib/agery/version.rb +1 -1
- data/spec/agery/version_spec.rb +2 -2
- data/spec/agery_spec.rb +7 -6
- metadata +9 -17
data/.rspec
CHANGED
data/Rakefile
CHANGED
@@ -5,7 +5,8 @@ require 'rspec/core/rake_task'
|
|
5
5
|
Bundler::GemHelper.install_tasks
|
6
6
|
CLOBBER.include "pkg"
|
7
7
|
|
8
|
-
task :default =>
|
8
|
+
task :default => (RUBY_VERSION < '1.9' ? 'spec:rcov' : :spec)
|
9
|
+
task :default => :build
|
9
10
|
|
10
11
|
RSpec::Core::RakeTask.new
|
11
12
|
|
@@ -15,4 +16,4 @@ namespace :spec do
|
|
15
16
|
task.rcov = true
|
16
17
|
task.rcov_opts = ["--failure-threshold 100", "--exclude spec/*,gems/*"]
|
17
18
|
end
|
18
|
-
end
|
19
|
+
end if RUBY_VERSION < '1.9'
|
data/lib/agery/version.rb
CHANGED
data/spec/agery/version_spec.rb
CHANGED
@@ -2,12 +2,12 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
module Agery
|
4
4
|
describe "Agery::VERSION" do
|
5
|
-
subject { VERSION }
|
5
|
+
subject { Agery::VERSION }
|
6
6
|
|
7
7
|
it { should be_a_kind_of String }
|
8
8
|
|
9
9
|
describe "is compliant with Semantic Versioning <http://semver.org/>" do
|
10
|
-
let(:gem_version) { Gem::Version.new VERSION }
|
10
|
+
let(:gem_version) { Gem::Version.new Agery::VERSION }
|
11
11
|
subject { gem_version }
|
12
12
|
|
13
13
|
it { subject.should have(3).segments }
|
data/spec/agery_spec.rb
CHANGED
@@ -2,30 +2,31 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
module Agery
|
4
4
|
describe "Agery::ADULT" do
|
5
|
-
it { ADULT.should == -1 }
|
5
|
+
it { Agery::ADULT.should == -1 }
|
6
6
|
end
|
7
7
|
|
8
8
|
describe "Agery::INFANT" do
|
9
|
-
it { INFANT.should == 0 }
|
9
|
+
it { Agery::INFANT.should == 0 }
|
10
10
|
end
|
11
11
|
|
12
12
|
describe "Agery::CHILD" do
|
13
|
-
it { CHILD.should == 0 }
|
13
|
+
it { Agery::CHILD.should == 0 }
|
14
14
|
end
|
15
15
|
|
16
16
|
describe "Agery::TEENAGER" do
|
17
|
-
it { TEENAGER.should == 13 }
|
17
|
+
it { Agery::TEENAGER.should == 13 }
|
18
18
|
end
|
19
19
|
|
20
20
|
describe "Agery::SENIOR" do
|
21
|
-
it { SENIOR.should == 65 }
|
21
|
+
it { Agery::SENIOR.should == 65 }
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
25
|
describe "overriding the age constants" do
|
26
26
|
around do |example|
|
27
27
|
old_verbose, $VERBOSE = $VERBOSE, nil
|
28
|
-
|
28
|
+
old_age = eval(constant)
|
29
|
+
eval "#{constant} = #{age}"
|
29
30
|
$VERBOSE = old_verbose
|
30
31
|
|
31
32
|
example.run
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 0
|
10
|
-
version: 1.0.0
|
4
|
+
prerelease:
|
5
|
+
version: 1.0.1
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Chris Griego
|
@@ -19,19 +14,16 @@ date: 2011-03-15 00:00:00 -05:00
|
|
19
14
|
default_executable:
|
20
15
|
dependencies:
|
21
16
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
|
17
|
+
name: bundler
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
19
|
none: false
|
25
20
|
requirements:
|
26
21
|
- - ">="
|
27
22
|
- !ruby/object:Gem::Version
|
28
|
-
hash: 3
|
29
|
-
segments:
|
30
|
-
- 0
|
31
23
|
version: "0"
|
32
|
-
requirement: *id001
|
33
|
-
name: bundler
|
34
24
|
type: :development
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: *id001
|
35
27
|
description: Integer extensions for generating arrays of ages.
|
36
28
|
email:
|
37
29
|
- cgriego@gmail.com
|
@@ -69,7 +61,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
61
|
requirements:
|
70
62
|
- - ">="
|
71
63
|
- !ruby/object:Gem::Version
|
72
|
-
hash:
|
64
|
+
hash: -574640053356968737
|
73
65
|
segments:
|
74
66
|
- 0
|
75
67
|
version: "0"
|
@@ -78,14 +70,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
70
|
requirements:
|
79
71
|
- - ">="
|
80
72
|
- !ruby/object:Gem::Version
|
81
|
-
hash:
|
73
|
+
hash: -574640053356968737
|
82
74
|
segments:
|
83
75
|
- 0
|
84
76
|
version: "0"
|
85
77
|
requirements: []
|
86
78
|
|
87
79
|
rubyforge_project: agery
|
88
|
-
rubygems_version: 1.
|
80
|
+
rubygems_version: 1.5.1
|
89
81
|
signing_key:
|
90
82
|
specification_version: 3
|
91
83
|
summary: Integer extensions for generating arrays of ages.
|