agile_serializer 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/agile_serializer/railtie.rb +7 -0
- data/lib/agile_serializer/version.rb +1 -1
- data/lib/agile_serializer.rb +4 -0
- metadata +10 -5
- data/rails/init.rb +0 -1
data/lib/agile_serializer.rb
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
module AgileSerializer
|
2
2
|
|
3
|
+
if defined?(Rails) and Rails::VERSION::MAJOR == 3
|
4
|
+
require 'agile_serializer/railtie'
|
5
|
+
end
|
6
|
+
|
3
7
|
def serialize_with_options(set = :default, &block)
|
4
8
|
configuration = read_inheritable_attribute(:configuration) || {}
|
5
9
|
options = read_inheritable_attribute(:options) || {}
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agile_serializer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Christos Trochalakis
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-12-21 00:00:00 +02:00
|
18
19
|
default_executable:
|
19
20
|
dependencies: []
|
20
21
|
|
@@ -32,9 +33,9 @@ files:
|
|
32
33
|
- MIT-LICENSE
|
33
34
|
- lib/agile_serializer.rb
|
34
35
|
- lib/agile_serializer/version.rb
|
36
|
+
- lib/agile_serializer/railtie.rb
|
35
37
|
- test/serialize_with_options_test.rb
|
36
38
|
- test/test_helper.rb
|
37
|
-
- rails/init.rb
|
38
39
|
has_rdoc: true
|
39
40
|
homepage: http://github.com/ctrochalakis/agile_serializer
|
40
41
|
licenses: []
|
@@ -45,23 +46,27 @@ rdoc_options: []
|
|
45
46
|
require_paths:
|
46
47
|
- lib
|
47
48
|
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
48
50
|
requirements:
|
49
51
|
- - ">="
|
50
52
|
- !ruby/object:Gem::Version
|
53
|
+
hash: 3
|
51
54
|
segments:
|
52
55
|
- 0
|
53
56
|
version: "0"
|
54
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
55
59
|
requirements:
|
56
60
|
- - ">="
|
57
61
|
- !ruby/object:Gem::Version
|
62
|
+
hash: 3
|
58
63
|
segments:
|
59
64
|
- 0
|
60
65
|
version: "0"
|
61
66
|
requirements: []
|
62
67
|
|
63
68
|
rubyforge_project:
|
64
|
-
rubygems_version: 1.3.
|
69
|
+
rubygems_version: 1.3.7
|
65
70
|
signing_key:
|
66
71
|
specification_version: 3
|
67
72
|
summary: Enhanced serialize options for rails, forked from serialize_with_options
|
data/rails/init.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ActiveRecord::Base.extend(AgileSerializer)
|