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.
Files changed (219) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -1
  3. data/generators/blank/config/metafields_schema.yml +1 -1
  4. data/generators/bootstrap/config/metafields_schema.yml +1 -1
  5. data/generators/{foundation5 → foundation}/Gemfile.tt +1 -1
  6. data/generators/{foundation5 → foundation}/Guardfile +0 -0
  7. data/generators/foundation/app/content_types/.gitkeep +0 -0
  8. data/generators/foundation/app/views/pages/404.liquid +11 -0
  9. data/generators/{foundation5 → foundation}/app/views/pages/404.liquid.haml +4 -3
  10. data/generators/{foundation5 → foundation}/app/views/pages/index.liquid +54 -78
  11. data/generators/foundation/app/views/pages/index.liquid.haml +144 -0
  12. data/generators/foundation/app/views/snippets/.gitkeep +0 -0
  13. data/generators/{foundation5 → foundation}/config/deploy.yml +2 -1
  14. data/generators/{foundation5 → foundation}/config/metafields_schema.yml +1 -1
  15. data/generators/{foundation5/config/site.yml.tt → foundation/config/site.yml} +2 -2
  16. data/generators/{foundation5 → foundation}/config/translations.yml +0 -0
  17. data/generators/foundation/data/.gitkeep +0 -0
  18. data/generators/foundation/log/.gitkeep +0 -0
  19. data/generators/foundation/public/images/.gitkeep +0 -0
  20. data/generators/foundation/public/javascripts/app.js +1 -0
  21. data/generators/foundation/public/javascripts/vendor/foundation.js +7472 -0
  22. data/generators/foundation/public/javascripts/vendor/foundation.min.js +3 -0
  23. data/generators/foundation/public/javascripts/vendor/what-input.js +212 -0
  24. data/generators/foundation/public/javascripts/vendor/what-input.min.js +1 -0
  25. data/generators/foundation/public/stylesheets/_settings.scss +529 -0
  26. data/generators/foundation/public/stylesheets/app.css +3 -0
  27. data/generators/foundation/public/stylesheets/app.scss +43 -0
  28. data/generators/foundation/public/stylesheets/foundation.css +3499 -0
  29. data/generators/foundation/public/stylesheets/foundation6/_global.scss +197 -0
  30. data/generators/foundation/public/stylesheets/foundation6/components/_accordion-menu.scss +28 -0
  31. data/generators/foundation/public/stylesheets/foundation6/components/_accordion.scss +112 -0
  32. data/generators/foundation/public/stylesheets/foundation6/components/_badge.scss +55 -0
  33. data/generators/foundation/public/stylesheets/foundation6/components/_breadcrumbs.scss +94 -0
  34. data/generators/foundation/public/stylesheets/foundation6/components/_button-group.scss +115 -0
  35. data/generators/foundation/public/stylesheets/foundation6/components/_button.scss +264 -0
  36. data/generators/foundation/public/stylesheets/foundation6/components/_callout.scss +115 -0
  37. data/generators/foundation/public/stylesheets/foundation6/components/_close-button.scss +61 -0
  38. data/generators/foundation/public/stylesheets/foundation6/components/_drilldown.scss +67 -0
  39. data/generators/foundation/public/stylesheets/foundation6/components/_dropdown-menu.scss +123 -0
  40. data/generators/foundation/public/stylesheets/foundation6/components/_dropdown.scss +64 -0
  41. data/generators/foundation/public/stylesheets/foundation6/components/_flex-video.scss +68 -0
  42. data/generators/foundation/public/stylesheets/foundation6/components/_float.scss +27 -0
  43. data/generators/foundation/public/stylesheets/foundation6/components/_label.scss +56 -0
  44. data/generators/foundation/public/stylesheets/foundation6/components/_media-object.scss +74 -0
  45. data/generators/foundation/public/stylesheets/foundation6/components/_menu.scss +213 -0
  46. data/generators/foundation/public/stylesheets/foundation6/components/_off-canvas.scss +170 -0
  47. data/generators/foundation/public/stylesheets/foundation6/components/_orbit.scss +186 -0
  48. data/generators/foundation/public/stylesheets/foundation6/components/_pagination.scss +161 -0
  49. data/generators/foundation/public/stylesheets/foundation6/components/_progress-bar.scss +83 -0
  50. data/generators/foundation/public/stylesheets/foundation6/components/_reveal.scss +155 -0
  51. data/generators/foundation/public/stylesheets/foundation6/components/_slider.scss +158 -0
  52. data/generators/foundation/public/stylesheets/foundation6/components/_sticky.scss +38 -0
  53. data/generators/foundation/public/stylesheets/foundation6/components/_switch.scss +231 -0
  54. data/generators/foundation/public/stylesheets/foundation6/components/_table.scss +212 -0
  55. data/generators/foundation/public/stylesheets/foundation6/components/_tabs.scss +137 -0
  56. data/generators/foundation/public/stylesheets/foundation6/components/_thumbnail.scss +54 -0
  57. data/generators/foundation/public/stylesheets/foundation6/components/_title-bar.scss +44 -0
  58. data/generators/foundation/public/stylesheets/foundation6/components/_tooltip.scss +110 -0
  59. data/generators/foundation/public/stylesheets/foundation6/components/_top-bar.scss +57 -0
  60. data/generators/foundation/public/stylesheets/foundation6/components/_visibility.scss +131 -0
  61. data/generators/foundation/public/stylesheets/foundation6/forms/_checkbox.scss +36 -0
  62. data/generators/foundation/public/stylesheets/foundation6/forms/_error.scss +81 -0
  63. data/generators/foundation/public/stylesheets/foundation6/forms/_fieldset.scss +53 -0
  64. data/generators/foundation/public/stylesheets/foundation6/forms/_forms.scss +32 -0
  65. data/generators/foundation/public/stylesheets/foundation6/forms/_help-text.scss +30 -0
  66. data/generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss +70 -0
  67. data/generators/foundation/public/stylesheets/foundation6/forms/_label.scss +48 -0
  68. data/generators/foundation/public/stylesheets/foundation6/forms/_select.scss +64 -0
  69. data/generators/foundation/public/stylesheets/foundation6/forms/_text.scss +153 -0
  70. data/generators/foundation/public/stylesheets/foundation6/foundation.scss +91 -0
  71. data/generators/foundation/public/stylesheets/foundation6/grid/_classes.scss +132 -0
  72. data/generators/foundation/public/stylesheets/foundation6/grid/_column.scss +112 -0
  73. data/generators/foundation/public/stylesheets/foundation6/grid/_flex-grid.scss +191 -0
  74. data/generators/foundation/public/stylesheets/foundation6/grid/_grid.scss +33 -0
  75. data/generators/foundation/public/stylesheets/foundation6/grid/_gutter.scss +31 -0
  76. data/generators/foundation/public/stylesheets/foundation6/grid/_layout.scss +32 -0
  77. data/generators/foundation/public/stylesheets/foundation6/grid/_position.scss +71 -0
  78. data/generators/foundation/public/stylesheets/foundation6/grid/_row.scss +72 -0
  79. data/generators/foundation/public/stylesheets/foundation6/grid/_size.scss +24 -0
  80. data/generators/foundation/public/stylesheets/foundation6/motion-ui/_classes.scss +102 -0
  81. data/generators/foundation/public/stylesheets/foundation6/motion-ui/_settings.scss +61 -0
  82. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_fade.scss +29 -0
  83. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_hinge.scss +65 -0
  84. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_shake.scss +15 -0
  85. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_slide.scss +41 -0
  86. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_spin.scss +28 -0
  87. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_wiggle.scss +13 -0
  88. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_zoom.scss +15 -0
  89. data/generators/foundation/public/stylesheets/foundation6/motion-ui/motion-ui.scss +29 -0
  90. data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_fade.scss +28 -0
  91. data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_hinge.scss +43 -0
  92. data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_slide.scss +42 -0
  93. data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_spin.scss +39 -0
  94. data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_zoom.scss +39 -0
  95. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_animation.scss +7 -0
  96. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_args.scss +15 -0
  97. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_keyframe.scss +136 -0
  98. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_selector.scss +23 -0
  99. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_series.scss +54 -0
  100. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_transition.scss +45 -0
  101. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_unit.scss +7 -0
  102. data/generators/foundation/public/stylesheets/foundation6/motion-ui.scss +4 -0
  103. data/generators/foundation/public/stylesheets/foundation6/settings/_settings.scss +531 -0
  104. data/generators/foundation/public/stylesheets/foundation6/typography/_alignment.scss +21 -0
  105. data/generators/foundation/public/stylesheets/foundation6/typography/_base.scss +436 -0
  106. data/generators/foundation/public/stylesheets/foundation6/typography/_helpers.scss +77 -0
  107. data/generators/foundation/public/stylesheets/foundation6/typography/_print.scss +73 -0
  108. data/generators/foundation/public/stylesheets/foundation6/typography/_typography.scss +28 -0
  109. data/generators/foundation/public/stylesheets/foundation6/util/_breakpoint.scss +182 -0
  110. data/generators/foundation/public/stylesheets/foundation6/util/_color.scss +41 -0
  111. data/generators/foundation/public/stylesheets/foundation6/util/_mixins.scss +190 -0
  112. data/generators/foundation/public/stylesheets/foundation6/util/_selector.scss +39 -0
  113. data/generators/foundation/public/stylesheets/foundation6/util/_unit.scss +69 -0
  114. data/generators/foundation/public/stylesheets/foundation6/util/_util.scss +15 -0
  115. data/generators/foundation/public/stylesheets/foundation6/util/_value.scss +117 -0
  116. data/generators/{foundation5/public/stylesheets/normalize.css.scss → foundation/public/stylesheets/foundation6/vendor/normalize.scss} +8 -11
  117. data/generators/site_metafields/schema.yml.tt +1 -1
  118. data/lib/locomotive/wagon/commands/push_command.rb +1 -0
  119. data/lib/locomotive/wagon/commands/serve_command.rb +1 -0
  120. data/lib/locomotive/wagon/decorators/concerns/persist_assets_concern.rb +3 -3
  121. data/lib/locomotive/wagon/decorators/content_type_decorator.rb +5 -1
  122. data/lib/locomotive/wagon/generators/site/{foundation5.rb → foundation.rb} +8 -12
  123. data/lib/locomotive/wagon/generators/site.rb +1 -1
  124. data/lib/locomotive/wagon/version.rb +1 -1
  125. data/locomotivecms_wagon.gemspec +3 -2
  126. data/spec/fixtures/cassettes/authenticate.yml +38 -38
  127. data/spec/fixtures/cassettes/delete.yml +211 -211
  128. data/spec/fixtures/cassettes/push.yml +1333 -1374
  129. data/spec/integration/cli_spec.rb +1 -1
  130. data/spec/unit/decorators/content_entry_decorator_spec.rb +23 -0
  131. metadata +133 -104
  132. data/generators/foundation5/app/content_types/.empty_directory +0 -1
  133. data/generators/foundation5/app/views/pages/404.liquid +0 -10
  134. data/generators/foundation5/app/views/pages/index.liquid.haml +0 -157
  135. data/generators/foundation5/data/.empty_directory +0 -1
  136. data/generators/foundation5/icon.png +0 -0
  137. data/generators/foundation5/public/fonts/.empty_directory +0 -1
  138. data/generators/foundation5/public/images/.empty_directory +0 -1
  139. data/generators/foundation5/public/javascripts/foundation/foundation.abide.js +0 -299
  140. data/generators/foundation5/public/javascripts/foundation/foundation.accordion.js +0 -59
  141. data/generators/foundation5/public/javascripts/foundation/foundation.alert.js +0 -43
  142. data/generators/foundation5/public/javascripts/foundation/foundation.clearing.js +0 -534
  143. data/generators/foundation5/public/javascripts/foundation/foundation.dropdown.js +0 -311
  144. data/generators/foundation5/public/javascripts/foundation/foundation.equalizer.js +0 -74
  145. data/generators/foundation5/public/javascripts/foundation/foundation.interchange.js +0 -331
  146. data/generators/foundation5/public/javascripts/foundation/foundation.joyride.js +0 -843
  147. data/generators/foundation5/public/javascripts/foundation/foundation.js +0 -611
  148. data/generators/foundation5/public/javascripts/foundation/foundation.magellan.js +0 -178
  149. data/generators/foundation5/public/javascripts/foundation/foundation.offcanvas.js +0 -108
  150. data/generators/foundation5/public/javascripts/foundation/foundation.orbit.js +0 -610
  151. data/generators/foundation5/public/javascripts/foundation/foundation.reveal.js +0 -437
  152. data/generators/foundation5/public/javascripts/foundation/foundation.slider.js +0 -199
  153. data/generators/foundation5/public/javascripts/foundation/foundation.tab.js +0 -167
  154. data/generators/foundation5/public/javascripts/foundation/foundation.tooltip.js +0 -298
  155. data/generators/foundation5/public/javascripts/foundation/foundation.topbar.js +0 -425
  156. data/generators/foundation5/public/javascripts/foundation.js +0 -4161
  157. data/generators/foundation5/public/javascripts/foundation.min.js +0 -10
  158. data/generators/foundation5/public/javascripts/vendor/custom.modernizr.js +0 -4
  159. data/generators/foundation5/public/javascripts/vendor/custom.modernizr.min.js +0 -1
  160. data/generators/foundation5/public/javascripts/vendor/fastclick.js +0 -9
  161. data/generators/foundation5/public/javascripts/vendor/fastclick.min.js +0 -11
  162. data/generators/foundation5/public/javascripts/vendor/jquery.autocomplete.js +0 -645
  163. data/generators/foundation5/public/javascripts/vendor/jquery.autocomplete.min.js +0 -1
  164. data/generators/foundation5/public/javascripts/vendor/jquery.cookie.js +0 -8
  165. data/generators/foundation5/public/javascripts/vendor/jquery.cookie.min.js +0 -8
  166. data/generators/foundation5/public/javascripts/vendor/jquery.js +0 -26
  167. data/generators/foundation5/public/javascripts/vendor/jquery.min.js +0 -27
  168. data/generators/foundation5/public/javascripts/vendor/modernizr.js +0 -8
  169. data/generators/foundation5/public/javascripts/vendor/modernizr.min.js +0 -1
  170. data/generators/foundation5/public/javascripts/vendor/placeholder.js +0 -2
  171. data/generators/foundation5/public/javascripts/vendor/placeholder.min.js +0 -1
  172. data/generators/foundation5/public/samples/.empty_directory +0 -1
  173. data/generators/foundation5/public/stylesheets/application.css +0 -2
  174. data/generators/foundation5/public/stylesheets/application.css.scss +0 -3
  175. data/generators/foundation5/public/stylesheets/foundation/_functions.scss +0 -102
  176. data/generators/foundation5/public/stylesheets/foundation/_settings.scss +0 -1441
  177. data/generators/foundation5/public/stylesheets/foundation/components/_accordion.scss +0 -157
  178. data/generators/foundation5/public/stylesheets/foundation/components/_alert-boxes.scss +0 -128
  179. data/generators/foundation5/public/stylesheets/foundation/components/_block-grid.scss +0 -132
  180. data/generators/foundation5/public/stylesheets/foundation/components/_breadcrumbs.scss +0 -132
  181. data/generators/foundation5/public/stylesheets/foundation/components/_button-groups.scss +0 -197
  182. data/generators/foundation5/public/stylesheets/foundation/components/_buttons.scss +0 -259
  183. data/generators/foundation5/public/stylesheets/foundation/components/_clearing.scss +0 -247
  184. data/generators/foundation5/public/stylesheets/foundation/components/_dropdown-buttons.scss +0 -130
  185. data/generators/foundation5/public/stylesheets/foundation/components/_dropdown.scss +0 -262
  186. data/generators/foundation5/public/stylesheets/foundation/components/_flex-video.scss +0 -51
  187. data/generators/foundation5/public/stylesheets/foundation/components/_forms.scss +0 -585
  188. data/generators/foundation5/public/stylesheets/foundation/components/_global.scss +0 -460
  189. data/generators/foundation5/public/stylesheets/foundation/components/_grid.scss +0 -275
  190. data/generators/foundation5/public/stylesheets/foundation/components/_icon-bar.scss +0 -293
  191. data/generators/foundation5/public/stylesheets/foundation/components/_inline-lists.scss +0 -57
  192. data/generators/foundation5/public/stylesheets/foundation/components/_joyride.scss +0 -222
  193. data/generators/foundation5/public/stylesheets/foundation/components/_keystrokes.scss +0 -61
  194. data/generators/foundation5/public/stylesheets/foundation/components/_labels.scss +0 -106
  195. data/generators/foundation5/public/stylesheets/foundation/components/_magellan.scss +0 -34
  196. data/generators/foundation5/public/stylesheets/foundation/components/_offcanvas.scss +0 -513
  197. data/generators/foundation5/public/stylesheets/foundation/components/_orbit.scss +0 -368
  198. data/generators/foundation5/public/stylesheets/foundation/components/_pagination.scss +0 -162
  199. data/generators/foundation5/public/stylesheets/foundation/components/_panels.scss +0 -95
  200. data/generators/foundation5/public/stylesheets/foundation/components/_pricing-tables.scss +0 -150
  201. data/generators/foundation5/public/stylesheets/foundation/components/_progress-bars.scss +0 -79
  202. data/generators/foundation5/public/stylesheets/foundation/components/_range-slider.scss +0 -168
  203. data/generators/foundation5/public/stylesheets/foundation/components/_reveal.scss +0 -222
  204. data/generators/foundation5/public/stylesheets/foundation/components/_side-nav.scss +0 -116
  205. data/generators/foundation5/public/stylesheets/foundation/components/_split-buttons.scss +0 -191
  206. data/generators/foundation5/public/stylesheets/foundation/components/_sub-nav.scss +0 -123
  207. data/generators/foundation5/public/stylesheets/foundation/components/_switches.scss +0 -230
  208. data/generators/foundation5/public/stylesheets/foundation/components/_tables.scss +0 -135
  209. data/generators/foundation5/public/stylesheets/foundation/components/_tabs.scss +0 -123
  210. data/generators/foundation5/public/stylesheets/foundation/components/_thumbs.scss +0 -66
  211. data/generators/foundation5/public/stylesheets/foundation/components/_toolbar.scss +0 -70
  212. data/generators/foundation5/public/stylesheets/foundation/components/_tooltips.scss +0 -142
  213. data/generators/foundation5/public/stylesheets/foundation/components/_top-bar.scss +0 -685
  214. data/generators/foundation5/public/stylesheets/foundation/components/_type.scss +0 -525
  215. data/generators/foundation5/public/stylesheets/foundation/components/_visibility.scss +0 -408
  216. data/generators/foundation5/public/stylesheets/foundation.css +0 -6138
  217. data/generators/foundation5/public/stylesheets/foundation.css.scss +0 -45
  218. data/generators/foundation5/public/stylesheets/normalize.css +0 -357
  219. data/lib/locomotive/wagon/generators/site/foundation4.rb +0 -34
@@ -1,9 +1,9 @@
1
- /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
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, without disabling
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 when focused and also mouse hovered in all browsers.
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
- -moz-box-sizing: content-box;
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|file|image|boolean|select|color>
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]
@@ -160,6 +160,7 @@ module Locomotive::Wagon
160
160
  end
161
161
 
162
162
  def require_misc_gems
163
+ require 'haml'
163
164
  require 'bundler'
164
165
  Bundler.require 'misc'
165
166
  end
@@ -63,6 +63,7 @@ module Locomotive::Wagon
63
63
  private
64
64
 
65
65
  def require_steam
66
+ require 'haml'
66
67
  require 'locomotive/steam'
67
68
  require 'locomotive/steam/server'
68
69
  require 'locomotive/wagon/middlewares/error_page'
@@ -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(/\/samples\/\S*\.[a-zA-Z0-9]+/) do |match|
11
- url = __content_assets_pusher__.persist(match)
12
- url || match
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 Foundation5 < Base
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/application.css')
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/foundation')
30
- remove_file File.join(self.destination, 'public/stylesheets/application.css.scss')
31
- remove_file File.join(self.destination, 'public/stylesheets/foundation.css.scss')
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(:foundation5, Foundation5, %{
43
- A site powered by Foundation (v5.4.7).
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/foundation5'
143
+ require 'locomotive/wagon/generators/site/foundation'
144
144
  require 'locomotive/wagon/generators/site/unzip'
145
145
  require 'locomotive/wagon/generators/site/cloned'
@@ -1,5 +1,5 @@
1
1
  module Locomotive
2
2
  module Wagon
3
- VERSION = '2.2.0.beta1'
3
+ VERSION = '2.2.0.rc1'
4
4
  end
5
5
  end
@@ -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.2.0'
31
- gem.add_dependency 'locomotivecms_steam', '~> 1.2.0.beta'
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.1, ruby 2.2.3 (2015-08-18))
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
- - Mon, 21 Mar 2016 17:36:40 GMT
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
- - f97c50d2-f8ae-4fd8-bce0-3b623afae5f3
32
+ - b0c718fe-9812-411b-9824-367063c7c7c8
33
33
  X-Runtime:
34
- - '0.448075'
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: Mon, 21 Mar 2016 17:36:41 GMT
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.1, ruby 2.2.3 (2015-08-18))
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
- - Mon, 21 Mar 2016 17:36:41 GMT
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/"13d961357bc8b2ce65f4f13ee8adba85"
67
+ - W/"0e3f9d0daf88f8fd4f0a2ec082a5a7e5"
68
68
  Cache-Control:
69
69
  - max-age=0, private, must-revalidate
70
70
  X-Request-Id:
71
- - a3c557e9-41e9-44dc-ae1d-91af5ddd3b96
71
+ - ca31d12a-1fbb-41c6-a7eb-f2f36de12f0b
72
72
  X-Runtime:
73
- - '0.098826'
73
+ - '0.158071'
74
74
  Content-Length:
75
75
  - '250'
76
76
  body:
77
77
  encoding: UTF-8
78
- string: '{"_id":"56f03129c36511207342cbcb","created_at":"2016-03-21T17:36:41Z","updated_at":"2016-03-21T17:36:41Z","name":"John","email":"john@doe.net","locale":"en","api_key":"901baf472a28a8e3a6a871255c90b232de964686","super_admin":false,"local_admin":false}'
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: Mon, 21 Mar 2016 17:36:41 GMT
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.1, ruby 2.2.3 (2015-08-18))
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
- - Mon, 21 Mar 2016 17:36:41 GMT
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/"3cfd61d41b23cdfb3d8833133c136131"
106
+ - W/"454972cc6e9c77359905d2dea5ba89ee"
107
107
  Cache-Control:
108
108
  - max-age=0, private, must-revalidate
109
109
  X-Request-Id:
110
- - 805ec3c4-ce19-4edb-bd06-6b499447f2a1
110
+ - cb777707-131e-4a7b-beff-040b267ac2c6
111
111
  X-Runtime:
112
- - '0.016118'
112
+ - '0.022266'
113
113
  Content-Length:
114
114
  - '32'
115
115
  body:
116
116
  encoding: UTF-8
117
- string: '{"token":"V8VMCfCsp7XzQLvAd1AY"}'
117
+ string: '{"token":"HyqKxyBLmEH9x_GzYnWY"}'
118
118
  http_version:
119
- recorded_at: Mon, 21 Mar 2016 17:36:41 GMT
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=V8VMCfCsp7XzQLvAd1AY
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.1, ruby 2.2.3 (2015-08-18))
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
- - Mon, 21 Mar 2016 17:36:41 GMT
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
- - V8VMCfCsp7XzQLvAd1AY
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/"2ce6a3f4e073d2d83a53613d0139477e"
147
+ - W/"7560269880972609752ff82cb3ed592f"
148
148
  Cache-Control:
149
149
  - max-age=0, private, must-revalidate
150
150
  X-Request-Id:
151
- - e4ca46c9-4c89-42db-9bdb-ca21e8adb1a9
151
+ - 4fab7136-9216-46fb-a2ce-f25e5b40ca17
152
152
  X-Runtime:
153
- - '0.029466'
153
+ - '0.037894'
154
154
  Content-Length:
155
155
  - '261'
156
156
  body:
157
157
  encoding: UTF-8
158
- string: '{"_id":"56f03072c365112052cab389","created_at":"2016-03-21T17:33:38Z","updated_at":"2016-03-21T17:33:38Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
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: Mon, 21 Mar 2016 17:36:41 GMT
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=V8VMCfCsp7XzQLvAd1AY
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.1, ruby 2.2.3 (2015-08-18))
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
- - Mon, 21 Mar 2016 17:36:41 GMT
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
- - V8VMCfCsp7XzQLvAd1AY
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/"2ce6a3f4e073d2d83a53613d0139477e"
188
+ - W/"7560269880972609752ff82cb3ed592f"
189
189
  Cache-Control:
190
190
  - max-age=0, private, must-revalidate
191
191
  X-Request-Id:
192
- - 059e56ad-ec66-4fa7-98a4-85f7eb38746c
192
+ - ad034495-4fa7-42ab-9176-e24422eef3ff
193
193
  X-Runtime:
194
- - '0.019939'
194
+ - '0.025608'
195
195
  Content-Length:
196
196
  - '261'
197
197
  body:
198
198
  encoding: UTF-8
199
- string: '{"_id":"56f03072c365112052cab389","created_at":"2016-03-21T17:33:38Z","updated_at":"2016-03-21T17:33:38Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
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: Mon, 21 Mar 2016 17:36:41 GMT
202
- recorded_with: VCR 3.0.0
201
+ recorded_at: Fri, 17 Jun 2016 08:02:05 GMT
202
+ recorded_with: VCR 3.0.1