methodize 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +1 -0
  3. data/lib/methodize.rb +1 -1
  4. metadata +22 -10
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1ed87493c72770773be90bcc598bafda6d277150
4
+ data.tar.gz: 47050fd8f94b3e34fb0f74b907dfb841872c751e
5
+ SHA512:
6
+ metadata.gz: 6afbbbfda66192cc6293b3b59949f877f630a4440a3a36a2d989a4f553bee02a20b6b8880b598e7edb47a9490b67962f9284e6d08e3384e9ddb1cdd8dd666d68
7
+ data.tar.gz: 1039d641835228f32ea38adced1d524bba5e792b92f10b671c68546126bc99f6f3c5fcdd8b3827f801818a749c6fb21933f7ee80c493802db37cfda51758aeb8
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  Methodize
2
2
  ---------
3
+ [![Build Status](https://travis-ci.org/lfcipriani/methodize.png)](http://travis-ci.org/lfcipriani/methodize)
3
4
 
4
5
  Is a module to read from and write to the keys of a ruby Hash using methods. As simple as this:
5
6
 
@@ -19,7 +19,7 @@ module MethodizedHash
19
19
  def self.extended(base)
20
20
  # ruby >1.9 returns an array of symbols for object.public_methods
21
21
  # while <1.9 returns an array of string. This methods guess it right
22
- @@key_coerce = RUBY_VERSION.start_with?("1.9") ? lambda { |k| k.to_sym } : lambda { |k| k.to_s }
22
+ @@key_coerce = RUBY_VERSION.start_with?("1.9", "2.0") ? lambda { |k| k.to_sym } : lambda { |k| k.to_s }
23
23
 
24
24
  # if some of the Hash keys and public methods names conflict
25
25
  # we free the existant method to enable the user to call it
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: methodize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
5
- prerelease:
4
+ version: 0.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Luis Cipriani
@@ -10,8 +9,22 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2012-05-15 00:00:00.000000000Z
14
- dependencies: []
12
+ date: 2013-08-09 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '>='
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
15
28
  description:
16
29
  email: lfcipriani@gmail.com
17
30
  executables: []
@@ -25,26 +38,25 @@ files:
25
38
  - test/hash_test.rb
26
39
  homepage: http://talleye.com
27
40
  licenses: []
41
+ metadata: {}
28
42
  post_install_message:
29
43
  rdoc_options: []
30
44
  require_paths:
31
45
  - lib
32
46
  required_ruby_version: !ruby/object:Gem::Requirement
33
- none: false
34
47
  requirements:
35
- - - ! '>='
48
+ - - '>='
36
49
  - !ruby/object:Gem::Version
37
50
  version: '0'
38
51
  required_rubygems_version: !ruby/object:Gem::Requirement
39
- none: false
40
52
  requirements:
41
- - - ! '>='
53
+ - - '>='
42
54
  - !ruby/object:Gem::Version
43
55
  version: '0'
44
56
  requirements: []
45
57
  rubyforge_project:
46
- rubygems_version: 1.8.15
58
+ rubygems_version: 2.0.6
47
59
  signing_key:
48
- specification_version: 3
60
+ specification_version: 4
49
61
  summary: Module to read from and write to the keys of a ruby Hash using methods
50
62
  test_files: []