hebruby 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/CHANGELOG +2 -0
  2. data/LICENSE +1 -1
  3. data/Manifest +2 -2
  4. data/hebruby.gemspec +6 -6
  5. data/lib/hebruby.rb +3 -1
  6. metadata +21 -8
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v2.0.3 Change to transliterated month name to Adar Sheni
2
+
1
3
  v2.0.2 Minor tweaks for Ruby 1.9 compatibility
2
4
 
3
5
  v2.0.1 Add Echoe to make publishing gem to RubyForge easier
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2005-2009 Ron Evans
1
+ Copyright (c) 2005-2010 Ron Evans
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Manifest CHANGED
@@ -1,8 +1,8 @@
1
1
  CHANGELOG
2
- lib/hebruby.rb
3
2
  LICENSE
4
3
  Manifest
5
- Rakefile
6
4
  README
7
5
  README.rdoc
6
+ Rakefile
7
+ lib/hebruby.rb
8
8
  test/hebruby_tests.rb
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.2"
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{2009-10-07}
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", "lib/hebruby.rb", "LICENSE", "README", "README.rdoc"]
13
- s.files = ["CHANGELOG", "lib/hebruby.rb", "LICENSE", "Manifest", "Rakefile", "README", "README.rdoc", "test/hebruby_tests.rb", "hebruby.gemspec"]
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.5}
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::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
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 Veadar}
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
- version: 2.0.2
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: 2009-10-07 00:00:00 -07:00
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.5
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.