hashifiable 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5f4eeca5d00bdcf4c8ccf972c2cf17775b0fe899
4
+ data.tar.gz: f8dfe7d0f9d7264fc7a958f691790419c0d6c845
5
+ SHA512:
6
+ metadata.gz: 1f398b16429678d470b5aaead86854b63a93b1b2b2a56fa8782d28417f46cf4305d1a079bb22136ff8a4a2752ca6a9d14e982303ad6bf46f729295754a898fbf
7
+ data.tar.gz: 00935a151f0fb63c29512b27f39fdb3ee2da3e2885fcf302c2fe86e46d139760b5d34fd7162b22af4707befc26e624dc6ac74bdc85433444c0cb9db256d37410
data/lib/hashifiable.rb CHANGED
@@ -9,7 +9,7 @@ module Hashifiable
9
9
 
10
10
  args.each do |argument|
11
11
  case argument
12
- when Symbol
12
+ when Symbol, String
13
13
  ## Calls the specified method on the object and stores it
14
14
  ## under the method name.
15
15
  hash_representation[argument] = self.send(argument)
@@ -20,8 +20,7 @@ module Hashifiable
20
20
  argument.each do |name, function|
21
21
  hash_representation[name] = instance_exec(&function)
22
22
  end
23
- else
24
- raise ArgumentError
23
+ else raise ArgumentError
25
24
  end
26
25
  end
27
26
 
@@ -2,7 +2,7 @@ module Hashifiable
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- PATCH = 2
5
+ PATCH = 3
6
6
 
7
7
  def self.to_s
8
8
  [MAJOR, MINOR, PATCH].join('.')
metadata CHANGED
@@ -1,51 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashifiable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: 0.1.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Pablo Astigrraga
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-20 00:00:00.000000000 Z
11
+ date: 2013-12-13 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
- description: ! "\n With hashify you can specify a line with the methods that
47
- will be called to\n create a hash representation of your object. Simple and
48
- straightforward.\n "
41
+ description: "\n With hashify you can specify a line with the methods that will
42
+ be called to\n create a hash representation of your object. Simple and straightforward.\n
43
+ \ "
49
44
  email:
50
45
  - poteland@gmail.com
51
46
  executables: []
@@ -57,27 +52,26 @@ files:
57
52
  homepage: http://github.com/pote/hashify
58
53
  licenses:
59
54
  - MIT
55
+ metadata: {}
60
56
  post_install_message:
61
57
  rdoc_options: []
62
58
  require_paths:
63
59
  - lib
64
60
  - lib
65
61
  required_ruby_version: !ruby/object:Gem::Requirement
66
- none: false
67
62
  requirements:
68
- - - ! '>='
63
+ - - '>='
69
64
  - !ruby/object:Gem::Version
70
65
  version: '0'
71
66
  required_rubygems_version: !ruby/object:Gem::Requirement
72
- none: false
73
67
  requirements:
74
- - - ! '>='
68
+ - - '>='
75
69
  - !ruby/object:Gem::Version
76
70
  version: '0'
77
71
  requirements: []
78
72
  rubyforge_project:
79
- rubygems_version: 1.8.23
73
+ rubygems_version: 2.0.3
80
74
  signing_key:
81
- specification_version: 3
75
+ specification_version: 4
82
76
  summary: A simple way to specify the hash/json representation of your object
83
77
  test_files: []