locomotivecms_wagon 2.2.0.beta1 → 2.2.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -1
- data/generators/blank/config/metafields_schema.yml +1 -1
- data/generators/bootstrap/config/metafields_schema.yml +1 -1
- data/generators/{foundation5 → foundation}/Gemfile.tt +1 -1
- data/generators/{foundation5 → foundation}/Guardfile +0 -0
- data/generators/foundation/app/content_types/.gitkeep +0 -0
- data/generators/foundation/app/views/pages/404.liquid +11 -0
- data/generators/{foundation5 → foundation}/app/views/pages/404.liquid.haml +4 -3
- data/generators/{foundation5 → foundation}/app/views/pages/index.liquid +54 -78
- data/generators/foundation/app/views/pages/index.liquid.haml +144 -0
- data/generators/foundation/app/views/snippets/.gitkeep +0 -0
- data/generators/{foundation5 → foundation}/config/deploy.yml +2 -1
- data/generators/{foundation5 → foundation}/config/metafields_schema.yml +1 -1
- data/generators/{foundation5/config/site.yml.tt → foundation/config/site.yml} +2 -2
- data/generators/{foundation5 → foundation}/config/translations.yml +0 -0
- data/generators/foundation/data/.gitkeep +0 -0
- data/generators/foundation/log/.gitkeep +0 -0
- data/generators/foundation/public/images/.gitkeep +0 -0
- data/generators/foundation/public/javascripts/app.js +1 -0
- data/generators/foundation/public/javascripts/vendor/foundation.js +7472 -0
- data/generators/foundation/public/javascripts/vendor/foundation.min.js +3 -0
- data/generators/foundation/public/javascripts/vendor/what-input.js +212 -0
- data/generators/foundation/public/javascripts/vendor/what-input.min.js +1 -0
- data/generators/foundation/public/stylesheets/_settings.scss +529 -0
- data/generators/foundation/public/stylesheets/app.css +3 -0
- data/generators/foundation/public/stylesheets/app.scss +43 -0
- data/generators/foundation/public/stylesheets/foundation.css +3499 -0
- data/generators/foundation/public/stylesheets/foundation6/_global.scss +197 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_accordion-menu.scss +28 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_accordion.scss +112 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_badge.scss +55 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_breadcrumbs.scss +94 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_button-group.scss +115 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_button.scss +264 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_callout.scss +115 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_close-button.scss +61 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_drilldown.scss +67 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_dropdown-menu.scss +123 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_dropdown.scss +64 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_flex-video.scss +68 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_float.scss +27 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_label.scss +56 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_media-object.scss +74 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_menu.scss +213 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_off-canvas.scss +170 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_orbit.scss +186 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_pagination.scss +161 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_progress-bar.scss +83 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_reveal.scss +155 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_slider.scss +158 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_sticky.scss +38 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_switch.scss +231 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_table.scss +212 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_tabs.scss +137 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_thumbnail.scss +54 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_title-bar.scss +44 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_tooltip.scss +110 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_top-bar.scss +57 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_visibility.scss +131 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_checkbox.scss +36 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_error.scss +81 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_fieldset.scss +53 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_forms.scss +32 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_help-text.scss +30 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss +70 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_label.scss +48 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_select.scss +64 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_text.scss +153 -0
- data/generators/foundation/public/stylesheets/foundation6/foundation.scss +91 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_classes.scss +132 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_column.scss +112 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_flex-grid.scss +191 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_grid.scss +33 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_gutter.scss +31 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_layout.scss +32 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_position.scss +71 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_row.scss +72 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_size.scss +24 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/_classes.scss +102 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/_settings.scss +61 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_fade.scss +29 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_hinge.scss +65 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_shake.scss +15 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_slide.scss +41 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_spin.scss +28 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_wiggle.scss +13 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_zoom.scss +15 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/motion-ui.scss +29 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_fade.scss +28 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_hinge.scss +43 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_slide.scss +42 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_spin.scss +39 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_zoom.scss +39 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_animation.scss +7 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_args.scss +15 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_keyframe.scss +136 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_selector.scss +23 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_series.scss +54 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_transition.scss +45 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_unit.scss +7 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui.scss +4 -0
- data/generators/foundation/public/stylesheets/foundation6/settings/_settings.scss +531 -0
- data/generators/foundation/public/stylesheets/foundation6/typography/_alignment.scss +21 -0
- data/generators/foundation/public/stylesheets/foundation6/typography/_base.scss +436 -0
- data/generators/foundation/public/stylesheets/foundation6/typography/_helpers.scss +77 -0
- data/generators/foundation/public/stylesheets/foundation6/typography/_print.scss +73 -0
- data/generators/foundation/public/stylesheets/foundation6/typography/_typography.scss +28 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_breakpoint.scss +182 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_color.scss +41 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_mixins.scss +190 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_selector.scss +39 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_unit.scss +69 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_util.scss +15 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_value.scss +117 -0
- data/generators/{foundation5/public/stylesheets/normalize.css.scss → foundation/public/stylesheets/foundation6/vendor/normalize.scss} +8 -11
- data/generators/site_metafields/schema.yml.tt +1 -1
- data/lib/locomotive/wagon/commands/push_command.rb +1 -0
- data/lib/locomotive/wagon/commands/serve_command.rb +1 -0
- data/lib/locomotive/wagon/decorators/concerns/persist_assets_concern.rb +3 -3
- data/lib/locomotive/wagon/decorators/content_type_decorator.rb +5 -1
- data/lib/locomotive/wagon/generators/site/{foundation5.rb → foundation.rb} +8 -12
- data/lib/locomotive/wagon/generators/site.rb +1 -1
- data/lib/locomotive/wagon/version.rb +1 -1
- data/locomotivecms_wagon.gemspec +3 -2
- data/spec/fixtures/cassettes/authenticate.yml +38 -38
- data/spec/fixtures/cassettes/delete.yml +211 -211
- data/spec/fixtures/cassettes/push.yml +1333 -1374
- data/spec/integration/cli_spec.rb +1 -1
- data/spec/unit/decorators/content_entry_decorator_spec.rb +23 -0
- metadata +133 -104
- data/generators/foundation5/app/content_types/.empty_directory +0 -1
- data/generators/foundation5/app/views/pages/404.liquid +0 -10
- data/generators/foundation5/app/views/pages/index.liquid.haml +0 -157
- data/generators/foundation5/data/.empty_directory +0 -1
- data/generators/foundation5/icon.png +0 -0
- data/generators/foundation5/public/fonts/.empty_directory +0 -1
- data/generators/foundation5/public/images/.empty_directory +0 -1
- data/generators/foundation5/public/javascripts/foundation/foundation.abide.js +0 -299
- data/generators/foundation5/public/javascripts/foundation/foundation.accordion.js +0 -59
- data/generators/foundation5/public/javascripts/foundation/foundation.alert.js +0 -43
- data/generators/foundation5/public/javascripts/foundation/foundation.clearing.js +0 -534
- data/generators/foundation5/public/javascripts/foundation/foundation.dropdown.js +0 -311
- data/generators/foundation5/public/javascripts/foundation/foundation.equalizer.js +0 -74
- data/generators/foundation5/public/javascripts/foundation/foundation.interchange.js +0 -331
- data/generators/foundation5/public/javascripts/foundation/foundation.joyride.js +0 -843
- data/generators/foundation5/public/javascripts/foundation/foundation.js +0 -611
- data/generators/foundation5/public/javascripts/foundation/foundation.magellan.js +0 -178
- data/generators/foundation5/public/javascripts/foundation/foundation.offcanvas.js +0 -108
- data/generators/foundation5/public/javascripts/foundation/foundation.orbit.js +0 -610
- data/generators/foundation5/public/javascripts/foundation/foundation.reveal.js +0 -437
- data/generators/foundation5/public/javascripts/foundation/foundation.slider.js +0 -199
- data/generators/foundation5/public/javascripts/foundation/foundation.tab.js +0 -167
- data/generators/foundation5/public/javascripts/foundation/foundation.tooltip.js +0 -298
- data/generators/foundation5/public/javascripts/foundation/foundation.topbar.js +0 -425
- data/generators/foundation5/public/javascripts/foundation.js +0 -4161
- data/generators/foundation5/public/javascripts/foundation.min.js +0 -10
- data/generators/foundation5/public/javascripts/vendor/custom.modernizr.js +0 -4
- data/generators/foundation5/public/javascripts/vendor/custom.modernizr.min.js +0 -1
- data/generators/foundation5/public/javascripts/vendor/fastclick.js +0 -9
- data/generators/foundation5/public/javascripts/vendor/fastclick.min.js +0 -11
- data/generators/foundation5/public/javascripts/vendor/jquery.autocomplete.js +0 -645
- data/generators/foundation5/public/javascripts/vendor/jquery.autocomplete.min.js +0 -1
- data/generators/foundation5/public/javascripts/vendor/jquery.cookie.js +0 -8
- data/generators/foundation5/public/javascripts/vendor/jquery.cookie.min.js +0 -8
- data/generators/foundation5/public/javascripts/vendor/jquery.js +0 -26
- data/generators/foundation5/public/javascripts/vendor/jquery.min.js +0 -27
- data/generators/foundation5/public/javascripts/vendor/modernizr.js +0 -8
- data/generators/foundation5/public/javascripts/vendor/modernizr.min.js +0 -1
- data/generators/foundation5/public/javascripts/vendor/placeholder.js +0 -2
- data/generators/foundation5/public/javascripts/vendor/placeholder.min.js +0 -1
- data/generators/foundation5/public/samples/.empty_directory +0 -1
- data/generators/foundation5/public/stylesheets/application.css +0 -2
- data/generators/foundation5/public/stylesheets/application.css.scss +0 -3
- data/generators/foundation5/public/stylesheets/foundation/_functions.scss +0 -102
- data/generators/foundation5/public/stylesheets/foundation/_settings.scss +0 -1441
- data/generators/foundation5/public/stylesheets/foundation/components/_accordion.scss +0 -157
- data/generators/foundation5/public/stylesheets/foundation/components/_alert-boxes.scss +0 -128
- data/generators/foundation5/public/stylesheets/foundation/components/_block-grid.scss +0 -132
- data/generators/foundation5/public/stylesheets/foundation/components/_breadcrumbs.scss +0 -132
- data/generators/foundation5/public/stylesheets/foundation/components/_button-groups.scss +0 -197
- data/generators/foundation5/public/stylesheets/foundation/components/_buttons.scss +0 -259
- data/generators/foundation5/public/stylesheets/foundation/components/_clearing.scss +0 -247
- data/generators/foundation5/public/stylesheets/foundation/components/_dropdown-buttons.scss +0 -130
- data/generators/foundation5/public/stylesheets/foundation/components/_dropdown.scss +0 -262
- data/generators/foundation5/public/stylesheets/foundation/components/_flex-video.scss +0 -51
- data/generators/foundation5/public/stylesheets/foundation/components/_forms.scss +0 -585
- data/generators/foundation5/public/stylesheets/foundation/components/_global.scss +0 -460
- data/generators/foundation5/public/stylesheets/foundation/components/_grid.scss +0 -275
- data/generators/foundation5/public/stylesheets/foundation/components/_icon-bar.scss +0 -293
- data/generators/foundation5/public/stylesheets/foundation/components/_inline-lists.scss +0 -57
- data/generators/foundation5/public/stylesheets/foundation/components/_joyride.scss +0 -222
- data/generators/foundation5/public/stylesheets/foundation/components/_keystrokes.scss +0 -61
- data/generators/foundation5/public/stylesheets/foundation/components/_labels.scss +0 -106
- data/generators/foundation5/public/stylesheets/foundation/components/_magellan.scss +0 -34
- data/generators/foundation5/public/stylesheets/foundation/components/_offcanvas.scss +0 -513
- data/generators/foundation5/public/stylesheets/foundation/components/_orbit.scss +0 -368
- data/generators/foundation5/public/stylesheets/foundation/components/_pagination.scss +0 -162
- data/generators/foundation5/public/stylesheets/foundation/components/_panels.scss +0 -95
- data/generators/foundation5/public/stylesheets/foundation/components/_pricing-tables.scss +0 -150
- data/generators/foundation5/public/stylesheets/foundation/components/_progress-bars.scss +0 -79
- data/generators/foundation5/public/stylesheets/foundation/components/_range-slider.scss +0 -168
- data/generators/foundation5/public/stylesheets/foundation/components/_reveal.scss +0 -222
- data/generators/foundation5/public/stylesheets/foundation/components/_side-nav.scss +0 -116
- data/generators/foundation5/public/stylesheets/foundation/components/_split-buttons.scss +0 -191
- data/generators/foundation5/public/stylesheets/foundation/components/_sub-nav.scss +0 -123
- data/generators/foundation5/public/stylesheets/foundation/components/_switches.scss +0 -230
- data/generators/foundation5/public/stylesheets/foundation/components/_tables.scss +0 -135
- data/generators/foundation5/public/stylesheets/foundation/components/_tabs.scss +0 -123
- data/generators/foundation5/public/stylesheets/foundation/components/_thumbs.scss +0 -66
- data/generators/foundation5/public/stylesheets/foundation/components/_toolbar.scss +0 -70
- data/generators/foundation5/public/stylesheets/foundation/components/_tooltips.scss +0 -142
- data/generators/foundation5/public/stylesheets/foundation/components/_top-bar.scss +0 -685
- data/generators/foundation5/public/stylesheets/foundation/components/_type.scss +0 -525
- data/generators/foundation5/public/stylesheets/foundation/components/_visibility.scss +0 -408
- data/generators/foundation5/public/stylesheets/foundation.css +0 -6138
- data/generators/foundation5/public/stylesheets/foundation.css.scss +0 -45
- data/generators/foundation5/public/stylesheets/normalize.css +0 -357
- data/lib/locomotive/wagon/generators/site/foundation4.rb +0 -34
@@ -1,9 +1,9 @@
|
|
1
|
-
/*! normalize.css v3.0.
|
1
|
+
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
|
2
2
|
|
3
3
|
/**
|
4
4
|
* 1. Set default font family to sans-serif.
|
5
|
-
* 2. Prevent iOS text size adjust after orientation change,
|
6
|
-
* user zoom.
|
5
|
+
* 2. Prevent iOS and IE text size adjust after device orientation change,
|
6
|
+
* without disabling user zoom.
|
7
7
|
*/
|
8
8
|
|
9
9
|
html {
|
@@ -71,7 +71,7 @@ audio:not([controls]) {
|
|
71
71
|
|
72
72
|
/**
|
73
73
|
* Address `[hidden]` styling not present in IE 8/9/10.
|
74
|
-
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
74
|
+
* Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
|
75
75
|
*/
|
76
76
|
|
77
77
|
[hidden],
|
@@ -91,7 +91,8 @@ a {
|
|
91
91
|
}
|
92
92
|
|
93
93
|
/**
|
94
|
-
* Improve readability
|
94
|
+
* Improve readability of focused elements when they are also in an
|
95
|
+
* active/hover state.
|
95
96
|
*/
|
96
97
|
|
97
98
|
a:active,
|
@@ -209,7 +210,6 @@ figure {
|
|
209
210
|
*/
|
210
211
|
|
211
212
|
hr {
|
212
|
-
-moz-box-sizing: content-box;
|
213
213
|
box-sizing: content-box;
|
214
214
|
height: 0;
|
215
215
|
}
|
@@ -350,15 +350,12 @@ input[type="number"]::-webkit-outer-spin-button {
|
|
350
350
|
|
351
351
|
/**
|
352
352
|
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
353
|
-
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
354
|
-
* (include `-moz` to future-proof).
|
353
|
+
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
|
355
354
|
*/
|
356
355
|
|
357
356
|
input[type="search"] {
|
358
357
|
-webkit-appearance: textfield; /* 1 */
|
359
|
-
|
360
|
-
-webkit-box-sizing: content-box; /* 2 */
|
361
|
-
box-sizing: content-box;
|
358
|
+
box-sizing: content-box; /* 2 */
|
362
359
|
}
|
363
360
|
|
364
361
|
/**
|
@@ -12,7 +12,7 @@
|
|
12
12
|
# <name_1>:
|
13
13
|
# label: <my label> # used as the label of the HTML input. Use a hash if you want it in another languages.
|
14
14
|
# hint: <my hint> # used as the hint of the HTML input. Use a hash if you want it in another languages.
|
15
|
-
# type: <string|text|integer|float|
|
15
|
+
# type: <string|text|integer|float|image|boolean|select|color>
|
16
16
|
# localized: <true|false> # if the value is scoped by the current locale when rendering the site.
|
17
17
|
# position: <0..n> # position of the input in the form
|
18
18
|
# select_options: [array]
|
@@ -7,9 +7,9 @@ module Locomotive::Wagon
|
|
7
7
|
def replace_with_content_assets!(text)
|
8
8
|
return text if text.blank?
|
9
9
|
|
10
|
-
text.to_s.gsub(
|
11
|
-
url = __content_assets_pusher__.persist(
|
12
|
-
|
10
|
+
text.to_s.gsub(/([^a-zA-Z0-9])(\/samples\/\S*\.[a-zA-Z0-9]+)/) do
|
11
|
+
url = __content_assets_pusher__.persist($2) || $2
|
12
|
+
$1 + url
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
@@ -16,7 +16,7 @@ module Locomotive
|
|
16
16
|
public_submission_enabled
|
17
17
|
public_submission_accounts
|
18
18
|
public_submission_title_template
|
19
|
-
entry_template display_settings)
|
19
|
+
entry_template display_settings filter_fields)
|
20
20
|
end
|
21
21
|
|
22
22
|
def fields
|
@@ -66,6 +66,10 @@ module Locomotive
|
|
66
66
|
self[:display_settings]
|
67
67
|
end
|
68
68
|
|
69
|
+
def filter_fields
|
70
|
+
self[:filter_fields]
|
71
|
+
end
|
72
|
+
|
69
73
|
def with_relationships?
|
70
74
|
__getobj__.fields.associations.count > 0
|
71
75
|
end
|
@@ -3,7 +3,7 @@ module Locomotive
|
|
3
3
|
module Generators
|
4
4
|
module Site
|
5
5
|
|
6
|
-
class
|
6
|
+
class Foundation < Base
|
7
7
|
|
8
8
|
may_use_haml
|
9
9
|
may_use_scss
|
@@ -12,24 +12,20 @@ module Locomotive
|
|
12
12
|
if haml?
|
13
13
|
remove_file File.join(self.destination, 'app/views/pages/index.liquid')
|
14
14
|
remove_file File.join(self.destination, 'app/views/pages/404.liquid')
|
15
|
-
remove_file File.join(self.destination, 'app/views/snippets/footer.liquid')
|
16
15
|
else
|
17
16
|
remove_file File.join(self.destination, 'app/views/pages/index.liquid.haml')
|
18
17
|
remove_file File.join(self.destination, 'app/views/pages/404.liquid.haml')
|
19
|
-
remove_file File.join(self.destination, 'app/views/snippets/footer.liquid.haml')
|
20
18
|
end
|
21
19
|
end
|
22
20
|
|
23
21
|
def choose_scss_over_css
|
24
22
|
if scss?
|
25
|
-
remove_file File.join(self.destination, 'public/stylesheets/
|
26
|
-
remove_file File.join(self.destination, 'public/stylesheets/foundation.css')
|
27
|
-
remove_file File.join(self.destination, 'public/stylesheets/normalize.css')
|
23
|
+
remove_file File.join(self.destination, 'public/stylesheets/app.css')
|
24
|
+
remove_file File.join(self.destination, 'public/stylesheets/foundation.min.css')
|
28
25
|
else
|
29
|
-
remove_dir File.join(self.destination, 'public/stylesheets/
|
30
|
-
remove_file File.join(self.destination, 'public/stylesheets/
|
31
|
-
remove_file File.join(self.destination, 'public/stylesheets/
|
32
|
-
remove_file File.join(self.destination, 'public/stylesheets/normalize.css.scss')
|
26
|
+
remove_dir File.join(self.destination, 'public/stylesheets/foundation6')
|
27
|
+
remove_file File.join(self.destination, 'public/stylesheets/app.scss')
|
28
|
+
remove_file File.join(self.destination, 'public/stylesheets/_settings.scss')
|
33
29
|
end
|
34
30
|
end
|
35
31
|
|
@@ -39,8 +35,8 @@ module Locomotive
|
|
39
35
|
|
40
36
|
end
|
41
37
|
|
42
|
-
Locomotive::Wagon::Generators::Site.register(:
|
43
|
-
A site powered by Foundation (
|
38
|
+
Locomotive::Wagon::Generators::Site.register(:foundation, Foundation, %{
|
39
|
+
A site powered by Foundation (v6.2.1).
|
44
40
|
})
|
45
41
|
end
|
46
42
|
end
|
@@ -140,6 +140,6 @@ require 'locomotive/wagon/generators/site/base'
|
|
140
140
|
require 'locomotive/wagon/generators/site/blank'
|
141
141
|
require 'locomotive/wagon/generators/site/line_case'
|
142
142
|
require 'locomotive/wagon/generators/site/bootstrap'
|
143
|
-
require 'locomotive/wagon/generators/site/
|
143
|
+
require 'locomotive/wagon/generators/site/foundation'
|
144
144
|
require 'locomotive/wagon/generators/site/unzip'
|
145
145
|
require 'locomotive/wagon/generators/site/cloned'
|
data/locomotivecms_wagon.gemspec
CHANGED
@@ -27,9 +27,10 @@ Gem::Specification.new do |gem|
|
|
27
27
|
gem.add_dependency 'netrc', '~> 0.10.3'
|
28
28
|
|
29
29
|
gem.add_dependency 'locomotivecms_common', '~> 0.2.0'
|
30
|
-
gem.add_dependency 'locomotivecms_coal', '~> 1.
|
31
|
-
gem.add_dependency 'locomotivecms_steam', '~> 1.2.0.
|
30
|
+
gem.add_dependency 'locomotivecms_coal', '~> 1.3.0.rc1'
|
31
|
+
gem.add_dependency 'locomotivecms_steam', '~> 1.2.0.rc1'
|
32
32
|
|
33
|
+
gem.add_dependency 'haml', '~> 4.0.7'
|
33
34
|
gem.add_dependency 'listen', '~> 3.0.4'
|
34
35
|
gem.add_dependency 'rack-livereload', '~> 0.3.16'
|
35
36
|
gem.add_dependency 'yui-compressor', '~> 0.12.0'
|
@@ -8,13 +8,13 @@ http_interactions:
|
|
8
8
|
string: email=john%40doe.net&password=asimplepassword
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- HTTPClient/1.0 (2.7.
|
11
|
+
- HTTPClient/1.0 (2.7.2, ruby 2.2.3 (2015-08-18))
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
14
|
Accept-Encoding:
|
15
15
|
- gzip,deflate
|
16
16
|
Date:
|
17
|
-
-
|
17
|
+
- Fri, 17 Jun 2016 08:02:04 GMT
|
18
18
|
Content-Type:
|
19
19
|
- application/x-www-form-urlencoded
|
20
20
|
response:
|
@@ -29,16 +29,16 @@ http_interactions:
|
|
29
29
|
Cache-Control:
|
30
30
|
- no-cache
|
31
31
|
X-Request-Id:
|
32
|
-
-
|
32
|
+
- b0c718fe-9812-411b-9824-367063c7c7c8
|
33
33
|
X-Runtime:
|
34
|
-
- '0.
|
34
|
+
- '0.641600'
|
35
35
|
Content-Length:
|
36
36
|
- '40'
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
39
|
string: '{"message":"Invalid email or password."}'
|
40
40
|
http_version:
|
41
|
-
recorded_at:
|
41
|
+
recorded_at: Fri, 17 Jun 2016 08:02:05 GMT
|
42
42
|
- request:
|
43
43
|
method: post
|
44
44
|
uri: http://localhost:3000/locomotive/api/v3/my_account.json
|
@@ -47,13 +47,13 @@ http_interactions:
|
|
47
47
|
string: account%5Bemail%5D=john%40doe.net&account%5Bname%5D=John&account%5Bpassword%5D=asimplepassword
|
48
48
|
headers:
|
49
49
|
User-Agent:
|
50
|
-
- HTTPClient/1.0 (2.7.
|
50
|
+
- HTTPClient/1.0 (2.7.2, ruby 2.2.3 (2015-08-18))
|
51
51
|
Accept:
|
52
52
|
- application/json
|
53
53
|
Accept-Encoding:
|
54
54
|
- gzip,deflate
|
55
55
|
Date:
|
56
|
-
-
|
56
|
+
- Fri, 17 Jun 2016 08:02:05 GMT
|
57
57
|
Content-Type:
|
58
58
|
- application/x-www-form-urlencoded
|
59
59
|
response:
|
@@ -64,20 +64,20 @@ http_interactions:
|
|
64
64
|
Content-Type:
|
65
65
|
- application/json
|
66
66
|
Etag:
|
67
|
-
- W/"
|
67
|
+
- W/"0e3f9d0daf88f8fd4f0a2ec082a5a7e5"
|
68
68
|
Cache-Control:
|
69
69
|
- max-age=0, private, must-revalidate
|
70
70
|
X-Request-Id:
|
71
|
-
-
|
71
|
+
- ca31d12a-1fbb-41c6-a7eb-f2f36de12f0b
|
72
72
|
X-Runtime:
|
73
|
-
- '0.
|
73
|
+
- '0.158071'
|
74
74
|
Content-Length:
|
75
75
|
- '250'
|
76
76
|
body:
|
77
77
|
encoding: UTF-8
|
78
|
-
string: '{"_id":"
|
78
|
+
string: '{"_id":"5763ae7d87f6437d12223b7e","created_at":"2016-06-17T08:02:05Z","updated_at":"2016-06-17T08:02:05Z","name":"John","email":"john@doe.net","locale":"en","api_key":"f3d9eb1da9dd7d755bf61cb78040eb3ac20054b7","super_admin":false,"local_admin":false}'
|
79
79
|
http_version:
|
80
|
-
recorded_at:
|
80
|
+
recorded_at: Fri, 17 Jun 2016 08:02:05 GMT
|
81
81
|
- request:
|
82
82
|
method: post
|
83
83
|
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
@@ -86,13 +86,13 @@ http_interactions:
|
|
86
86
|
string: email=admin%40locomotivecms.com&password=locomotive
|
87
87
|
headers:
|
88
88
|
User-Agent:
|
89
|
-
- HTTPClient/1.0 (2.7.
|
89
|
+
- HTTPClient/1.0 (2.7.2, ruby 2.2.3 (2015-08-18))
|
90
90
|
Accept:
|
91
91
|
- application/json
|
92
92
|
Accept-Encoding:
|
93
93
|
- gzip,deflate
|
94
94
|
Date:
|
95
|
-
-
|
95
|
+
- Fri, 17 Jun 2016 08:02:05 GMT
|
96
96
|
Content-Type:
|
97
97
|
- application/x-www-form-urlencoded
|
98
98
|
response:
|
@@ -103,39 +103,39 @@ http_interactions:
|
|
103
103
|
Content-Type:
|
104
104
|
- application/json
|
105
105
|
Etag:
|
106
|
-
- W/"
|
106
|
+
- W/"454972cc6e9c77359905d2dea5ba89ee"
|
107
107
|
Cache-Control:
|
108
108
|
- max-age=0, private, must-revalidate
|
109
109
|
X-Request-Id:
|
110
|
-
-
|
110
|
+
- cb777707-131e-4a7b-beff-040b267ac2c6
|
111
111
|
X-Runtime:
|
112
|
-
- '0.
|
112
|
+
- '0.022266'
|
113
113
|
Content-Length:
|
114
114
|
- '32'
|
115
115
|
body:
|
116
116
|
encoding: UTF-8
|
117
|
-
string: '{"token":"
|
117
|
+
string: '{"token":"HyqKxyBLmEH9x_GzYnWY"}'
|
118
118
|
http_version:
|
119
|
-
recorded_at:
|
119
|
+
recorded_at: Fri, 17 Jun 2016 08:02:05 GMT
|
120
120
|
- request:
|
121
121
|
method: get
|
122
|
-
uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=
|
122
|
+
uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=HyqKxyBLmEH9x_GzYnWY
|
123
123
|
body:
|
124
124
|
encoding: UTF-8
|
125
125
|
string: ''
|
126
126
|
headers:
|
127
127
|
User-Agent:
|
128
|
-
- HTTPClient/1.0 (2.7.
|
128
|
+
- HTTPClient/1.0 (2.7.2, ruby 2.2.3 (2015-08-18))
|
129
129
|
Accept:
|
130
130
|
- application/json
|
131
131
|
Accept-Encoding:
|
132
132
|
- gzip,deflate
|
133
133
|
Date:
|
134
|
-
-
|
134
|
+
- Fri, 17 Jun 2016 08:02:05 GMT
|
135
135
|
X-Locomotive-Account-Email:
|
136
136
|
- admin@locomotivecms.com
|
137
137
|
X-Locomotive-Account-Token:
|
138
|
-
-
|
138
|
+
- HyqKxyBLmEH9x_GzYnWY
|
139
139
|
response:
|
140
140
|
status:
|
141
141
|
code: 200
|
@@ -144,39 +144,39 @@ http_interactions:
|
|
144
144
|
Content-Type:
|
145
145
|
- application/json
|
146
146
|
Etag:
|
147
|
-
- W/"
|
147
|
+
- W/"7560269880972609752ff82cb3ed592f"
|
148
148
|
Cache-Control:
|
149
149
|
- max-age=0, private, must-revalidate
|
150
150
|
X-Request-Id:
|
151
|
-
-
|
151
|
+
- 4fab7136-9216-46fb-a2ce-f25e5b40ca17
|
152
152
|
X-Runtime:
|
153
|
-
- '0.
|
153
|
+
- '0.037894'
|
154
154
|
Content-Length:
|
155
155
|
- '261'
|
156
156
|
body:
|
157
157
|
encoding: UTF-8
|
158
|
-
string: '{"_id":"
|
158
|
+
string: '{"_id":"5763ad8487f6437cec5812c1","created_at":"2016-06-17T07:57:56Z","updated_at":"2016-06-17T07:57:56Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
|
159
159
|
http_version:
|
160
|
-
recorded_at:
|
160
|
+
recorded_at: Fri, 17 Jun 2016 08:02:05 GMT
|
161
161
|
- request:
|
162
162
|
method: get
|
163
|
-
uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=
|
163
|
+
uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=HyqKxyBLmEH9x_GzYnWY
|
164
164
|
body:
|
165
165
|
encoding: UTF-8
|
166
166
|
string: ''
|
167
167
|
headers:
|
168
168
|
User-Agent:
|
169
|
-
- HTTPClient/1.0 (2.7.
|
169
|
+
- HTTPClient/1.0 (2.7.2, ruby 2.2.3 (2015-08-18))
|
170
170
|
Accept:
|
171
171
|
- application/json
|
172
172
|
Accept-Encoding:
|
173
173
|
- gzip,deflate
|
174
174
|
Date:
|
175
|
-
-
|
175
|
+
- Fri, 17 Jun 2016 08:02:05 GMT
|
176
176
|
X-Locomotive-Account-Email:
|
177
177
|
- admin@locomotivecms.com
|
178
178
|
X-Locomotive-Account-Token:
|
179
|
-
-
|
179
|
+
- HyqKxyBLmEH9x_GzYnWY
|
180
180
|
response:
|
181
181
|
status:
|
182
182
|
code: 200
|
@@ -185,18 +185,18 @@ http_interactions:
|
|
185
185
|
Content-Type:
|
186
186
|
- application/json
|
187
187
|
Etag:
|
188
|
-
- W/"
|
188
|
+
- W/"7560269880972609752ff82cb3ed592f"
|
189
189
|
Cache-Control:
|
190
190
|
- max-age=0, private, must-revalidate
|
191
191
|
X-Request-Id:
|
192
|
-
-
|
192
|
+
- ad034495-4fa7-42ab-9176-e24422eef3ff
|
193
193
|
X-Runtime:
|
194
|
-
- '0.
|
194
|
+
- '0.025608'
|
195
195
|
Content-Length:
|
196
196
|
- '261'
|
197
197
|
body:
|
198
198
|
encoding: UTF-8
|
199
|
-
string: '{"_id":"
|
199
|
+
string: '{"_id":"5763ad8487f6437cec5812c1","created_at":"2016-06-17T07:57:56Z","updated_at":"2016-06-17T07:57:56Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
|
200
200
|
http_version:
|
201
|
-
recorded_at:
|
202
|
-
recorded_with: VCR 3.0.
|
201
|
+
recorded_at: Fri, 17 Jun 2016 08:02:05 GMT
|
202
|
+
recorded_with: VCR 3.0.1
|