date-formats 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c4e4577d590d899b2f5215e548913bb4d090e49
4
- data.tar.gz: a6ad7a9d7d735f74e27f9759cb4c66463e68152c
3
+ metadata.gz: 29983784dc5d76dd11c233430a3aee08701a711a
4
+ data.tar.gz: a2fb38dd99f5b98b924516dcf1c9f39c32fb6c20
5
5
  SHA512:
6
- metadata.gz: 47922e36f4ff6414d6b776c83c446465961d127a2ae34494d78da520515b5877fd840e0862418bbdf91b70a35c8fac766f6ad806fc406783b3f5324a9c65c97f
7
- data.tar.gz: f7c8932114c7f75b2fd8725f970a4f084bd66f914a1cdcff371bdadab8492ba236ccf70cc2a8c353b0779fa44e29bbb56efb890a6353d29b810c4902b6402b07
6
+ metadata.gz: 584abc31598b6d1eef8ffa87610122ef2df398b9b537d2fe33e704b6c2554e511526cdc9d337330e5ac70d09d9f1a34278d586f310acd593f8fa81c23ebf81f3
7
+ data.tar.gz: cb10a5e2c39a0d707f735214aeb5de52473b90619bf62f859b0217a8c0d8e19b6cb4448bed2442a52ef9c77559e5608bb38dbff7f1c233d68681ef0ddc954ba5
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ Hoe.spec 'date-formats' do
8
8
  self.summary = "date-formats - read / parse and print dates (and times) from around the world"
9
9
  self.description = summary
10
10
 
11
- self.urls = ['https://github.com/sportdb/sport.db']
11
+ self.urls = { home: 'https://github.com/sportdb/sport.db' }
12
12
 
13
13
  self.author = 'Gerald Bauer'
14
14
  self.email = 'opensport@googlegroups.com'
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'pp'
4
2
  require 'time'
5
3
  require 'date'
@@ -18,7 +18,7 @@ module DateFormats
18
18
 
19
19
  ## note: cache all "built-in" lang versions (e.g. formats == nil)
20
20
  @@parser ||= {}
21
- parser = @@parser[ lang ] ||= DateParser.new( lang: lang )
21
+ @@parser[ lang ] ||= DateParser.new( lang: lang )
22
22
  end
23
23
 
24
24
  def self.parse( line,
@@ -4,7 +4,7 @@
4
4
  module DateFormats
5
5
  MAJOR = 1 ## todo: namespace inside version or something - why? why not??
6
6
  MINOR = 0
7
- PATCH = 1
7
+ PATCH = 2
8
8
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
9
 
10
10
  def self.version
@@ -1 +1,4 @@
1
- require_relative '../date-formats' ## note: allow require 'date/formats' too (in addition to require 'date-formats')
1
+ # note: allow require 'date/formats' too
2
+ # (in addition to require 'date-formats')
3
+
4
+ require_relative '../date-formats'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: date-formats
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-16 00:00:00.000000000 Z
11
+ date: 2020-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc