timeliness 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.rspec +1 -0
- data/CHANGELOG.rdoc +6 -0
- data/README.rdoc +30 -4
- data/Rakefile +2 -32
- data/benchmark.rb +161 -0
- data/lib/timeliness.rb +5 -4
- data/lib/timeliness/{formats.rb → definitions.rb} +19 -5
- data/lib/timeliness/format.rb +64 -0
- data/lib/timeliness/format_set.rb +19 -74
- data/lib/timeliness/helpers.rb +1 -1
- data/lib/timeliness/parser.rb +59 -17
- data/lib/timeliness/version.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- data/spec/timeliness/{formats_spec.rb → definitions_spec.rb} +23 -23
- data/spec/timeliness/format_set_spec.rb +20 -33
- data/spec/timeliness/format_spec.rb +41 -0
- data/spec/timeliness/parser_spec.rb +134 -61
- data/timeliness.gemspec +14 -22
- metadata +22 -13
data/timeliness.gemspec
CHANGED
@@ -1,29 +1,21 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "timeliness/version"
|
2
4
|
|
3
5
|
Gem::Specification.new do |s|
|
4
|
-
s.name
|
5
|
-
s.version
|
6
|
+
s.name = "timeliness"
|
7
|
+
s.version = Timeliness::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Adam Meehan"]
|
10
|
+
s.email = %q{adam.meehan@gmail.com}
|
11
|
+
s.homepage = %q{http://github.com/adzap/timeliness}
|
12
|
+
s.summary = %q{Date/time parsing for the control freak.}
|
13
|
+
s.description = %q{Fast date/time parser with customisable formats, timezone and I18n support.}
|
6
14
|
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Adam Meehan"]
|
9
|
-
s.date = %q{2010-10-27}
|
10
|
-
s.description = %q{Fast date/time parser with customisable formats and I18n support.}
|
11
|
-
s.email = %q{adam.meehan@gmail.com}
|
12
|
-
s.extra_rdoc_files = ["README.rdoc", "CHANGELOG.rdoc"]
|
13
|
-
s.files = ["timeliness.gemspec", "LICENSE", "CHANGELOG.rdoc", "README.rdoc", "Rakefile", "lib/timeliness", "lib/timeliness/format_set.rb", "lib/timeliness/formats.rb", "lib/timeliness/helpers.rb", "lib/timeliness/parser.rb", "lib/timeliness/version.rb", "lib/timeliness.rb", "spec/spec_helper.rb", "spec/timeliness", "spec/timeliness/format_set_spec.rb", "spec/timeliness/formats_spec.rb", "spec/timeliness/parser_spec.rb"]
|
14
|
-
s.homepage = %q{http://github.com/adzap/timeliness}
|
15
|
-
s.require_paths = ["lib"]
|
16
15
|
s.rubyforge_project = %q{timeliness}
|
17
|
-
s.rubygems_version = %q{1.3.7}
|
18
|
-
s.summary = %q{Control time (parsing), quickly.}
|
19
|
-
|
20
|
-
if s.respond_to? :specification_version then
|
21
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
22
|
-
s.specification_version = 3
|
23
16
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.extra_rdoc_files = ["README.rdoc", "CHANGELOG.rdoc"]
|
20
|
+
s.require_paths = ["lib"]
|
29
21
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timeliness
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 3
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Adam Meehan
|
@@ -15,11 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-11-27 00:00:00 +11:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
22
|
-
description: Fast date/time parser with customisable formats and I18n support.
|
22
|
+
description: Fast date/time parser with customisable formats, timezone and I18n support.
|
23
23
|
email: adam.meehan@gmail.com
|
24
24
|
executables: []
|
25
25
|
|
@@ -29,21 +29,26 @@ extra_rdoc_files:
|
|
29
29
|
- README.rdoc
|
30
30
|
- CHANGELOG.rdoc
|
31
31
|
files:
|
32
|
-
-
|
33
|
-
-
|
32
|
+
- .gitignore
|
33
|
+
- .rspec
|
34
34
|
- CHANGELOG.rdoc
|
35
|
+
- LICENSE
|
35
36
|
- README.rdoc
|
36
37
|
- Rakefile
|
38
|
+
- benchmark.rb
|
39
|
+
- lib/timeliness.rb
|
40
|
+
- lib/timeliness/definitions.rb
|
41
|
+
- lib/timeliness/format.rb
|
37
42
|
- lib/timeliness/format_set.rb
|
38
|
-
- lib/timeliness/formats.rb
|
39
43
|
- lib/timeliness/helpers.rb
|
40
44
|
- lib/timeliness/parser.rb
|
41
45
|
- lib/timeliness/version.rb
|
42
|
-
- lib/timeliness.rb
|
43
46
|
- spec/spec_helper.rb
|
47
|
+
- spec/timeliness/definitions_spec.rb
|
44
48
|
- spec/timeliness/format_set_spec.rb
|
45
|
-
- spec/timeliness/
|
49
|
+
- spec/timeliness/format_spec.rb
|
46
50
|
- spec/timeliness/parser_spec.rb
|
51
|
+
- timeliness.gemspec
|
47
52
|
has_rdoc: true
|
48
53
|
homepage: http://github.com/adzap/timeliness
|
49
54
|
licenses: []
|
@@ -77,6 +82,10 @@ rubyforge_project: timeliness
|
|
77
82
|
rubygems_version: 1.3.7
|
78
83
|
signing_key:
|
79
84
|
specification_version: 3
|
80
|
-
summary:
|
81
|
-
test_files:
|
82
|
-
|
85
|
+
summary: Date/time parsing for the control freak.
|
86
|
+
test_files:
|
87
|
+
- spec/spec_helper.rb
|
88
|
+
- spec/timeliness/definitions_spec.rb
|
89
|
+
- spec/timeliness/format_set_spec.rb
|
90
|
+
- spec/timeliness/format_spec.rb
|
91
|
+
- spec/timeliness/parser_spec.rb
|