rubysl-date 0.0.1 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +0 -1
- data/.travis.yml +7 -0
- data/README.md +2 -2
- data/Rakefile +0 -1
- data/lib/date.rb +1 -0
- data/lib/date/format.rb +1207 -0
- data/lib/rubysl/date.rb +2 -0
- data/lib/rubysl/date/date.rb +1765 -0
- data/lib/{rubysl-date → rubysl/date}/version.rb +1 -1
- data/rubysl-date.gemspec +18 -18
- data/spec/date/accessor_spec.rb +90 -0
- data/spec/date/add_month_spec.rb +29 -0
- data/spec/date/add_spec.rb +29 -0
- data/spec/date/ajd_spec.rb +5 -0
- data/spec/date/ajd_to_amjd_spec.rb +5 -0
- data/spec/date/ajd_to_jd_spec.rb +5 -0
- data/spec/date/amjd_spec.rb +5 -0
- data/spec/date/amjd_to_ajd_spec.rb +5 -0
- data/spec/date/append_spec.rb +5 -0
- data/spec/date/asctime_spec.rb +5 -0
- data/spec/date/boat_spec.rb +23 -0
- data/spec/date/case_compare_spec.rb +5 -0
- data/spec/date/civil_spec.rb +11 -0
- data/spec/date/civil_to_jd_spec.rb +16 -0
- data/spec/date/commercial_spec.rb +17 -0
- data/spec/date/commercial_to_jd_spec.rb +5 -0
- data/spec/date/comparison_spec.rb +5 -0
- data/spec/date/constants_spec.rb +110 -0
- data/spec/date/conversions_spec.rb +154 -0
- data/spec/date/ctime_spec.rb +5 -0
- data/spec/date/cwday_spec.rb +5 -0
- data/spec/date/cweek_spec.rb +5 -0
- data/spec/date/cwyear_spec.rb +5 -0
- data/spec/date/day_fraction_spec.rb +5 -0
- data/spec/date/day_fraction_to_time_spec.rb +5 -0
- data/spec/date/day_spec.rb +5 -0
- data/spec/date/downto_spec.rb +17 -0
- data/spec/date/england_spec.rb +5 -0
- data/spec/date/eql_spec.rb +11 -0
- data/spec/date/exist1_spec.rb +8 -0
- data/spec/date/exist2_spec.rb +8 -0
- data/spec/date/exist3_spec.rb +8 -0
- data/spec/date/exist_spec.rb +8 -0
- data/spec/date/existw_spec.rb +8 -0
- data/spec/date/format/bag/method_missing_spec.rb +5 -0
- data/spec/date/format/bag/to_hash_spec.rb +5 -0
- data/spec/date/gregorian_leap_spec.rb +15 -0
- data/spec/date/gregorian_spec.rb +46 -0
- data/spec/date/hash_spec.rb +7 -0
- data/spec/date/infinity/abs_spec.rb +5 -0
- data/spec/date/infinity/coerce_spec.rb +5 -0
- data/spec/date/infinity/comparison_spec.rb +5 -0
- data/spec/date/infinity/d_spec.rb +5 -0
- data/spec/date/infinity/finite_spec.rb +5 -0
- data/spec/date/infinity/infinite_spec.rb +5 -0
- data/spec/date/infinity/nan_spec.rb +5 -0
- data/spec/date/infinity/uminus_spec.rb +5 -0
- data/spec/date/infinity/uplus_spec.rb +5 -0
- data/spec/date/infinity/zero_spec.rb +5 -0
- data/spec/date/infinity_spec.rb +76 -0
- data/spec/date/inspect_spec.rb +5 -0
- data/spec/date/italy_spec.rb +5 -0
- data/spec/date/jd_spec.rb +14 -0
- data/spec/date/jd_to_ajd_spec.rb +5 -0
- data/spec/date/jd_to_civil_spec.rb +5 -0
- data/spec/date/jd_to_commercial_spec.rb +5 -0
- data/spec/date/jd_to_ld_spec.rb +5 -0
- data/spec/date/jd_to_mjd_spec.rb +5 -0
- data/spec/date/jd_to_ordinal_spec.rb +5 -0
- data/spec/date/jd_to_wday_spec.rb +5 -0
- data/spec/date/julian_leap_spec.rb +14 -0
- data/spec/date/julian_spec.rb +47 -0
- data/spec/date/ld_spec.rb +5 -0
- data/spec/date/ld_to_jd_spec.rb +5 -0
- data/spec/date/leap_spec.rb +9 -0
- data/spec/date/mday_spec.rb +5 -0
- data/spec/date/minus_month_spec.rb +22 -0
- data/spec/date/minus_spec.rb +29 -0
- data/spec/date/mjd_spec.rb +5 -0
- data/spec/date/mjd_to_jd_spec.rb +5 -0
- data/spec/date/mon_spec.rb +5 -0
- data/spec/date/month_spec.rb +5 -0
- data/spec/date/new0_spec.rb +8 -0
- data/spec/date/new1_spec.rb +8 -0
- data/spec/date/new2_spec.rb +8 -0
- data/spec/date/new3_spec.rb +8 -0
- data/spec/date/new_spec.rb +13 -0
- data/spec/date/new_start_spec.rb +5 -0
- data/spec/date/newsg_spec.rb +7 -0
- data/spec/date/neww_spec.rb +7 -0
- data/spec/date/next_spec.rb +5 -0
- data/spec/date/ns_spec.rb +11 -0
- data/spec/date/ordinal_spec.rb +7 -0
- data/spec/date/ordinal_to_jd_spec.rb +5 -0
- data/spec/date/os_spec.rb +11 -0
- data/spec/date/parse_spec.rb +173 -0
- data/spec/date/plus_spec.rb +19 -0
- data/spec/date/relationship_spec.rb +19 -0
- data/spec/date/right_shift_spec.rb +5 -0
- data/spec/date/sg_spec.rb +7 -0
- data/spec/date/shared/civil.rb +69 -0
- data/spec/date/shared/commercial.rb +62 -0
- data/spec/date/shared/jd.rb +14 -0
- data/spec/date/shared/new_bang.rb +14 -0
- data/spec/date/shared/ordinal.rb +42 -0
- data/spec/date/shared/parse.rb +54 -0
- data/spec/date/shared/parse_eu.rb +48 -0
- data/spec/date/shared/parse_us.rb +61 -0
- data/spec/date/shared/valid_civil.rb +69 -0
- data/spec/date/shared/valid_commercial.rb +66 -0
- data/spec/date/shared/valid_jd.rb +36 -0
- data/spec/date/shared/valid_ordinal.rb +60 -0
- data/spec/date/start_spec.rb +5 -0
- data/spec/date/step_spec.rb +55 -0
- data/spec/date/strftime_spec.rb +204 -0
- data/spec/date/strptime_spec.rb +161 -0
- data/spec/date/succ_spec.rb +5 -0
- data/spec/date/time_to_day_fraction_spec.rb +5 -0
- data/spec/date/to_s_spec.rb +5 -0
- data/spec/date/today_spec.rb +5 -0
- data/spec/date/upto_spec.rb +15 -0
- data/spec/date/valid_civil_spec.rb +9 -0
- data/spec/date/valid_commercial_spec.rb +9 -0
- data/spec/date/valid_date_spec.rb +6 -0
- data/spec/date/valid_jd_spec.rb +9 -0
- data/spec/date/valid_ordinal_spec.rb +9 -0
- data/spec/date/valid_time_spec.rb +5 -0
- data/spec/date/wday_spec.rb +5 -0
- data/spec/date/yday_spec.rb +5 -0
- data/spec/date/year_spec.rb +5 -0
- data/spec/date/zone_to_diff_spec.rb +5 -0
- data/spec/datetime/_strptime_spec.rb +5 -0
- data/spec/datetime/civil_spec.rb +5 -0
- data/spec/datetime/commercial_spec.rb +5 -0
- data/spec/datetime/hour_spec.rb +77 -0
- data/spec/datetime/httpdate_spec.rb +5 -0
- data/spec/datetime/iso8601_spec.rb +9 -0
- data/spec/datetime/jd_spec.rb +5 -0
- data/spec/datetime/jisx0301_spec.rb +9 -0
- data/spec/datetime/min_spec.rb +5 -0
- data/spec/datetime/minute_spec.rb +7 -0
- data/spec/datetime/new_offset_spec.rb +5 -0
- data/spec/datetime/new_spec.rb +52 -0
- data/spec/datetime/now_spec.rb +7 -0
- data/spec/datetime/offset_spec.rb +5 -0
- data/spec/datetime/ordinal_spec.rb +5 -0
- data/spec/datetime/parse_spec.rb +166 -0
- data/spec/datetime/rfc2822_spec.rb +5 -0
- data/spec/datetime/rfc3339_spec.rb +9 -0
- data/spec/datetime/rfc822_spec.rb +5 -0
- data/spec/datetime/sec_fraction_spec.rb +5 -0
- data/spec/datetime/sec_spec.rb +5 -0
- data/spec/datetime/second_fraction_spec.rb +5 -0
- data/spec/datetime/second_spec.rb +7 -0
- data/spec/datetime/shared/min.rb +77 -0
- data/spec/datetime/shared/sec.rb +65 -0
- data/spec/datetime/strftime_spec.rb +25 -0
- data/spec/datetime/strptime_spec.rb +5 -0
- data/spec/datetime/to_date_spec.rb +5 -0
- data/spec/datetime/to_datetime_spec.rb +5 -0
- data/spec/datetime/to_s_spec.rb +5 -0
- data/spec/datetime/to_time_spec.rb +5 -0
- data/spec/datetime/xmlschema_spec.rb +9 -0
- data/spec/datetime/zone_spec.rb +5 -0
- metadata +376 -88
- data/lib/rubysl-date.rb +0 -7
@@ -0,0 +1,77 @@
|
|
1
|
+
require 'mspec/helpers/datetime'
|
2
|
+
require 'date'
|
3
|
+
|
4
|
+
describe :datetime_min, :shared => true do
|
5
|
+
it "returns 0 if no argument is passed" do
|
6
|
+
DateTime.new.send(@method).should == 0
|
7
|
+
end
|
8
|
+
|
9
|
+
it "returns the minute passed as argument" do
|
10
|
+
new_datetime(:minute => 5).send(@method).should == 5
|
11
|
+
end
|
12
|
+
|
13
|
+
it "adds 60 to negative minutes" do
|
14
|
+
new_datetime(:minute => -20).send(@method).should == 40
|
15
|
+
end
|
16
|
+
|
17
|
+
ruby_version_is "" ... "1.9.3" do
|
18
|
+
it "returns the absolute value of a Rational" do
|
19
|
+
new_datetime(:minute => 5 + Rational(1,2)).send(@method).should == 5
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
ruby_version_is "1.9.3" do
|
24
|
+
it "raises an error for Rational" do
|
25
|
+
lambda { new_datetime :minute => 5 + Rational(1,2) }.should raise_error(ArgumentError)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
ruby_version_is "" .. "1.9" do
|
30
|
+
it "raises an error for Float" do
|
31
|
+
lambda { new_datetime :minute => 5.5 }.should raise_error(NoMethodError)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
ruby_version_is "1.9" ... "1.9.3" do
|
36
|
+
it "returns the absolute value of a Float" do
|
37
|
+
new_datetime(:minute => 5.5).send(@method).should == 5
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
ruby_version_is "1.9.3" do
|
42
|
+
it "raises an error for Float" do
|
43
|
+
lambda { new_datetime :minute => 5.5 }.should raise_error(ArgumentError)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
ruby_version_is "" ... "1.9.3" do
|
48
|
+
it "returns a fraction of an hour" do
|
49
|
+
new_datetime(:hour => 2 + Rational(1,2)).send(@method).should == 30
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
ruby_version_is "1.9.3" do
|
54
|
+
it "raises an error for Rational" do
|
55
|
+
lambda { new_datetime(:hour => 2 + Rational(1,2)) }.should raise_error(ArgumentError)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
it "raises an error, when the minute is smaller than -60" do
|
60
|
+
lambda { new_datetime(:minute => -61) }.should raise_error(ArgumentError)
|
61
|
+
end
|
62
|
+
|
63
|
+
it "raises an error, when the minute is greater or equal than 60" do
|
64
|
+
lambda { new_datetime(:minute => 60) }.should raise_error(ArgumentError)
|
65
|
+
end
|
66
|
+
|
67
|
+
it "raises an error for minute fractions smaller than -60" do
|
68
|
+
lambda { new_datetime(:minute => -60 - Rational(1,2))}.should(
|
69
|
+
raise_error(ArgumentError))
|
70
|
+
end
|
71
|
+
|
72
|
+
ruby_version_is "1.8.7" ... "1.9.3" do
|
73
|
+
it "takes a minute fraction near 60" do
|
74
|
+
new_datetime(:minute => 59 + Rational(1,2)).send(@method).should == 59
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require 'mspec/helpers/datetime'
|
2
|
+
require 'date'
|
3
|
+
|
4
|
+
describe :datetime_sec, :shared => true do
|
5
|
+
it "returns 0 seconds if passed no arguments" do
|
6
|
+
d = DateTime.new
|
7
|
+
d.send(@method).should == 0
|
8
|
+
end
|
9
|
+
|
10
|
+
it "returns the seconds passed in the arguments" do
|
11
|
+
new_datetime(:second => 5).send(@method).should == 5
|
12
|
+
end
|
13
|
+
|
14
|
+
it "adds 60 to negative values" do
|
15
|
+
new_datetime(:second => -20).send(@method).should == 40
|
16
|
+
end
|
17
|
+
|
18
|
+
it "returns the absolute value of a Rational" do
|
19
|
+
new_datetime(:second => 5 + Rational(1,2)).send(@method).should == 5
|
20
|
+
end
|
21
|
+
|
22
|
+
ruby_version_is "" .. "1.9" do
|
23
|
+
it "raises an error when second is given as a float" do
|
24
|
+
# Float has no method to_r
|
25
|
+
lambda { new_datetime(:second => 5.5) }.should raise_error(NoMethodError)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
ruby_version_is "1.9" do
|
30
|
+
it "returns the absolute value of a float" do
|
31
|
+
new_datetime(:second => 5.5).send(@method).should == 5
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
ruby_version_is "" ... "1.9.3" do
|
36
|
+
it "displays the fraction of a minute" do
|
37
|
+
new_datetime(:minute => 5 + Rational(1,2)).send(@method).should == 30
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
ruby_version_is "1.9.3" do
|
42
|
+
it "raises an error when minute is given as a rational" do
|
43
|
+
lambda { new_datetime(:minute => 5 + Rational(1,2)) }.should raise_error(ArgumentError)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
it "raises an error, when the second is smaller than -60" do
|
48
|
+
lambda { new_datetime(:second => -61) }.should raise_error(ArgumentError)
|
49
|
+
end
|
50
|
+
|
51
|
+
it "raises an error, when the second is greater or equal than 60" do
|
52
|
+
lambda { new_datetime(:second => 60) }.should raise_error(ArgumentError)
|
53
|
+
end
|
54
|
+
|
55
|
+
it "raises an error for second fractions smaller than -60" do
|
56
|
+
lambda { new_datetime(:second => -60 - Rational(1,2))}.should(
|
57
|
+
raise_error(ArgumentError))
|
58
|
+
end
|
59
|
+
|
60
|
+
ruby_version_is "1.8.7" do
|
61
|
+
it "takes a second fraction near 60" do
|
62
|
+
new_datetime(:second => 59 + Rational(1,2)).send(@method).should == 59
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'date'
|
2
|
+
|
3
|
+
ruby_version_is "1.9.1" do
|
4
|
+
describe "DateTime#strftime" do
|
5
|
+
it "shows the number of fractional seconds with leading zeroes" do
|
6
|
+
DateTime.civil(2000, 4, 6).strftime("%N").should == "000000000"
|
7
|
+
end
|
8
|
+
|
9
|
+
it "shows the number of fractional seconds with leading zeroes to two decimal places" do
|
10
|
+
DateTime.civil(2000, 4, 6).strftime("%2N").should == "00"
|
11
|
+
end
|
12
|
+
|
13
|
+
it "shows the number of fractional milliseconds with leading zeroes" do
|
14
|
+
DateTime.civil(2000, 4, 6).strftime("%3N").should == "000"
|
15
|
+
end
|
16
|
+
|
17
|
+
it "shows the number of fractional microseconds with leading zeroes" do
|
18
|
+
DateTime.civil(2000, 4, 6).strftime("%6N").should == "000000"
|
19
|
+
end
|
20
|
+
|
21
|
+
it "shows the number of fractional nanoseconds with leading zeroes" do
|
22
|
+
DateTime.civil(2000, 4, 6).strftime("%9N").should == "000000000"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,118 +1,406 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysl-date
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 0.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Brian Shirai
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
date: 2013-08-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
22
21
|
prerelease: false
|
23
|
-
|
24
|
-
|
25
|
-
requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
26
24
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
|
30
|
-
- 1
|
31
|
-
- 0
|
32
|
-
version: "1.0"
|
33
|
-
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
36
28
|
name: rake
|
37
|
-
|
38
|
-
|
39
|
-
none: false
|
40
|
-
requirements:
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
41
31
|
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
segments:
|
45
|
-
- 10
|
46
|
-
- 0
|
47
|
-
version: "10.0"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
48
34
|
type: :development
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: mspec
|
52
35
|
prerelease: false
|
53
|
-
|
54
|
-
|
55
|
-
requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
56
38
|
- - ~>
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: mspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.5'
|
63
48
|
type: :development
|
64
|
-
|
65
|
-
|
66
|
-
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.5'
|
55
|
+
description: Ruby standard library date.
|
56
|
+
email:
|
67
57
|
- brixen@gmail.com
|
68
58
|
executables: []
|
69
|
-
|
70
59
|
extensions: []
|
71
|
-
|
72
60
|
extra_rdoc_files: []
|
73
|
-
|
74
|
-
files:
|
61
|
+
files:
|
75
62
|
- .gitignore
|
63
|
+
- .travis.yml
|
76
64
|
- Gemfile
|
77
65
|
- LICENSE
|
78
66
|
- README.md
|
79
67
|
- Rakefile
|
80
|
-
- lib/
|
81
|
-
- lib/
|
68
|
+
- lib/date.rb
|
69
|
+
- lib/date/format.rb
|
70
|
+
- lib/rubysl/date.rb
|
71
|
+
- lib/rubysl/date/date.rb
|
72
|
+
- lib/rubysl/date/version.rb
|
82
73
|
- rubysl-date.gemspec
|
83
|
-
|
84
|
-
|
85
|
-
|
74
|
+
- spec/date/accessor_spec.rb
|
75
|
+
- spec/date/add_month_spec.rb
|
76
|
+
- spec/date/add_spec.rb
|
77
|
+
- spec/date/ajd_spec.rb
|
78
|
+
- spec/date/ajd_to_amjd_spec.rb
|
79
|
+
- spec/date/ajd_to_jd_spec.rb
|
80
|
+
- spec/date/amjd_spec.rb
|
81
|
+
- spec/date/amjd_to_ajd_spec.rb
|
82
|
+
- spec/date/append_spec.rb
|
83
|
+
- spec/date/asctime_spec.rb
|
84
|
+
- spec/date/boat_spec.rb
|
85
|
+
- spec/date/case_compare_spec.rb
|
86
|
+
- spec/date/civil_spec.rb
|
87
|
+
- spec/date/civil_to_jd_spec.rb
|
88
|
+
- spec/date/commercial_spec.rb
|
89
|
+
- spec/date/commercial_to_jd_spec.rb
|
90
|
+
- spec/date/comparison_spec.rb
|
91
|
+
- spec/date/constants_spec.rb
|
92
|
+
- spec/date/conversions_spec.rb
|
93
|
+
- spec/date/ctime_spec.rb
|
94
|
+
- spec/date/cwday_spec.rb
|
95
|
+
- spec/date/cweek_spec.rb
|
96
|
+
- spec/date/cwyear_spec.rb
|
97
|
+
- spec/date/day_fraction_spec.rb
|
98
|
+
- spec/date/day_fraction_to_time_spec.rb
|
99
|
+
- spec/date/day_spec.rb
|
100
|
+
- spec/date/downto_spec.rb
|
101
|
+
- spec/date/england_spec.rb
|
102
|
+
- spec/date/eql_spec.rb
|
103
|
+
- spec/date/exist1_spec.rb
|
104
|
+
- spec/date/exist2_spec.rb
|
105
|
+
- spec/date/exist3_spec.rb
|
106
|
+
- spec/date/exist_spec.rb
|
107
|
+
- spec/date/existw_spec.rb
|
108
|
+
- spec/date/format/bag/method_missing_spec.rb
|
109
|
+
- spec/date/format/bag/to_hash_spec.rb
|
110
|
+
- spec/date/gregorian_leap_spec.rb
|
111
|
+
- spec/date/gregorian_spec.rb
|
112
|
+
- spec/date/hash_spec.rb
|
113
|
+
- spec/date/infinity/abs_spec.rb
|
114
|
+
- spec/date/infinity/coerce_spec.rb
|
115
|
+
- spec/date/infinity/comparison_spec.rb
|
116
|
+
- spec/date/infinity/d_spec.rb
|
117
|
+
- spec/date/infinity/finite_spec.rb
|
118
|
+
- spec/date/infinity/infinite_spec.rb
|
119
|
+
- spec/date/infinity/nan_spec.rb
|
120
|
+
- spec/date/infinity/uminus_spec.rb
|
121
|
+
- spec/date/infinity/uplus_spec.rb
|
122
|
+
- spec/date/infinity/zero_spec.rb
|
123
|
+
- spec/date/infinity_spec.rb
|
124
|
+
- spec/date/inspect_spec.rb
|
125
|
+
- spec/date/italy_spec.rb
|
126
|
+
- spec/date/jd_spec.rb
|
127
|
+
- spec/date/jd_to_ajd_spec.rb
|
128
|
+
- spec/date/jd_to_civil_spec.rb
|
129
|
+
- spec/date/jd_to_commercial_spec.rb
|
130
|
+
- spec/date/jd_to_ld_spec.rb
|
131
|
+
- spec/date/jd_to_mjd_spec.rb
|
132
|
+
- spec/date/jd_to_ordinal_spec.rb
|
133
|
+
- spec/date/jd_to_wday_spec.rb
|
134
|
+
- spec/date/julian_leap_spec.rb
|
135
|
+
- spec/date/julian_spec.rb
|
136
|
+
- spec/date/ld_spec.rb
|
137
|
+
- spec/date/ld_to_jd_spec.rb
|
138
|
+
- spec/date/leap_spec.rb
|
139
|
+
- spec/date/mday_spec.rb
|
140
|
+
- spec/date/minus_month_spec.rb
|
141
|
+
- spec/date/minus_spec.rb
|
142
|
+
- spec/date/mjd_spec.rb
|
143
|
+
- spec/date/mjd_to_jd_spec.rb
|
144
|
+
- spec/date/mon_spec.rb
|
145
|
+
- spec/date/month_spec.rb
|
146
|
+
- spec/date/new0_spec.rb
|
147
|
+
- spec/date/new1_spec.rb
|
148
|
+
- spec/date/new2_spec.rb
|
149
|
+
- spec/date/new3_spec.rb
|
150
|
+
- spec/date/new_spec.rb
|
151
|
+
- spec/date/new_start_spec.rb
|
152
|
+
- spec/date/newsg_spec.rb
|
153
|
+
- spec/date/neww_spec.rb
|
154
|
+
- spec/date/next_spec.rb
|
155
|
+
- spec/date/ns_spec.rb
|
156
|
+
- spec/date/ordinal_spec.rb
|
157
|
+
- spec/date/ordinal_to_jd_spec.rb
|
158
|
+
- spec/date/os_spec.rb
|
159
|
+
- spec/date/parse_spec.rb
|
160
|
+
- spec/date/plus_spec.rb
|
161
|
+
- spec/date/relationship_spec.rb
|
162
|
+
- spec/date/right_shift_spec.rb
|
163
|
+
- spec/date/sg_spec.rb
|
164
|
+
- spec/date/shared/civil.rb
|
165
|
+
- spec/date/shared/commercial.rb
|
166
|
+
- spec/date/shared/jd.rb
|
167
|
+
- spec/date/shared/new_bang.rb
|
168
|
+
- spec/date/shared/ordinal.rb
|
169
|
+
- spec/date/shared/parse.rb
|
170
|
+
- spec/date/shared/parse_eu.rb
|
171
|
+
- spec/date/shared/parse_us.rb
|
172
|
+
- spec/date/shared/valid_civil.rb
|
173
|
+
- spec/date/shared/valid_commercial.rb
|
174
|
+
- spec/date/shared/valid_jd.rb
|
175
|
+
- spec/date/shared/valid_ordinal.rb
|
176
|
+
- spec/date/start_spec.rb
|
177
|
+
- spec/date/step_spec.rb
|
178
|
+
- spec/date/strftime_spec.rb
|
179
|
+
- spec/date/strptime_spec.rb
|
180
|
+
- spec/date/succ_spec.rb
|
181
|
+
- spec/date/time_to_day_fraction_spec.rb
|
182
|
+
- spec/date/to_s_spec.rb
|
183
|
+
- spec/date/today_spec.rb
|
184
|
+
- spec/date/upto_spec.rb
|
185
|
+
- spec/date/valid_civil_spec.rb
|
186
|
+
- spec/date/valid_commercial_spec.rb
|
187
|
+
- spec/date/valid_date_spec.rb
|
188
|
+
- spec/date/valid_jd_spec.rb
|
189
|
+
- spec/date/valid_ordinal_spec.rb
|
190
|
+
- spec/date/valid_time_spec.rb
|
191
|
+
- spec/date/wday_spec.rb
|
192
|
+
- spec/date/yday_spec.rb
|
193
|
+
- spec/date/year_spec.rb
|
194
|
+
- spec/date/zone_to_diff_spec.rb
|
195
|
+
- spec/datetime/_strptime_spec.rb
|
196
|
+
- spec/datetime/civil_spec.rb
|
197
|
+
- spec/datetime/commercial_spec.rb
|
198
|
+
- spec/datetime/hour_spec.rb
|
199
|
+
- spec/datetime/httpdate_spec.rb
|
200
|
+
- spec/datetime/iso8601_spec.rb
|
201
|
+
- spec/datetime/jd_spec.rb
|
202
|
+
- spec/datetime/jisx0301_spec.rb
|
203
|
+
- spec/datetime/min_spec.rb
|
204
|
+
- spec/datetime/minute_spec.rb
|
205
|
+
- spec/datetime/new_offset_spec.rb
|
206
|
+
- spec/datetime/new_spec.rb
|
207
|
+
- spec/datetime/now_spec.rb
|
208
|
+
- spec/datetime/offset_spec.rb
|
209
|
+
- spec/datetime/ordinal_spec.rb
|
210
|
+
- spec/datetime/parse_spec.rb
|
211
|
+
- spec/datetime/rfc2822_spec.rb
|
212
|
+
- spec/datetime/rfc3339_spec.rb
|
213
|
+
- spec/datetime/rfc822_spec.rb
|
214
|
+
- spec/datetime/sec_fraction_spec.rb
|
215
|
+
- spec/datetime/sec_spec.rb
|
216
|
+
- spec/datetime/second_fraction_spec.rb
|
217
|
+
- spec/datetime/second_spec.rb
|
218
|
+
- spec/datetime/shared/min.rb
|
219
|
+
- spec/datetime/shared/sec.rb
|
220
|
+
- spec/datetime/strftime_spec.rb
|
221
|
+
- spec/datetime/strptime_spec.rb
|
222
|
+
- spec/datetime/to_date_spec.rb
|
223
|
+
- spec/datetime/to_datetime_spec.rb
|
224
|
+
- spec/datetime/to_s_spec.rb
|
225
|
+
- spec/datetime/to_time_spec.rb
|
226
|
+
- spec/datetime/xmlschema_spec.rb
|
227
|
+
- spec/datetime/zone_spec.rb
|
228
|
+
homepage: https://github.com/rubysl/rubysl-date
|
229
|
+
licenses:
|
230
|
+
- BSD
|
231
|
+
metadata: {}
|
86
232
|
post_install_message:
|
87
233
|
rdoc_options: []
|
88
|
-
|
89
|
-
require_paths:
|
234
|
+
require_paths:
|
90
235
|
- lib
|
91
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
none: false
|
102
|
-
requirements:
|
103
|
-
- - ">="
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
hash: 2002549777813010636
|
106
|
-
segments:
|
107
|
-
- 0
|
108
|
-
version: "0"
|
236
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
237
|
+
requirements:
|
238
|
+
- - '>='
|
239
|
+
- !ruby/object:Gem::Version
|
240
|
+
version: '0'
|
241
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
242
|
+
requirements:
|
243
|
+
- - '>='
|
244
|
+
- !ruby/object:Gem::Version
|
245
|
+
version: '0'
|
109
246
|
requirements: []
|
110
|
-
|
111
247
|
rubyforge_project:
|
112
|
-
rubygems_version:
|
248
|
+
rubygems_version: 2.0.7
|
113
249
|
signing_key:
|
114
|
-
specification_version:
|
115
|
-
summary: Ruby
|
116
|
-
test_files:
|
117
|
-
|
118
|
-
|
250
|
+
specification_version: 4
|
251
|
+
summary: Ruby standard library date.
|
252
|
+
test_files:
|
253
|
+
- spec/date/accessor_spec.rb
|
254
|
+
- spec/date/add_month_spec.rb
|
255
|
+
- spec/date/add_spec.rb
|
256
|
+
- spec/date/ajd_spec.rb
|
257
|
+
- spec/date/ajd_to_amjd_spec.rb
|
258
|
+
- spec/date/ajd_to_jd_spec.rb
|
259
|
+
- spec/date/amjd_spec.rb
|
260
|
+
- spec/date/amjd_to_ajd_spec.rb
|
261
|
+
- spec/date/append_spec.rb
|
262
|
+
- spec/date/asctime_spec.rb
|
263
|
+
- spec/date/boat_spec.rb
|
264
|
+
- spec/date/case_compare_spec.rb
|
265
|
+
- spec/date/civil_spec.rb
|
266
|
+
- spec/date/civil_to_jd_spec.rb
|
267
|
+
- spec/date/commercial_spec.rb
|
268
|
+
- spec/date/commercial_to_jd_spec.rb
|
269
|
+
- spec/date/comparison_spec.rb
|
270
|
+
- spec/date/constants_spec.rb
|
271
|
+
- spec/date/conversions_spec.rb
|
272
|
+
- spec/date/ctime_spec.rb
|
273
|
+
- spec/date/cwday_spec.rb
|
274
|
+
- spec/date/cweek_spec.rb
|
275
|
+
- spec/date/cwyear_spec.rb
|
276
|
+
- spec/date/day_fraction_spec.rb
|
277
|
+
- spec/date/day_fraction_to_time_spec.rb
|
278
|
+
- spec/date/day_spec.rb
|
279
|
+
- spec/date/downto_spec.rb
|
280
|
+
- spec/date/england_spec.rb
|
281
|
+
- spec/date/eql_spec.rb
|
282
|
+
- spec/date/exist1_spec.rb
|
283
|
+
- spec/date/exist2_spec.rb
|
284
|
+
- spec/date/exist3_spec.rb
|
285
|
+
- spec/date/exist_spec.rb
|
286
|
+
- spec/date/existw_spec.rb
|
287
|
+
- spec/date/format/bag/method_missing_spec.rb
|
288
|
+
- spec/date/format/bag/to_hash_spec.rb
|
289
|
+
- spec/date/gregorian_leap_spec.rb
|
290
|
+
- spec/date/gregorian_spec.rb
|
291
|
+
- spec/date/hash_spec.rb
|
292
|
+
- spec/date/infinity/abs_spec.rb
|
293
|
+
- spec/date/infinity/coerce_spec.rb
|
294
|
+
- spec/date/infinity/comparison_spec.rb
|
295
|
+
- spec/date/infinity/d_spec.rb
|
296
|
+
- spec/date/infinity/finite_spec.rb
|
297
|
+
- spec/date/infinity/infinite_spec.rb
|
298
|
+
- spec/date/infinity/nan_spec.rb
|
299
|
+
- spec/date/infinity/uminus_spec.rb
|
300
|
+
- spec/date/infinity/uplus_spec.rb
|
301
|
+
- spec/date/infinity/zero_spec.rb
|
302
|
+
- spec/date/infinity_spec.rb
|
303
|
+
- spec/date/inspect_spec.rb
|
304
|
+
- spec/date/italy_spec.rb
|
305
|
+
- spec/date/jd_spec.rb
|
306
|
+
- spec/date/jd_to_ajd_spec.rb
|
307
|
+
- spec/date/jd_to_civil_spec.rb
|
308
|
+
- spec/date/jd_to_commercial_spec.rb
|
309
|
+
- spec/date/jd_to_ld_spec.rb
|
310
|
+
- spec/date/jd_to_mjd_spec.rb
|
311
|
+
- spec/date/jd_to_ordinal_spec.rb
|
312
|
+
- spec/date/jd_to_wday_spec.rb
|
313
|
+
- spec/date/julian_leap_spec.rb
|
314
|
+
- spec/date/julian_spec.rb
|
315
|
+
- spec/date/ld_spec.rb
|
316
|
+
- spec/date/ld_to_jd_spec.rb
|
317
|
+
- spec/date/leap_spec.rb
|
318
|
+
- spec/date/mday_spec.rb
|
319
|
+
- spec/date/minus_month_spec.rb
|
320
|
+
- spec/date/minus_spec.rb
|
321
|
+
- spec/date/mjd_spec.rb
|
322
|
+
- spec/date/mjd_to_jd_spec.rb
|
323
|
+
- spec/date/mon_spec.rb
|
324
|
+
- spec/date/month_spec.rb
|
325
|
+
- spec/date/new0_spec.rb
|
326
|
+
- spec/date/new1_spec.rb
|
327
|
+
- spec/date/new2_spec.rb
|
328
|
+
- spec/date/new3_spec.rb
|
329
|
+
- spec/date/new_spec.rb
|
330
|
+
- spec/date/new_start_spec.rb
|
331
|
+
- spec/date/newsg_spec.rb
|
332
|
+
- spec/date/neww_spec.rb
|
333
|
+
- spec/date/next_spec.rb
|
334
|
+
- spec/date/ns_spec.rb
|
335
|
+
- spec/date/ordinal_spec.rb
|
336
|
+
- spec/date/ordinal_to_jd_spec.rb
|
337
|
+
- spec/date/os_spec.rb
|
338
|
+
- spec/date/parse_spec.rb
|
339
|
+
- spec/date/plus_spec.rb
|
340
|
+
- spec/date/relationship_spec.rb
|
341
|
+
- spec/date/right_shift_spec.rb
|
342
|
+
- spec/date/sg_spec.rb
|
343
|
+
- spec/date/shared/civil.rb
|
344
|
+
- spec/date/shared/commercial.rb
|
345
|
+
- spec/date/shared/jd.rb
|
346
|
+
- spec/date/shared/new_bang.rb
|
347
|
+
- spec/date/shared/ordinal.rb
|
348
|
+
- spec/date/shared/parse.rb
|
349
|
+
- spec/date/shared/parse_eu.rb
|
350
|
+
- spec/date/shared/parse_us.rb
|
351
|
+
- spec/date/shared/valid_civil.rb
|
352
|
+
- spec/date/shared/valid_commercial.rb
|
353
|
+
- spec/date/shared/valid_jd.rb
|
354
|
+
- spec/date/shared/valid_ordinal.rb
|
355
|
+
- spec/date/start_spec.rb
|
356
|
+
- spec/date/step_spec.rb
|
357
|
+
- spec/date/strftime_spec.rb
|
358
|
+
- spec/date/strptime_spec.rb
|
359
|
+
- spec/date/succ_spec.rb
|
360
|
+
- spec/date/time_to_day_fraction_spec.rb
|
361
|
+
- spec/date/to_s_spec.rb
|
362
|
+
- spec/date/today_spec.rb
|
363
|
+
- spec/date/upto_spec.rb
|
364
|
+
- spec/date/valid_civil_spec.rb
|
365
|
+
- spec/date/valid_commercial_spec.rb
|
366
|
+
- spec/date/valid_date_spec.rb
|
367
|
+
- spec/date/valid_jd_spec.rb
|
368
|
+
- spec/date/valid_ordinal_spec.rb
|
369
|
+
- spec/date/valid_time_spec.rb
|
370
|
+
- spec/date/wday_spec.rb
|
371
|
+
- spec/date/yday_spec.rb
|
372
|
+
- spec/date/year_spec.rb
|
373
|
+
- spec/date/zone_to_diff_spec.rb
|
374
|
+
- spec/datetime/_strptime_spec.rb
|
375
|
+
- spec/datetime/civil_spec.rb
|
376
|
+
- spec/datetime/commercial_spec.rb
|
377
|
+
- spec/datetime/hour_spec.rb
|
378
|
+
- spec/datetime/httpdate_spec.rb
|
379
|
+
- spec/datetime/iso8601_spec.rb
|
380
|
+
- spec/datetime/jd_spec.rb
|
381
|
+
- spec/datetime/jisx0301_spec.rb
|
382
|
+
- spec/datetime/min_spec.rb
|
383
|
+
- spec/datetime/minute_spec.rb
|
384
|
+
- spec/datetime/new_offset_spec.rb
|
385
|
+
- spec/datetime/new_spec.rb
|
386
|
+
- spec/datetime/now_spec.rb
|
387
|
+
- spec/datetime/offset_spec.rb
|
388
|
+
- spec/datetime/ordinal_spec.rb
|
389
|
+
- spec/datetime/parse_spec.rb
|
390
|
+
- spec/datetime/rfc2822_spec.rb
|
391
|
+
- spec/datetime/rfc3339_spec.rb
|
392
|
+
- spec/datetime/rfc822_spec.rb
|
393
|
+
- spec/datetime/sec_fraction_spec.rb
|
394
|
+
- spec/datetime/sec_spec.rb
|
395
|
+
- spec/datetime/second_fraction_spec.rb
|
396
|
+
- spec/datetime/second_spec.rb
|
397
|
+
- spec/datetime/shared/min.rb
|
398
|
+
- spec/datetime/shared/sec.rb
|
399
|
+
- spec/datetime/strftime_spec.rb
|
400
|
+
- spec/datetime/strptime_spec.rb
|
401
|
+
- spec/datetime/to_date_spec.rb
|
402
|
+
- spec/datetime/to_datetime_spec.rb
|
403
|
+
- spec/datetime/to_s_spec.rb
|
404
|
+
- spec/datetime/to_time_spec.rb
|
405
|
+
- spec/datetime/xmlschema_spec.rb
|
406
|
+
- spec/datetime/zone_spec.rb
|