rails-units 1.5.2 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/RakeFile CHANGED
@@ -9,7 +9,7 @@ begin
9
9
  gem.name = "rails-units"
10
10
  gem.summary = %Q{A class that performs unit conversions and unit math}
11
11
  gem.description = %Q{Provides classes and methods to perform unit math and conversions}
12
- gem.authors = ["Kevin Olbrich, Ph.D."]
12
+ gem.authors = ["Kevin Olbrich, Ph.D.", "Stephen Pike"]
13
13
  gem.email = ["spike@scpike.net"]
14
14
  gem.homepage = "https://github.com/scpike/rails-units"
15
15
  gem.files.exclude(".*")
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.6.0
@@ -11,12 +11,12 @@ class Time
11
11
 
12
12
  # Convert a duration to a Time value by considering the duration to be the number of seconds since the
13
13
  # epoch
14
- def self.at(arg)
14
+ def self.at(arg, ms = 0)
15
15
  case arg
16
16
  when Unit
17
17
  unit_time_at(arg.to("s").scalar)
18
18
  else
19
- unit_time_at(arg)
19
+ unit_time_at(arg, ms)
20
20
  end
21
21
  end
22
22
 
Binary file
data/rails-units.gemspec CHANGED
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{rails-units}
8
- s.version = "1.5.2"
7
+ s.name = "rails-units"
8
+ s.version = "1.6.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Kevin Olbrich, Ph.D.}]
12
- s.date = %q{2011-09-17}
13
- s.description = %q{Provides classes and methods to perform unit math and conversions}
14
- s.email = [%q{spike@scpike.net}]
11
+ s.authors = ["Kevin Olbrich, Ph.D.", "Stephen Pike"]
12
+ s.date = "2012-01-12"
13
+ s.description = "Provides classes and methods to perform unit math and conversions"
14
+ s.email = ["spike@scpike.net"]
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.md",
@@ -56,10 +56,10 @@ Gem::Specification.new do |s|
56
56
  "test/test_cache.rb",
57
57
  "test/test_rails-units.rb"
58
58
  ]
59
- s.homepage = %q{https://github.com/scpike/rails-units}
60
- s.require_paths = [%q{lib}]
61
- s.rubygems_version = %q{1.8.6}
62
- s.summary = %q{A class that performs unit conversions and unit math}
59
+ s.homepage = "https://github.com/scpike/rails-units"
60
+ s.require_paths = ["lib"]
61
+ s.rubygems_version = "1.8.11"
62
+ s.summary = "A class that performs unit conversions and unit math"
63
63
 
64
64
  if s.respond_to? :specification_version then
65
65
  s.specification_version = 3
metadata CHANGED
@@ -1,19 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-units
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kevin Olbrich, Ph.D.
9
+ - Stephen Pike
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2011-09-17 00:00:00.000000000Z
13
+ date: 2012-01-12 00:00:00.000000000Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: bundler
16
- requirement: &70284683705100 !ruby/object:Gem::Requirement
17
+ requirement: &70239191575240 !ruby/object:Gem::Requirement
17
18
  none: false
18
19
  requirements:
19
20
  - - ~>
@@ -21,10 +22,10 @@ dependencies:
21
22
  version: '1.0'
22
23
  type: :development
23
24
  prerelease: false
24
- version_requirements: *70284683705100
25
+ version_requirements: *70239191575240
25
26
  - !ruby/object:Gem::Dependency
26
27
  name: rcov
27
- requirement: &70284683704600 !ruby/object:Gem::Requirement
28
+ requirement: &70239191574760 !ruby/object:Gem::Requirement
28
29
  none: false
29
30
  requirements:
30
31
  - - ! '>='
@@ -32,10 +33,10 @@ dependencies:
32
33
  version: '0'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *70284683704600
36
+ version_requirements: *70239191574760
36
37
  - !ruby/object:Gem::Dependency
37
38
  name: jeweler
38
- requirement: &70284683704120 !ruby/object:Gem::Requirement
39
+ requirement: &70239191574280 !ruby/object:Gem::Requirement
39
40
  none: false
40
41
  requirements:
41
42
  - - ! '>='
@@ -43,10 +44,10 @@ dependencies:
43
44
  version: '0'
44
45
  type: :development
45
46
  prerelease: false
46
- version_requirements: *70284683704120
47
+ version_requirements: *70239191574280
47
48
  - !ruby/object:Gem::Dependency
48
49
  name: rspec
49
- requirement: &70284683703600 !ruby/object:Gem::Requirement
50
+ requirement: &70239191573800 !ruby/object:Gem::Requirement
50
51
  none: false
51
52
  requirements:
52
53
  - - ~>
@@ -54,7 +55,7 @@ dependencies:
54
55
  version: '2.5'
55
56
  type: :development
56
57
  prerelease: false
57
- version_requirements: *70284683703600
58
+ version_requirements: *70239191573800
58
59
  description: Provides classes and methods to perform unit math and conversions
59
60
  email:
60
61
  - spike@scpike.net
@@ -122,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
123
  version: '0'
123
124
  requirements: []
124
125
  rubyforge_project:
125
- rubygems_version: 1.8.6
126
+ rubygems_version: 1.8.11
126
127
  signing_key:
127
128
  specification_version: 3
128
129
  summary: A class that performs unit conversions and unit math