locomotivecms_coal 1.5.1 → 1.6.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -7
- data/README.md +19 -0
- data/Rakefile +0 -3
- data/lib/locomotive/coal/client.rb +4 -0
- data/lib/locomotive/coal/error.rb +1 -1
- data/lib/locomotive/coal/resources/sections.rb +17 -0
- data/lib/locomotive/coal/version.rb +1 -1
- data/lib/locomotive/coal.rb +1 -0
- data/locomotivecms_coal.gemspec +2 -2
- data/spec/fixtures/coal_cassettes/sections.yml +224 -0
- data/spec/integration/resources/sections_spec.rb +46 -0
- metadata +19 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52e508034f1bf2fb7543cac7cdd993d970f50e404711eb931c473e08ba39cbff
|
4
|
+
data.tar.gz: a6fc26f79e02e09e22cefa711f61ac6031dd95d07ef0684767fbfd50cfa4dc37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45ef04a703b534d2cff43327262deb5600ec58f894523100f038eda5ad8ce525b53450551c1efae99d8f0e4cc557fd08d33e8789e90b1fa937d1235fde40c5c5
|
7
|
+
data.tar.gz: 9103f51b7bd5621e46478bf4009e4a5d34264c754a288170c3c216f8ac59a8c389d05d4285bfcf9cacc1311aa2089c9292fb538f1e289cba2f39328553c08af2
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
locomotivecms_coal (1.
|
5
|
-
activesupport (
|
6
|
-
faraday (~> 0.
|
4
|
+
locomotivecms_coal (1.6.0.beta1)
|
5
|
+
activesupport (>= 5.1.5, < 6.0)
|
6
|
+
faraday (~> 0.15.4)
|
7
7
|
faraday_middleware (~> 0.12.2)
|
8
8
|
httpclient (~> 2.8.3)
|
9
9
|
mime-types (~> 3.1.0)
|
@@ -11,7 +11,7 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
activesupport (5.
|
14
|
+
activesupport (5.2.2)
|
15
15
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
16
16
|
i18n (>= 0.7, < 2)
|
17
17
|
minitest (~> 5.1)
|
@@ -22,7 +22,7 @@ GEM
|
|
22
22
|
codeclimate-test-reporter (1.0.7)
|
23
23
|
simplecov
|
24
24
|
coderay (1.1.2)
|
25
|
-
concurrent-ruby (1.
|
25
|
+
concurrent-ruby (1.1.4)
|
26
26
|
coveralls (0.8.21)
|
27
27
|
json (>= 1.8, < 3)
|
28
28
|
simplecov (~> 0.14.1)
|
@@ -35,7 +35,7 @@ GEM
|
|
35
35
|
docile (1.1.5)
|
36
36
|
domain_name (0.5.20170404)
|
37
37
|
unf (>= 0.0.5, < 1.0.0)
|
38
|
-
faraday (0.
|
38
|
+
faraday (0.15.4)
|
39
39
|
multipart-post (>= 1.2, < 3)
|
40
40
|
faraday_middleware (0.12.2)
|
41
41
|
faraday (>= 0.7.4, < 1.0)
|
@@ -43,7 +43,7 @@ GEM
|
|
43
43
|
http-cookie (1.0.3)
|
44
44
|
domain_name (~> 0.5)
|
45
45
|
httpclient (2.8.3)
|
46
|
-
i18n (1.0
|
46
|
+
i18n (1.2.0)
|
47
47
|
concurrent-ruby (~> 1.0)
|
48
48
|
json (2.1.0)
|
49
49
|
json_spec (1.1.5)
|
data/README.md
CHANGED
@@ -16,6 +16,7 @@ The Ruby API Client for LocomotiveCMS V3.
|
|
16
16
|
- [Content Types](#content-types)
|
17
17
|
- [Content Entries](#content-entries)
|
18
18
|
- [Snippets](#snippets)
|
19
|
+
- [Sections](#sections)
|
19
20
|
- [Theme Assets](#theme-assets)
|
20
21
|
- [Content Assets](#content-assets)
|
21
22
|
- [Translations](#translations)
|
@@ -198,6 +199,24 @@ To get the snippets in the FR locale:
|
|
198
199
|
|
199
200
|
site_client.snippets.destroy('header')
|
200
201
|
|
202
|
+
#### Sections
|
203
|
+
|
204
|
+
**Get the list of sections**
|
205
|
+
|
206
|
+
sections = site_client.sections.all
|
207
|
+
|
208
|
+
**Create a section**
|
209
|
+
|
210
|
+
snippet = site_client.sections.create(name: 'Header', slug: 'header', template: 'Locomotive rocks!', settings: [{ id: 'title', type: 'string' }])
|
211
|
+
|
212
|
+
**Update a section**
|
213
|
+
|
214
|
+
site_client.sections.update('header', template: 'Locomotive rocks!!!')
|
215
|
+
|
216
|
+
**Destroy a section**
|
217
|
+
|
218
|
+
site_client.sections.destroy('header')
|
219
|
+
|
201
220
|
#### Theme assets
|
202
221
|
|
203
222
|
**Get the list of theme assets**
|
data/Rakefile
CHANGED
@@ -56,6 +56,10 @@ module Locomotive::Coal
|
|
56
56
|
@snippets ||= Resources::Snippets.new(uri, connection)
|
57
57
|
end
|
58
58
|
|
59
|
+
def sections
|
60
|
+
@sections ||= Resources::Sections.new(uri, connection)
|
61
|
+
end
|
62
|
+
|
59
63
|
def translations
|
60
64
|
@translations ||= Resources::Translations.new(uri, connection)
|
61
65
|
end
|
data/lib/locomotive/coal.rb
CHANGED
@@ -22,6 +22,7 @@ require_relative 'coal/resources/sites'
|
|
22
22
|
require_relative 'coal/resources/current_site'
|
23
23
|
require_relative 'coal/resources/pages'
|
24
24
|
require_relative 'coal/resources/snippets'
|
25
|
+
require_relative 'coal/resources/sections'
|
25
26
|
require_relative 'coal/resources/content_assets'
|
26
27
|
require_relative 'coal/resources/theme_assets'
|
27
28
|
require_relative 'coal/resources/translations'
|
data/locomotivecms_coal.gemspec
CHANGED
@@ -19,9 +19,9 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.add_development_dependency 'rake', '~> 12.3.0'
|
20
20
|
|
21
21
|
spec.add_dependency 'httpclient', '~> 2.8.3'
|
22
|
-
spec.add_dependency 'faraday', '~> 0.
|
22
|
+
spec.add_dependency 'faraday', '~> 0.15.4'
|
23
23
|
spec.add_dependency 'faraday_middleware', '~> 0.12.2'
|
24
|
-
spec.add_dependency 'activesupport', '
|
24
|
+
spec.add_dependency 'activesupport', '>= 5.1.5', '< 6.0'
|
25
25
|
spec.add_dependency 'mime-types', '~> 3.1.0'
|
26
26
|
|
27
27
|
spec.required_ruby_version = '>= 2.0'
|
@@ -0,0 +1,224 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: email=admin%40locomotivecms.com&password=locomotive
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.14.0
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip,deflate
|
16
|
+
Date:
|
17
|
+
- Mon, 30 Apr 2018 08:02:00 GMT
|
18
|
+
Content-Type:
|
19
|
+
- application/x-www-form-urlencoded
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 201
|
23
|
+
message: Created
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Etag:
|
28
|
+
- W/"2129738122b01b8471b44d9b5fa111ef"
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
X-Request-Id:
|
32
|
+
- af61f926-8c2c-4de6-b2d4-227cfc2d36f1
|
33
|
+
X-Runtime:
|
34
|
+
- '0.021122'
|
35
|
+
Content-Length:
|
36
|
+
- '32'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{"token":"oTxs76hxMqHv6jyav1tw"}'
|
40
|
+
http_version:
|
41
|
+
recorded_at: Mon, 30 Apr 2018 08:02:00 GMT
|
42
|
+
- request:
|
43
|
+
method: get
|
44
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/sections.json?auth_token=oTxs76hxMqHv6jyav1tw
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: ''
|
48
|
+
headers:
|
49
|
+
User-Agent:
|
50
|
+
- Faraday v0.14.0
|
51
|
+
Accept:
|
52
|
+
- application/json
|
53
|
+
Accept-Encoding:
|
54
|
+
- gzip,deflate
|
55
|
+
Date:
|
56
|
+
- Mon, 30 Apr 2018 08:02:00 GMT
|
57
|
+
X-Locomotive-Account-Email:
|
58
|
+
- admin@locomotivecms.com
|
59
|
+
X-Locomotive-Account-Token:
|
60
|
+
- oTxs76hxMqHv6jyav1tw
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Content-Type:
|
67
|
+
- application/json
|
68
|
+
Etag:
|
69
|
+
- W/"490955a3a3e4e639bc53bcec098c7d71"
|
70
|
+
Cache-Control:
|
71
|
+
- max-age=0, private, must-revalidate
|
72
|
+
X-Request-Id:
|
73
|
+
- d9ef8a4f-edac-4b91-9935-5d698ffeb79a
|
74
|
+
X-Runtime:
|
75
|
+
- '0.031445'
|
76
|
+
Content-Length:
|
77
|
+
- '1370'
|
78
|
+
body:
|
79
|
+
encoding: UTF-8
|
80
|
+
string: '[{"_id":"5ae629b4a95330361d619e92","created_at":"2018-04-29T20:23:16Z","updated_at":"2018-04-29T20:23:16Z","name":"Header","slug":"header","template":"\u003ch1\u003e
|
81
|
+
{{ section.settings.brand }} \u003c/h1\u003e\n\u003cul\u003e\n {% for block
|
82
|
+
in section.blocks %}\n \u003cli\u003e\n \u003ca href=\"{{ block.settings.url
|
83
|
+
}}\" target=\"{% if block.settings.new_tab %}_blank{% endif %}\"\u003e\n {{
|
84
|
+
block.settings.label }}\n \u003c/a\u003e\n \u003c/li\u003e\n {% endfor
|
85
|
+
%}\n\u003c/ul\u003e\n","definition":{"category":"header","class":"section-header","default":{"blocks":[{"settings":{"label":"Link
|
86
|
+
#1","new_tab":"true","url":"https://www.nocoffee.fr"},"type":"link"},{"settings":{"label":"Link
|
87
|
+
#2","new_tab":"true","url":"https://www.nocoffee.fr"},"type":"link"}],"settings":{"brand":"MY
|
88
|
+
COMPANY"}},"name":"header","settings":[{"default":"Header","id":"brand","label":"Text
|
89
|
+
to display in the header","type":"text"}],"static":"true"}},{"_id":"5ae629b4a95330361d619e94","created_at":"2018-04-29T20:23:16Z","updated_at":"2018-04-29T20:23:16Z","name":"Carousel","slug":"carousel","template":"\u003ch2\u003e\n FOOTER
|
90
|
+
PLAIN TEXT\n\u003c/h2\u003e\n","definition":{"category":"carousel","class":"section-carousel","name":"carousel","settings":[{"default":"Header","id":"brand","label":"Text
|
91
|
+
to display in the carousel","type":"text"}],"static":"false"}}]'
|
92
|
+
http_version:
|
93
|
+
recorded_at: Mon, 30 Apr 2018 08:02:01 GMT
|
94
|
+
- request:
|
95
|
+
method: post
|
96
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/sections.json
|
97
|
+
body:
|
98
|
+
encoding: UTF-8
|
99
|
+
string: auth_token=oTxs76hxMqHv6jyav1tw§ion%5Bdefinition%5D%5Bname%5D=sidebar§ion%5Bdefinition%5D%5Bsettings%5D%5B0%5D%5Bid%5D=title§ion%5Bdefinition%5D%5Bsettings%5D%5B0%5D%5Btype%5D=string§ion%5Bname%5D=Sidebar§ion%5Bslug%5D=sidebar§ion%5Btemplate%5D=Locomotive+rocks%21
|
100
|
+
headers:
|
101
|
+
User-Agent:
|
102
|
+
- Faraday v0.14.0
|
103
|
+
Accept:
|
104
|
+
- application/json
|
105
|
+
Accept-Encoding:
|
106
|
+
- gzip,deflate
|
107
|
+
Date:
|
108
|
+
- Mon, 30 Apr 2018 08:02:01 GMT
|
109
|
+
X-Locomotive-Account-Email:
|
110
|
+
- admin@locomotivecms.com
|
111
|
+
X-Locomotive-Account-Token:
|
112
|
+
- oTxs76hxMqHv6jyav1tw
|
113
|
+
Content-Type:
|
114
|
+
- application/x-www-form-urlencoded
|
115
|
+
response:
|
116
|
+
status:
|
117
|
+
code: 201
|
118
|
+
message: Created
|
119
|
+
headers:
|
120
|
+
Content-Type:
|
121
|
+
- application/json
|
122
|
+
Etag:
|
123
|
+
- W/"19bceeabd505d7d296ba801379371a72"
|
124
|
+
Cache-Control:
|
125
|
+
- max-age=0, private, must-revalidate
|
126
|
+
X-Request-Id:
|
127
|
+
- 4aa8a696-79c8-4a72-8cb0-bee2d2baeda7
|
128
|
+
X-Runtime:
|
129
|
+
- '0.036655'
|
130
|
+
Content-Length:
|
131
|
+
- '247'
|
132
|
+
body:
|
133
|
+
encoding: UTF-8
|
134
|
+
string: '{"_id":"5ae6cd79e051bb388c4d8890","created_at":"2018-04-30T08:02:01Z","updated_at":"2018-04-30T08:02:01Z","name":"Sidebar","slug":"sidebar","template":"Locomotive
|
135
|
+
rocks!","definition":{"name":"sidebar","settings":[{"id":"title","type":"string"}]}}'
|
136
|
+
http_version:
|
137
|
+
recorded_at: Mon, 30 Apr 2018 08:02:01 GMT
|
138
|
+
- request:
|
139
|
+
method: put
|
140
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/sections/5ae6cd79e051bb388c4d8890.json
|
141
|
+
body:
|
142
|
+
encoding: UTF-8
|
143
|
+
string: auth_token=oTxs76hxMqHv6jyav1tw§ion%5Btemplate%5D=Locomotive+rocks.+period
|
144
|
+
headers:
|
145
|
+
User-Agent:
|
146
|
+
- Faraday v0.14.0
|
147
|
+
Accept:
|
148
|
+
- application/json
|
149
|
+
Accept-Encoding:
|
150
|
+
- gzip,deflate
|
151
|
+
Date:
|
152
|
+
- Mon, 30 Apr 2018 08:02:01 GMT
|
153
|
+
X-Locomotive-Account-Email:
|
154
|
+
- admin@locomotivecms.com
|
155
|
+
X-Locomotive-Account-Token:
|
156
|
+
- oTxs76hxMqHv6jyav1tw
|
157
|
+
Content-Type:
|
158
|
+
- application/x-www-form-urlencoded
|
159
|
+
response:
|
160
|
+
status:
|
161
|
+
code: 200
|
162
|
+
message: OK
|
163
|
+
headers:
|
164
|
+
Content-Type:
|
165
|
+
- application/json
|
166
|
+
Etag:
|
167
|
+
- W/"da36f1d7680992a2a7167dcc17772d51"
|
168
|
+
Cache-Control:
|
169
|
+
- max-age=0, private, must-revalidate
|
170
|
+
X-Request-Id:
|
171
|
+
- 81cf8bcd-6d14-4743-9d1b-39c360b2d50c
|
172
|
+
X-Runtime:
|
173
|
+
- '0.033459'
|
174
|
+
Content-Length:
|
175
|
+
- '254'
|
176
|
+
body:
|
177
|
+
encoding: UTF-8
|
178
|
+
string: '{"_id":"5ae6cd79e051bb388c4d8890","created_at":"2018-04-30T08:02:01Z","updated_at":"2018-04-30T08:02:01Z","name":"Sidebar","slug":"sidebar","template":"Locomotive
|
179
|
+
rocks. period","definition":{"name":"sidebar","settings":[{"id":"title","type":"string"}]}}'
|
180
|
+
http_version:
|
181
|
+
recorded_at: Mon, 30 Apr 2018 08:02:01 GMT
|
182
|
+
- request:
|
183
|
+
method: delete
|
184
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/sections/5ae6cd79e051bb388c4d8890.json?auth_token=oTxs76hxMqHv6jyav1tw
|
185
|
+
body:
|
186
|
+
encoding: UTF-8
|
187
|
+
string: ''
|
188
|
+
headers:
|
189
|
+
User-Agent:
|
190
|
+
- Faraday v0.14.0
|
191
|
+
Accept:
|
192
|
+
- application/json
|
193
|
+
Accept-Encoding:
|
194
|
+
- gzip,deflate
|
195
|
+
Date:
|
196
|
+
- Mon, 30 Apr 2018 08:02:01 GMT
|
197
|
+
X-Locomotive-Account-Email:
|
198
|
+
- admin@locomotivecms.com
|
199
|
+
X-Locomotive-Account-Token:
|
200
|
+
- oTxs76hxMqHv6jyav1tw
|
201
|
+
response:
|
202
|
+
status:
|
203
|
+
code: 200
|
204
|
+
message: OK
|
205
|
+
headers:
|
206
|
+
Content-Type:
|
207
|
+
- application/json
|
208
|
+
Etag:
|
209
|
+
- W/"da36f1d7680992a2a7167dcc17772d51"
|
210
|
+
Cache-Control:
|
211
|
+
- max-age=0, private, must-revalidate
|
212
|
+
X-Request-Id:
|
213
|
+
- 8e5bb871-c8bc-4794-bfd7-c6c5944eb899
|
214
|
+
X-Runtime:
|
215
|
+
- '0.028105'
|
216
|
+
Content-Length:
|
217
|
+
- '254'
|
218
|
+
body:
|
219
|
+
encoding: UTF-8
|
220
|
+
string: '{"_id":"5ae6cd79e051bb388c4d8890","created_at":"2018-04-30T08:02:01Z","updated_at":"2018-04-30T08:02:01Z","name":"Sidebar","slug":"sidebar","template":"Locomotive
|
221
|
+
rocks. period","definition":{"name":"sidebar","settings":[{"id":"title","type":"string"}]}}'
|
222
|
+
http_version:
|
223
|
+
recorded_at: Mon, 30 Apr 2018 08:02:01 GMT
|
224
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Locomotive::Coal::Resources::Sections, order: :defined do
|
4
|
+
|
5
|
+
before { VCR.insert_cassette 'sections', record: :new_episodes }
|
6
|
+
after { VCR.eject_cassette }
|
7
|
+
|
8
|
+
let(:uri) { TEST_SITE_API_V3_URI }
|
9
|
+
let(:credentials) { { email: TEST_API_EMAIL, token: api_token } }
|
10
|
+
let(:sections) { described_class.new(uri, credentials) }
|
11
|
+
|
12
|
+
describe '#all' do
|
13
|
+
subject { sections.all }
|
14
|
+
it { expect(subject).not_to eq nil }
|
15
|
+
end
|
16
|
+
|
17
|
+
describe '#create' do
|
18
|
+
subject { create_section }
|
19
|
+
it { expect(subject._id).not_to eq nil }
|
20
|
+
end
|
21
|
+
|
22
|
+
describe '#update' do
|
23
|
+
let(:section) { sections.all.detect { |s| s.slug == 'sidebar' } || create_section }
|
24
|
+
subject { sections.update(section._id, template: 'Locomotive rocks. period') }
|
25
|
+
it { expect(subject.template).to eq 'Locomotive rocks. period' }
|
26
|
+
end
|
27
|
+
|
28
|
+
describe '#destroy' do
|
29
|
+
let(:section) { sections.all.detect { |s| s.slug == 'sidebar' } || create_section }
|
30
|
+
subject { sections.destroy(section._id) }
|
31
|
+
it { expect(subject._id).not_to eq nil }
|
32
|
+
end
|
33
|
+
|
34
|
+
def create_section
|
35
|
+
sections.create(name: 'Sidebar', slug: 'sidebar', template: 'Locomotive rocks!', definition: {
|
36
|
+
name: 'sidebar',
|
37
|
+
settings: [
|
38
|
+
{
|
39
|
+
id: 'title',
|
40
|
+
type: 'string'
|
41
|
+
}
|
42
|
+
]
|
43
|
+
})
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locomotivecms_coal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Didier Lafforgue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.15.4
|
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
|
-
version: 0.
|
68
|
+
version: 0.15.4
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: faraday_middleware
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,16 +84,22 @@ dependencies:
|
|
84
84
|
name: activesupport
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 5.1.5
|
90
|
+
- - "<"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '6.0'
|
90
93
|
type: :runtime
|
91
94
|
prerelease: false
|
92
95
|
version_requirements: !ruby/object:Gem::Requirement
|
93
96
|
requirements:
|
94
|
-
- - "
|
97
|
+
- - ">="
|
95
98
|
- !ruby/object:Gem::Version
|
96
99
|
version: 5.1.5
|
100
|
+
- - "<"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '6.0'
|
97
103
|
- !ruby/object:Gem::Dependency
|
98
104
|
name: mime-types
|
99
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,6 +145,7 @@ files:
|
|
139
145
|
- lib/locomotive/coal/resources/memberships.rb
|
140
146
|
- lib/locomotive/coal/resources/my_account.rb
|
141
147
|
- lib/locomotive/coal/resources/pages.rb
|
148
|
+
- lib/locomotive/coal/resources/sections.rb
|
142
149
|
- lib/locomotive/coal/resources/sites.rb
|
143
150
|
- lib/locomotive/coal/resources/snippets.rb
|
144
151
|
- lib/locomotive/coal/resources/theme_assets.rb
|
@@ -157,6 +164,7 @@ files:
|
|
157
164
|
- spec/fixtures/coal_cassettes/memberships.yml
|
158
165
|
- spec/fixtures/coal_cassettes/my_account.yml
|
159
166
|
- spec/fixtures/coal_cassettes/pages.yml
|
167
|
+
- spec/fixtures/coal_cassettes/sections.yml
|
160
168
|
- spec/fixtures/coal_cassettes/sites.yml
|
161
169
|
- spec/fixtures/coal_cassettes/snippets.yml
|
162
170
|
- spec/fixtures/coal_cassettes/theme_assets.yml
|
@@ -172,6 +180,7 @@ files:
|
|
172
180
|
- spec/integration/resources/memberships_spec.rb
|
173
181
|
- spec/integration/resources/my_account_spec.rb
|
174
182
|
- spec/integration/resources/pages_spec.rb
|
183
|
+
- spec/integration/resources/sections_spec.rb
|
175
184
|
- spec/integration/resources/sites_spec.rb
|
176
185
|
- spec/integration/resources/snippets_spec.rb
|
177
186
|
- spec/integration/resources/theme_assets_spec.rb
|
@@ -203,9 +212,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
203
212
|
version: '2.0'
|
204
213
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
205
214
|
requirements:
|
206
|
-
- - "
|
215
|
+
- - ">"
|
207
216
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
217
|
+
version: 1.3.1
|
209
218
|
requirements: []
|
210
219
|
rubyforge_project:
|
211
220
|
rubygems_version: 2.7.3
|
@@ -223,6 +232,7 @@ test_files:
|
|
223
232
|
- spec/fixtures/coal_cassettes/memberships.yml
|
224
233
|
- spec/fixtures/coal_cassettes/my_account.yml
|
225
234
|
- spec/fixtures/coal_cassettes/pages.yml
|
235
|
+
- spec/fixtures/coal_cassettes/sections.yml
|
226
236
|
- spec/fixtures/coal_cassettes/sites.yml
|
227
237
|
- spec/fixtures/coal_cassettes/snippets.yml
|
228
238
|
- spec/fixtures/coal_cassettes/theme_assets.yml
|
@@ -238,6 +248,7 @@ test_files:
|
|
238
248
|
- spec/integration/resources/memberships_spec.rb
|
239
249
|
- spec/integration/resources/my_account_spec.rb
|
240
250
|
- spec/integration/resources/pages_spec.rb
|
251
|
+
- spec/integration/resources/sections_spec.rb
|
241
252
|
- spec/integration/resources/sites_spec.rb
|
242
253
|
- spec/integration/resources/snippets_spec.rb
|
243
254
|
- spec/integration/resources/theme_assets_spec.rb
|