hard-boiled 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hard-boiled/presenter.rb +2 -2
- data/lib/hard-boiled/version.rb +1 -1
- metadata +29 -41
@@ -1,7 +1,7 @@
|
|
1
1
|
module HardBoiled
|
2
2
|
require File.dirname(__FILE__)+'/extract_options' unless {}.respond_to?(:extractable_options?)
|
3
3
|
|
4
|
-
# This class pretty much resembles what Thoughtbot did in
|
4
|
+
# This class pretty much resembles what Thoughtbot did in
|
5
5
|
# [FactoryGirl's DefinitionProxy](https://github.com/thoughtbot/factory_girl/blob/master/lib/factory_girl/definition_proxy.rb)
|
6
6
|
# although it just reduces a `class` to a simple `Hash`
|
7
7
|
class Presenter
|
@@ -77,7 +77,7 @@ module HardBoiled
|
|
77
77
|
def __apply_filters value, options
|
78
78
|
if filters = options[:filters]
|
79
79
|
filters.inject(value) { |result, filter|
|
80
|
-
raise MissingFilterError unless self.respond_to?(filter)
|
80
|
+
raise MissingFilterError, filter unless self.respond_to?(filter)
|
81
81
|
self.__send__(filter, result)
|
82
82
|
}
|
83
83
|
else
|
data/lib/hard-boiled/version.rb
CHANGED
metadata
CHANGED
@@ -1,33 +1,26 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: hard-boiled
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
version: 0.1.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Lennart Melzer
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2012-03-21 00:00:00 +01:00
|
18
|
-
default_executable:
|
12
|
+
date: 2012-04-23 00:00:00.000000000 Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
|
-
|
22
|
-
|
14
|
+
description: ! "\n HardBoiled helps you reducing your complex models (including
|
15
|
+
their associations)\n down to simple hashes usable for serialization into JSON
|
16
|
+
or XML.\n\n It leverages a DSL similar to thoughtbot's FactoryGirl \n to make
|
17
|
+
mappings maintainable and pain-free.\n "
|
18
|
+
email:
|
23
19
|
- me@lmaa.name
|
24
20
|
executables: []
|
25
|
-
|
26
21
|
extensions: []
|
27
|
-
|
28
22
|
extra_rdoc_files: []
|
29
|
-
|
30
|
-
files:
|
23
|
+
files:
|
31
24
|
- .gitignore
|
32
25
|
- Gemfile
|
33
26
|
- README.md
|
@@ -39,36 +32,31 @@ files:
|
|
39
32
|
- lib/hard-boiled/version.rb
|
40
33
|
- spec/presenter_spec.rb
|
41
34
|
- spec/spec_helper.rb
|
42
|
-
|
43
|
-
homepage: ""
|
35
|
+
homepage: ''
|
44
36
|
licenses: []
|
45
|
-
|
46
37
|
post_install_message:
|
47
38
|
rdoc_options: []
|
48
|
-
|
49
|
-
require_paths:
|
39
|
+
require_paths:
|
50
40
|
- lib
|
51
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
requirements:
|
60
|
-
- -
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
|
63
|
-
- 0
|
64
|
-
version: "0"
|
41
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
|
+
none: false
|
49
|
+
requirements:
|
50
|
+
- - ! '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
65
53
|
requirements: []
|
66
|
-
|
67
54
|
rubyforge_project: hard-boiled
|
68
|
-
rubygems_version: 1.
|
55
|
+
rubygems_version: 1.8.17
|
69
56
|
signing_key:
|
70
57
|
specification_version: 3
|
71
58
|
summary: Get your models boiled down to plain hashes!
|
72
|
-
test_files:
|
59
|
+
test_files:
|
73
60
|
- spec/presenter_spec.rb
|
74
61
|
- spec/spec_helper.rb
|
62
|
+
has_rdoc:
|