rudate 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +2 -1
  2. data/lib/rudate/version.rb +1 -1
  3. data/lib/rudate.rb +1 -1
  4. metadata +1 -1
data/README CHANGED
@@ -2,4 +2,5 @@ Rudate.to_s(Year,Month,Day) # convert from YMD to russian date
2
2
  etc. Rudate.to_s(1900,1,1) will output "1 Января 1900г"
3
3
 
4
4
  Rudate.to_s(Unix_time) # convert from unix time to russian date
5
- etc. Rudate.to_s(0) will output "1 Января 1970г"
5
+ time = Time.at(0)
6
+ etc. Rudate.to_s(time) will output "1 Января 1970г"
@@ -1,3 +1,3 @@
1
1
  module Rudate
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/rudate.rb CHANGED
@@ -11,7 +11,7 @@ module Rudate
11
11
  day = tm.strftime("%d").to_i
12
12
  month = tm.strftime("%m").to_i
13
13
  year = tm.strftime("%Y").to_i
14
- Dateru.to_s(year,month,day)
14
+ self.to_s(year,month,day)
15
15
  end
16
16
 
17
17
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rudate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: