time_diff 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README +18 -0
  2. data/README.rdoc +15 -1
  3. data/VERSION +1 -1
  4. data/time_diff.gemspec +71 -0
  5. metadata +5 -4
data/README CHANGED
@@ -0,0 +1,18 @@
1
+ Installing
2
+ ----------
3
+
4
+ gem install time_diff
5
+
6
+ Usage
7
+ -----
8
+
9
+ require 'time_diff'
10
+
11
+ diff = Time.diff(start_date_time, end_date_time)
12
+
13
+ This will return the hash of time difference in terms of years, month, week, day, hour, minute and second.
14
+
15
+ You can use the difference like:
16
+
17
+ diff[:year], diff[:month], diff[:week]
18
+
@@ -1,6 +1,20 @@
1
1
  = time_diff
2
2
 
3
- Description goes here.
3
+ ==Installing
4
+
5
+ gem install time_diff
6
+
7
+ ==Usage
8
+
9
+ require 'time_diff'
10
+
11
+ diff = Time.diff(start_date_time, end_date_time)
12
+
13
+ This will return the hash of time difference in terms of years, month, week, day, hour, minute and second.
14
+
15
+ You can use the difference like:
16
+
17
+ diff[:year], diff[:month], diff[:week]
4
18
 
5
19
  == Contributing to time_diff
6
20
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -0,0 +1,71 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{time_diff}
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["abhilash"]
12
+ s.date = %q{2011-03-07}
13
+ s.description = %q{It returns a hash file with the difference in terms of year, month, week, day, hour, minute and second}
14
+ s.email = %q{abhidsm@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README",
18
+ "README.rdoc"
19
+ ]
20
+ s.files = [
21
+ ".document",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE.txt",
25
+ "README",
26
+ "README.rdoc",
27
+ "Rakefile",
28
+ "VERSION",
29
+ "lib/time_diff.rb",
30
+ "test/helper.rb",
31
+ "test/test_time_diff.rb",
32
+ "time_diff.gemspec"
33
+ ]
34
+ s.homepage = %q{http://github.com/abhidsm/time_diff}
35
+ s.licenses = ["MIT"]
36
+ s.require_paths = ["lib"]
37
+ s.rubygems_version = %q{1.5.0}
38
+ s.summary = %q{Gem to get the difference between two time}
39
+ s.test_files = [
40
+ "test/helper.rb",
41
+ "test/test_time_diff.rb"
42
+ ]
43
+
44
+ if s.respond_to? :specification_version then
45
+ s.specification_version = 3
46
+
47
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
48
+ s.add_runtime_dependency(%q<activesupport>, [">= 0"])
49
+ s.add_runtime_dependency(%q<i18n>, [">= 0"])
50
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
51
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
52
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
53
+ s.add_development_dependency(%q<rcov>, [">= 0"])
54
+ else
55
+ s.add_dependency(%q<activesupport>, [">= 0"])
56
+ s.add_dependency(%q<i18n>, [">= 0"])
57
+ s.add_dependency(%q<shoulda>, [">= 0"])
58
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
59
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
60
+ s.add_dependency(%q<rcov>, [">= 0"])
61
+ end
62
+ else
63
+ s.add_dependency(%q<activesupport>, [">= 0"])
64
+ s.add_dependency(%q<i18n>, [">= 0"])
65
+ s.add_dependency(%q<shoulda>, [">= 0"])
66
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
67
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
68
+ s.add_dependency(%q<rcov>, [">= 0"])
69
+ end
70
+ end
71
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: time_diff
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - abhilash
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-06 00:00:00 +05:30
18
+ date: 2011-03-07 00:00:00 +05:30
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -128,6 +128,7 @@ files:
128
128
  - lib/time_diff.rb
129
129
  - test/helper.rb
130
130
  - test/test_time_diff.rb
131
+ - time_diff.gemspec
131
132
  has_rdoc: true
132
133
  homepage: http://github.com/abhidsm/time_diff
133
134
  licenses: