m9t 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +3 -2
  2. data/lib/m9t/base.rb +1 -1
  3. data/lib/m9t/version.rb +2 -2
  4. metadata +37 -58
data/Rakefile CHANGED
@@ -4,7 +4,8 @@ require 'rake/testtask'
4
4
  require 'rake/clean'
5
5
 
6
6
  $:.unshift( File.dirname(__FILE__) + '/lib' )
7
- require "bundler/version"
7
+ require 'bundler/version'
8
+ require 'm9t'
8
9
 
9
10
  RDOC_OPTS = ['--quiet', '--title', 'm9t: Measurement units', '--main', 'README.rdoc', '--inline-source']
10
11
  CLEAN.include 'doc'
@@ -28,7 +29,7 @@ desc "Build the gem"
28
29
  task :build do
29
30
  system "gem build m9t.gemspec"
30
31
  end
31
-
32
+
32
33
  desc "Publish a new version of the gem"
33
34
  task :release => :build do
34
35
  system "gem push m9t-#{M9t::VERSION}"
data/lib/m9t/base.rb CHANGED
@@ -96,7 +96,7 @@ module M9t
96
96
  # define conversion instance methods as required
97
97
  def method_missing(name, *args, &block)
98
98
  if name.to_s =~ /^to_(\w+)$/
99
- return send(name, @value) if define_conversion($1)
99
+ return send(name) if define_conversion($1)
100
100
  end
101
101
  raise "Method '#{ name }' unknown" # TODO use standard exception
102
102
  end
data/lib/m9t/version.rb CHANGED
@@ -3,8 +3,8 @@ module M9t
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 2
6
- TINY = 2
7
-
6
+ TINY = 3
7
+
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  end
10
10
 
metadata CHANGED
@@ -1,100 +1,79 @@
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.2.3
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 2
10
- version: 0.2.2
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: 2011-08-23 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-12-08 00:00:00.000000000 +00:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
21
16
  name: i18n
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &2165744960 !ruby/object:Gem::Requirement
24
18
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 25
29
- segments:
30
- - 0
31
- - 3
32
- - 5
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
33
22
  version: 0.3.5
34
23
  type: :runtime
35
- version_requirements: *id001
24
+ prerelease: false
25
+ version_requirements: *2165744960
36
26
  description: Classes for handling measurement units, conversions and translations
37
27
  email: joe.g.yates@gmail.com
38
28
  executables: []
39
-
40
29
  extensions: []
41
-
42
30
  extra_rdoc_files: []
43
-
44
- files:
31
+ files:
45
32
  - README.rdoc
46
33
  - COPYING
47
34
  - Rakefile
48
- - lib/m9t.rb
35
+ - lib/m9t/base.rb
49
36
  - lib/m9t/direction.rb
50
- - lib/m9t/temperature.rb
51
37
  - lib/m9t/distance.rb
52
38
  - lib/m9t/i18n.rb
53
- - lib/m9t/speed.rb
54
39
  - lib/m9t/pressure.rb
55
- - lib/m9t/base.rb
40
+ - lib/m9t/speed.rb
41
+ - lib/m9t/temperature.rb
56
42
  - lib/m9t/version.rb
57
- - test/test_all.rb
43
+ - lib/m9t.rb
44
+ - test/direction_test.rb
45
+ - test/distance_test.rb
58
46
  - test/i18n_test.rb
47
+ - test/pressure_test.rb
59
48
  - test/speed_test.rb
60
- - test/distance_test.rb
61
49
  - test/temperature_test.rb
62
- - test/direction_test.rb
63
- - test/pressure_test.rb
50
+ - test/test_all.rb
64
51
  - locales/en.yml
65
52
  - locales/it.yml
53
+ has_rdoc: true
66
54
  homepage: http://github.com/joeyates/m9t
67
55
  licenses: []
68
-
69
56
  post_install_message:
70
57
  rdoc_options: []
71
-
72
- require_paths:
58
+ require_paths:
73
59
  - lib
74
- required_ruby_version: !ruby/object:Gem::Requirement
60
+ required_ruby_version: !ruby/object:Gem::Requirement
75
61
  none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- hash: 3
80
- segments:
81
- - 0
82
- version: "0"
83
- required_rubygems_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
84
67
  none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- hash: 3
89
- segments:
90
- - 0
91
- version: "0"
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
92
72
  requirements: []
93
-
94
73
  rubyforge_project: nowarning
95
- rubygems_version: 1.8.6
74
+ rubygems_version: 1.6.2
96
75
  signing_key:
97
76
  specification_version: 3
98
77
  summary: Classes for handling measurement units
99
- test_files:
78
+ test_files:
100
79
  - test/test_all.rb