time_difference 0.3.0 → 0.3.1

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.
@@ -1,3 +1,6 @@
1
+ ## v0.3.1
2
+ * Support in_each_component as a shortcut for all time components
3
+
1
4
  ## v0.2.0
2
5
  * Time difference will return absolute value
3
6
 
data/README.md CHANGED
@@ -30,14 +30,14 @@ And then execute:
30
30
  TimeDifference.between(start_time, end_time).in_months
31
31
  => 12.0
32
32
 
33
- ### Get the time difference for each component
33
+ ### Get the time difference in each component
34
34
 
35
35
  start_time = Time.new(2013,1)
36
36
  end_time = Time.new(2014,1)
37
37
  TimeDifference.between(start_time, end_time).in_each_component
38
38
  => {:years=>1.0, :months=>12.0, :weeks=>52.14, :days=>365.0, :hours=>8760.0, :minutes=>525600.0, :seconds=>31536000.0}
39
39
 
40
- ### If you would like a breakdown in each component, use in_general (not that accurate)
40
+ ### If you would like an overall estimated time component, use in_general (not that accurate)
41
41
 
42
42
  start_time = Time.new(2013,1)
43
43
  end_time = Time.new(2014,1)
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
12
12
  gem.name = "time_difference"
13
13
  gem.require_paths = ["lib"]
14
- gem.version = "0.3.0"
14
+ gem.version = "0.3.1"
15
15
 
16
16
  gem.add_runtime_dependency('activesupport')
17
17
  gem.add_development_dependency('rspec', '~> 2.13.0')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: time_difference
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: