ruby-version 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,7 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
- gem "hash-utils", ">= 0.17.0"
5
4
 
6
5
  # Add dependencies to develop your gem here.
7
6
  # Include everything needed to run rake, tests, features, etc.
@@ -2,7 +2,6 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  git (1.2.5)
5
- hash-utils (0.19.0)
6
5
  jeweler (1.6.4)
7
6
  bundler (~> 1.0)
8
7
  git (>= 1.2.5)
@@ -17,6 +16,5 @@ PLATFORMS
17
16
 
18
17
  DEPENDENCIES
19
18
  bundler (>= 1.0.0)
20
- hash-utils (>= 0.17.0)
21
19
  jeweler (>= 1.5.2)
22
20
  riot (>= 0.12.3)
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Martin Kozák
1
+ Copyright (c) 2011 Martin Kozák (martinkozak@martinkozak.net)
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -1,9 +1,6 @@
1
1
  # encoding: utf-8
2
2
  # (c) 2011 Martin Kozák (martinkozak@martinkozak.net)
3
3
 
4
- require "hash-utils/numeric" # >= 0.16.0
5
- require "hash-utils/object" # >= 0.17.0
6
-
7
4
  ##
8
5
  # Outer wrapper for the {Ruby::Version} module.
9
6
  #
@@ -143,7 +140,7 @@ module Ruby
143
140
 
144
141
  private
145
142
  def self.__compare(value, lower, higher, equal)
146
- if not value.array?
143
+ if not value.kind_of? Array
147
144
  value = self.broke(value.to_s)
148
145
  end
149
146
 
@@ -165,7 +162,7 @@ module Ruby
165
162
 
166
163
  private
167
164
  def self.__cache(operation, value, &block)
168
- value = value.to_sym if value.string?
165
+ value = value.to_sym if value.kind_of? String
169
166
 
170
167
  if @cache.nil?
171
168
  @cache = Hash::new { |dict, key| dict[key] = { } }
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ruby-version"
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Martin Koz\u{e1}k"]
12
- s.date = "2011-10-07"
12
+ s.date = "2011-10-13"
13
13
  s.email = "martinkozak@martinkozak.net"
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.txt",
@@ -30,25 +30,22 @@ Gem::Specification.new do |s|
30
30
  s.homepage = "http://github.com/martinkozak/ruby-version"
31
31
  s.licenses = ["MIT"]
32
32
  s.require_paths = ["lib"]
33
- s.rubygems_version = "1.8.10"
33
+ s.rubygems_version = "1.8.11"
34
34
  s.summary = "Wraps the RUBY_VERSION constant and allows version number matching."
35
35
 
36
36
  if s.respond_to? :specification_version then
37
37
  s.specification_version = 3
38
38
 
39
39
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
40
- s.add_runtime_dependency(%q<hash-utils>, [">= 0.17.0"])
41
40
  s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
42
41
  s.add_development_dependency(%q<jeweler>, [">= 1.5.2"])
43
42
  s.add_development_dependency(%q<riot>, [">= 0.12.3"])
44
43
  else
45
- s.add_dependency(%q<hash-utils>, [">= 0.17.0"])
46
44
  s.add_dependency(%q<bundler>, [">= 1.0.0"])
47
45
  s.add_dependency(%q<jeweler>, [">= 1.5.2"])
48
46
  s.add_dependency(%q<riot>, [">= 0.12.3"])
49
47
  end
50
48
  else
51
- s.add_dependency(%q<hash-utils>, [">= 0.17.0"])
52
49
  s.add_dependency(%q<bundler>, [">= 1.0.0"])
53
50
  s.add_dependency(%q<jeweler>, [">= 1.5.2"])
54
51
  s.add_dependency(%q<riot>, [">= 0.12.3"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-version
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:
@@ -9,22 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-07 00:00:00.000000000 Z
12
+ date: 2011-10-13 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: hash-utils
16
- requirement: &26148260 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: 0.17.0
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: *26148260
25
14
  - !ruby/object:Gem::Dependency
26
15
  name: bundler
27
- requirement: &26145300 !ruby/object:Gem::Requirement
16
+ requirement: &13809960 !ruby/object:Gem::Requirement
28
17
  none: false
29
18
  requirements:
30
19
  - - ! '>='
@@ -32,10 +21,10 @@ dependencies:
32
21
  version: 1.0.0
33
22
  type: :development
34
23
  prerelease: false
35
- version_requirements: *26145300
24
+ version_requirements: *13809960
36
25
  - !ruby/object:Gem::Dependency
37
26
  name: jeweler
38
- requirement: &26144780 !ruby/object:Gem::Requirement
27
+ requirement: &13809320 !ruby/object:Gem::Requirement
39
28
  none: false
40
29
  requirements:
41
30
  - - ! '>='
@@ -43,10 +32,10 @@ dependencies:
43
32
  version: 1.5.2
44
33
  type: :development
45
34
  prerelease: false
46
- version_requirements: *26144780
35
+ version_requirements: *13809320
47
36
  - !ruby/object:Gem::Dependency
48
37
  name: riot
49
- requirement: &26144260 !ruby/object:Gem::Requirement
38
+ requirement: &13808760 !ruby/object:Gem::Requirement
50
39
  none: false
51
40
  requirements:
52
41
  - - ! '>='
@@ -54,7 +43,7 @@ dependencies:
54
43
  version: 0.12.3
55
44
  type: :development
56
45
  prerelease: false
57
- version_requirements: *26144260
46
+ version_requirements: *13808760
58
47
  description:
59
48
  email: martinkozak@martinkozak.net
60
49
  executables: []
@@ -88,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
77
  version: '0'
89
78
  segments:
90
79
  - 0
91
- hash: -225028042708857402
80
+ hash: -1698263661555787734
92
81
  required_rubygems_version: !ruby/object:Gem::Requirement
93
82
  none: false
94
83
  requirements:
@@ -97,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
86
  version: '0'
98
87
  requirements: []
99
88
  rubyforge_project:
100
- rubygems_version: 1.8.10
89
+ rubygems_version: 1.8.11
101
90
  signing_key:
102
91
  specification_version: 3
103
92
  summary: Wraps the RUBY_VERSION constant and allows version number matching.