bahai_date 1.4.0 → 2.0.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 +5 -5
- data/CHANGELOG.md +48 -0
- data/README.md +34 -5
- data/lib/bahai_date/astro/tables.rb +406 -0
- data/lib/bahai_date/astro.rb +253 -0
- data/lib/bahai_date/bahai_date.rb +20 -14
- data/lib/bahai_date/day.rb +4 -4
- data/lib/bahai_date/logic.rb +68 -22
- data/lib/bahai_date/month.rb +5 -6
- data/lib/bahai_date/occasion.rb +5 -5
- data/lib/bahai_date/occasion_factory.rb +154 -140
- data/lib/bahai_date/sunset.rb +65 -0
- data/lib/bahai_date/version.rb +1 -1
- data/lib/bahai_date/weekday.rb +5 -5
- data/lib/bahai_date/year.rb +14 -11
- data/lib/bahai_date.rb +11 -11
- data/spec/bahai_date/astro_spec.rb +31 -0
- data/spec/bahai_date/badidate_spec.rb +32 -0
- data/spec/bahai_date/bahai_date_spec.rb +73 -50
- data/spec/bahai_date/day_spec.rb +21 -18
- data/spec/bahai_date/logic_spec.rb +22 -2
- data/spec/bahai_date/month_spec.rb +23 -19
- data/spec/bahai_date/occasion_factory_spec.rb +59 -25
- data/spec/bahai_date/occasion_spec.rb +7 -7
- data/spec/bahai_date/published_calendar_spec.rb +162 -0
- data/spec/bahai_date/sunset_spec.rb +23 -0
- data/spec/bahai_date/weekday_spec.rb +17 -14
- data/spec/bahai_date/year_calendar_spec.rb +6 -6
- data/spec/bahai_date/year_spec.rb +38 -21
- data/spec/fixtures/badidate_dates.json +2363 -0
- data/spec/fixtures/bahai_org_calendar.json +8359 -0
- data/spec/spec_helper.rb +2 -2
- metadata +46 -46
data/spec/spec_helper.rb
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
require
|
|
1
|
+
require "simplecov"
|
|
2
2
|
SimpleCov.start
|
|
3
|
-
require
|
|
3
|
+
require "bahai_date"
|
metadata
CHANGED
|
@@ -1,85 +1,84 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bahai_date
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lessan Vaezi
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
13
|
+
name: irb
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
16
|
+
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '1.
|
|
20
|
-
type: :
|
|
18
|
+
version: '1.14'
|
|
19
|
+
type: :development
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
|
-
- - "
|
|
23
|
+
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '1.
|
|
25
|
+
version: '1.14'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
27
|
+
name: rake
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
|
-
- - "
|
|
30
|
+
- - ">="
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '0
|
|
34
|
-
type: :
|
|
32
|
+
version: '13.0'
|
|
33
|
+
type: :development
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
|
-
- - "
|
|
37
|
+
- - ">="
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '0
|
|
39
|
+
version: '13.0'
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
41
|
+
name: rspec
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
44
|
- - "~>"
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
48
|
-
type: :
|
|
46
|
+
version: '3.13'
|
|
47
|
+
type: :development
|
|
49
48
|
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
52
51
|
- - "~>"
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
53
|
+
version: '3.13'
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name:
|
|
55
|
+
name: simplecov
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
58
57
|
requirements:
|
|
59
|
-
- - "
|
|
58
|
+
- - ">="
|
|
60
59
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
60
|
+
version: '0.22'
|
|
62
61
|
type: :development
|
|
63
62
|
prerelease: false
|
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
64
|
requirements:
|
|
66
|
-
- - "
|
|
65
|
+
- - ">="
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
67
|
+
version: '0.22'
|
|
69
68
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name:
|
|
69
|
+
name: standard
|
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
|
72
71
|
requirements:
|
|
73
|
-
- - "
|
|
72
|
+
- - ">="
|
|
74
73
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
74
|
+
version: '1.57'
|
|
76
75
|
type: :development
|
|
77
76
|
prerelease: false
|
|
78
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
78
|
requirements:
|
|
80
|
-
- - "
|
|
79
|
+
- - ">="
|
|
81
80
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
81
|
+
version: '1.57'
|
|
83
82
|
description: Provides functionality to convert between the Gregorian and Baha'i calendar,
|
|
84
83
|
as well as significant dates and occasions in the Baha'i calendar such as the new
|
|
85
84
|
year and holy days
|
|
@@ -88,34 +87,47 @@ executables: []
|
|
|
88
87
|
extensions: []
|
|
89
88
|
extra_rdoc_files: []
|
|
90
89
|
files:
|
|
90
|
+
- CHANGELOG.md
|
|
91
91
|
- LICENSE.md
|
|
92
92
|
- README.md
|
|
93
93
|
- lib/bahai_date.rb
|
|
94
|
+
- lib/bahai_date/astro.rb
|
|
95
|
+
- lib/bahai_date/astro/tables.rb
|
|
94
96
|
- lib/bahai_date/bahai_date.rb
|
|
95
97
|
- lib/bahai_date/day.rb
|
|
96
98
|
- lib/bahai_date/logic.rb
|
|
97
99
|
- lib/bahai_date/month.rb
|
|
98
100
|
- lib/bahai_date/occasion.rb
|
|
99
101
|
- lib/bahai_date/occasion_factory.rb
|
|
102
|
+
- lib/bahai_date/sunset.rb
|
|
100
103
|
- lib/bahai_date/version.rb
|
|
101
104
|
- lib/bahai_date/weekday.rb
|
|
102
105
|
- lib/bahai_date/year.rb
|
|
103
106
|
- lib/bahai_date/year_calendar.rb
|
|
107
|
+
- spec/bahai_date/astro_spec.rb
|
|
108
|
+
- spec/bahai_date/badidate_spec.rb
|
|
104
109
|
- spec/bahai_date/bahai_date_spec.rb
|
|
105
110
|
- spec/bahai_date/day_spec.rb
|
|
106
111
|
- spec/bahai_date/logic_spec.rb
|
|
107
112
|
- spec/bahai_date/month_spec.rb
|
|
108
113
|
- spec/bahai_date/occasion_factory_spec.rb
|
|
109
114
|
- spec/bahai_date/occasion_spec.rb
|
|
115
|
+
- spec/bahai_date/published_calendar_spec.rb
|
|
116
|
+
- spec/bahai_date/sunset_spec.rb
|
|
110
117
|
- spec/bahai_date/weekday_spec.rb
|
|
111
118
|
- spec/bahai_date/year_calendar_spec.rb
|
|
112
119
|
- spec/bahai_date/year_spec.rb
|
|
120
|
+
- spec/fixtures/badidate_dates.json
|
|
121
|
+
- spec/fixtures/bahai_org_calendar.json
|
|
113
122
|
- spec/spec_helper.rb
|
|
114
123
|
homepage: https://github.com/lessan/bahai-date
|
|
115
124
|
licenses:
|
|
116
125
|
- Unlicense
|
|
117
|
-
metadata:
|
|
118
|
-
|
|
126
|
+
metadata:
|
|
127
|
+
rubygems_mfa_required: 'true'
|
|
128
|
+
source_code_uri: https://github.com/lessan/bahai-date
|
|
129
|
+
changelog_uri: https://github.com/lessan/bahai-date/blob/master/CHANGELOG.md
|
|
130
|
+
bug_tracker_uri: https://github.com/lessan/bahai-date/issues
|
|
119
131
|
rdoc_options: []
|
|
120
132
|
require_paths:
|
|
121
133
|
- lib
|
|
@@ -123,26 +135,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
123
135
|
requirements:
|
|
124
136
|
- - ">="
|
|
125
137
|
- !ruby/object:Gem::Version
|
|
126
|
-
version: '
|
|
138
|
+
version: '3.3'
|
|
127
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
140
|
requirements:
|
|
129
141
|
- - ">="
|
|
130
142
|
- !ruby/object:Gem::Version
|
|
131
143
|
version: '0'
|
|
132
144
|
requirements: []
|
|
133
|
-
|
|
134
|
-
rubygems_version: 2.4.8
|
|
135
|
-
signing_key:
|
|
145
|
+
rubygems_version: 4.0.20
|
|
136
146
|
specification_version: 4
|
|
137
147
|
summary: Conversion between Gregorian and Baha'i (or Badi) calendars
|
|
138
|
-
test_files:
|
|
139
|
-
- spec/bahai_date/occasion_spec.rb
|
|
140
|
-
- spec/bahai_date/day_spec.rb
|
|
141
|
-
- spec/bahai_date/year_spec.rb
|
|
142
|
-
- spec/bahai_date/occasion_factory_spec.rb
|
|
143
|
-
- spec/bahai_date/logic_spec.rb
|
|
144
|
-
- spec/bahai_date/weekday_spec.rb
|
|
145
|
-
- spec/bahai_date/year_calendar_spec.rb
|
|
146
|
-
- spec/bahai_date/bahai_date_spec.rb
|
|
147
|
-
- spec/bahai_date/month_spec.rb
|
|
148
|
-
- spec/spec_helper.rb
|
|
148
|
+
test_files: []
|