habject 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/habject.rb +3 -3
  2. metadata +20 -3
@@ -2,13 +2,13 @@
2
2
  module Habject
3
3
  module Hash
4
4
  def method_missing(name)
5
- return self[name.to_s] if key? name.to_s
6
- return self[name.to_sym] if key? name.to_sym
5
+ return self[name.to_s] if has_key? name.to_s
6
+ return self[name.to_sym] if has_key? name.to_sym
7
7
  super
8
8
  end
9
9
 
10
10
  def respond_to?(method)
11
- has_key?(method.to_s) || super
11
+ has_key?(method.to_s) || has_key?(method.to_sym) || super
12
12
  end
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: habject
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 25
4
5
  prerelease:
5
- version: 0.1.0
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 1
10
+ version: 0.1.1
6
11
  platform: ruby
7
12
  authors:
8
13
  - chatgris
@@ -10,7 +15,8 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-05-19 00:00:00 Z
18
+ date: 2011-05-19 00:00:00 +02:00
19
+ default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: rspec
@@ -20,6 +26,10 @@ dependencies:
20
26
  requirements:
21
27
  - - ~>
22
28
  - !ruby/object:Gem::Version
29
+ hash: 15
30
+ segments:
31
+ - 2
32
+ - 6
23
33
  version: "2.6"
24
34
  type: :development
25
35
  version_requirements: *id001
@@ -37,6 +47,7 @@ files:
37
47
  - Gemfile
38
48
  - lib/habject.rb
39
49
  - init.rb
50
+ has_rdoc: true
40
51
  homepage: http://github.com/chatgris/habject
41
52
  licenses: []
42
53
 
@@ -50,17 +61,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
50
61
  requirements:
51
62
  - - ">="
52
63
  - !ruby/object:Gem::Version
64
+ hash: 3
65
+ segments:
66
+ - 0
53
67
  version: "0"
54
68
  required_rubygems_version: !ruby/object:Gem::Requirement
55
69
  none: false
56
70
  requirements:
57
71
  - - ">="
58
72
  - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 0
59
76
  version: "0"
60
77
  requirements: []
61
78
 
62
79
  rubyforge_project:
63
- rubygems_version: 1.8.1
80
+ rubygems_version: 1.4.2
64
81
  signing_key:
65
82
  specification_version: 3
66
83
  summary: Add object type notation to ruby hash.