disposable 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.travis.yml +5 -1
- data/CHANGES.md +4 -0
- data/Gemfile +1 -1
- data/database.sqlite3 +0 -0
- data/disposable.gemspec +1 -1
- data/gemfiles/Gemfile.rails-2.3.lock +6 -6
- data/gemfiles/Gemfile.rails-3.0.lock +9 -7
- data/gemfiles/Gemfile.rails-3.2 +7 -0
- data/gemfiles/Gemfile.rails-3.2.lock +88 -0
- data/gemfiles/Gemfile.rails-4.0 +7 -0
- data/gemfiles/Gemfile.rails-4.0.lock +72 -0
- data/gemfiles/Gemfile.rails-4.1 +7 -0
- data/gemfiles/Gemfile.rails-4.1.lock +75 -0
- data/lib/disposable/twin.rb +30 -16
- data/lib/disposable/twin/option.rb +26 -0
- data/lib/disposable/version.rb +1 -1
- data/test/twin/twin_test.rb +39 -0
- metadata +33 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 980c3ca068019abe74214a9e095fc98f50bf23aa
|
4
|
+
data.tar.gz: e175303be9fafaf0c1aa6076026b85e803186716
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdbc328efa3c93b553ad2cc7587ba52a002841fce3773048a5cd1cac7dfb36975d4f090106a66c3b06b19c1e8f645ad7ae37ee080e2746cdaf2e20253f0dd9d6
|
7
|
+
data.tar.gz: a1ac3f15b89b7d5276711d0f84ee5c722fecdccc5e225b899e61bb30b13ef044c0bf5f4f1082df9e19eb8da3550f922eed2cbbd5b43ec442d93e0ce21d784939
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGES.md
CHANGED
data/Gemfile
CHANGED
data/database.sqlite3
CHANGED
Binary file
|
data/disposable.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_dependency "uber"
|
22
|
-
spec.add_dependency "representable", "~> 2.0.
|
22
|
+
spec.add_dependency "representable", "~> 2.0.3"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.3"
|
25
25
|
spec.add_development_dependency "rake"
|
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../
|
3
3
|
specs:
|
4
|
-
disposable (0.0.
|
5
|
-
representable (~>
|
4
|
+
disposable (0.0.5)
|
5
|
+
representable (~> 2.0.1)
|
6
6
|
uber
|
7
7
|
|
8
8
|
GEM
|
@@ -20,7 +20,7 @@ GEM
|
|
20
20
|
activesupport (2.3.18)
|
21
21
|
database_cleaner (1.3.0)
|
22
22
|
minitest (5.0.8)
|
23
|
-
multi_json (1.10.
|
23
|
+
multi_json (1.10.1)
|
24
24
|
nokogiri (1.5.11)
|
25
25
|
rack (1.1.6)
|
26
26
|
rails (2.3.18)
|
@@ -31,12 +31,12 @@ GEM
|
|
31
31
|
activesupport (= 2.3.18)
|
32
32
|
rake (>= 0.8.3)
|
33
33
|
rake (10.1.0)
|
34
|
-
representable (
|
34
|
+
representable (2.0.1)
|
35
35
|
multi_json
|
36
36
|
nokogiri
|
37
|
-
uber
|
37
|
+
uber (~> 0.0.7)
|
38
38
|
sqlite3 (1.3.8)
|
39
|
-
uber (0.0.
|
39
|
+
uber (0.0.7)
|
40
40
|
|
41
41
|
PLATFORMS
|
42
42
|
ruby
|
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../
|
3
3
|
specs:
|
4
|
-
disposable (0.0.
|
5
|
-
representable (~>
|
4
|
+
disposable (0.0.6)
|
5
|
+
representable (~> 2.0.3)
|
6
6
|
uber
|
7
7
|
|
8
8
|
GEM
|
@@ -31,14 +31,15 @@ GEM
|
|
31
31
|
activesupport (3.0.20)
|
32
32
|
arel (2.0.10)
|
33
33
|
builder (2.1.2)
|
34
|
+
database_cleaner (1.3.0)
|
34
35
|
erubis (2.6.6)
|
35
36
|
abstract (>= 1.0.0)
|
36
37
|
i18n (0.5.0)
|
37
38
|
json (1.8.0)
|
38
39
|
mini_portile (0.6.0)
|
39
40
|
minitest (5.0.8)
|
40
|
-
multi_json (1.10.
|
41
|
-
nokogiri (1.6.
|
41
|
+
multi_json (1.10.1)
|
42
|
+
nokogiri (1.6.3.1)
|
42
43
|
mini_portile (= 0.6.0)
|
43
44
|
rack (1.2.8)
|
44
45
|
rack-mount (0.6.14)
|
@@ -54,14 +55,14 @@ GEM
|
|
54
55
|
rake (10.1.0)
|
55
56
|
rdoc (3.12.2)
|
56
57
|
json (~> 1.4)
|
57
|
-
representable (
|
58
|
+
representable (2.0.3)
|
58
59
|
multi_json
|
59
60
|
nokogiri
|
60
|
-
uber
|
61
|
+
uber (~> 0.0.7)
|
61
62
|
sqlite3 (1.3.8)
|
62
63
|
thor (0.14.6)
|
63
64
|
tzinfo (0.3.38)
|
64
|
-
uber (0.0.
|
65
|
+
uber (0.0.7)
|
65
66
|
|
66
67
|
PLATFORMS
|
67
68
|
ruby
|
@@ -69,6 +70,7 @@ PLATFORMS
|
|
69
70
|
DEPENDENCIES
|
70
71
|
activerecord (~> 3.0.11)
|
71
72
|
bundler (~> 1.3)
|
73
|
+
database_cleaner
|
72
74
|
disposable!
|
73
75
|
minitest
|
74
76
|
railties (~> 3.0.11)
|
@@ -0,0 +1,88 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
disposable (0.0.6)
|
5
|
+
representable (~> 2.0.3)
|
6
|
+
uber
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionpack (3.2.19)
|
12
|
+
activemodel (= 3.2.19)
|
13
|
+
activesupport (= 3.2.19)
|
14
|
+
builder (~> 3.0.0)
|
15
|
+
erubis (~> 2.7.0)
|
16
|
+
journey (~> 1.0.4)
|
17
|
+
rack (~> 1.4.5)
|
18
|
+
rack-cache (~> 1.2)
|
19
|
+
rack-test (~> 0.6.1)
|
20
|
+
sprockets (~> 2.2.1)
|
21
|
+
activemodel (3.2.19)
|
22
|
+
activesupport (= 3.2.19)
|
23
|
+
builder (~> 3.0.0)
|
24
|
+
activerecord (3.2.19)
|
25
|
+
activemodel (= 3.2.19)
|
26
|
+
activesupport (= 3.2.19)
|
27
|
+
arel (~> 3.0.2)
|
28
|
+
tzinfo (~> 0.3.29)
|
29
|
+
activesupport (3.2.19)
|
30
|
+
i18n (~> 0.6, >= 0.6.4)
|
31
|
+
multi_json (~> 1.0)
|
32
|
+
arel (3.0.3)
|
33
|
+
builder (3.0.4)
|
34
|
+
database_cleaner (1.3.0)
|
35
|
+
erubis (2.7.0)
|
36
|
+
hike (1.2.3)
|
37
|
+
i18n (0.6.11)
|
38
|
+
journey (1.0.4)
|
39
|
+
json (1.8.1)
|
40
|
+
mini_portile (0.6.0)
|
41
|
+
minitest (5.4.0)
|
42
|
+
multi_json (1.10.1)
|
43
|
+
nokogiri (1.6.3.1)
|
44
|
+
mini_portile (= 0.6.0)
|
45
|
+
rack (1.4.5)
|
46
|
+
rack-cache (1.2)
|
47
|
+
rack (>= 0.4)
|
48
|
+
rack-ssl (1.3.4)
|
49
|
+
rack
|
50
|
+
rack-test (0.6.2)
|
51
|
+
rack (>= 1.0)
|
52
|
+
railties (3.2.19)
|
53
|
+
actionpack (= 3.2.19)
|
54
|
+
activesupport (= 3.2.19)
|
55
|
+
rack-ssl (~> 1.3.2)
|
56
|
+
rake (>= 0.8.7)
|
57
|
+
rdoc (~> 3.4)
|
58
|
+
thor (>= 0.14.6, < 2.0)
|
59
|
+
rake (10.3.2)
|
60
|
+
rdoc (3.12.2)
|
61
|
+
json (~> 1.4)
|
62
|
+
representable (2.0.3)
|
63
|
+
multi_json
|
64
|
+
nokogiri
|
65
|
+
uber (~> 0.0.7)
|
66
|
+
sprockets (2.2.2)
|
67
|
+
hike (~> 1.2)
|
68
|
+
multi_json (~> 1.0)
|
69
|
+
rack (~> 1.0)
|
70
|
+
tilt (~> 1.1, != 1.3.0)
|
71
|
+
sqlite3 (1.3.9)
|
72
|
+
thor (0.19.1)
|
73
|
+
tilt (1.4.1)
|
74
|
+
tzinfo (0.3.40)
|
75
|
+
uber (0.0.7)
|
76
|
+
|
77
|
+
PLATFORMS
|
78
|
+
ruby
|
79
|
+
|
80
|
+
DEPENDENCIES
|
81
|
+
activerecord (~> 3.2.0)
|
82
|
+
bundler (~> 1.3)
|
83
|
+
database_cleaner
|
84
|
+
disposable!
|
85
|
+
minitest
|
86
|
+
railties (~> 3.2.0)
|
87
|
+
rake
|
88
|
+
sqlite3
|
@@ -0,0 +1,72 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
disposable (0.0.6)
|
5
|
+
representable (~> 2.0.3)
|
6
|
+
uber
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionpack (4.0.5)
|
12
|
+
activesupport (= 4.0.5)
|
13
|
+
builder (~> 3.1.0)
|
14
|
+
erubis (~> 2.7.0)
|
15
|
+
rack (~> 1.5.2)
|
16
|
+
rack-test (~> 0.6.2)
|
17
|
+
activemodel (4.0.5)
|
18
|
+
activesupport (= 4.0.5)
|
19
|
+
builder (~> 3.1.0)
|
20
|
+
activerecord (4.0.5)
|
21
|
+
activemodel (= 4.0.5)
|
22
|
+
activerecord-deprecated_finders (~> 1.0.2)
|
23
|
+
activesupport (= 4.0.5)
|
24
|
+
arel (~> 4.0.0)
|
25
|
+
activerecord-deprecated_finders (1.0.3)
|
26
|
+
activesupport (4.0.5)
|
27
|
+
i18n (~> 0.6, >= 0.6.9)
|
28
|
+
minitest (~> 4.2)
|
29
|
+
multi_json (~> 1.3)
|
30
|
+
thread_safe (~> 0.1)
|
31
|
+
tzinfo (~> 0.3.37)
|
32
|
+
arel (4.0.2)
|
33
|
+
builder (3.1.4)
|
34
|
+
database_cleaner (1.3.0)
|
35
|
+
erubis (2.7.0)
|
36
|
+
i18n (0.6.11)
|
37
|
+
mini_portile (0.6.0)
|
38
|
+
minitest (4.7.5)
|
39
|
+
multi_json (1.10.1)
|
40
|
+
nokogiri (1.6.3.1)
|
41
|
+
mini_portile (= 0.6.0)
|
42
|
+
rack (1.5.2)
|
43
|
+
rack-test (0.6.2)
|
44
|
+
rack (>= 1.0)
|
45
|
+
railties (4.0.5)
|
46
|
+
actionpack (= 4.0.5)
|
47
|
+
activesupport (= 4.0.5)
|
48
|
+
rake (>= 0.8.7)
|
49
|
+
thor (>= 0.18.1, < 2.0)
|
50
|
+
rake (10.3.2)
|
51
|
+
representable (2.0.3)
|
52
|
+
multi_json
|
53
|
+
nokogiri
|
54
|
+
uber (~> 0.0.7)
|
55
|
+
sqlite3 (1.3.9)
|
56
|
+
thor (0.19.1)
|
57
|
+
thread_safe (0.3.4)
|
58
|
+
tzinfo (0.3.39)
|
59
|
+
uber (0.0.7)
|
60
|
+
|
61
|
+
PLATFORMS
|
62
|
+
ruby
|
63
|
+
|
64
|
+
DEPENDENCIES
|
65
|
+
activerecord (~> 4.0.0)
|
66
|
+
bundler (~> 1.3)
|
67
|
+
database_cleaner
|
68
|
+
disposable!
|
69
|
+
minitest
|
70
|
+
railties (~> 4.0.0)
|
71
|
+
rake
|
72
|
+
sqlite3
|
@@ -0,0 +1,75 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
disposable (0.0.6)
|
5
|
+
representable (~> 2.0.3)
|
6
|
+
uber
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionpack (4.1.1)
|
12
|
+
actionview (= 4.1.1)
|
13
|
+
activesupport (= 4.1.1)
|
14
|
+
rack (~> 1.5.2)
|
15
|
+
rack-test (~> 0.6.2)
|
16
|
+
actionview (4.1.1)
|
17
|
+
activesupport (= 4.1.1)
|
18
|
+
builder (~> 3.1)
|
19
|
+
erubis (~> 2.7.0)
|
20
|
+
activemodel (4.1.1)
|
21
|
+
activesupport (= 4.1.1)
|
22
|
+
builder (~> 3.1)
|
23
|
+
activerecord (4.1.1)
|
24
|
+
activemodel (= 4.1.1)
|
25
|
+
activesupport (= 4.1.1)
|
26
|
+
arel (~> 5.0.0)
|
27
|
+
activesupport (4.1.1)
|
28
|
+
i18n (~> 0.6, >= 0.6.9)
|
29
|
+
json (~> 1.7, >= 1.7.7)
|
30
|
+
minitest (~> 5.1)
|
31
|
+
thread_safe (~> 0.1)
|
32
|
+
tzinfo (~> 1.1)
|
33
|
+
arel (5.0.1.20140414130214)
|
34
|
+
builder (3.2.2)
|
35
|
+
database_cleaner (1.3.0)
|
36
|
+
erubis (2.7.0)
|
37
|
+
i18n (0.6.11)
|
38
|
+
json (1.8.1)
|
39
|
+
mini_portile (0.6.0)
|
40
|
+
minitest (5.4.0)
|
41
|
+
multi_json (1.10.1)
|
42
|
+
nokogiri (1.6.3.1)
|
43
|
+
mini_portile (= 0.6.0)
|
44
|
+
rack (1.5.2)
|
45
|
+
rack-test (0.6.2)
|
46
|
+
rack (>= 1.0)
|
47
|
+
railties (4.1.1)
|
48
|
+
actionpack (= 4.1.1)
|
49
|
+
activesupport (= 4.1.1)
|
50
|
+
rake (>= 0.8.7)
|
51
|
+
thor (>= 0.18.1, < 2.0)
|
52
|
+
rake (10.3.2)
|
53
|
+
representable (2.0.3)
|
54
|
+
multi_json
|
55
|
+
nokogiri
|
56
|
+
uber (~> 0.0.7)
|
57
|
+
sqlite3 (1.3.9)
|
58
|
+
thor (0.19.1)
|
59
|
+
thread_safe (0.3.4)
|
60
|
+
tzinfo (1.2.1)
|
61
|
+
thread_safe (~> 0.1)
|
62
|
+
uber (0.0.7)
|
63
|
+
|
64
|
+
PLATFORMS
|
65
|
+
ruby
|
66
|
+
|
67
|
+
DEPENDENCIES
|
68
|
+
activerecord (~> 4.1.0)
|
69
|
+
bundler (~> 1.3)
|
70
|
+
database_cleaner
|
71
|
+
disposable!
|
72
|
+
minitest
|
73
|
+
railties (~> 4.1.0)
|
74
|
+
rake
|
75
|
+
sqlite3
|
data/lib/disposable/twin.rb
CHANGED
@@ -20,8 +20,8 @@ module Disposable
|
|
20
20
|
Class.new(self) # By subclassing, representable_attrs.clone is called.
|
21
21
|
end
|
22
22
|
|
23
|
-
def self.
|
24
|
-
Definition
|
23
|
+
def self.build_config
|
24
|
+
Config.new(Definition)
|
25
25
|
end
|
26
26
|
|
27
27
|
def twin_names
|
@@ -47,7 +47,11 @@ module Disposable
|
|
47
47
|
options[:pass_options] = true
|
48
48
|
|
49
49
|
representer_class.property(name, options, &block).tap do |definition|
|
50
|
-
|
50
|
+
mod = Module.new do
|
51
|
+
define_method(name) { @fields[name.to_s] } # TODO: move to separate method.
|
52
|
+
define_method("#{name}=") { |value| @fields[name.to_s] = value }
|
53
|
+
end
|
54
|
+
include mod
|
51
55
|
end
|
52
56
|
end
|
53
57
|
|
@@ -56,8 +60,8 @@ module Disposable
|
|
56
60
|
end
|
57
61
|
|
58
62
|
# this method should only be called in finders, and considered semi-private. it should only be called once as the top stack entry.
|
59
|
-
def self.from(model) # TODO: private.
|
60
|
-
new(model)
|
63
|
+
def self.from(model, *args) # TODO: private.
|
64
|
+
new(model, *args)
|
61
65
|
end
|
62
66
|
|
63
67
|
def self.new(model={}, object_map=ObjectMap.new)
|
@@ -66,21 +70,30 @@ module Disposable
|
|
66
70
|
|
67
71
|
|
68
72
|
# TODO: improve speed when setting up a twin.
|
69
|
-
|
70
|
-
|
71
|
-
|
73
|
+
module Initialize
|
74
|
+
def initialize(model, object_map)
|
75
|
+
@fields = {}
|
76
|
+
|
77
|
+
setup!(model, object_map)
|
78
|
+
end
|
72
79
|
|
80
|
+
def setup!(model, object_map)
|
81
|
+
options = {}
|
82
|
+
options, model = model, self.class._model.new if model.is_a?(Hash)
|
73
83
|
|
74
|
-
# model, options = nil, model if model.is_a?(Hash) # sorry but i wanna have the same API as ActiveRecord here.
|
75
|
-
@model = model #|| self.class._model.new
|
76
84
|
|
77
|
-
|
85
|
+
# model, options = nil, model if model.is_a?(Hash) # sorry but i wanna have the same API as ActiveRecord here.
|
86
|
+
@model = model #|| self.class._model.new
|
78
87
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
88
|
+
object_map[@model] = self # DISCUSS: how to we handle compositions here?
|
89
|
+
|
90
|
+
from_hash(
|
91
|
+
self.class.new_representer.new(@model).to_hash(:object_map => object_map). # always read from model, even when it's new.
|
92
|
+
merge(options)
|
93
|
+
)
|
94
|
+
end
|
83
95
|
end
|
96
|
+
include Initialize # TODO: simplify so the whole thing with object map gets optional.
|
84
97
|
|
85
98
|
|
86
99
|
require 'disposable/twin/finders'
|
@@ -122,7 +135,8 @@ module Disposable
|
|
122
135
|
# song_title => model.title
|
123
136
|
representer.representable_attrs.each do |attr|
|
124
137
|
attr.merge!(
|
125
|
-
:getter => lambda { |args|
|
138
|
+
:getter => lambda { |args|
|
139
|
+
args.represented.send("#{args.binding[:private_name]}") }, # DISCUSS: can't we do that with representable's mechanics?
|
126
140
|
)
|
127
141
|
end
|
128
142
|
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Disposable::Twin::Option
|
2
|
+
def self.included(base)
|
3
|
+
base.extend ClassMethods
|
4
|
+
end
|
5
|
+
|
6
|
+
|
7
|
+
def setup!(model, options)
|
8
|
+
# FIXME: merge that with original Twin.
|
9
|
+
|
10
|
+
@model = model #|| self.class._model.new
|
11
|
+
|
12
|
+
from_hash(
|
13
|
+
self.class.new_representer.new(@model).to_hash
|
14
|
+
)
|
15
|
+
|
16
|
+
# TODO: just make new_representer with :getter for option!
|
17
|
+
# IDEA: how can we bring that in line with Composition?
|
18
|
+
from_hash(options)
|
19
|
+
end
|
20
|
+
|
21
|
+
module ClassMethods
|
22
|
+
def option(name, options={})
|
23
|
+
property(name, options.merge(:readable => false))
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/lib/disposable/version.rb
CHANGED
data/test/twin/twin_test.rb
CHANGED
@@ -76,6 +76,20 @@ class TwinTest < MiniTest::Spec
|
|
76
76
|
end
|
77
77
|
|
78
78
|
|
79
|
+
class OverridingAccessorsTest < TwinTest
|
80
|
+
# overriding accessors in Twin
|
81
|
+
class Song < Disposable::Twin
|
82
|
+
property :title
|
83
|
+
|
84
|
+
def title
|
85
|
+
super.downcase
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
it { Song.from(Model::Song.new(1, "A Tale That Wasn't Right")).title.must_equal "a tale that wasn't right" }
|
90
|
+
end
|
91
|
+
|
92
|
+
|
79
93
|
class TwinDecoratorTest < MiniTest::Spec
|
80
94
|
subject { TwinTest::Twin::Song.representer_class.new(nil) }
|
81
95
|
|
@@ -141,4 +155,29 @@ class TwinAsTest < MiniTest::Spec
|
|
141
155
|
end
|
142
156
|
|
143
157
|
|
158
|
+
require 'disposable/twin/option'
|
159
|
+
class TwinOptionTest < TwinTest
|
160
|
+
class Song < Disposable::Twin
|
161
|
+
include Option
|
162
|
+
|
163
|
+
property :id # DISCUSS: needed for #save.
|
164
|
+
property :title
|
165
|
+
|
166
|
+
option :preview?
|
167
|
+
option :highlight?
|
168
|
+
end
|
169
|
+
|
170
|
+
|
171
|
+
describe "::from" do
|
172
|
+
let (:song) { Model::Song.new(1, "Broken") }
|
173
|
+
let (:twin) { Song.from(song, :preview? => false) }
|
174
|
+
|
175
|
+
it { twin.id.must_equal 1 }
|
176
|
+
it { twin.title.must_equal "Broken" }
|
177
|
+
it { twin.preview?.must_equal false }
|
178
|
+
|
179
|
+
it { Song.from(song, :preview? => true, :highlight => false).preview?.must_equal true }
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
144
183
|
# TODO: test coercion!
|
metadata
CHANGED
@@ -1,125 +1,125 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: disposable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: uber
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: representable
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.0.
|
33
|
+
version: 2.0.3
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.0.
|
40
|
+
version: 2.0.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: minitest
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: activerecord
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: sqlite3
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: database_cleaner
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
description: Domain-Oriented Refactoring Framework.
|
@@ -129,8 +129,8 @@ executables: []
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
-
- .gitignore
|
133
|
-
- .travis.yml
|
132
|
+
- ".gitignore"
|
133
|
+
- ".travis.yml"
|
134
134
|
- CHANGES.md
|
135
135
|
- Gemfile
|
136
136
|
- LICENSE.txt
|
@@ -143,10 +143,17 @@ files:
|
|
143
143
|
- gemfiles/Gemfile.rails-2.3.lock
|
144
144
|
- gemfiles/Gemfile.rails-3.0
|
145
145
|
- gemfiles/Gemfile.rails-3.0.lock
|
146
|
+
- gemfiles/Gemfile.rails-3.2
|
147
|
+
- gemfiles/Gemfile.rails-3.2.lock
|
148
|
+
- gemfiles/Gemfile.rails-4.0
|
149
|
+
- gemfiles/Gemfile.rails-4.0.lock
|
150
|
+
- gemfiles/Gemfile.rails-4.1
|
151
|
+
- gemfiles/Gemfile.rails-4.1.lock
|
146
152
|
- lib/disposable.rb
|
147
153
|
- lib/disposable/composition.rb
|
148
154
|
- lib/disposable/twin.rb
|
149
155
|
- lib/disposable/twin/finders.rb
|
156
|
+
- lib/disposable/twin/option.rb
|
150
157
|
- lib/disposable/version.rb
|
151
158
|
- test/composition_test.rb
|
152
159
|
- test/test_helper.rb
|
@@ -163,17 +170,17 @@ require_paths:
|
|
163
170
|
- lib
|
164
171
|
required_ruby_version: !ruby/object:Gem::Requirement
|
165
172
|
requirements:
|
166
|
-
- -
|
173
|
+
- - ">="
|
167
174
|
- !ruby/object:Gem::Version
|
168
175
|
version: '0'
|
169
176
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
177
|
requirements:
|
171
|
-
- -
|
178
|
+
- - ">="
|
172
179
|
- !ruby/object:Gem::Version
|
173
180
|
version: '0'
|
174
181
|
requirements: []
|
175
182
|
rubyforge_project:
|
176
|
-
rubygems_version: 2.2.
|
183
|
+
rubygems_version: 2.2.1
|
177
184
|
signing_key:
|
178
185
|
specification_version: 4
|
179
186
|
summary: Domain-Oriented Refactoring Framework.
|
@@ -183,3 +190,4 @@ test_files:
|
|
183
190
|
- test/twin/active_record_test.rb
|
184
191
|
- test/twin/composition_test.rb
|
185
192
|
- test/twin/twin_test.rb
|
193
|
+
has_rdoc:
|