locomotivecms_wagon 2.0.0.rc3 → 2.0.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/generators/blank/Gemfile.tt +8 -5
- data/generators/blank/Guardfile +22 -0
- data/generators/bootstrap/Gemfile.tt +7 -4
- data/generators/bootstrap/Guardfile +22 -0
- data/generators/bootstrap/public/stylesheets/bootstrap.css +1 -1
- data/generators/bootstrap/public/stylesheets/bootstrap.scss +1 -1
- data/generators/cloned/Gemfile.tt +7 -4
- data/generators/cloned/Guardfile +22 -0
- data/generators/foundation5/Gemfile.tt +7 -4
- data/generators/foundation5/Guardfile +22 -0
- data/lib/locomotive/wagon/cli.rb +1 -1
- data/lib/locomotive/wagon/commands/pull_sub_commands/concerns/assets_concern.rb +1 -1
- data/lib/locomotive/wagon/commands/push_sub_commands/push_theme_assets_command.rb +23 -3
- data/lib/locomotive/wagon/commands/serve_command.rb +2 -2
- data/lib/locomotive/wagon/version.rb +1 -1
- data/locomotivecms_wagon.gemspec +4 -3
- data/spec/fixtures/cassettes/authenticate.yml +27 -27
- data/spec/fixtures/cassettes/push.yml +1036 -1110
- data/spec/unit/commands/pull_sub_commands/concerns/assets_concern_spec.rb +24 -4
- data/spec/unit/commands/push_sub_commands/push_theme_assets_command_spec.rb +42 -0
- metadata +28 -99
- data/generators/foundation5/favicon.ico +0 -0
- data/generators/line_case/Gemfile.tt +0 -21
- data/generators/line_case/app/content_types/categories.yml +0 -56
- data/generators/line_case/app/content_types/emails.yml +0 -35
- data/generators/line_case/app/content_types/projects.yml +0 -58
- data/generators/line_case/app/views/pages/404.liquid.haml +0 -11
- data/generators/line_case/app/views/pages/email-registered.liquid.haml +0 -13
- data/generators/line_case/app/views/pages/index.liquid.haml +0 -110
- data/generators/line_case/app/views/pages/projects/content_type_template.liquid.haml +0 -32
- data/generators/line_case/app/views/snippets/newsletter_form.liquid.haml +0 -14
- data/generators/line_case/app/views/snippets/projects.liquid.haml +0 -17
- data/generators/line_case/app/views/snippets/social_links.liquid.haml +0 -19
- data/generators/line_case/config/deploy.yml +0 -15
- data/generators/line_case/config/site.yml.tt +0 -33
- data/generators/line_case/config/translations.yml +0 -8
- data/generators/line_case/data/categories.yml +0 -8
- data/generators/line_case/data/emails.yml +0 -2
- data/generators/line_case/data/projects.yml +0 -39
- data/generators/line_case/icon.png +0 -0
- data/generators/line_case/public/images/banner-header.png +0 -0
- data/generators/line_case/public/javascripts/foundation.min.js +0 -15
- data/generators/line_case/public/javascripts/foundation/foundation.abide.js +0 -194
- data/generators/line_case/public/javascripts/foundation/foundation.alerts.js +0 -57
- data/generators/line_case/public/javascripts/foundation/foundation.clearing.js +0 -516
- data/generators/line_case/public/javascripts/foundation/foundation.cookie.js +0 -74
- data/generators/line_case/public/javascripts/foundation/foundation.dropdown.js +0 -183
- data/generators/line_case/public/javascripts/foundation/foundation.forms.js +0 -556
- data/generators/line_case/public/javascripts/foundation/foundation.interchange.js +0 -280
- data/generators/line_case/public/javascripts/foundation/foundation.joyride.js +0 -852
- data/generators/line_case/public/javascripts/foundation/foundation.js +0 -464
- data/generators/line_case/public/javascripts/foundation/foundation.magellan.js +0 -136
- data/generators/line_case/public/javascripts/foundation/foundation.orbit.js +0 -432
- data/generators/line_case/public/javascripts/foundation/foundation.placeholder.js +0 -426
- data/generators/line_case/public/javascripts/foundation/foundation.reveal.js +0 -353
- data/generators/line_case/public/javascripts/foundation/foundation.section.js +0 -430
- data/generators/line_case/public/javascripts/foundation/foundation.tooltips.js +0 -209
- data/generators/line_case/public/javascripts/foundation/foundation.topbar.js +0 -370
- data/generators/line_case/public/javascripts/vendor/custom.modernizr.js +0 -4
- data/generators/line_case/public/javascripts/vendor/jquery.js +0 -9789
- data/generators/line_case/public/javascripts/vendor/zepto.js +0 -2000
- data/generators/line_case/public/samples/projects/sample.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample2.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample3.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample4.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample5.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample6.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample7.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample8.jpeg +0 -0
- data/generators/line_case/public/stylesheets/_variables.css.sass +0 -20
- data/generators/line_case/public/stylesheets/foundation.css.scss +0 -43
- data/generators/line_case/public/stylesheets/foundation.min.css +0 -1
- data/generators/line_case/public/stylesheets/foundation/_variables.scss +0 -1290
- data/generators/line_case/public/stylesheets/foundation/components/_alert-boxes.scss +0 -107
- data/generators/line_case/public/stylesheets/foundation/components/_block-grid.scss +0 -71
- data/generators/line_case/public/stylesheets/foundation/components/_breadcrumbs.scss +0 -124
- data/generators/line_case/public/stylesheets/foundation/components/_button-groups.scss +0 -89
- data/generators/line_case/public/stylesheets/foundation/components/_buttons.scss +0 -230
- data/generators/line_case/public/stylesheets/foundation/components/_clearing.scss +0 -227
- data/generators/line_case/public/stylesheets/foundation/components/_custom-forms.scss +0 -278
- data/generators/line_case/public/stylesheets/foundation/components/_dropdown-buttons.scss +0 -115
- data/generators/line_case/public/stylesheets/foundation/components/_dropdown.scss +0 -151
- data/generators/line_case/public/stylesheets/foundation/components/_flex-video.scss +0 -46
- data/generators/line_case/public/stylesheets/foundation/components/_forms.scss +0 -411
- data/generators/line_case/public/stylesheets/foundation/components/_global.scss +0 -366
- data/generators/line_case/public/stylesheets/foundation/components/_grid-5.scss +0 -214
- data/generators/line_case/public/stylesheets/foundation/components/_grid.scss +0 -188
- data/generators/line_case/public/stylesheets/foundation/components/_inline-lists.scss +0 -53
- data/generators/line_case/public/stylesheets/foundation/components/_joyride.scss +0 -217
- data/generators/line_case/public/stylesheets/foundation/components/_keystrokes.scss +0 -57
- data/generators/line_case/public/stylesheets/foundation/components/_labels.scss +0 -85
- data/generators/line_case/public/stylesheets/foundation/components/_magellan.scss +0 -23
- data/generators/line_case/public/stylesheets/foundation/components/_orbit.scss +0 -340
- data/generators/line_case/public/stylesheets/foundation/components/_pagination.scss +0 -140
- data/generators/line_case/public/stylesheets/foundation/components/_panels.scss +0 -83
- data/generators/line_case/public/stylesheets/foundation/components/_pricing-tables.scss +0 -131
- data/generators/line_case/public/stylesheets/foundation/components/_progress-bars.scss +0 -71
- data/generators/line_case/public/stylesheets/foundation/components/_reveal.scss +0 -136
- data/generators/line_case/public/stylesheets/foundation/components/_section.scss +0 -391
- data/generators/line_case/public/stylesheets/foundation/components/_side-nav.scss +0 -69
- data/generators/line_case/public/stylesheets/foundation/components/_split-buttons.scss +0 -167
- data/generators/line_case/public/stylesheets/foundation/components/_sub-nav.scss +0 -84
- data/generators/line_case/public/stylesheets/foundation/components/_switch.scss +0 -266
- data/generators/line_case/public/stylesheets/foundation/components/_tables.scss +0 -84
- data/generators/line_case/public/stylesheets/foundation/components/_thumbs.scss +0 -53
- data/generators/line_case/public/stylesheets/foundation/components/_tooltips.scss +0 -117
- data/generators/line_case/public/stylesheets/foundation/components/_top-bar.scss +0 -576
- data/generators/line_case/public/stylesheets/foundation/components/_type.scss +0 -435
- data/generators/line_case/public/stylesheets/foundation/components/_visibility.scss +0 -322
- data/generators/line_case/public/stylesheets/normalize.css.scss +0 -410
- data/generators/line_case/public/stylesheets/pages.css.sass +0 -163
- data/lib/locomotive/wagon/tools/livereload.rb +0 -45
@@ -2,27 +2,47 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
+
require 'active_support'
|
6
|
+
require 'active_support/core_ext'
|
5
7
|
require 'locomotive/wagon/commands/pull_sub_commands/concerns/assets_concern'
|
6
8
|
|
7
9
|
describe Locomotive::Wagon::AssetsConcern do
|
10
|
+
|
11
|
+
let(:concern) { Class.new { include Locomotive::Wagon::AssetsConcern; def path; 'tmp'; end; } }
|
12
|
+
|
8
13
|
describe "calling replace_asset_urls" do
|
9
14
|
|
10
|
-
let(:assets_concern) { Class.new { include Locomotive::Wagon::AssetsConcern } }
|
11
15
|
it "identifies the assets which should be downloaded when pulling" do
|
12
|
-
|
13
16
|
input = <<-INPUT
|
14
17
|
<td><img src="https://somedomain.com/sites/51277e8fc0864503db000007/assets/534d2a28e6439a92180009a6/UPPERCASE.CH.FILE.jpg"/></td>
|
15
18
|
<td><img src="https://somedomain.com/sites/51277e8fc0864503db000007/assets/532a8eeacf7727c1bb00012e/lowercase.ch.file.jpg" /></td>
|
16
19
|
<td><img src="https://somedomain.com/sites/51277e8fc0864503db000007/assets/532a8eeac086452e35000169/some_name.jpg" /></td>
|
17
20
|
<td><img src="https://somedomain.com/sites/51277e8fc0864503db000007/assets/532a8eeac086452e35000169/some_name.JPG" /></td>
|
21
|
+
<td><img src="https://somedomain.com/sites/51277e8fc0864503db000007/pages/532a8eeac086452e35000169/header.JPG?42" /></td>
|
18
22
|
INPUT
|
19
23
|
|
20
24
|
parsed_urls = []
|
21
|
-
input.force_encoding('utf-8').gsub(
|
25
|
+
input.force_encoding('utf-8').gsub(concern::REGEX) do |url|
|
22
26
|
parsed_urls.push url
|
23
27
|
end
|
24
28
|
|
25
|
-
expect(parsed_urls.count).to eq(
|
29
|
+
expect(parsed_urls.count).to eq(5)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
|
34
|
+
describe '#replace_asset_urls' do
|
35
|
+
|
36
|
+
let(:content) { %(<td><img src="https://somedomain.com/sites/51277e8fc0864503db000007/assets/532a8eeac086452e35000169/some_name.JPG?42" /></td>) }
|
37
|
+
let(:instance) { concern.new }
|
38
|
+
|
39
|
+
subject { instance.replace_asset_urls(content) }
|
40
|
+
|
41
|
+
it 'removes the query string' do
|
42
|
+
expect(instance).to receive(:write_asset).with("https://somedomain.com/sites/51277e8fc0864503db000007/assets/532a8eeac086452e35000169/some_name.JPG?42", "tmp/public/samples/assets/some_name.JPG").and_return('some_name.JPG')
|
43
|
+
is_expected.to eq %(<td><img src="/samples/assets/some_name.JPG" /></td>)
|
26
44
|
end
|
45
|
+
|
27
46
|
end
|
47
|
+
|
28
48
|
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
require 'locomotive/wagon/commands/push_sub_commands/push_base_command'
|
6
|
+
require 'locomotive/wagon/commands/push_sub_commands/push_theme_assets_command'
|
7
|
+
|
8
|
+
describe Locomotive::Wagon::PushThemeAssetsCommand do
|
9
|
+
|
10
|
+
let(:command) { described_class.new(nil, nil, nil, nil) }
|
11
|
+
|
12
|
+
describe '#replace_assets' do
|
13
|
+
|
14
|
+
let(:content) { "body{background-image:url(/images/body.png)}" }
|
15
|
+
let(:urls) { { 'images/body.png' => 'http://cdn/images/body.png?42' } }
|
16
|
+
|
17
|
+
before { command.instance_variable_set(:@remote_urls, urls) }
|
18
|
+
|
19
|
+
subject { command.send(:replace_assets!, content) }
|
20
|
+
|
21
|
+
it { is_expected.to eq "body{background-image:url(http://cdn/images/body.png?42)}" }
|
22
|
+
|
23
|
+
context 'font' do
|
24
|
+
|
25
|
+
let(:content) { "@font-face{src: url(\"/fonts/external/myfont.woff?first\");}" }
|
26
|
+
let(:urls) { { 'fonts/external/myfont.woff' => 'http://cdn/fonts/external/myfont.woff?42' } }
|
27
|
+
|
28
|
+
it { is_expected.to eq "@font-face{src: url(\"http://cdn/fonts/external/myfont.woff?42\");}" }
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
context 'no correct reference to an image' do
|
33
|
+
|
34
|
+
let(:content) { "body{background-image:url(/somewhere/body.png)}" }
|
35
|
+
|
36
|
+
it { is_expected.to eq nil }
|
37
|
+
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locomotivecms_wagon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.rc4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Didier Lafforgue
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-11-
|
12
|
+
date: 2015-11-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -81,34 +81,48 @@ dependencies:
|
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: 0.10.3
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: locomotivecms_common
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 0.0.5
|
91
|
+
type: :runtime
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 0.0.5
|
84
98
|
- !ruby/object:Gem::Dependency
|
85
99
|
name: locomotivecms_coal
|
86
100
|
requirement: !ruby/object:Gem::Requirement
|
87
101
|
requirements:
|
88
102
|
- - "~>"
|
89
103
|
- !ruby/object:Gem::Version
|
90
|
-
version: 1.0.0.
|
104
|
+
version: 1.0.0.rc2
|
91
105
|
type: :runtime
|
92
106
|
prerelease: false
|
93
107
|
version_requirements: !ruby/object:Gem::Requirement
|
94
108
|
requirements:
|
95
109
|
- - "~>"
|
96
110
|
- !ruby/object:Gem::Version
|
97
|
-
version: 1.0.0.
|
111
|
+
version: 1.0.0.rc2
|
98
112
|
- !ruby/object:Gem::Dependency
|
99
113
|
name: locomotivecms_steam
|
100
114
|
requirement: !ruby/object:Gem::Requirement
|
101
115
|
requirements:
|
102
116
|
- - "~>"
|
103
117
|
- !ruby/object:Gem::Version
|
104
|
-
version: 1.0.0.
|
118
|
+
version: 1.0.0.rc6
|
105
119
|
type: :runtime
|
106
120
|
prerelease: false
|
107
121
|
version_requirements: !ruby/object:Gem::Requirement
|
108
122
|
requirements:
|
109
123
|
- - "~>"
|
110
124
|
- !ruby/object:Gem::Version
|
111
|
-
version: 1.0.0.
|
125
|
+
version: 1.0.0.rc6
|
112
126
|
- !ruby/object:Gem::Dependency
|
113
127
|
name: listen
|
114
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,14 +143,14 @@ dependencies:
|
|
129
143
|
requirements:
|
130
144
|
- - "~>"
|
131
145
|
- !ruby/object:Gem::Version
|
132
|
-
version: 0.3.
|
146
|
+
version: 0.3.16
|
133
147
|
type: :runtime
|
134
148
|
prerelease: false
|
135
149
|
version_requirements: !ruby/object:Gem::Requirement
|
136
150
|
requirements:
|
137
151
|
- - "~>"
|
138
152
|
- !ruby/object:Gem::Version
|
139
|
-
version: 0.3.
|
153
|
+
version: 0.3.16
|
140
154
|
- !ruby/object:Gem::Dependency
|
141
155
|
name: yui-compressor
|
142
156
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,6 +198,7 @@ files:
|
|
184
198
|
- TODO
|
185
199
|
- bin/wagon
|
186
200
|
- generators/blank/Gemfile.tt
|
201
|
+
- generators/blank/Guardfile
|
187
202
|
- generators/blank/app/content_types/.empty_directory
|
188
203
|
- generators/blank/app/views/pages/404.liquid
|
189
204
|
- generators/blank/app/views/pages/404.liquid.haml
|
@@ -200,6 +215,7 @@ files:
|
|
200
215
|
- generators/blank/public/samples/.empty_directory
|
201
216
|
- generators/blank/public/stylesheets/.empty_directory
|
202
217
|
- generators/bootstrap/Gemfile.tt
|
218
|
+
- generators/bootstrap/Guardfile
|
203
219
|
- generators/bootstrap/app/content_types/.empty_directory
|
204
220
|
- generators/bootstrap/app/views/pages/404.liquid
|
205
221
|
- generators/bootstrap/app/views/pages/404.liquid.haml
|
@@ -314,6 +330,7 @@ files:
|
|
314
330
|
- generators/bootstrap/public/stylesheets/bootstrap/mixins/_text-overflow.scss
|
315
331
|
- generators/bootstrap/public/stylesheets/bootstrap/mixins/_vendor-prefixes.scss
|
316
332
|
- generators/cloned/Gemfile.tt
|
333
|
+
- generators/cloned/Guardfile
|
317
334
|
- generators/cloned/app/content_types/.empty_directory
|
318
335
|
- generators/cloned/app/views/pages/.empty_directory
|
319
336
|
- generators/cloned/app/views/snippets/.empty_directory
|
@@ -327,6 +344,7 @@ files:
|
|
327
344
|
- generators/content_type/app/content_types/%slug%.yml.tt
|
328
345
|
- generators/content_type/data/%slug%.yml.tt
|
329
346
|
- generators/foundation5/Gemfile.tt
|
347
|
+
- generators/foundation5/Guardfile
|
330
348
|
- generators/foundation5/app/content_types/.empty_directory
|
331
349
|
- generators/foundation5/app/views/pages/404.liquid
|
332
350
|
- generators/foundation5/app/views/pages/404.liquid.haml
|
@@ -336,7 +354,6 @@ files:
|
|
336
354
|
- generators/foundation5/config/site.yml.tt
|
337
355
|
- generators/foundation5/config/translations.yml
|
338
356
|
- generators/foundation5/data/.empty_directory
|
339
|
-
- generators/foundation5/favicon.ico
|
340
357
|
- generators/foundation5/icon.png
|
341
358
|
- generators/foundation5/public/fonts/.empty_directory
|
342
359
|
- generators/foundation5/public/images/.empty_directory
|
@@ -421,95 +438,6 @@ files:
|
|
421
438
|
- generators/foundation5/public/stylesheets/foundation/components/_visibility.scss
|
422
439
|
- generators/foundation5/public/stylesheets/normalize.css
|
423
440
|
- generators/foundation5/public/stylesheets/normalize.css.scss
|
424
|
-
- generators/line_case/Gemfile.tt
|
425
|
-
- generators/line_case/app/content_types/categories.yml
|
426
|
-
- generators/line_case/app/content_types/emails.yml
|
427
|
-
- generators/line_case/app/content_types/projects.yml
|
428
|
-
- generators/line_case/app/views/pages/404.liquid.haml
|
429
|
-
- generators/line_case/app/views/pages/email-registered.liquid.haml
|
430
|
-
- generators/line_case/app/views/pages/index.liquid.haml
|
431
|
-
- generators/line_case/app/views/pages/projects/content_type_template.liquid.haml
|
432
|
-
- generators/line_case/app/views/snippets/newsletter_form.liquid.haml
|
433
|
-
- generators/line_case/app/views/snippets/projects.liquid.haml
|
434
|
-
- generators/line_case/app/views/snippets/social_links.liquid.haml
|
435
|
-
- generators/line_case/config/deploy.yml
|
436
|
-
- generators/line_case/config/site.yml.tt
|
437
|
-
- generators/line_case/config/translations.yml
|
438
|
-
- generators/line_case/data/categories.yml
|
439
|
-
- generators/line_case/data/emails.yml
|
440
|
-
- generators/line_case/data/projects.yml
|
441
|
-
- generators/line_case/icon.png
|
442
|
-
- generators/line_case/public/images/banner-header.png
|
443
|
-
- generators/line_case/public/javascripts/foundation.min.js
|
444
|
-
- generators/line_case/public/javascripts/foundation/foundation.abide.js
|
445
|
-
- generators/line_case/public/javascripts/foundation/foundation.alerts.js
|
446
|
-
- generators/line_case/public/javascripts/foundation/foundation.clearing.js
|
447
|
-
- generators/line_case/public/javascripts/foundation/foundation.cookie.js
|
448
|
-
- generators/line_case/public/javascripts/foundation/foundation.dropdown.js
|
449
|
-
- generators/line_case/public/javascripts/foundation/foundation.forms.js
|
450
|
-
- generators/line_case/public/javascripts/foundation/foundation.interchange.js
|
451
|
-
- generators/line_case/public/javascripts/foundation/foundation.joyride.js
|
452
|
-
- generators/line_case/public/javascripts/foundation/foundation.js
|
453
|
-
- generators/line_case/public/javascripts/foundation/foundation.magellan.js
|
454
|
-
- generators/line_case/public/javascripts/foundation/foundation.orbit.js
|
455
|
-
- generators/line_case/public/javascripts/foundation/foundation.placeholder.js
|
456
|
-
- generators/line_case/public/javascripts/foundation/foundation.reveal.js
|
457
|
-
- generators/line_case/public/javascripts/foundation/foundation.section.js
|
458
|
-
- generators/line_case/public/javascripts/foundation/foundation.tooltips.js
|
459
|
-
- generators/line_case/public/javascripts/foundation/foundation.topbar.js
|
460
|
-
- generators/line_case/public/javascripts/vendor/custom.modernizr.js
|
461
|
-
- generators/line_case/public/javascripts/vendor/jquery.js
|
462
|
-
- generators/line_case/public/javascripts/vendor/zepto.js
|
463
|
-
- generators/line_case/public/samples/projects/sample.jpeg
|
464
|
-
- generators/line_case/public/samples/projects/sample2.jpeg
|
465
|
-
- generators/line_case/public/samples/projects/sample3.jpeg
|
466
|
-
- generators/line_case/public/samples/projects/sample4.jpeg
|
467
|
-
- generators/line_case/public/samples/projects/sample5.jpeg
|
468
|
-
- generators/line_case/public/samples/projects/sample6.jpeg
|
469
|
-
- generators/line_case/public/samples/projects/sample7.jpeg
|
470
|
-
- generators/line_case/public/samples/projects/sample8.jpeg
|
471
|
-
- generators/line_case/public/stylesheets/_variables.css.sass
|
472
|
-
- generators/line_case/public/stylesheets/foundation.css.scss
|
473
|
-
- generators/line_case/public/stylesheets/foundation.min.css
|
474
|
-
- generators/line_case/public/stylesheets/foundation/_variables.scss
|
475
|
-
- generators/line_case/public/stylesheets/foundation/components/_alert-boxes.scss
|
476
|
-
- generators/line_case/public/stylesheets/foundation/components/_block-grid.scss
|
477
|
-
- generators/line_case/public/stylesheets/foundation/components/_breadcrumbs.scss
|
478
|
-
- generators/line_case/public/stylesheets/foundation/components/_button-groups.scss
|
479
|
-
- generators/line_case/public/stylesheets/foundation/components/_buttons.scss
|
480
|
-
- generators/line_case/public/stylesheets/foundation/components/_clearing.scss
|
481
|
-
- generators/line_case/public/stylesheets/foundation/components/_custom-forms.scss
|
482
|
-
- generators/line_case/public/stylesheets/foundation/components/_dropdown-buttons.scss
|
483
|
-
- generators/line_case/public/stylesheets/foundation/components/_dropdown.scss
|
484
|
-
- generators/line_case/public/stylesheets/foundation/components/_flex-video.scss
|
485
|
-
- generators/line_case/public/stylesheets/foundation/components/_forms.scss
|
486
|
-
- generators/line_case/public/stylesheets/foundation/components/_global.scss
|
487
|
-
- generators/line_case/public/stylesheets/foundation/components/_grid-5.scss
|
488
|
-
- generators/line_case/public/stylesheets/foundation/components/_grid.scss
|
489
|
-
- generators/line_case/public/stylesheets/foundation/components/_inline-lists.scss
|
490
|
-
- generators/line_case/public/stylesheets/foundation/components/_joyride.scss
|
491
|
-
- generators/line_case/public/stylesheets/foundation/components/_keystrokes.scss
|
492
|
-
- generators/line_case/public/stylesheets/foundation/components/_labels.scss
|
493
|
-
- generators/line_case/public/stylesheets/foundation/components/_magellan.scss
|
494
|
-
- generators/line_case/public/stylesheets/foundation/components/_orbit.scss
|
495
|
-
- generators/line_case/public/stylesheets/foundation/components/_pagination.scss
|
496
|
-
- generators/line_case/public/stylesheets/foundation/components/_panels.scss
|
497
|
-
- generators/line_case/public/stylesheets/foundation/components/_pricing-tables.scss
|
498
|
-
- generators/line_case/public/stylesheets/foundation/components/_progress-bars.scss
|
499
|
-
- generators/line_case/public/stylesheets/foundation/components/_reveal.scss
|
500
|
-
- generators/line_case/public/stylesheets/foundation/components/_section.scss
|
501
|
-
- generators/line_case/public/stylesheets/foundation/components/_side-nav.scss
|
502
|
-
- generators/line_case/public/stylesheets/foundation/components/_split-buttons.scss
|
503
|
-
- generators/line_case/public/stylesheets/foundation/components/_sub-nav.scss
|
504
|
-
- generators/line_case/public/stylesheets/foundation/components/_switch.scss
|
505
|
-
- generators/line_case/public/stylesheets/foundation/components/_tables.scss
|
506
|
-
- generators/line_case/public/stylesheets/foundation/components/_thumbs.scss
|
507
|
-
- generators/line_case/public/stylesheets/foundation/components/_tooltips.scss
|
508
|
-
- generators/line_case/public/stylesheets/foundation/components/_top-bar.scss
|
509
|
-
- generators/line_case/public/stylesheets/foundation/components/_type.scss
|
510
|
-
- generators/line_case/public/stylesheets/foundation/components/_visibility.scss
|
511
|
-
- generators/line_case/public/stylesheets/normalize.css.scss
|
512
|
-
- generators/line_case/public/stylesheets/pages.css.sass
|
513
441
|
- generators/page/template.liquid.haml.tt
|
514
442
|
- generators/page/template.liquid.tt
|
515
443
|
- generators/snippet/template.liquid.haml.tt
|
@@ -586,7 +514,6 @@ files:
|
|
586
514
|
- lib/locomotive/wagon/generators/snippet.rb
|
587
515
|
- lib/locomotive/wagon/middlewares/error_page.rb
|
588
516
|
- lib/locomotive/wagon/tools/listen.rb
|
589
|
-
- lib/locomotive/wagon/tools/livereload.rb
|
590
517
|
- lib/locomotive/wagon/tools/styled_yaml.rb
|
591
518
|
- lib/locomotive/wagon/tools/tcp_port.rb
|
592
519
|
- lib/locomotive/wagon/tools/thor.rb
|
@@ -690,6 +617,7 @@ files:
|
|
690
617
|
- spec/support/thor.rb
|
691
618
|
- spec/support/vcr.rb
|
692
619
|
- spec/unit/commands/pull_sub_commands/concerns/assets_concern_spec.rb
|
620
|
+
- spec/unit/commands/push_sub_commands/push_theme_assets_command_spec.rb
|
693
621
|
- spec/unit/decorators/site_decorator_spec.rb
|
694
622
|
- spec/unit/decorators/theme_asset_decorator_spec.rb
|
695
623
|
homepage: http://www.locomotivecms.com
|
@@ -817,5 +745,6 @@ test_files:
|
|
817
745
|
- spec/support/thor.rb
|
818
746
|
- spec/support/vcr.rb
|
819
747
|
- spec/unit/commands/pull_sub_commands/concerns/assets_concern_spec.rb
|
748
|
+
- spec/unit/commands/push_sub_commands/push_theme_assets_command_spec.rb
|
820
749
|
- spec/unit/decorators/site_decorator_spec.rb
|
821
750
|
- spec/unit/decorators/theme_asset_decorator_spec.rb
|
Binary file
|
@@ -1,21 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gem 'locomotivecms_wagon', '<%= config[:version] -%>'
|
4
|
-
|
5
|
-
group :development do
|
6
|
-
# Mac OS X
|
7
|
-
gem 'rb-fsevent', '~> 0.9.1', require: RUBY_PLATFORM.include?('darwin') && 'rb-fsevent'
|
8
|
-
|
9
|
-
# Unix
|
10
|
-
gem 'therubyracer', require: 'v8', platforms: :ruby unless RUBY_PLATFORM.include?('darwin')
|
11
|
-
gem 'rb-inotify', '~> 0.9', require: RUBY_PLATFORM.include?('linux') && 'rb-inotify'
|
12
|
-
|
13
|
-
# Windows
|
14
|
-
gem 'wdm', '>= 0.1.0', require: RUBY_PLATFORM =~ /mswin|mingw/i && 'wdm'
|
15
|
-
end
|
16
|
-
|
17
|
-
group :misc do
|
18
|
-
# Add your extra gems here
|
19
|
-
# gem 'susy', require: 'susy'
|
20
|
-
# gem 'bourbon', require: 'bourbon'
|
21
|
-
end
|
@@ -1,56 +0,0 @@
|
|
1
|
-
# Public name of this content type
|
2
|
-
name: Categories
|
3
|
-
|
4
|
-
# TODO: explain
|
5
|
-
slug: categories
|
6
|
-
|
7
|
-
# Explanation for the backoffice
|
8
|
-
description: Category of a project
|
9
|
-
|
10
|
-
# Default field (e.g title)
|
11
|
-
label_field_name: name
|
12
|
-
|
13
|
-
# Order of entries
|
14
|
-
order_by: manually # default: manually, also available: created_at or any field slug
|
15
|
-
|
16
|
-
# Order direction
|
17
|
-
# order_direction: asc # default: asc, also available: desc
|
18
|
-
|
19
|
-
# Display entries grouped by <field> in the backoffice
|
20
|
-
# group_by: <your field>
|
21
|
-
|
22
|
-
# Activate public 'create' API (e.g for a contact form)
|
23
|
-
# public_submission_enabled: false
|
24
|
-
|
25
|
-
# Emails to be notified on new entries using the public API
|
26
|
-
# public_submission_accounts: ['john@acme.net']
|
27
|
-
|
28
|
-
# Describe each field. The name shoud always be an underscored string
|
29
|
-
fields:
|
30
|
-
- name: # Name of the field
|
31
|
-
label: Name
|
32
|
-
type: string
|
33
|
-
required: true
|
34
|
-
hint: A description of the field for the editors
|
35
|
-
localized: false
|
36
|
-
|
37
|
-
- description: # Name of the field
|
38
|
-
label: Description
|
39
|
-
type: text
|
40
|
-
required: false
|
41
|
-
hint: A description of the field for the editors
|
42
|
-
localized: false
|
43
|
-
text_formatting: html
|
44
|
-
|
45
|
-
- projects: # Name of the field
|
46
|
-
label: Projects
|
47
|
-
type: has_many
|
48
|
-
required: false
|
49
|
-
hint: A description of the field for the editors
|
50
|
-
localized: false # Define the slug of the target content type (eg. comments)
|
51
|
-
class_name: projects
|
52
|
-
# Define the name of the field referring to Categories in the target content type (eg. post)
|
53
|
-
inverse_of: category
|
54
|
-
# If you want to manage the entries of the relationship directly from the source entry
|
55
|
-
ui_enabled: true
|
56
|
-
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# Public name of this content type
|
2
|
-
name: Emails
|
3
|
-
|
4
|
-
# TODO: explain
|
5
|
-
slug: emails
|
6
|
-
|
7
|
-
# Explanation for the backoffice
|
8
|
-
description: Emails collected for the newsletter
|
9
|
-
|
10
|
-
# Default field (e.g title)
|
11
|
-
label_field_name: email
|
12
|
-
|
13
|
-
# Order of entries
|
14
|
-
order_by: created_at # default: manually, also available: created_at or any field slug
|
15
|
-
|
16
|
-
# Order direction
|
17
|
-
# order_direction: asc # default: asc, also available: desc
|
18
|
-
|
19
|
-
# Display entries grouped by <field> in the backoffice
|
20
|
-
# group_by: <your field>
|
21
|
-
|
22
|
-
# Activate public 'create' API (e.g for a contact form)
|
23
|
-
public_submission_enabled: true
|
24
|
-
|
25
|
-
# Emails to be notified on new entries using the public API
|
26
|
-
# public_submission_accounts: ['john@acme.net']
|
27
|
-
|
28
|
-
# Describe each field. The name shoud always be an underscored string
|
29
|
-
fields:
|
30
|
-
- email: # Name of the field
|
31
|
-
label: Email
|
32
|
-
type: email
|
33
|
-
required: true
|
34
|
-
hint: An email address submitted from the index page
|
35
|
-
localized: false
|