bahai_date 1.0.0 → 1.1.0
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.
- checksums.yaml +4 -4
- data/README.md +2 -34
- data/lib/bahai_date.rb +11 -0
- data/lib/bahai_date/bahai_date.rb +9 -29
- data/lib/bahai_date/day.rb +10 -21
- data/lib/bahai_date/month.rb +12 -17
- data/lib/bahai_date/occasion.rb +1 -5
- data/lib/bahai_date/occasion_factory.rb +68 -75
- data/lib/bahai_date/version.rb +3 -0
- data/lib/bahai_date/weekday.rb +9 -12
- data/lib/bahai_date/year.rb +10 -15
- data/lib/bahai_date/year_calendar.rb +7 -14
- data/lib/bahai_date/year_data.rb +2 -8
- data/spec/bahai_date/bahai_date_spec.rb +115 -111
- data/spec/bahai_date/day_spec.rb +16 -23
- data/spec/bahai_date/month_spec.rb +17 -21
- data/spec/bahai_date/occasion_factory_spec.rb +21 -25
- data/spec/bahai_date/occasion_spec.rb +12 -18
- data/spec/bahai_date/weekday_spec.rb +10 -14
- data/spec/bahai_date/year_calendar_spec.rb +6 -10
- data/spec/bahai_date/year_data_spec.rb +6 -10
- data/spec/bahai_date/year_spec.rb +22 -26
- data/spec/spec_helper.rb +1 -0
- metadata +16 -12
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bahai_date"
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bahai_date
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lessan Vaezi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3'
|
27
27
|
description:
|
@@ -32,11 +32,13 @@ extra_rdoc_files: []
|
|
32
32
|
files:
|
33
33
|
- LICENSE.md
|
34
34
|
- README.md
|
35
|
+
- lib/bahai_date.rb
|
35
36
|
- lib/bahai_date/bahai_date.rb
|
36
37
|
- lib/bahai_date/day.rb
|
37
38
|
- lib/bahai_date/month.rb
|
38
39
|
- lib/bahai_date/occasion.rb
|
39
40
|
- lib/bahai_date/occasion_factory.rb
|
41
|
+
- lib/bahai_date/version.rb
|
40
42
|
- lib/bahai_date/weekday.rb
|
41
43
|
- lib/bahai_date/year.rb
|
42
44
|
- lib/bahai_date/year_calendar.rb
|
@@ -50,6 +52,7 @@ files:
|
|
50
52
|
- spec/bahai_date/year_calendar_spec.rb
|
51
53
|
- spec/bahai_date/year_data_spec.rb
|
52
54
|
- spec/bahai_date/year_spec.rb
|
55
|
+
- spec/spec_helper.rb
|
53
56
|
homepage: https://github.com/lessan/bahai-date
|
54
57
|
licenses:
|
55
58
|
- Unlicense
|
@@ -60,12 +63,12 @@ require_paths:
|
|
60
63
|
- lib
|
61
64
|
required_ruby_version: !ruby/object:Gem::Requirement
|
62
65
|
requirements:
|
63
|
-
- -
|
66
|
+
- - ">="
|
64
67
|
- !ruby/object:Gem::Version
|
65
68
|
version: '2.0'
|
66
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
70
|
requirements:
|
68
|
-
- -
|
71
|
+
- - ">="
|
69
72
|
- !ruby/object:Gem::Version
|
70
73
|
version: '0'
|
71
74
|
requirements: []
|
@@ -76,12 +79,13 @@ specification_version: 4
|
|
76
79
|
summary: Gem to provide date conversion between the Gregorian calendar and the Baha'i
|
77
80
|
(or Badi) calendar
|
78
81
|
test_files:
|
79
|
-
- spec/
|
80
|
-
- spec/bahai_date/
|
81
|
-
- spec/bahai_date/weekday_spec.rb
|
82
|
-
- spec/bahai_date/month_spec.rb
|
83
|
-
- spec/bahai_date/occasion_spec.rb
|
82
|
+
- spec/spec_helper.rb
|
83
|
+
- spec/bahai_date/bahai_date_spec.rb
|
84
84
|
- spec/bahai_date/occasion_factory_spec.rb
|
85
|
+
- spec/bahai_date/year_calendar_spec.rb
|
85
86
|
- spec/bahai_date/year_spec.rb
|
87
|
+
- spec/bahai_date/occasion_spec.rb
|
86
88
|
- spec/bahai_date/year_data_spec.rb
|
87
|
-
- spec/bahai_date/
|
89
|
+
- spec/bahai_date/weekday_spec.rb
|
90
|
+
- spec/bahai_date/month_spec.rb
|
91
|
+
- spec/bahai_date/day_spec.rb
|