kronic 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (7) hide show
  1. data/.gemtest +0 -0
  2. data/Gemfile.lock +10 -10
  3. data/HISTORY +3 -0
  4. data/README.rdoc +3 -3
  5. data/Rakefile +2 -0
  6. data/kronic.gemspec +29 -0
  7. metadata +8 -8
File without changes
@@ -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.0.beta.22)
12
- rspec-core (= 2.0.0.beta.22)
13
- rspec-expectations (= 2.0.0.beta.22)
14
- rspec-mocks (= 2.0.0.beta.22)
15
- rspec-core (2.0.0.beta.22)
16
- rspec-expectations (2.0.0.beta.22)
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.0.beta.22)
19
- rspec-core (= 2.0.0.beta.22)
20
- rspec-expectations (= 2.0.0.beta.22)
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 (>= 2.0.0.beta.16)
32
+ rspec (~> 2.0.1)
33
33
  therubyracer (>= 0.8.0.pre2)
34
34
  timecop
35
35
  tzinfo
data/HISTORY CHANGED
@@ -1,3 +1,6 @@
1
+ 1.1.1 - 4 February 2011
2
+ * rubygems-test compat
3
+
1
4
  1.1.1 - 30 October 2010
2
5
  * Fix javascript parsing of dates in January
3
6
  * Fix javascript parsing of overflowed dates such as "366 Jan 2010"
@@ -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
- open spec/kronic_spec.rb
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
@@ -9,3 +9,5 @@ task :spec do
9
9
  commands << "jsl -nologo -process lib/js/kronic.js" if `which jsl`.length > 0
10
10
  exec commands.join(" && ")
11
11
  end
12
+
13
+ task :test => :spec
@@ -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
- - 1
9
- version: 1.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: 2010-10-30 00:00:00 +11:00
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
- - 0
32
- - beta
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: []