kronic 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemtest +0 -0
- data/Gemfile.lock +10 -10
- data/HISTORY +3 -0
- data/README.rdoc +3 -3
- data/Rakefile +2 -0
- data/kronic.gemspec +29 -0
- metadata +8 -8
data/.gemtest
ADDED
File without changes
|
data/Gemfile.lock
CHANGED
@@ -8,16 +8,16 @@ GEM
|
|
8
8
|
specs:
|
9
9
|
activesupport (3.0.0)
|
10
10
|
diff-lcs (1.1.2)
|
11
|
-
rspec (2.0.
|
12
|
-
rspec-core (
|
13
|
-
rspec-expectations (
|
14
|
-
rspec-mocks (
|
15
|
-
rspec-core (2.0.
|
16
|
-
rspec-expectations (2.0.
|
11
|
+
rspec (2.0.1)
|
12
|
+
rspec-core (~> 2.0.1)
|
13
|
+
rspec-expectations (~> 2.0.1)
|
14
|
+
rspec-mocks (~> 2.0.1)
|
15
|
+
rspec-core (2.0.1)
|
16
|
+
rspec-expectations (2.0.1)
|
17
17
|
diff-lcs (>= 1.1.2)
|
18
|
-
rspec-mocks (2.0.
|
19
|
-
rspec-core (
|
20
|
-
rspec-expectations (
|
18
|
+
rspec-mocks (2.0.1)
|
19
|
+
rspec-core (~> 2.0.1)
|
20
|
+
rspec-expectations (~> 2.0.1)
|
21
21
|
therubyracer (0.8.0.pre2)
|
22
22
|
timecop (0.3.5)
|
23
23
|
tzinfo (0.3.23)
|
@@ -29,7 +29,7 @@ PLATFORMS
|
|
29
29
|
DEPENDENCIES
|
30
30
|
activesupport
|
31
31
|
kronic!
|
32
|
-
rspec (
|
32
|
+
rspec (~> 2.0.1)
|
33
33
|
therubyracer (>= 0.8.0.pre2)
|
34
34
|
timecop
|
35
35
|
tzinfo
|
data/HISTORY
CHANGED
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= Kronic
|
2
2
|
|
3
|
-
A dirt simple library for parsing human readable dates (Today, Yesterday, Last Monday). Both a ruby and a javascript implementation are included.
|
3
|
+
A dirt simple library for parsing and formatting human readable dates (Today, Yesterday, Last Monday). Both a ruby and a javascript implementation are included.
|
4
4
|
|
5
5
|
== Usage
|
6
6
|
|
@@ -46,8 +46,8 @@ Kronic is tested on 1.8.7, 1.9.2, Rubinius 1.1, and JRuby 1.5.1.
|
|
46
46
|
|
47
47
|
git clone git://github.com/xaviershay/kronic.git
|
48
48
|
bundle install # May take a while, needs to install therubyracer/V8 to test JS
|
49
|
-
rake
|
50
|
-
|
49
|
+
rake # Run the specs
|
50
|
+
# Dive into the code at spec/kronic_spec.rb
|
51
51
|
|
52
52
|
There are comments to help you along but it is pretty basic code, so everything should make sense pretty quickly. The javascript code is a direct translation of the ruby code, and as such it is undocumented - just refer back to the ruby code.
|
53
53
|
|
data/Rakefile
CHANGED
data/kronic.gemspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = 'kronic'
|
3
|
+
s.version = '1.1.2'
|
4
|
+
s.summary = 'A dirt simple library for parsing and formatting human readable dates'
|
5
|
+
s.platform = Gem::Platform::RUBY
|
6
|
+
s.authors = ["Xavier Shay"]
|
7
|
+
s.email = ["hello@xaviershay.com"]
|
8
|
+
s.homepage = "http://github.com/xaviershay/kronic"
|
9
|
+
s.has_rdoc = false
|
10
|
+
|
11
|
+
s.require_path = 'lib'
|
12
|
+
s.files = Dir.glob("{spec,lib}/**/*.rb") +
|
13
|
+
Dir.glob("{spec,lib}/**/*.js") +
|
14
|
+
%w(
|
15
|
+
Gemfile
|
16
|
+
Gemfile.lock
|
17
|
+
README.rdoc
|
18
|
+
HISTORY
|
19
|
+
Rakefile
|
20
|
+
.gemtest
|
21
|
+
kronic.gemspec
|
22
|
+
)
|
23
|
+
|
24
|
+
s.add_development_dependency 'rspec', '~> 2.0.1'
|
25
|
+
s.add_development_dependency 'timecop'
|
26
|
+
s.add_development_dependency 'activesupport'
|
27
|
+
s.add_development_dependency 'tzinfo'
|
28
|
+
end
|
29
|
+
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 1.1.
|
8
|
+
- 2
|
9
|
+
version: 1.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Xavier Shay
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2011-02-04 00:00:00 +11:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -23,15 +23,13 @@ dependencies:
|
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ~>
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
segments:
|
29
29
|
- 2
|
30
30
|
- 0
|
31
|
-
-
|
32
|
-
|
33
|
-
- 16
|
34
|
-
version: 2.0.0.beta.16
|
31
|
+
- 1
|
32
|
+
version: 2.0.1
|
35
33
|
type: :development
|
36
34
|
version_requirements: *id001
|
37
35
|
- !ruby/object:Gem::Dependency
|
@@ -92,6 +90,8 @@ files:
|
|
92
90
|
- README.rdoc
|
93
91
|
- HISTORY
|
94
92
|
- Rakefile
|
93
|
+
- .gemtest
|
94
|
+
- kronic.gemspec
|
95
95
|
has_rdoc: true
|
96
96
|
homepage: http://github.com/xaviershay/kronic
|
97
97
|
licenses: []
|