chinese_lunar 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.email = ["lanvige@gmail.com"]
11
11
  s.description = %q{Generate the Lunar date}
12
12
  s.summary = %q{Generate the Lunar date}
13
- s.homepage = ""
13
+ s.homepage = "https://github.com/lanvige/chinese_lunar"
14
14
 
15
15
  s.files = `git ls-files`.split("\n")
16
16
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
File without changes
@@ -1,3 +1,3 @@
1
1
  module ChineseLunar
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
data/lib/chinese_lunar.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require "chinese_lunar/version"
4
- require "chinese_lunar/convert"
4
+ require "chinese_lunar/lunar"
5
5
 
6
6
  module ChineseLunar
7
7
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'spec_helper'
4
4
 
5
- require "chinese_lunar/convert"
5
+ require "chinese_lunar/lunar"
6
6
 
7
7
  module ChineseLunar
8
8
  describe Lunar do
@@ -17,11 +17,6 @@ module ChineseLunar
17
17
  luanr.lunar_date_year_in_chinese.should eq "壬辰"
18
18
  end
19
19
 
20
- it "should convert 2012 year to 壬辰 success" do
21
- luanr = Lunar.new(Date.new(2012, 3, 26))
22
- luanr.lunar_date_year_in_chinese.should eq "壬辰"
23
- end
24
-
25
20
  it "should convert 1983 success" do
26
21
  luanr = Lunar.new(Date.new(1983, 7, 23))
27
22
  luanr.lunar_date.should eq "1983-6-14"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chinese_lunar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
- requirement: &7446000 !ruby/object:Gem::Requirement
16
+ requirement: &13841080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.1.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *7446000
24
+ version_requirements: *13841080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &7444680 !ruby/object:Gem::Requirement
27
+ requirement: &13840540 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 2.9.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *7444680
35
+ version_requirements: *13840540
36
36
  description: Generate the Lunar date
37
37
  email:
38
38
  - lanvige@gmail.com
@@ -48,11 +48,11 @@ files:
48
48
  - Rakefile
49
49
  - chinese_lunar.gemspec
50
50
  - lib/chinese_lunar.rb
51
- - lib/chinese_lunar/convert.rb
51
+ - lib/chinese_lunar/lunar.rb
52
52
  - lib/chinese_lunar/version.rb
53
- - spec/chinese_lunar/convert_spec.rb
53
+ - spec/chinese_lunar/lunar_spec.rb
54
54
  - spec/spec_helper.rb
55
- homepage: ''
55
+ homepage: https://github.com/lanvige/chinese_lunar
56
56
  licenses: []
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -77,5 +77,5 @@ signing_key:
77
77
  specification_version: 3
78
78
  summary: Generate the Lunar date
79
79
  test_files:
80
- - spec/chinese_lunar/convert_spec.rb
80
+ - spec/chinese_lunar/lunar_spec.rb
81
81
  - spec/spec_helper.rb