m9t 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -29,3 +29,4 @@ desc "Publish a new version of the gem"
29
29
  task :release => :build do
30
30
  `gem push m9t-#{M9t::VERSION::STRING}.gem`
31
31
  end
32
+
data/lib/m9t/base.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  # encoding: utf-8
2
- require 'rubygems' if RUBY_VERSION < '1.9'
3
2
  require 'i18n'
4
3
 
5
4
  module M9t
data/lib/m9t/direction.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  # encoding: utf-8
2
- require 'rubygems' if RUBY_VERSION < '1.9'
3
2
  require 'i18n'
4
3
 
5
4
  module M9t
data/lib/m9t/distance.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # encoding: utf-8
2
- require 'rubygems' if RUBY_VERSION < '1.9'
3
2
  require 'i18n'
4
- require File.join(File.expand_path(File.dirname(__FILE__)), 'base')
3
+ require 'm9t/base'
5
4
 
6
5
  module M9t
7
6
 
data/lib/m9t/i18n.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  # encoding: utf-8
2
- require 'rubygems' if RUBY_VERSION < '1.9'
3
2
  require 'i18n'
4
3
 
5
4
  # Monkey patch I18n
@@ -23,3 +22,4 @@ module I18n
23
22
  integers + decimal_separator + decimal
24
23
  end
25
24
  end
25
+
data/lib/m9t/pressure.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # encoding: utf-8
2
- require 'rubygems' if RUBY_VERSION < '1.9'
3
2
  require 'i18n'
4
- require File.join(File.expand_path(File.dirname(__FILE__)), 'base')
3
+ require 'm9t/base'
5
4
 
6
5
  module M9t
7
6
 
@@ -21,3 +20,4 @@ module M9t
21
20
  end
22
21
 
23
22
  end
23
+
data/lib/m9t/speed.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # encoding: utf-8
2
- require 'rubygems' if RUBY_VERSION < '1.9'
3
2
  require 'i18n'
4
- require File.join(File.expand_path(File.dirname(__FILE__)), 'distance')
3
+ require 'm9t/distance'
5
4
 
6
5
  module M9t
7
6
 
@@ -26,3 +25,4 @@ module M9t
26
25
  end
27
26
 
28
27
  end
28
+
@@ -1,7 +1,6 @@
1
1
  # encoding: utf-8
2
- require 'rubygems' if RUBY_VERSION < '1.9'
3
2
  require 'i18n'
4
- require File.join(File.expand_path(File.dirname(__FILE__)), 'base')
3
+ require 'm9t/base'
5
4
 
6
5
  module M9t
7
6
 
@@ -67,3 +66,4 @@ module M9t
67
66
  end
68
67
 
69
68
  end
69
+
data/lib/m9t/version.rb CHANGED
@@ -3,9 +3,10 @@ module M9t
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 3
6
- TINY = 0
6
+ TINY = 1
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  end
10
10
 
11
11
  end
12
+
data/lib/m9t.rb CHANGED
@@ -22,7 +22,6 @@
22
22
  #++
23
23
 
24
24
  # encoding: utf-8
25
- require 'rubygems' if RUBY_VERSION < '1.9'
26
25
  require 'i18n'
27
26
 
28
27
  locales_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'locales'))
@@ -45,3 +44,4 @@ module M9t
45
44
  end
46
45
 
47
46
  end
47
+
data/m9t.gemspec CHANGED
@@ -14,8 +14,8 @@ gemspec = Gem::Specification.new do |s|
14
14
  s.author = 'Joe Yates'
15
15
  s.email = 'joe.g.yates@gmail.com'
16
16
 
17
- s.files = `git ls-files`.map( &:chomp! ).reject { | f | f[ 0 .. 0 ] == '.' }
18
- s.test_files = `git ls-files`.map( &:chomp! ).select { | f | f =~ /_test.rb$/ }
17
+ s.files = `git ls-files`.lines.map( &:chomp! ).reject { | f | f[ 0 .. 0 ] == '.' }
18
+ s.test_files = `git ls-files`.lines.map( &:chomp! ).select { | f | f =~ /_test.rb$/ }
19
19
  s.require_paths = ['lib']
20
20
 
21
21
  s.rubyforge_project = 'nowarning'
metadata CHANGED
@@ -1,75 +1,71 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: m9t
3
- version: !ruby/object:Gem::Version
4
- hash: 19
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 3
9
- - 0
10
- version: 0.3.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Joe Yates
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-01-14 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-05-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rake
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 0.8.7
32
22
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: i18n
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 0.8.7
30
+ - !ruby/object:Gem::Dependency
31
+ name: i18n
32
+ requirement: !ruby/object:Gem::Requirement
38
33
  none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 25
43
- segments:
44
- - 0
45
- - 3
46
- - 5
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
47
37
  version: 0.3.5
48
38
  type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: rcov
52
39
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
54
41
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
- version: "0"
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 0.3.5
46
+ - !ruby/object:Gem::Dependency
47
+ name: simplecov
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
62
54
  type: :development
63
- version_requirements: *id003
64
- description: "Classes for handling basic measurement units: distance, direction, speed, temperature and pressure"
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ description: ! 'Classes for handling basic measurement units: distance, direction,
63
+ speed, temperature and pressure'
65
64
  email: joe.g.yates@gmail.com
66
65
  executables: []
67
-
68
66
  extensions: []
69
-
70
67
  extra_rdoc_files: []
71
-
72
- files:
68
+ files:
73
69
  - GPL-LICENSE.txt
74
70
  - Gemfile
75
71
  - MIT-LICENSE.txt
@@ -97,38 +93,35 @@ files:
97
93
  - test/test_helper.rb
98
94
  homepage: https://github.com/joeyates/m9t
99
95
  licenses: []
100
-
101
96
  post_install_message:
102
97
  rdoc_options: []
103
-
104
- require_paths:
98
+ require_paths:
105
99
  - lib
106
- required_ruby_version: !ruby/object:Gem::Requirement
100
+ required_ruby_version: !ruby/object:Gem::Requirement
107
101
  none: false
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- hash: 3
112
- segments:
102
+ requirements:
103
+ - - ! '>='
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ segments:
113
107
  - 0
114
- version: "0"
115
- required_rubygems_version: !ruby/object:Gem::Requirement
108
+ hash: -2981618013678605428
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
110
  none: false
117
- requirements:
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- hash: 3
121
- segments:
111
+ requirements:
112
+ - - ! '>='
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ segments:
122
116
  - 0
123
- version: "0"
117
+ hash: -2981618013678605428
124
118
  requirements: []
125
-
126
119
  rubyforge_project: nowarning
127
- rubygems_version: 1.8.10
120
+ rubygems_version: 1.8.24
128
121
  signing_key:
129
122
  specification_version: 3
130
123
  summary: Measurements and conversions library for Ruby
131
- test_files:
124
+ test_files:
132
125
  - test/base_test.rb
133
126
  - test/direction_test.rb
134
127
  - test/distance_test.rb