solar_terms_24 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +26 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +81 -0
- data/LICENSE.txt +21 -0
- data/README.md +158 -0
- data/Rakefile +12 -0
- data/Timezones.md +599 -0
- data/exe/solar_terms_24 +6 -0
- data/lib/solar_terms_24/cache.rb +34 -0
- data/lib/solar_terms_24/cli.rb +18 -0
- data/lib/solar_terms_24/db/1900.json +26 -0
- data/lib/solar_terms_24/db/1901.json +26 -0
- data/lib/solar_terms_24/db/1902.json +26 -0
- data/lib/solar_terms_24/db/1903.json +26 -0
- data/lib/solar_terms_24/db/1904.json +26 -0
- data/lib/solar_terms_24/db/1905.json +26 -0
- data/lib/solar_terms_24/db/1906.json +26 -0
- data/lib/solar_terms_24/db/1907.json +26 -0
- data/lib/solar_terms_24/db/1908.json +26 -0
- data/lib/solar_terms_24/db/1909.json +26 -0
- data/lib/solar_terms_24/db/1910.json +26 -0
- data/lib/solar_terms_24/db/1911.json +26 -0
- data/lib/solar_terms_24/db/1912.json +26 -0
- data/lib/solar_terms_24/db/1913.json +26 -0
- data/lib/solar_terms_24/db/1914.json +26 -0
- data/lib/solar_terms_24/db/1915.json +26 -0
- data/lib/solar_terms_24/db/1916.json +26 -0
- data/lib/solar_terms_24/db/1917.json +26 -0
- data/lib/solar_terms_24/db/1918.json +26 -0
- data/lib/solar_terms_24/db/1919.json +26 -0
- data/lib/solar_terms_24/db/1920.json +26 -0
- data/lib/solar_terms_24/db/1921.json +26 -0
- data/lib/solar_terms_24/db/1922.json +26 -0
- data/lib/solar_terms_24/db/1923.json +26 -0
- data/lib/solar_terms_24/db/1924.json +26 -0
- data/lib/solar_terms_24/db/1925.json +26 -0
- data/lib/solar_terms_24/db/1926.json +26 -0
- data/lib/solar_terms_24/db/1927.json +26 -0
- data/lib/solar_terms_24/db/1928.json +26 -0
- data/lib/solar_terms_24/db/1929.json +26 -0
- data/lib/solar_terms_24/db/1930.json +26 -0
- data/lib/solar_terms_24/db/1931.json +26 -0
- data/lib/solar_terms_24/db/1932.json +26 -0
- data/lib/solar_terms_24/db/1933.json +26 -0
- data/lib/solar_terms_24/db/1934.json +26 -0
- data/lib/solar_terms_24/db/1935.json +26 -0
- data/lib/solar_terms_24/db/1936.json +26 -0
- data/lib/solar_terms_24/db/1937.json +26 -0
- data/lib/solar_terms_24/db/1938.json +26 -0
- data/lib/solar_terms_24/db/1939.json +26 -0
- data/lib/solar_terms_24/db/1940.json +26 -0
- data/lib/solar_terms_24/db/1941.json +26 -0
- data/lib/solar_terms_24/db/1942.json +26 -0
- data/lib/solar_terms_24/db/1943.json +26 -0
- data/lib/solar_terms_24/db/1944.json +26 -0
- data/lib/solar_terms_24/db/1945.json +26 -0
- data/lib/solar_terms_24/db/1946.json +26 -0
- data/lib/solar_terms_24/db/1947.json +26 -0
- data/lib/solar_terms_24/db/1948.json +26 -0
- data/lib/solar_terms_24/db/1949.json +26 -0
- data/lib/solar_terms_24/db/1950.json +26 -0
- data/lib/solar_terms_24/db/1951.json +26 -0
- data/lib/solar_terms_24/db/1952.json +26 -0
- data/lib/solar_terms_24/db/1953.json +26 -0
- data/lib/solar_terms_24/db/1954.json +26 -0
- data/lib/solar_terms_24/db/1955.json +26 -0
- data/lib/solar_terms_24/db/1956.json +26 -0
- data/lib/solar_terms_24/db/1957.json +26 -0
- data/lib/solar_terms_24/db/1958.json +26 -0
- data/lib/solar_terms_24/db/1959.json +26 -0
- data/lib/solar_terms_24/db/1960.json +26 -0
- data/lib/solar_terms_24/db/1961.json +26 -0
- data/lib/solar_terms_24/db/1962.json +26 -0
- data/lib/solar_terms_24/db/1963.json +26 -0
- data/lib/solar_terms_24/db/1964.json +26 -0
- data/lib/solar_terms_24/db/1965.json +26 -0
- data/lib/solar_terms_24/db/1966.json +26 -0
- data/lib/solar_terms_24/db/1967.json +26 -0
- data/lib/solar_terms_24/db/1968.json +26 -0
- data/lib/solar_terms_24/db/1969.json +26 -0
- data/lib/solar_terms_24/db/1970.json +26 -0
- data/lib/solar_terms_24/db/1971.json +26 -0
- data/lib/solar_terms_24/db/1972.json +26 -0
- data/lib/solar_terms_24/db/1973.json +26 -0
- data/lib/solar_terms_24/db/1974.json +26 -0
- data/lib/solar_terms_24/db/1975.json +26 -0
- data/lib/solar_terms_24/db/1976.json +26 -0
- data/lib/solar_terms_24/db/1977.json +26 -0
- data/lib/solar_terms_24/db/1978.json +26 -0
- data/lib/solar_terms_24/db/1979.json +26 -0
- data/lib/solar_terms_24/db/1980.json +26 -0
- data/lib/solar_terms_24/db/1981.json +26 -0
- data/lib/solar_terms_24/db/1982.json +26 -0
- data/lib/solar_terms_24/db/1983.json +26 -0
- data/lib/solar_terms_24/db/1984.json +26 -0
- data/lib/solar_terms_24/db/1985.json +26 -0
- data/lib/solar_terms_24/db/1986.json +26 -0
- data/lib/solar_terms_24/db/1987.json +26 -0
- data/lib/solar_terms_24/db/1988.json +26 -0
- data/lib/solar_terms_24/db/1989.json +26 -0
- data/lib/solar_terms_24/db/1990.json +26 -0
- data/lib/solar_terms_24/db/1991.json +26 -0
- data/lib/solar_terms_24/db/1992.json +26 -0
- data/lib/solar_terms_24/db/1993.json +26 -0
- data/lib/solar_terms_24/db/1994.json +26 -0
- data/lib/solar_terms_24/db/1995.json +26 -0
- data/lib/solar_terms_24/db/1996.json +26 -0
- data/lib/solar_terms_24/db/1997.json +26 -0
- data/lib/solar_terms_24/db/1998.json +26 -0
- data/lib/solar_terms_24/db/1999.json +26 -0
- data/lib/solar_terms_24/db/2000.json +26 -0
- data/lib/solar_terms_24/db/2001.json +26 -0
- data/lib/solar_terms_24/db/2002.json +26 -0
- data/lib/solar_terms_24/db/2003.json +26 -0
- data/lib/solar_terms_24/db/2004.json +26 -0
- data/lib/solar_terms_24/db/2005.json +26 -0
- data/lib/solar_terms_24/db/2006.json +26 -0
- data/lib/solar_terms_24/db/2007.json +26 -0
- data/lib/solar_terms_24/db/2008.json +26 -0
- data/lib/solar_terms_24/db/2009.json +26 -0
- data/lib/solar_terms_24/db/2010.json +26 -0
- data/lib/solar_terms_24/db/2011.json +26 -0
- data/lib/solar_terms_24/db/2012.json +26 -0
- data/lib/solar_terms_24/db/2013.json +26 -0
- data/lib/solar_terms_24/db/2014.json +26 -0
- data/lib/solar_terms_24/db/2015.json +26 -0
- data/lib/solar_terms_24/db/2016.json +26 -0
- data/lib/solar_terms_24/db/2017.json +26 -0
- data/lib/solar_terms_24/db/2018.json +26 -0
- data/lib/solar_terms_24/db/2019.json +26 -0
- data/lib/solar_terms_24/db/2020.json +26 -0
- data/lib/solar_terms_24/db/2021.json +26 -0
- data/lib/solar_terms_24/db/2022.json +26 -0
- data/lib/solar_terms_24/db/2023.json +26 -0
- data/lib/solar_terms_24/db/2024.json +26 -0
- data/lib/solar_terms_24/db/2025.json +26 -0
- data/lib/solar_terms_24/db/2026.json +26 -0
- data/lib/solar_terms_24/db/2027.json +26 -0
- data/lib/solar_terms_24/db/2028.json +26 -0
- data/lib/solar_terms_24/db/2029.json +26 -0
- data/lib/solar_terms_24/db/2030.json +26 -0
- data/lib/solar_terms_24/db/2031.json +26 -0
- data/lib/solar_terms_24/db/2032.json +26 -0
- data/lib/solar_terms_24/db/2033.json +26 -0
- data/lib/solar_terms_24/db/2034.json +26 -0
- data/lib/solar_terms_24/db/2035.json +26 -0
- data/lib/solar_terms_24/db/2036.json +26 -0
- data/lib/solar_terms_24/db/2037.json +26 -0
- data/lib/solar_terms_24/db/2038.json +26 -0
- data/lib/solar_terms_24/db/2039.json +26 -0
- data/lib/solar_terms_24/db/2040.json +26 -0
- data/lib/solar_terms_24/db/2041.json +26 -0
- data/lib/solar_terms_24/db/2042.json +26 -0
- data/lib/solar_terms_24/db/2043.json +26 -0
- data/lib/solar_terms_24/db/2044.json +26 -0
- data/lib/solar_terms_24/db/2045.json +26 -0
- data/lib/solar_terms_24/db/2046.json +26 -0
- data/lib/solar_terms_24/db/2047.json +26 -0
- data/lib/solar_terms_24/db/2048.json +26 -0
- data/lib/solar_terms_24/db/2049.json +26 -0
- data/lib/solar_terms_24/db/2050.json +26 -0
- data/lib/solar_terms_24/db/2051.json +26 -0
- data/lib/solar_terms_24/db/2052.json +26 -0
- data/lib/solar_terms_24/db/2053.json +26 -0
- data/lib/solar_terms_24/db/2054.json +26 -0
- data/lib/solar_terms_24/db/2055.json +26 -0
- data/lib/solar_terms_24/db/2056.json +26 -0
- data/lib/solar_terms_24/db/2057.json +26 -0
- data/lib/solar_terms_24/db/2058.json +26 -0
- data/lib/solar_terms_24/db/2059.json +26 -0
- data/lib/solar_terms_24/db/2060.json +26 -0
- data/lib/solar_terms_24/db/2061.json +26 -0
- data/lib/solar_terms_24/db/2062.json +26 -0
- data/lib/solar_terms_24/db/2063.json +26 -0
- data/lib/solar_terms_24/db/2064.json +26 -0
- data/lib/solar_terms_24/db/2065.json +26 -0
- data/lib/solar_terms_24/db/2066.json +26 -0
- data/lib/solar_terms_24/db/2067.json +26 -0
- data/lib/solar_terms_24/db/2068.json +26 -0
- data/lib/solar_terms_24/db/2069.json +26 -0
- data/lib/solar_terms_24/db/2070.json +26 -0
- data/lib/solar_terms_24/db/2071.json +26 -0
- data/lib/solar_terms_24/db/2072.json +26 -0
- data/lib/solar_terms_24/db/2073.json +26 -0
- data/lib/solar_terms_24/db/2074.json +26 -0
- data/lib/solar_terms_24/db/2075.json +26 -0
- data/lib/solar_terms_24/db/2076.json +26 -0
- data/lib/solar_terms_24/db/2077.json +26 -0
- data/lib/solar_terms_24/db/2078.json +26 -0
- data/lib/solar_terms_24/db/2079.json +26 -0
- data/lib/solar_terms_24/db/2080.json +26 -0
- data/lib/solar_terms_24/db/2081.json +26 -0
- data/lib/solar_terms_24/db/2082.json +26 -0
- data/lib/solar_terms_24/db/2083.json +26 -0
- data/lib/solar_terms_24/db/2084.json +26 -0
- data/lib/solar_terms_24/db/2085.json +26 -0
- data/lib/solar_terms_24/db/2086.json +26 -0
- data/lib/solar_terms_24/db/2087.json +26 -0
- data/lib/solar_terms_24/db/2088.json +26 -0
- data/lib/solar_terms_24/db/2089.json +26 -0
- data/lib/solar_terms_24/db/2090.json +26 -0
- data/lib/solar_terms_24/db/2091.json +26 -0
- data/lib/solar_terms_24/db/2092.json +26 -0
- data/lib/solar_terms_24/db/2093.json +26 -0
- data/lib/solar_terms_24/db/2094.json +26 -0
- data/lib/solar_terms_24/db/2095.json +26 -0
- data/lib/solar_terms_24/db/2096.json +26 -0
- data/lib/solar_terms_24/db/2097.json +26 -0
- data/lib/solar_terms_24/db/2098.json +26 -0
- data/lib/solar_terms_24/db/2099.json +26 -0
- data/lib/solar_terms_24/db/2100.json +26 -0
- data/lib/solar_terms_24/horizons.rb +82 -0
- data/lib/solar_terms_24/locales/en.yml +25 -0
- data/lib/solar_terms_24/locales/ja.yml +25 -0
- data/lib/solar_terms_24/locales/ko.yml +25 -0
- data/lib/solar_terms_24/locales/vi.yml +25 -0
- data/lib/solar_terms_24/locales/zh-CN.yml +25 -0
- data/lib/solar_terms_24/locales/zh-TW.yml +25 -0
- data/lib/solar_terms_24/solar_term.rb +51 -0
- data/lib/solar_terms_24/solar_terms.rb +59 -0
- data/lib/solar_terms_24/version.rb +5 -0
- data/lib/solar_terms_24.rb +12 -0
- data/sig/horizons_solar_terms.rbs +4 -0
- metadata +382 -0
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'i18n'
|
4
|
+
require 'tzinfo'
|
5
|
+
require 'json'
|
6
|
+
|
7
|
+
I18n.load_path += Dir["#{File.dirname(__FILE__)}/locales/*.yml"]
|
8
|
+
|
9
|
+
module SolarTerms24
|
10
|
+
# :nodoc:
|
11
|
+
class SolarTerm
|
12
|
+
attr_accessor :solar_term_key, :timezone, :lang
|
13
|
+
attr_reader :time
|
14
|
+
|
15
|
+
def initialize(solar_term_key, time, timezone: 'UTC', lang: :en)
|
16
|
+
@solar_term_key = solar_term_key
|
17
|
+
@time = time
|
18
|
+
@timezone = timezone
|
19
|
+
@lang = lang
|
20
|
+
end
|
21
|
+
|
22
|
+
def datetime
|
23
|
+
tz = TZInfo::Timezone.get(@timezone)
|
24
|
+
tz.to_local(@time)
|
25
|
+
end
|
26
|
+
|
27
|
+
def date
|
28
|
+
datetime.to_date
|
29
|
+
end
|
30
|
+
|
31
|
+
def name
|
32
|
+
I18n.locale = @lang
|
33
|
+
I18n.t(@solar_term_key)
|
34
|
+
end
|
35
|
+
|
36
|
+
def as_json
|
37
|
+
{
|
38
|
+
date: date.strftime('%Y-%m-%d'),
|
39
|
+
datetime: datetime.strftime(SolarTerms24::Cache::TIME_FORMAT),
|
40
|
+
lang: @lang,
|
41
|
+
name: name,
|
42
|
+
solar_term_key: @solar_term_key,
|
43
|
+
timezone: @timezone
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
def to_json
|
48
|
+
JSON.pretty_generate(as_json)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'tzinfo'
|
4
|
+
|
5
|
+
module SolarTerms24
|
6
|
+
# :nodoc:
|
7
|
+
class SolarTerms
|
8
|
+
attr_accessor :year, :timezone, :lang
|
9
|
+
attr_reader :solar_terms
|
10
|
+
|
11
|
+
def initialize(year, timezone: 'UTC', lang: :en)
|
12
|
+
@year = year
|
13
|
+
@timezone = timezone
|
14
|
+
@lang = lang
|
15
|
+
|
16
|
+
if SolarTerms24::Cache.has?(year)
|
17
|
+
data = SolarTerms24::Cache.load(year)
|
18
|
+
else
|
19
|
+
data = SolarTerms24::Horizons.find_solar_terms_times(year)
|
20
|
+
SolarTerms24::Cache.save(year, data)
|
21
|
+
end
|
22
|
+
|
23
|
+
@solar_terms = data.each_key.each_with_object({}) do |key, h|
|
24
|
+
h[key.to_sym] = SolarTerms24::SolarTerm.new(key.to_sym, data[key], timezone: timezone, lang: lang)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
::SolarTerms24::Horizons::SOLAR_TERMS.each_key do |key|
|
29
|
+
define_method(key) { instance_variable_get('@solar_terms')[key] }
|
30
|
+
end
|
31
|
+
|
32
|
+
def change_timezone(timezone)
|
33
|
+
@timezone = timezone
|
34
|
+
@solar_terms.each_value do |solar_term|
|
35
|
+
solar_term.timezone = timezone
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def change_lang(lang)
|
40
|
+
@lang = lang
|
41
|
+
@solar_terms.each_value do |solar_term|
|
42
|
+
solar_term.lang = lang
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def dates
|
47
|
+
@solar_terms.map { |_, v| v.date }.sort
|
48
|
+
end
|
49
|
+
|
50
|
+
def to_json
|
51
|
+
JSON.pretty_generate(
|
52
|
+
year: @year,
|
53
|
+
timezone: @timezone,
|
54
|
+
lang: @lang,
|
55
|
+
solar_terms: @solar_terms.transform_values(&:as_json)
|
56
|
+
)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'solar_terms_24/version'
|
4
|
+
require_relative 'solar_terms_24/horizons'
|
5
|
+
require_relative 'solar_terms_24/cache'
|
6
|
+
require_relative 'solar_terms_24/solar_term'
|
7
|
+
require_relative 'solar_terms_24/solar_terms'
|
8
|
+
require_relative 'solar_terms_24/cli'
|
9
|
+
|
10
|
+
module SolarTerms24
|
11
|
+
class Error < StandardError; end
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,382 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: solar_terms_24
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- kevinluo201
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-12-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: i18n
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: thor
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: tzinfo
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.0.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.0.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: debug
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '13.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '13.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.21'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.21'
|
125
|
+
description: It uses JPL Horizons System API to calculate the accurate solar terms'
|
126
|
+
times and can translate them into different timezones and languages.
|
127
|
+
email:
|
128
|
+
- kevin.luo@hey.com
|
129
|
+
executables:
|
130
|
+
- solar_terms_24
|
131
|
+
extensions: []
|
132
|
+
extra_rdoc_files: []
|
133
|
+
files:
|
134
|
+
- ".rspec"
|
135
|
+
- ".rubocop.yml"
|
136
|
+
- Gemfile
|
137
|
+
- Gemfile.lock
|
138
|
+
- LICENSE.txt
|
139
|
+
- README.md
|
140
|
+
- Rakefile
|
141
|
+
- Timezones.md
|
142
|
+
- exe/solar_terms_24
|
143
|
+
- lib/solar_terms_24.rb
|
144
|
+
- lib/solar_terms_24/cache.rb
|
145
|
+
- lib/solar_terms_24/cli.rb
|
146
|
+
- lib/solar_terms_24/db/1900.json
|
147
|
+
- lib/solar_terms_24/db/1901.json
|
148
|
+
- lib/solar_terms_24/db/1902.json
|
149
|
+
- lib/solar_terms_24/db/1903.json
|
150
|
+
- lib/solar_terms_24/db/1904.json
|
151
|
+
- lib/solar_terms_24/db/1905.json
|
152
|
+
- lib/solar_terms_24/db/1906.json
|
153
|
+
- lib/solar_terms_24/db/1907.json
|
154
|
+
- lib/solar_terms_24/db/1908.json
|
155
|
+
- lib/solar_terms_24/db/1909.json
|
156
|
+
- lib/solar_terms_24/db/1910.json
|
157
|
+
- lib/solar_terms_24/db/1911.json
|
158
|
+
- lib/solar_terms_24/db/1912.json
|
159
|
+
- lib/solar_terms_24/db/1913.json
|
160
|
+
- lib/solar_terms_24/db/1914.json
|
161
|
+
- lib/solar_terms_24/db/1915.json
|
162
|
+
- lib/solar_terms_24/db/1916.json
|
163
|
+
- lib/solar_terms_24/db/1917.json
|
164
|
+
- lib/solar_terms_24/db/1918.json
|
165
|
+
- lib/solar_terms_24/db/1919.json
|
166
|
+
- lib/solar_terms_24/db/1920.json
|
167
|
+
- lib/solar_terms_24/db/1921.json
|
168
|
+
- lib/solar_terms_24/db/1922.json
|
169
|
+
- lib/solar_terms_24/db/1923.json
|
170
|
+
- lib/solar_terms_24/db/1924.json
|
171
|
+
- lib/solar_terms_24/db/1925.json
|
172
|
+
- lib/solar_terms_24/db/1926.json
|
173
|
+
- lib/solar_terms_24/db/1927.json
|
174
|
+
- lib/solar_terms_24/db/1928.json
|
175
|
+
- lib/solar_terms_24/db/1929.json
|
176
|
+
- lib/solar_terms_24/db/1930.json
|
177
|
+
- lib/solar_terms_24/db/1931.json
|
178
|
+
- lib/solar_terms_24/db/1932.json
|
179
|
+
- lib/solar_terms_24/db/1933.json
|
180
|
+
- lib/solar_terms_24/db/1934.json
|
181
|
+
- lib/solar_terms_24/db/1935.json
|
182
|
+
- lib/solar_terms_24/db/1936.json
|
183
|
+
- lib/solar_terms_24/db/1937.json
|
184
|
+
- lib/solar_terms_24/db/1938.json
|
185
|
+
- lib/solar_terms_24/db/1939.json
|
186
|
+
- lib/solar_terms_24/db/1940.json
|
187
|
+
- lib/solar_terms_24/db/1941.json
|
188
|
+
- lib/solar_terms_24/db/1942.json
|
189
|
+
- lib/solar_terms_24/db/1943.json
|
190
|
+
- lib/solar_terms_24/db/1944.json
|
191
|
+
- lib/solar_terms_24/db/1945.json
|
192
|
+
- lib/solar_terms_24/db/1946.json
|
193
|
+
- lib/solar_terms_24/db/1947.json
|
194
|
+
- lib/solar_terms_24/db/1948.json
|
195
|
+
- lib/solar_terms_24/db/1949.json
|
196
|
+
- lib/solar_terms_24/db/1950.json
|
197
|
+
- lib/solar_terms_24/db/1951.json
|
198
|
+
- lib/solar_terms_24/db/1952.json
|
199
|
+
- lib/solar_terms_24/db/1953.json
|
200
|
+
- lib/solar_terms_24/db/1954.json
|
201
|
+
- lib/solar_terms_24/db/1955.json
|
202
|
+
- lib/solar_terms_24/db/1956.json
|
203
|
+
- lib/solar_terms_24/db/1957.json
|
204
|
+
- lib/solar_terms_24/db/1958.json
|
205
|
+
- lib/solar_terms_24/db/1959.json
|
206
|
+
- lib/solar_terms_24/db/1960.json
|
207
|
+
- lib/solar_terms_24/db/1961.json
|
208
|
+
- lib/solar_terms_24/db/1962.json
|
209
|
+
- lib/solar_terms_24/db/1963.json
|
210
|
+
- lib/solar_terms_24/db/1964.json
|
211
|
+
- lib/solar_terms_24/db/1965.json
|
212
|
+
- lib/solar_terms_24/db/1966.json
|
213
|
+
- lib/solar_terms_24/db/1967.json
|
214
|
+
- lib/solar_terms_24/db/1968.json
|
215
|
+
- lib/solar_terms_24/db/1969.json
|
216
|
+
- lib/solar_terms_24/db/1970.json
|
217
|
+
- lib/solar_terms_24/db/1971.json
|
218
|
+
- lib/solar_terms_24/db/1972.json
|
219
|
+
- lib/solar_terms_24/db/1973.json
|
220
|
+
- lib/solar_terms_24/db/1974.json
|
221
|
+
- lib/solar_terms_24/db/1975.json
|
222
|
+
- lib/solar_terms_24/db/1976.json
|
223
|
+
- lib/solar_terms_24/db/1977.json
|
224
|
+
- lib/solar_terms_24/db/1978.json
|
225
|
+
- lib/solar_terms_24/db/1979.json
|
226
|
+
- lib/solar_terms_24/db/1980.json
|
227
|
+
- lib/solar_terms_24/db/1981.json
|
228
|
+
- lib/solar_terms_24/db/1982.json
|
229
|
+
- lib/solar_terms_24/db/1983.json
|
230
|
+
- lib/solar_terms_24/db/1984.json
|
231
|
+
- lib/solar_terms_24/db/1985.json
|
232
|
+
- lib/solar_terms_24/db/1986.json
|
233
|
+
- lib/solar_terms_24/db/1987.json
|
234
|
+
- lib/solar_terms_24/db/1988.json
|
235
|
+
- lib/solar_terms_24/db/1989.json
|
236
|
+
- lib/solar_terms_24/db/1990.json
|
237
|
+
- lib/solar_terms_24/db/1991.json
|
238
|
+
- lib/solar_terms_24/db/1992.json
|
239
|
+
- lib/solar_terms_24/db/1993.json
|
240
|
+
- lib/solar_terms_24/db/1994.json
|
241
|
+
- lib/solar_terms_24/db/1995.json
|
242
|
+
- lib/solar_terms_24/db/1996.json
|
243
|
+
- lib/solar_terms_24/db/1997.json
|
244
|
+
- lib/solar_terms_24/db/1998.json
|
245
|
+
- lib/solar_terms_24/db/1999.json
|
246
|
+
- lib/solar_terms_24/db/2000.json
|
247
|
+
- lib/solar_terms_24/db/2001.json
|
248
|
+
- lib/solar_terms_24/db/2002.json
|
249
|
+
- lib/solar_terms_24/db/2003.json
|
250
|
+
- lib/solar_terms_24/db/2004.json
|
251
|
+
- lib/solar_terms_24/db/2005.json
|
252
|
+
- lib/solar_terms_24/db/2006.json
|
253
|
+
- lib/solar_terms_24/db/2007.json
|
254
|
+
- lib/solar_terms_24/db/2008.json
|
255
|
+
- lib/solar_terms_24/db/2009.json
|
256
|
+
- lib/solar_terms_24/db/2010.json
|
257
|
+
- lib/solar_terms_24/db/2011.json
|
258
|
+
- lib/solar_terms_24/db/2012.json
|
259
|
+
- lib/solar_terms_24/db/2013.json
|
260
|
+
- lib/solar_terms_24/db/2014.json
|
261
|
+
- lib/solar_terms_24/db/2015.json
|
262
|
+
- lib/solar_terms_24/db/2016.json
|
263
|
+
- lib/solar_terms_24/db/2017.json
|
264
|
+
- lib/solar_terms_24/db/2018.json
|
265
|
+
- lib/solar_terms_24/db/2019.json
|
266
|
+
- lib/solar_terms_24/db/2020.json
|
267
|
+
- lib/solar_terms_24/db/2021.json
|
268
|
+
- lib/solar_terms_24/db/2022.json
|
269
|
+
- lib/solar_terms_24/db/2023.json
|
270
|
+
- lib/solar_terms_24/db/2024.json
|
271
|
+
- lib/solar_terms_24/db/2025.json
|
272
|
+
- lib/solar_terms_24/db/2026.json
|
273
|
+
- lib/solar_terms_24/db/2027.json
|
274
|
+
- lib/solar_terms_24/db/2028.json
|
275
|
+
- lib/solar_terms_24/db/2029.json
|
276
|
+
- lib/solar_terms_24/db/2030.json
|
277
|
+
- lib/solar_terms_24/db/2031.json
|
278
|
+
- lib/solar_terms_24/db/2032.json
|
279
|
+
- lib/solar_terms_24/db/2033.json
|
280
|
+
- lib/solar_terms_24/db/2034.json
|
281
|
+
- lib/solar_terms_24/db/2035.json
|
282
|
+
- lib/solar_terms_24/db/2036.json
|
283
|
+
- lib/solar_terms_24/db/2037.json
|
284
|
+
- lib/solar_terms_24/db/2038.json
|
285
|
+
- lib/solar_terms_24/db/2039.json
|
286
|
+
- lib/solar_terms_24/db/2040.json
|
287
|
+
- lib/solar_terms_24/db/2041.json
|
288
|
+
- lib/solar_terms_24/db/2042.json
|
289
|
+
- lib/solar_terms_24/db/2043.json
|
290
|
+
- lib/solar_terms_24/db/2044.json
|
291
|
+
- lib/solar_terms_24/db/2045.json
|
292
|
+
- lib/solar_terms_24/db/2046.json
|
293
|
+
- lib/solar_terms_24/db/2047.json
|
294
|
+
- lib/solar_terms_24/db/2048.json
|
295
|
+
- lib/solar_terms_24/db/2049.json
|
296
|
+
- lib/solar_terms_24/db/2050.json
|
297
|
+
- lib/solar_terms_24/db/2051.json
|
298
|
+
- lib/solar_terms_24/db/2052.json
|
299
|
+
- lib/solar_terms_24/db/2053.json
|
300
|
+
- lib/solar_terms_24/db/2054.json
|
301
|
+
- lib/solar_terms_24/db/2055.json
|
302
|
+
- lib/solar_terms_24/db/2056.json
|
303
|
+
- lib/solar_terms_24/db/2057.json
|
304
|
+
- lib/solar_terms_24/db/2058.json
|
305
|
+
- lib/solar_terms_24/db/2059.json
|
306
|
+
- lib/solar_terms_24/db/2060.json
|
307
|
+
- lib/solar_terms_24/db/2061.json
|
308
|
+
- lib/solar_terms_24/db/2062.json
|
309
|
+
- lib/solar_terms_24/db/2063.json
|
310
|
+
- lib/solar_terms_24/db/2064.json
|
311
|
+
- lib/solar_terms_24/db/2065.json
|
312
|
+
- lib/solar_terms_24/db/2066.json
|
313
|
+
- lib/solar_terms_24/db/2067.json
|
314
|
+
- lib/solar_terms_24/db/2068.json
|
315
|
+
- lib/solar_terms_24/db/2069.json
|
316
|
+
- lib/solar_terms_24/db/2070.json
|
317
|
+
- lib/solar_terms_24/db/2071.json
|
318
|
+
- lib/solar_terms_24/db/2072.json
|
319
|
+
- lib/solar_terms_24/db/2073.json
|
320
|
+
- lib/solar_terms_24/db/2074.json
|
321
|
+
- lib/solar_terms_24/db/2075.json
|
322
|
+
- lib/solar_terms_24/db/2076.json
|
323
|
+
- lib/solar_terms_24/db/2077.json
|
324
|
+
- lib/solar_terms_24/db/2078.json
|
325
|
+
- lib/solar_terms_24/db/2079.json
|
326
|
+
- lib/solar_terms_24/db/2080.json
|
327
|
+
- lib/solar_terms_24/db/2081.json
|
328
|
+
- lib/solar_terms_24/db/2082.json
|
329
|
+
- lib/solar_terms_24/db/2083.json
|
330
|
+
- lib/solar_terms_24/db/2084.json
|
331
|
+
- lib/solar_terms_24/db/2085.json
|
332
|
+
- lib/solar_terms_24/db/2086.json
|
333
|
+
- lib/solar_terms_24/db/2087.json
|
334
|
+
- lib/solar_terms_24/db/2088.json
|
335
|
+
- lib/solar_terms_24/db/2089.json
|
336
|
+
- lib/solar_terms_24/db/2090.json
|
337
|
+
- lib/solar_terms_24/db/2091.json
|
338
|
+
- lib/solar_terms_24/db/2092.json
|
339
|
+
- lib/solar_terms_24/db/2093.json
|
340
|
+
- lib/solar_terms_24/db/2094.json
|
341
|
+
- lib/solar_terms_24/db/2095.json
|
342
|
+
- lib/solar_terms_24/db/2096.json
|
343
|
+
- lib/solar_terms_24/db/2097.json
|
344
|
+
- lib/solar_terms_24/db/2098.json
|
345
|
+
- lib/solar_terms_24/db/2099.json
|
346
|
+
- lib/solar_terms_24/db/2100.json
|
347
|
+
- lib/solar_terms_24/horizons.rb
|
348
|
+
- lib/solar_terms_24/locales/en.yml
|
349
|
+
- lib/solar_terms_24/locales/ja.yml
|
350
|
+
- lib/solar_terms_24/locales/ko.yml
|
351
|
+
- lib/solar_terms_24/locales/vi.yml
|
352
|
+
- lib/solar_terms_24/locales/zh-CN.yml
|
353
|
+
- lib/solar_terms_24/locales/zh-TW.yml
|
354
|
+
- lib/solar_terms_24/solar_term.rb
|
355
|
+
- lib/solar_terms_24/solar_terms.rb
|
356
|
+
- lib/solar_terms_24/version.rb
|
357
|
+
- sig/horizons_solar_terms.rbs
|
358
|
+
homepage: https://github.com/kevinluo201/solar_terms_24
|
359
|
+
licenses:
|
360
|
+
- MIT
|
361
|
+
metadata:
|
362
|
+
homepage_uri: https://github.com/kevinluo201/solar_terms_24
|
363
|
+
post_install_message:
|
364
|
+
rdoc_options: []
|
365
|
+
require_paths:
|
366
|
+
- lib
|
367
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
368
|
+
requirements:
|
369
|
+
- - ">="
|
370
|
+
- !ruby/object:Gem::Version
|
371
|
+
version: 2.4.0
|
372
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
373
|
+
requirements:
|
374
|
+
- - ">="
|
375
|
+
- !ruby/object:Gem::Version
|
376
|
+
version: '0'
|
377
|
+
requirements: []
|
378
|
+
rubygems_version: 3.3.7
|
379
|
+
signing_key:
|
380
|
+
specification_version: 4
|
381
|
+
summary: "`solar_terms_24` calculates and collects 24 solar terms each year."
|
382
|
+
test_files: []
|