landable 1.7.0 → 1.7.1.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/.travis.yml +12 -0
- data/CHANGELOG.md +4 -1
- data/Gemfile +4 -1
- data/README.md +4 -1
- data/app/controllers/landable/api/template_revisions_controller.rb +27 -0
- data/app/controllers/landable/api/templates_controller.rb +7 -1
- data/app/models/landable/template.rb +25 -0
- data/app/models/landable/template_revision.rb +40 -0
- data/app/serializers/landable/template_revision_serializer.rb +12 -0
- data/app/serializers/landable/template_serializer.rb +6 -1
- data/config/routes.rb +7 -1
- data/db/migrate/20140509190128_create_template_revisions.rb +77 -0
- data/doc/schema/template.json +62 -0
- data/doc/schema/template_revision.json +48 -0
- data/features/api/access_tokens.feature +2 -2
- data/features/api/templates.feature +7 -1
- data/features/liquid/tags.feature +22 -1
- data/features/step_definitions/factory_steps.rb +7 -2
- data/features/step_definitions/liquid_steps.rb +15 -4
- data/features/step_definitions/revision_steps.rb +6 -0
- data/landable-1.7.0.gem +0 -0
- data/landable.gemspec +1 -2
- data/lib/landable/liquid/tags.rb +17 -10
- data/lib/landable/partial.rb +5 -0
- data/lib/landable/version.rb +2 -2
- data/lib/tasks/landable/template.rake +10 -0
- data/{bin → script}/rails +0 -0
- data/{bin → script}/redb +0 -0
- data/spec/controllers/landable/api/template_revisions_controller_spec.rb +29 -0
- data/spec/dummy/db/structure.sql +103 -2
- data/spec/factories/template_revision.rb +6 -0
- data/spec/lib/landable/partial_spec.rb +5 -0
- data/spec/models/landable/template_revision_spec.rb +35 -0
- data/spec/models/landable/template_spec.rb +67 -0
- metadata +65 -65
@@ -60,6 +60,11 @@ module Landable
|
|
60
60
|
@test.slug.should == 'partials_test'
|
61
61
|
@foobazz.slug.should == 'partials_foobazz'
|
62
62
|
end
|
63
|
+
|
64
|
+
it 'creates a published template' do
|
65
|
+
@test.revisions.present?.should be_true
|
66
|
+
@foobazz.revisions.present?.should be_true
|
67
|
+
end
|
63
68
|
end
|
64
69
|
end
|
65
70
|
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Landable
|
4
|
+
describe TemplateRevision do
|
5
|
+
let(:author) { create(:author) }
|
6
|
+
|
7
|
+
let(:template) do
|
8
|
+
create(:template, name: 'Title', body: 'body',
|
9
|
+
slug: 'title', description: 'awesome template')
|
10
|
+
end
|
11
|
+
|
12
|
+
let(:revision) do
|
13
|
+
TemplateRevision.new template_id: template.id, author_id: author.id
|
14
|
+
end
|
15
|
+
|
16
|
+
describe '#template_id=' do
|
17
|
+
it 'should set template revision attributes matching the template' do
|
18
|
+
attrs = revision.attributes.except('editable', 'is_publishable', 'created_at', 'updated_at', 'published_revision_id', 'file', 'thumbnail_url', 'is_layout', 'is_minor', 'ordinal', 'notes', 'is_published')
|
19
|
+
attrs.should include(template.attributes.except(*TemplateRevision.ignored_template_attributes))
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe '#is_published' do
|
24
|
+
it 'should set is_published to true and false as requested' do
|
25
|
+
revision = TemplateRevision.new
|
26
|
+
revision.template_id = template.id
|
27
|
+
revision.author_id = author.id
|
28
|
+
revision.unpublish!
|
29
|
+
revision.is_published.should == false
|
30
|
+
revision.publish!
|
31
|
+
revision.is_published.should == true
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -43,5 +43,72 @@ module Landable
|
|
43
43
|
template.partial?.should be_false
|
44
44
|
end
|
45
45
|
end
|
46
|
+
|
47
|
+
describe '#publish' do
|
48
|
+
let(:template) { FactoryGirl.create :template }
|
49
|
+
let(:author) { FactoryGirl.create :author }
|
50
|
+
|
51
|
+
it 'should create a template_revision' do
|
52
|
+
expect {template.publish!(author: author)}.to change{template.revisions.count}.from(0).to(1)
|
53
|
+
end
|
54
|
+
|
55
|
+
it 'should have the provided author' do
|
56
|
+
template.publish! author: author
|
57
|
+
revision = template.revisions.last
|
58
|
+
|
59
|
+
revision.author.should == author
|
60
|
+
end
|
61
|
+
|
62
|
+
it 'should update the published_revision_id' do
|
63
|
+
template.publish! author: author
|
64
|
+
revision = template.revisions.last
|
65
|
+
|
66
|
+
template.published_revision.should == revision
|
67
|
+
end
|
68
|
+
|
69
|
+
it 'should unset previous revision.is_published' do
|
70
|
+
template.publish! author: author
|
71
|
+
revision1 = template.published_revision
|
72
|
+
template.publish! author: author
|
73
|
+
revision1.is_published.should be_false
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
describe '#revert_to' do
|
78
|
+
let(:template) { FactoryGirl.create :template }
|
79
|
+
let(:author) { FactoryGirl.create :author }
|
80
|
+
|
81
|
+
it 'should NOT update published_revision for the page' do
|
82
|
+
template.name = 'Bar'
|
83
|
+
template.publish! author: author
|
84
|
+
revision = template.published_revision
|
85
|
+
|
86
|
+
template.name = 'Foo'
|
87
|
+
template.publish! author: author
|
88
|
+
|
89
|
+
template.revert_to! revision
|
90
|
+
|
91
|
+
template.published_revision.id.should_not == revision.id
|
92
|
+
end
|
93
|
+
|
94
|
+
it 'should copy revision attributes into the page model' do
|
95
|
+
template.name = 'Bar'
|
96
|
+
template.publish! author: author
|
97
|
+
|
98
|
+
revision = template.published_revision
|
99
|
+
|
100
|
+
template.name = 'Foo'
|
101
|
+
template.save!
|
102
|
+
template.publish! author: author
|
103
|
+
|
104
|
+
# ensure assignment for all copied attributes
|
105
|
+
keys = %w(name body description slug)
|
106
|
+
keys.each do |key|
|
107
|
+
template.should_receive("#{key}=").with(revision.send(key))
|
108
|
+
end
|
109
|
+
|
110
|
+
template.revert_to! revision
|
111
|
+
end
|
112
|
+
end
|
46
113
|
end
|
47
114
|
end
|
metadata
CHANGED
@@ -1,195 +1,195 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: landable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.1.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Team Trogdor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 4.0.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: 4.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rack-cors
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.2.7
|
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
40
|
version: 0.2.7
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: active_model_serializers
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0.8'
|
48
48
|
type: :runtime
|
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: '0.8'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: carrierwave
|
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: :runtime
|
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: liquid
|
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: :runtime
|
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: fog
|
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: :runtime
|
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: rest-client
|
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: :runtime
|
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: builder
|
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: :runtime
|
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
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: lookup_by
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">"
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: 0.4.0
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ">"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 0.4.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: pg
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: rspec-rails
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - ~>
|
157
|
+
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: 2.13.0
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - ~>
|
164
|
+
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: 2.13.0
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: shoulda-matchers
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - ~>
|
171
|
+
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: 2.2.0
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - ~>
|
178
|
+
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: 2.2.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: factory_girl_rails
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - ~>
|
185
|
+
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: 4.2.0
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- - ~>
|
192
|
+
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: 4.2.0
|
195
195
|
- !ruby/object:Gem::Dependency
|
@@ -210,14 +210,14 @@ dependencies:
|
|
210
210
|
name: rack-schema
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
|
-
- -
|
213
|
+
- - ">="
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
216
|
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
|
-
- -
|
220
|
+
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
223
|
- !ruby/object:Gem::Dependency
|
@@ -234,114 +234,100 @@ dependencies:
|
|
234
234
|
- - '='
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: 1.3.2
|
237
|
-
- !ruby/object:Gem::Dependency
|
238
|
-
name: cucumber-rails
|
239
|
-
requirement: !ruby/object:Gem::Requirement
|
240
|
-
requirements:
|
241
|
-
- - '>='
|
242
|
-
- !ruby/object:Gem::Version
|
243
|
-
version: '0'
|
244
|
-
type: :development
|
245
|
-
prerelease: false
|
246
|
-
version_requirements: !ruby/object:Gem::Requirement
|
247
|
-
requirements:
|
248
|
-
- - '>='
|
249
|
-
- !ruby/object:Gem::Version
|
250
|
-
version: '0'
|
251
237
|
- !ruby/object:Gem::Dependency
|
252
238
|
name: database_cleaner
|
253
239
|
requirement: !ruby/object:Gem::Requirement
|
254
240
|
requirements:
|
255
|
-
- -
|
241
|
+
- - ">="
|
256
242
|
- !ruby/object:Gem::Version
|
257
243
|
version: '0'
|
258
244
|
type: :development
|
259
245
|
prerelease: false
|
260
246
|
version_requirements: !ruby/object:Gem::Requirement
|
261
247
|
requirements:
|
262
|
-
- -
|
248
|
+
- - ">="
|
263
249
|
- !ruby/object:Gem::Version
|
264
250
|
version: '0'
|
265
251
|
- !ruby/object:Gem::Dependency
|
266
252
|
name: simplecov
|
267
253
|
requirement: !ruby/object:Gem::Requirement
|
268
254
|
requirements:
|
269
|
-
- -
|
255
|
+
- - ">="
|
270
256
|
- !ruby/object:Gem::Version
|
271
257
|
version: '0'
|
272
258
|
type: :development
|
273
259
|
prerelease: false
|
274
260
|
version_requirements: !ruby/object:Gem::Requirement
|
275
261
|
requirements:
|
276
|
-
- -
|
262
|
+
- - ">="
|
277
263
|
- !ruby/object:Gem::Version
|
278
264
|
version: '0'
|
279
265
|
- !ruby/object:Gem::Dependency
|
280
266
|
name: valid_attribute
|
281
267
|
requirement: !ruby/object:Gem::Requirement
|
282
268
|
requirements:
|
283
|
-
- -
|
269
|
+
- - ">="
|
284
270
|
- !ruby/object:Gem::Version
|
285
271
|
version: '0'
|
286
272
|
type: :development
|
287
273
|
prerelease: false
|
288
274
|
version_requirements: !ruby/object:Gem::Requirement
|
289
275
|
requirements:
|
290
|
-
- -
|
276
|
+
- - ">="
|
291
277
|
- !ruby/object:Gem::Version
|
292
278
|
version: '0'
|
293
279
|
- !ruby/object:Gem::Dependency
|
294
280
|
name: pry
|
295
281
|
requirement: !ruby/object:Gem::Requirement
|
296
282
|
requirements:
|
297
|
-
- -
|
283
|
+
- - ">="
|
298
284
|
- !ruby/object:Gem::Version
|
299
285
|
version: '0'
|
300
286
|
type: :development
|
301
287
|
prerelease: false
|
302
288
|
version_requirements: !ruby/object:Gem::Requirement
|
303
289
|
requirements:
|
304
|
-
- -
|
290
|
+
- - ">="
|
305
291
|
- !ruby/object:Gem::Version
|
306
292
|
version: '0'
|
307
293
|
- !ruby/object:Gem::Dependency
|
308
294
|
name: faker
|
309
295
|
requirement: !ruby/object:Gem::Requirement
|
310
296
|
requirements:
|
311
|
-
- -
|
297
|
+
- - ">="
|
312
298
|
- !ruby/object:Gem::Version
|
313
299
|
version: '0'
|
314
300
|
type: :development
|
315
301
|
prerelease: false
|
316
302
|
version_requirements: !ruby/object:Gem::Requirement
|
317
303
|
requirements:
|
318
|
-
- -
|
304
|
+
- - ">="
|
319
305
|
- !ruby/object:Gem::Version
|
320
306
|
version: '0'
|
321
307
|
- !ruby/object:Gem::Dependency
|
322
308
|
name: bundler_geminabox
|
323
309
|
requirement: !ruby/object:Gem::Requirement
|
324
310
|
requirements:
|
325
|
-
- -
|
311
|
+
- - ">="
|
326
312
|
- !ruby/object:Gem::Version
|
327
313
|
version: '0'
|
328
314
|
type: :development
|
329
315
|
prerelease: false
|
330
316
|
version_requirements: !ruby/object:Gem::Requirement
|
331
317
|
requirements:
|
332
|
-
- -
|
318
|
+
- - ">="
|
333
319
|
- !ruby/object:Gem::Version
|
334
320
|
version: '0'
|
335
321
|
description: Landing page storage, rendering, tracking, and management API
|
336
322
|
email:
|
337
323
|
- trogdor@enova.com
|
338
|
-
executables:
|
339
|
-
- rails
|
340
|
-
- redb
|
324
|
+
executables: []
|
341
325
|
extensions: []
|
342
326
|
extra_rdoc_files: []
|
343
327
|
files:
|
344
|
-
- .gitignore
|
328
|
+
- ".gitignore"
|
329
|
+
- ".rspec"
|
330
|
+
- ".travis.yml"
|
345
331
|
- CHANGELOG.md
|
346
332
|
- Gemfile
|
347
333
|
- MIT-LICENSE
|
@@ -354,6 +340,7 @@ files:
|
|
354
340
|
- app/controllers/landable/api/directories_controller.rb
|
355
341
|
- app/controllers/landable/api/page_revisions_controller.rb
|
356
342
|
- app/controllers/landable/api/pages_controller.rb
|
343
|
+
- app/controllers/landable/api/template_revisions_controller.rb
|
357
344
|
- app/controllers/landable/api/templates_controller.rb
|
358
345
|
- app/controllers/landable/api/themes_controller.rb
|
359
346
|
- app/controllers/landable/api_controller.rb
|
@@ -380,6 +367,7 @@ files:
|
|
380
367
|
- app/models/landable/page_search_engine.rb
|
381
368
|
- app/models/landable/search_engine.rb
|
382
369
|
- app/models/landable/template.rb
|
370
|
+
- app/models/landable/template_revision.rb
|
383
371
|
- app/models/landable/theme.rb
|
384
372
|
- app/models/landable/traffic/access.rb
|
385
373
|
- app/models/landable/traffic/ad_group.rb
|
@@ -434,6 +422,7 @@ files:
|
|
434
422
|
- app/serializers/landable/directory_serializer.rb
|
435
423
|
- app/serializers/landable/page_revision_serializer.rb
|
436
424
|
- app/serializers/landable/page_serializer.rb
|
425
|
+
- app/serializers/landable/template_revision_serializer.rb
|
437
426
|
- app/serializers/landable/template_serializer.rb
|
438
427
|
- app/serializers/landable/theme_serializer.rb
|
439
428
|
- app/services/landable/authentication_service.rb
|
@@ -444,8 +433,6 @@ files:
|
|
444
433
|
- app/validators/path_validator.rb
|
445
434
|
- app/validators/url_validator.rb
|
446
435
|
- app/views/templates/preview.liquid
|
447
|
-
- bin/rails
|
448
|
-
- bin/redb
|
449
436
|
- config.ru
|
450
437
|
- config/cucumber.yml
|
451
438
|
- config/routes.rb
|
@@ -470,6 +457,7 @@ files:
|
|
470
457
|
- db/migrate/20140220170324_add_slug_to_categories.rb
|
471
458
|
- db/migrate/20140220174630_add_abstract_and_hero_asset_to_pages_and_page_revisions.rb
|
472
459
|
- db/migrate/20140224205516_rename_traffic_schema.rb
|
460
|
+
- db/migrate/20140509190128_create_template_revisions.rb
|
473
461
|
- db/pgtap/pgtap.sql
|
474
462
|
- db/test/landable.access_tokens.sql
|
475
463
|
- db/test/landable.assets.sql
|
@@ -485,6 +473,8 @@ files:
|
|
485
473
|
- doc/schema/directory.json
|
486
474
|
- doc/schema/page.json
|
487
475
|
- doc/schema/page_revision.json
|
476
|
+
- doc/schema/template.json
|
477
|
+
- doc/schema/template_revision.json
|
488
478
|
- doc/schema/theme.json
|
489
479
|
- doc/schema/uuid.json
|
490
480
|
- features/api/access_tokens.feature
|
@@ -511,6 +501,7 @@ files:
|
|
511
501
|
- features/step_definitions/theme_steps.rb
|
512
502
|
- features/support/env.rb
|
513
503
|
- features/support/usefulness.rb
|
504
|
+
- landable-1.7.0.gem
|
514
505
|
- landable.gemspec
|
515
506
|
- lib/generators/landable/collection/collection_generator.rb
|
516
507
|
- lib/generators/landable/collection/templates/stylesheets/landable/%file_name%.less
|
@@ -553,7 +544,10 @@ files:
|
|
553
544
|
- lib/tasks/landable/rdoc.rake
|
554
545
|
- lib/tasks/landable/seed.rake
|
555
546
|
- lib/tasks/landable/spec.rake
|
547
|
+
- lib/tasks/landable/template.rake
|
556
548
|
- script/cucumber
|
549
|
+
- script/rails
|
550
|
+
- script/redb
|
557
551
|
- spec/concerns/landable/has_assets_spec.rb
|
558
552
|
- spec/concerns/landable/table_name_spec.rb
|
559
553
|
- spec/concerns/landable/traffic/table_name_spec.rb
|
@@ -563,6 +557,7 @@ files:
|
|
563
557
|
- spec/controllers/landable/api/directories_controller_spec.rb
|
564
558
|
- spec/controllers/landable/api/page_revisions_controller_spec.rb
|
565
559
|
- spec/controllers/landable/api/pages_controller_spec.rb
|
560
|
+
- spec/controllers/landable/api/template_revisions_controller_spec.rb
|
566
561
|
- spec/controllers/landable/api_controller_spec.rb
|
567
562
|
- spec/controllers/public/preview/page_revisions_controller_spec.rb
|
568
563
|
- spec/controllers/public/preview/pages_controller_spec.rb
|
@@ -618,6 +613,7 @@ files:
|
|
618
613
|
- spec/factories/page_revision.rb
|
619
614
|
- spec/factories/pages.rb
|
620
615
|
- spec/factories/template.rb
|
616
|
+
- spec/factories/template_revision.rb
|
621
617
|
- spec/factories/theme.rb
|
622
618
|
- spec/fixtures/assets/cthulhu.jpg
|
623
619
|
- spec/fixtures/assets/panda.png
|
@@ -637,6 +633,7 @@ files:
|
|
637
633
|
- spec/models/landable/page/errors_spec.rb
|
638
634
|
- spec/models/landable/page_revision_spec.rb
|
639
635
|
- spec/models/landable/page_spec.rb
|
636
|
+
- spec/models/landable/template_revision_spec.rb
|
640
637
|
- spec/models/landable/template_spec.rb
|
641
638
|
- spec/models/landable/theme_spec.rb
|
642
639
|
- spec/responders/page_render_responder_spec.rb
|
@@ -659,14 +656,14 @@ require_paths:
|
|
659
656
|
- lib
|
660
657
|
required_ruby_version: !ruby/object:Gem::Requirement
|
661
658
|
requirements:
|
662
|
-
- -
|
659
|
+
- - ">="
|
663
660
|
- !ruby/object:Gem::Version
|
664
661
|
version: '0'
|
665
662
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
666
663
|
requirements:
|
667
|
-
- -
|
664
|
+
- - ">"
|
668
665
|
- !ruby/object:Gem::Version
|
669
|
-
version:
|
666
|
+
version: 1.3.1
|
670
667
|
requirements: []
|
671
668
|
rubyforge_project:
|
672
669
|
rubygems_version: 2.2.2
|
@@ -707,6 +704,7 @@ test_files:
|
|
707
704
|
- spec/controllers/landable/api/directories_controller_spec.rb
|
708
705
|
- spec/controllers/landable/api/page_revisions_controller_spec.rb
|
709
706
|
- spec/controllers/landable/api/pages_controller_spec.rb
|
707
|
+
- spec/controllers/landable/api/template_revisions_controller_spec.rb
|
710
708
|
- spec/controllers/landable/api_controller_spec.rb
|
711
709
|
- spec/controllers/public/preview/page_revisions_controller_spec.rb
|
712
710
|
- spec/controllers/public/preview/pages_controller_spec.rb
|
@@ -762,6 +760,7 @@ test_files:
|
|
762
760
|
- spec/factories/page_revision.rb
|
763
761
|
- spec/factories/pages.rb
|
764
762
|
- spec/factories/template.rb
|
763
|
+
- spec/factories/template_revision.rb
|
765
764
|
- spec/factories/theme.rb
|
766
765
|
- spec/fixtures/assets/cthulhu.jpg
|
767
766
|
- spec/fixtures/assets/panda.png
|
@@ -781,6 +780,7 @@ test_files:
|
|
781
780
|
- spec/models/landable/page/errors_spec.rb
|
782
781
|
- spec/models/landable/page_revision_spec.rb
|
783
782
|
- spec/models/landable/page_spec.rb
|
783
|
+
- spec/models/landable/template_revision_spec.rb
|
784
784
|
- spec/models/landable/template_spec.rb
|
785
785
|
- spec/models/landable/theme_spec.rb
|
786
786
|
- spec/responders/page_render_responder_spec.rb
|