drafter 0.2.8 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Gemfile.lock +2 -0
- data/VERSION +1 -1
- data/drafter.gemspec +9 -2
- data/lib/drafter/apply.rb +56 -1
- data/lib/drafter/creation.rb +48 -18
- data/lib/drafter/diffing.rb +1 -1
- data/lib/drafter/draft.rb +15 -0
- data/lib/drafter/draftable.rb +4 -0
- data/lib/drafter/id_hash.rb +46 -0
- data/lib/drafter/subdrafts.rb +23 -0
- data/lib/drafter.rb +19 -3
- data/test/drafter/test_apply.rb +94 -2
- data/test/drafter/test_creation.rb +41 -1
- data/test/drafter/test_diffing.rb +5 -1
- data/test/drafter/test_draft.rb +188 -16
- data/test/drafter/test_draftable.rb +1 -15
- data/test/drafter/test_id_hash.rb +79 -0
- data/test/drafter/test_subdrafts.rb +178 -0
- data/test/helper.rb +13 -8
- data/test/support/models.rb +32 -6
- data/test/support/schema.rb +23 -13
- data/test/test_drafter.rb +1 -1
- metadata +40 -25
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drafter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-05 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
16
|
-
requirement: &
|
16
|
+
requirement: &2164530720 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2164530720
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: diffy
|
27
|
-
requirement: &
|
27
|
+
requirement: &2164525340 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2164525340
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: sqlite3
|
38
|
-
requirement: &
|
38
|
+
requirement: &2164524700 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,21 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2164524700
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: database_cleaner
|
49
|
+
requirement: &2164524100 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *2164524100
|
47
58
|
- !ruby/object:Gem::Dependency
|
48
59
|
name: debugger
|
49
|
-
requirement: &
|
60
|
+
requirement: &2164523500 !ruby/object:Gem::Requirement
|
50
61
|
none: false
|
51
62
|
requirements:
|
52
63
|
- - ! '>='
|
@@ -54,10 +65,10 @@ dependencies:
|
|
54
65
|
version: '0'
|
55
66
|
type: :development
|
56
67
|
prerelease: false
|
57
|
-
version_requirements: *
|
68
|
+
version_requirements: *2164523500
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: minitest
|
60
|
-
requirement: &
|
71
|
+
requirement: &2164522840 !ruby/object:Gem::Requirement
|
61
72
|
none: false
|
62
73
|
requirements:
|
63
74
|
- - ! '>='
|
@@ -65,10 +76,10 @@ dependencies:
|
|
65
76
|
version: '0'
|
66
77
|
type: :development
|
67
78
|
prerelease: false
|
68
|
-
version_requirements: *
|
79
|
+
version_requirements: *2164522840
|
69
80
|
- !ruby/object:Gem::Dependency
|
70
81
|
name: bundler
|
71
|
-
requirement: &
|
82
|
+
requirement: &2164522100 !ruby/object:Gem::Requirement
|
72
83
|
none: false
|
73
84
|
requirements:
|
74
85
|
- - ~>
|
@@ -76,10 +87,10 @@ dependencies:
|
|
76
87
|
version: 1.0.0
|
77
88
|
type: :development
|
78
89
|
prerelease: false
|
79
|
-
version_requirements: *
|
90
|
+
version_requirements: *2164522100
|
80
91
|
- !ruby/object:Gem::Dependency
|
81
92
|
name: jeweler
|
82
|
-
requirement: &
|
93
|
+
requirement: &2164521300 !ruby/object:Gem::Requirement
|
83
94
|
none: false
|
84
95
|
requirements:
|
85
96
|
- - ~>
|
@@ -87,10 +98,10 @@ dependencies:
|
|
87
98
|
version: 1.6.4
|
88
99
|
type: :development
|
89
100
|
prerelease: false
|
90
|
-
version_requirements: *
|
101
|
+
version_requirements: *2164521300
|
91
102
|
- !ruby/object:Gem::Dependency
|
92
103
|
name: rcov
|
93
|
-
requirement: &
|
104
|
+
requirement: &2164520000 !ruby/object:Gem::Requirement
|
94
105
|
none: false
|
95
106
|
requirements:
|
96
107
|
- - ! '>='
|
@@ -98,10 +109,10 @@ dependencies:
|
|
98
109
|
version: '0'
|
99
110
|
type: :development
|
100
111
|
prerelease: false
|
101
|
-
version_requirements: *
|
112
|
+
version_requirements: *2164520000
|
102
113
|
- !ruby/object:Gem::Dependency
|
103
114
|
name: turn
|
104
|
-
requirement: &
|
115
|
+
requirement: &2164518760 !ruby/object:Gem::Requirement
|
105
116
|
none: false
|
106
117
|
requirements:
|
107
118
|
- - ! '>='
|
@@ -109,10 +120,10 @@ dependencies:
|
|
109
120
|
version: '0'
|
110
121
|
type: :development
|
111
122
|
prerelease: false
|
112
|
-
version_requirements: *
|
123
|
+
version_requirements: *2164518760
|
113
124
|
- !ruby/object:Gem::Dependency
|
114
125
|
name: carrierwave
|
115
|
-
requirement: &
|
126
|
+
requirement: &2164517880 !ruby/object:Gem::Requirement
|
116
127
|
none: false
|
117
128
|
requirements:
|
118
129
|
- - ! '>='
|
@@ -120,10 +131,10 @@ dependencies:
|
|
120
131
|
version: '0'
|
121
132
|
type: :development
|
122
133
|
prerelease: false
|
123
|
-
version_requirements: *
|
134
|
+
version_requirements: *2164517880
|
124
135
|
- !ruby/object:Gem::Dependency
|
125
136
|
name: minitest-rails-shoulda
|
126
|
-
requirement: &
|
137
|
+
requirement: &2164512320 !ruby/object:Gem::Requirement
|
127
138
|
none: false
|
128
139
|
requirements:
|
129
140
|
- - ! '>='
|
@@ -131,7 +142,7 @@ dependencies:
|
|
131
142
|
version: '0'
|
132
143
|
type: :development
|
133
144
|
prerelease: false
|
134
|
-
version_requirements: *
|
145
|
+
version_requirements: *2164512320
|
135
146
|
description: A
|
136
147
|
email: dave.hrycyszyn@headlondon.com
|
137
148
|
executables: []
|
@@ -156,12 +167,16 @@ files:
|
|
156
167
|
- lib/drafter/draft_upload.rb
|
157
168
|
- lib/drafter/draft_uploader.rb
|
158
169
|
- lib/drafter/draftable.rb
|
170
|
+
- lib/drafter/id_hash.rb
|
171
|
+
- lib/drafter/subdrafts.rb
|
159
172
|
- test/drafter/test_apply.rb
|
160
173
|
- test/drafter/test_creation.rb
|
161
174
|
- test/drafter/test_diffing.rb
|
162
175
|
- test/drafter/test_draft.rb
|
163
176
|
- test/drafter/test_draft_upload.rb
|
164
177
|
- test/drafter/test_draftable.rb
|
178
|
+
- test/drafter/test_id_hash.rb
|
179
|
+
- test/drafter/test_subdrafts.rb
|
165
180
|
- test/fixtures/bar.txt
|
166
181
|
- test/fixtures/foo.txt
|
167
182
|
- test/helper.rb
|
@@ -186,7 +201,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
201
|
version: '0'
|
187
202
|
segments:
|
188
203
|
- 0
|
189
|
-
hash:
|
204
|
+
hash: 3960351796204955300
|
190
205
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
206
|
none: false
|
192
207
|
requirements:
|