sun-times 1.0.0.beta1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +6 -3
  2. data/lib/sun-times/version.rb +1 -1
  3. metadata +8 -5
data/README.md CHANGED
@@ -22,9 +22,12 @@ Or install it yourself as:
22
22
  $ gem install sun-times
23
23
 
24
24
  ## Usage
25
-
26
- SunTimes.rise(Date.new(2010, 3, 8), 51.506318, 7.460659)
27
- SunTimes.set(Date.new(2010, 3, 8), 51.506318, 7.460659)
25
+ ```ruby
26
+ SunTimes.rise(Date.new(2010, 3, 8), 51.506318, 7.460659) # => 2010-03-08 06:01:02 UTC
27
+ SunTimes.calculate(:set, Date.new(2010, 3, 8), 51.506318, 7.460659) # => 2010-03-08 06:01:02 UTC
28
+ SunTimes.set(Date.new(2010, 3, 8), 51.506318, 7.460659) # => 2010-03-08 17:22:07 UTC
29
+ SunTimes.calculate(:set, Date.new(2010, 3, 8), 51.506318, 7.460659) # => 2010-03-08 17:22:07 UTC
30
+ ```
28
31
 
29
32
  ## Contributing
30
33
 
@@ -1,3 +1,3 @@
1
1
  module SunTimes
2
- VERSION = "1.0.0.beta1"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sun-times
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta1
5
- prerelease: 6
4
+ version: 1.0.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Timo Schilling
@@ -76,13 +76,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
76
76
  version: '0'
77
77
  segments:
78
78
  - 0
79
- hash: -4449308383123247796
79
+ hash: 3237114589670927863
80
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  none: false
82
82
  requirements:
83
- - - ! '>'
83
+ - - ! '>='
84
84
  - !ruby/object:Gem::Version
85
- version: 1.3.1
85
+ version: '0'
86
+ segments:
87
+ - 0
88
+ hash: 3237114589670927863
86
89
  requirements: []
87
90
  rubyforge_project:
88
91
  rubygems_version: 1.8.24