hebruby 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/LICENSE +1 -1
- data/Manifest +2 -2
- data/hebruby.gemspec +6 -6
- data/lib/hebruby.rb +3 -1
- metadata +21 -8
data/CHANGELOG
CHANGED
data/LICENSE
CHANGED
data/Manifest
CHANGED
data/hebruby.gemspec
CHANGED
@@ -2,28 +2,28 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{hebruby}
|
5
|
-
s.version = "2.0.
|
5
|
+
s.version = "2.0.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Ron Evans"]
|
9
|
-
s.date = %q{
|
9
|
+
s.date = %q{2010-09-01}
|
10
10
|
s.description = %q{Hebruby is a Ruby library to convert julian dates to hebrew dates, and vice-versa.}
|
11
11
|
s.email = %q{}
|
12
|
-
s.extra_rdoc_files = ["CHANGELOG", "
|
13
|
-
s.files = ["CHANGELOG", "
|
12
|
+
s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README", "README.rdoc", "lib/hebruby.rb"]
|
13
|
+
s.files = ["CHANGELOG", "LICENSE", "Manifest", "README", "README.rdoc", "Rakefile", "lib/hebruby.rb", "test/hebruby_tests.rb", "hebruby.gemspec"]
|
14
14
|
s.homepage = %q{http://deadprogrammersociety.com/}
|
15
15
|
s.post_install_message = %q{*** Hebruby was installed ***}
|
16
16
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Hebruby", "--main", "README"]
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
s.rubyforge_project = %q{hebruby}
|
19
|
-
s.rubygems_version = %q{1.3.
|
19
|
+
s.rubygems_version = %q{1.3.7}
|
20
20
|
s.summary = %q{Hebruby is a Ruby library to convert julian dates to hebrew dates, and vice-versa.}
|
21
21
|
|
22
22
|
if s.respond_to? :specification_version then
|
23
23
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
24
24
|
s.specification_version = 3
|
25
25
|
|
26
|
-
if Gem::Version.new(Gem::
|
26
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
27
27
|
else
|
28
28
|
end
|
29
29
|
else
|
data/lib/hebruby.rb
CHANGED
@@ -26,7 +26,7 @@ module Hebruby
|
|
26
26
|
|
27
27
|
class HebrewDate
|
28
28
|
HEBREW_EPOCH = 347995
|
29
|
-
MONTH_NAMES = %w{none Nissan Iyar Sivan Tamuz Av Elul Tishrei Chesvan Kislev Tevet Shvat Adar
|
29
|
+
MONTH_NAMES = %w{none Nissan Iyar Sivan Tamuz Av Elul Tishrei Chesvan Kislev Tevet Shvat Adar} + ["Adar Sheni"]
|
30
30
|
HEB_MONTH_NAMES = [ nil, 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול', 'תשרי',
|
31
31
|
'חשון', 'כסלו', 'טבת', 'שבט', 'אדר', 'אדר א\'', 'אדר ב\'']
|
32
32
|
HEB_DAYS = [ nil, 'א\'', 'ב\'', 'ג\'', 'ד\'', 'ה\'', 'ו\'', 'ז\'', 'ח\'', 'ט\'',
|
@@ -59,6 +59,8 @@ module Hebruby
|
|
59
59
|
@jd = jd
|
60
60
|
elsif jd.respond_to? :jd
|
61
61
|
@jd = jd.jd
|
62
|
+
else
|
63
|
+
raise ArgumentError
|
62
64
|
end
|
63
65
|
convert_from_julian
|
64
66
|
end
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hebruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 9
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
- 3
|
10
|
+
version: 2.0.3
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Ron Evans
|
@@ -9,7 +15,7 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2010-09-01 00:00:00 -07:00
|
13
19
|
default_executable:
|
14
20
|
dependencies: []
|
15
21
|
|
@@ -21,18 +27,18 @@ extensions: []
|
|
21
27
|
|
22
28
|
extra_rdoc_files:
|
23
29
|
- CHANGELOG
|
24
|
-
- lib/hebruby.rb
|
25
30
|
- LICENSE
|
26
31
|
- README
|
27
32
|
- README.rdoc
|
33
|
+
- lib/hebruby.rb
|
28
34
|
files:
|
29
35
|
- CHANGELOG
|
30
|
-
- lib/hebruby.rb
|
31
36
|
- LICENSE
|
32
37
|
- Manifest
|
33
|
-
- Rakefile
|
34
38
|
- README
|
35
39
|
- README.rdoc
|
40
|
+
- Rakefile
|
41
|
+
- lib/hebruby.rb
|
36
42
|
- test/hebruby_tests.rb
|
37
43
|
- hebruby.gemspec
|
38
44
|
has_rdoc: true
|
@@ -50,21 +56,28 @@ rdoc_options:
|
|
50
56
|
require_paths:
|
51
57
|
- lib
|
52
58
|
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
53
60
|
requirements:
|
54
61
|
- - ">="
|
55
62
|
- !ruby/object:Gem::Version
|
63
|
+
hash: 3
|
64
|
+
segments:
|
65
|
+
- 0
|
56
66
|
version: "0"
|
57
|
-
version:
|
58
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
59
69
|
requirements:
|
60
70
|
- - ">="
|
61
71
|
- !ruby/object:Gem::Version
|
72
|
+
hash: 11
|
73
|
+
segments:
|
74
|
+
- 1
|
75
|
+
- 2
|
62
76
|
version: "1.2"
|
63
|
-
version:
|
64
77
|
requirements: []
|
65
78
|
|
66
79
|
rubyforge_project: hebruby
|
67
|
-
rubygems_version: 1.3.
|
80
|
+
rubygems_version: 1.3.7
|
68
81
|
signing_key:
|
69
82
|
specification_version: 3
|
70
83
|
summary: Hebruby is a Ruby library to convert julian dates to hebrew dates, and vice-versa.
|