hebruby 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v2.0.2 Minor tweaks for Ruby 1.9 compatibility
2
+
1
3
  v2.0.1 Add Echoe to make publishing gem to RubyForge easier
2
4
 
3
5
  v2.0.0 Total rewrite of algorithm thanks to kbloom
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2006-2009 Ron Evans
1
+ Copyright (c) 2005-2009 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
2
  lib/hebruby.rb
3
3
  LICENSE
4
+ Manifest
4
5
  Rakefile
5
6
  README
6
7
  README.rdoc
7
8
  test/hebruby_tests.rb
8
- Manifest
data/README.rdoc CHANGED
@@ -1,9 +1,12 @@
1
1
  = Hebruby
2
2
 
3
3
  Hebruby is a Ruby library to convert julian dates to hebrew dates, and vice-versa.
4
+
4
5
  Written by Ron Evans (ron dot evans at gmail dot com or http://www.deadprogrammersociety.com).
6
+
5
7
  Additional code contributed by Joshua Harvey.
6
- Algorithm rewritten by Ken Bloom (kbloom@gmail.com) # based on 'Calendrical Calculations' by Nachum Dershowitz and Edward M. Reingold, Cambridge University Press (1997), as implemented in emacs' lisp/calendar/cal-hebrew.el
8
+
9
+ Algorithm rewritten by Ken Bloom (kbloom@gmail.com) based on 'Calendrical Calculations' by Nachum Dershowitz and Edward M. Reingold, Cambridge University Press (1997), as implemented in emacs' lisp/calendar/cal-hebrew.el
7
10
 
8
11
  = How to install
9
12
 
data/Rakefile CHANGED
@@ -20,7 +20,6 @@ Echoe.new("hebruby") do |p|
20
20
  p.author = "Ron Evans"
21
21
  p.summary = "Hebruby is a Ruby library to convert julian dates to hebrew dates, and vice-versa."
22
22
  p.url = "http://deadprogrammersociety.com/"
23
- # p.dependencies = ["sinatra >=0.2.2", "facebooker >=0.9.5"]
24
23
  p.install_message = "*** Hebruby was installed ***"
25
24
  p.include_rakefile = true
26
25
  end
data/hebruby.gemspec CHANGED
@@ -2,21 +2,21 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{hebruby}
5
- s.version = "2.0.1"
5
+ s.version = "2.0.2"
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-09-05}
9
+ s.date = %q{2009-10-07}
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
12
  s.extra_rdoc_files = ["CHANGELOG", "lib/hebruby.rb", "LICENSE", "README", "README.rdoc"]
13
- s.files = ["CHANGELOG", "lib/hebruby.rb", "LICENSE", "Rakefile", "README", "README.rdoc", "test/hebruby_tests.rb", "Manifest", "hebruby.gemspec"]
13
+ s.files = ["CHANGELOG", "lib/hebruby.rb", "LICENSE", "Manifest", "Rakefile", "README", "README.rdoc", "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.3}
19
+ s.rubygems_version = %q{1.3.5}
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
data/lib/hebruby.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # coding:utf-8
2
+
1
3
  # Hebruby is a Ruby library to convert julian dates to hebrew dates, and vice-versa.
2
4
  # Written by Ron Evans (ron dot evans at gmail dot com or http://www.deadprogrammersociety.com).
3
5
  # Additional code contributed by Joshua Harvey.
@@ -14,8 +16,11 @@
14
16
  # @hb = Hebruby::HebrewDate.new1(15,10,5770)
15
17
  # assert_equal(Date.new(2010, 1, 1).jd, @hb.jd, "Wrong Julian date.")
16
18
 
17
- require 'jcode'
18
- $KCODE = 'u' # Always use UTF-8 internally!
19
+ # here for Ruby 1.9
20
+ if not "".respond_to?(:each_char)
21
+ require 'jcode'
22
+ $KCODE = 'u' # Always use UTF-8 internally!
23
+ end
19
24
 
20
25
  module Hebruby
21
26
 
@@ -1,3 +1,5 @@
1
+ # coding:utf-8
2
+
1
3
  # Unit tests for Hebruby module to convert julian dates to hebrew dates, and vice-versa
2
4
  # Written by Ron Evans
3
5
  # Additional code contributed by Joshua Harvey
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hebruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Evans
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-05 00:00:00 -07:00
12
+ date: 2009-10-07 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -29,11 +29,11 @@ files:
29
29
  - CHANGELOG
30
30
  - lib/hebruby.rb
31
31
  - LICENSE
32
+ - Manifest
32
33
  - Rakefile
33
34
  - README
34
35
  - README.rdoc
35
36
  - test/hebruby_tests.rb
36
- - Manifest
37
37
  - hebruby.gemspec
38
38
  has_rdoc: true
39
39
  homepage: http://deadprogrammersociety.com/
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  requirements: []
65
65
 
66
66
  rubyforge_project: hebruby
67
- rubygems_version: 1.3.3
67
+ rubygems_version: 1.3.5
68
68
  signing_key:
69
69
  specification_version: 3
70
70
  summary: Hebruby is a Ruby library to convert julian dates to hebrew dates, and vice-versa.