when_exe 0.4.5 → 0.4.6
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/bin/.pryrc +9 -0
- data/lib/when_exe.rb +10 -5
- data/lib/when_exe/basictypes.rb +5 -3
- data/lib/when_exe/calendartypes.rb +6 -38
- data/lib/when_exe/ephemeris.rb +42 -2
- data/lib/when_exe/ephemeris/eclipse.rb +8 -8
- data/lib/when_exe/ephemeris/notes.rb +29 -3
- data/lib/when_exe/ephemeris/phase_table.rb +825 -0
- data/lib/when_exe/ephemeris/term_table.rb +603 -0
- data/lib/when_exe/events.rb +73 -36
- data/lib/when_exe/icalendar.rb +7 -7
- data/lib/when_exe/inspect.rb +3 -3
- data/lib/when_exe/linkeddata.rb +1 -1
- data/lib/when_exe/parts/resource.rb +16 -4
- data/lib/when_exe/parts/timezone.rb +9 -6
- data/lib/when_exe/region/chinese.rb +5 -3
- data/lib/when_exe/region/indian.rb +2 -2
- data/lib/when_exe/region/japanese/notes.rb +4 -1
- data/lib/when_exe/timestandard.rb +1 -1
- data/lib/when_exe/tmposition.rb +24 -16
- data/lib/when_exe/tmptypes.rb +17 -3
- data/lib/when_exe/tmreference.rb +2 -2
- data/lib/when_exe/version.rb +1 -1
- data/test/events/japanese-holiday.ttl +67 -67
- data/test/test/region/mayan.rb +2 -1
- metadata +6 -2
data/test/test/region/mayan.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
=begin
|
3
|
-
Copyright (C) 2011-
|
3
|
+
Copyright (C) 2011-2016 Takashi SUGA
|
4
4
|
|
5
5
|
You may use and/or modify this file according to the license
|
6
6
|
described in the LICENSE.txt file included in this archive.
|
@@ -84,6 +84,7 @@ module MiniTest
|
|
84
84
|
assert_equal(42, When.when?('2011-05-15') % haab)
|
85
85
|
h = haab % When.when?('2011-05-15')
|
86
86
|
assert_equal(["Sip", 2], [h.label.to_s, h.difference])
|
87
|
+
assert_equal("13.00.03.05.17", When.when?('13.00.03.02.05{Pop}', {:frame=>'LongCount'}).to_s)
|
87
88
|
|
88
89
|
# offset 2B
|
89
90
|
haab = When.Resource("_co:Mayan?Epoch=2D::Haab'")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: when_exe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takashi SUGA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A multicultural and multilingualized calendar library based on ISO 8601,
|
14
14
|
ISO 19108, RFC 5545(iCalendar) and RFC6350. JSON-LD formats for TemporalPosition
|
@@ -18,6 +18,7 @@ description: A multicultural and multilingualized calendar library based on ISO
|
|
18
18
|
email:
|
19
19
|
- suchowan@box.email.ne.jp
|
20
20
|
executables:
|
21
|
+
- ".pryrc"
|
21
22
|
- irb.rc
|
22
23
|
- locales.rb
|
23
24
|
- make_ttl.rb
|
@@ -33,6 +34,7 @@ files:
|
|
33
34
|
- LICENSE.txt
|
34
35
|
- README.md
|
35
36
|
- Rakefile
|
37
|
+
- bin/.pryrc
|
36
38
|
- bin/irb.rc
|
37
39
|
- bin/locales.rb
|
38
40
|
- bin/make_ttl.rb
|
@@ -51,8 +53,10 @@ files:
|
|
51
53
|
- lib/when_exe/ephemeris/eclipse.rb
|
52
54
|
- lib/when_exe/ephemeris/moon.rb
|
53
55
|
- lib/when_exe/ephemeris/notes.rb
|
56
|
+
- lib/when_exe/ephemeris/phase_table.rb
|
54
57
|
- lib/when_exe/ephemeris/planets.rb
|
55
58
|
- lib/when_exe/ephemeris/sun.rb
|
59
|
+
- lib/when_exe/ephemeris/term_table.rb
|
56
60
|
- lib/when_exe/ephemeris/v50.rb
|
57
61
|
- lib/when_exe/events.rb
|
58
62
|
- lib/when_exe/google_api.rb
|