locomotivecms_wagon 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/generators/foundation/app/views/pages/index.liquid.haml +15 -16
- data/lib/locomotive/wagon.rb +5 -5
- data/lib/locomotive/wagon/cli.rb +4 -0
- data/lib/locomotive/wagon/liquid/tags/link_to.rb +1 -1
- data/lib/locomotive/wagon/liquid/tags/nav.rb +1 -1
- data/lib/locomotive/wagon/version.rb +1 -1
- data/locomotivecms_wagon.gemspec +2 -2
- metadata +8 -8
|
@@ -98,36 +98,35 @@ published: true
|
|
|
98
98
|
|
|
99
99
|
{{ 'foundation.min.js' | javascript_tag }}
|
|
100
100
|
|
|
101
|
+
/ {{ 'foundation/foundation.js' | javascript_tag }}
|
|
101
102
|
|
|
102
|
-
|
|
103
|
+
/ {{ 'foundation/foundation.alerts.js' | javascript_tag }}
|
|
103
104
|
|
|
104
|
-
|
|
105
|
+
/ {{ 'foundation/foundation.clearing.js' | javascript_tag }}
|
|
105
106
|
|
|
106
|
-
|
|
107
|
+
/ {{ 'foundation/foundation.cookie.js' | javascript_tag }}
|
|
107
108
|
|
|
108
|
-
|
|
109
|
+
/ {{ 'foundation/foundation.dropdown.js' | javascript_tag }}
|
|
109
110
|
|
|
110
|
-
|
|
111
|
+
/ {{ 'foundation/foundation.forms.js' | javascript_tag }}
|
|
111
112
|
|
|
112
|
-
|
|
113
|
+
/ {{ 'foundation/foundation.joyride.js' | javascript_tag }}
|
|
113
114
|
|
|
114
|
-
|
|
115
|
+
/ {{ 'foundation/foundation.magellan.js' | javascript_tag }}
|
|
115
116
|
|
|
116
|
-
|
|
117
|
+
/ {{ 'foundation/foundation.orbit.js' | javascript_tag }}
|
|
117
118
|
|
|
118
|
-
|
|
119
|
+
/ {{ 'foundation/foundation.placeholder.js' | javascript_tag }}
|
|
119
120
|
|
|
120
|
-
|
|
121
|
+
/ {{ 'foundation/foundation.reveal.js' | javascript_tag }}
|
|
121
122
|
|
|
122
|
-
|
|
123
|
+
/ {{ 'foundation/foundation.section.js' | javascript_tag }}
|
|
123
124
|
|
|
124
|
-
|
|
125
|
+
/ {{ 'foundation/foundation.tooltips.js' | javascript_tag }}
|
|
125
126
|
|
|
126
|
-
|
|
127
|
+
/ {{ 'foundation/foundation.topbar.js' | javascript_tag }}
|
|
127
128
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
/ {{ 'foundation/foundation.interchange.js' | javascript_tag }}
|
|
129
|
+
/ {{ 'foundation/foundation.interchange.js' | javascript_tag }}
|
|
131
130
|
|
|
132
131
|
:javascript
|
|
133
132
|
$(document).foundation();
|
data/lib/locomotive/wagon.rb
CHANGED
|
@@ -57,9 +57,9 @@ module Locomotive
|
|
|
57
57
|
#
|
|
58
58
|
def self.push(path, connection_info, options = {})
|
|
59
59
|
if reader = self.require_mounter(path, true)
|
|
60
|
-
|
|
61
|
-
reader.mounting_point.site.domains = connection_info[
|
|
62
|
-
reader.mounting_point.site.subdomain = connection_info[
|
|
60
|
+
|
|
61
|
+
reader.mounting_point.site.domains = connection_info['domains'] if connection_info["domains"]
|
|
62
|
+
reader.mounting_point.site.subdomain = connection_info['subdomain'] if connection_info["subdomain"]
|
|
63
63
|
require 'bundler'
|
|
64
64
|
Bundler.require 'misc'
|
|
65
65
|
|
|
@@ -89,7 +89,7 @@ module Locomotive
|
|
|
89
89
|
|
|
90
90
|
connection_info[:uri] = "#{connection_info.delete(:host)}/locomotive/api"
|
|
91
91
|
|
|
92
|
-
_options = { console: true }.merge(options)
|
|
92
|
+
_options = { console: true }.merge(options).symbolize_keys
|
|
93
93
|
_options[:only] = _options.delete(:resources)
|
|
94
94
|
|
|
95
95
|
reader = Locomotive::Mounter::Reader::Api.instance
|
|
@@ -97,7 +97,7 @@ module Locomotive
|
|
|
97
97
|
reader.run!(_options.merge(connection_info))
|
|
98
98
|
|
|
99
99
|
writer = Locomotive::Mounter::Writer::FileSystem.instance
|
|
100
|
-
writer.run!(mounting_point: reader.mounting_point, target_path: path)
|
|
100
|
+
writer.run!(_options.merge(mounting_point: reader.mounting_point, target_path: path))
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
# Clone a site from a remote LocomotiveCMS engine.
|
data/lib/locomotive/wagon/cli.rb
CHANGED
|
@@ -265,6 +265,10 @@ module Locomotive
|
|
|
265
265
|
path_to_deploy_file = File.join(path, 'config', 'deploy.yml')
|
|
266
266
|
connection_info = YAML::load(File.open(path_to_deploy_file).read)[env.to_s].with_indifferent_access
|
|
267
267
|
|
|
268
|
+
if connection_info[:ssl] && !connection_info[:host].start_with?('https')
|
|
269
|
+
connection_info[:host] = 'https://' + connection_info[:host]
|
|
270
|
+
end
|
|
271
|
+
|
|
268
272
|
if connection_info.nil?
|
|
269
273
|
raise "No #{env.to_s} environment found in the config/deploy.yml file"
|
|
270
274
|
end
|
|
@@ -97,7 +97,7 @@ module Locomotive
|
|
|
97
97
|
fullpath = "#{::I18n.locale}/#{fullpath}" if ::I18n.locale.to_s != mounting_point.default_locale.to_s
|
|
98
98
|
|
|
99
99
|
if page.templatized?
|
|
100
|
-
fullpath.gsub!(/(
|
|
100
|
+
fullpath.gsub!(/(content[_-]type[_-]template|template)/, page.content_entry._slug)
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
File.join('/', fullpath)
|
|
@@ -165,7 +165,7 @@ module Locomotive
|
|
|
165
165
|
#
|
|
166
166
|
def entry_css(page, css = '')
|
|
167
167
|
_css = 'link'
|
|
168
|
-
_css
|
|
168
|
+
_css += " #{page} #{@options[:active_class]}" if self.page_selected?(page)
|
|
169
169
|
|
|
170
170
|
(_css + " #{css}").strip
|
|
171
171
|
end
|
data/locomotivecms_wagon.gemspec
CHANGED
|
@@ -31,9 +31,9 @@ Gem::Specification.new do |gem|
|
|
|
31
31
|
|
|
32
32
|
gem.add_dependency 'listen', '~> 0.7.0'
|
|
33
33
|
|
|
34
|
-
gem.add_dependency 'httmultiparty', '0.3.
|
|
34
|
+
gem.add_dependency 'httmultiparty', '0.3.10'
|
|
35
35
|
gem.add_dependency 'will_paginate', '~> 3.0.3'
|
|
36
|
-
gem.add_dependency 'locomotivecms_mounter', '~> 1.2.
|
|
36
|
+
gem.add_dependency 'locomotivecms_mounter', '~> 1.2.1'
|
|
37
37
|
|
|
38
38
|
gem.add_dependency 'faker', '~> 0.9.5'
|
|
39
39
|
|
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: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2013-07-
|
|
13
|
+
date: 2013-07-20 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: thor
|
|
@@ -195,7 +195,7 @@ dependencies:
|
|
|
195
195
|
requirements:
|
|
196
196
|
- - '='
|
|
197
197
|
- !ruby/object:Gem::Version
|
|
198
|
-
version: 0.3.
|
|
198
|
+
version: 0.3.10
|
|
199
199
|
type: :runtime
|
|
200
200
|
prerelease: false
|
|
201
201
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -203,7 +203,7 @@ dependencies:
|
|
|
203
203
|
requirements:
|
|
204
204
|
- - '='
|
|
205
205
|
- !ruby/object:Gem::Version
|
|
206
|
-
version: 0.3.
|
|
206
|
+
version: 0.3.10
|
|
207
207
|
- !ruby/object:Gem::Dependency
|
|
208
208
|
name: will_paginate
|
|
209
209
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -227,7 +227,7 @@ dependencies:
|
|
|
227
227
|
requirements:
|
|
228
228
|
- - ~>
|
|
229
229
|
- !ruby/object:Gem::Version
|
|
230
|
-
version: 1.2.
|
|
230
|
+
version: 1.2.1
|
|
231
231
|
type: :runtime
|
|
232
232
|
prerelease: false
|
|
233
233
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -235,7 +235,7 @@ dependencies:
|
|
|
235
235
|
requirements:
|
|
236
236
|
- - ~>
|
|
237
237
|
- !ruby/object:Gem::Version
|
|
238
|
-
version: 1.2.
|
|
238
|
+
version: 1.2.1
|
|
239
239
|
- !ruby/object:Gem::Dependency
|
|
240
240
|
name: faker
|
|
241
241
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -629,7 +629,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
629
629
|
version: '0'
|
|
630
630
|
segments:
|
|
631
631
|
- 0
|
|
632
|
-
hash:
|
|
632
|
+
hash: 1589277993808003914
|
|
633
633
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
634
634
|
none: false
|
|
635
635
|
requirements:
|
|
@@ -638,7 +638,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
638
638
|
version: '0'
|
|
639
639
|
segments:
|
|
640
640
|
- 0
|
|
641
|
-
hash:
|
|
641
|
+
hash: 1589277993808003914
|
|
642
642
|
requirements: []
|
|
643
643
|
rubyforge_project:
|
|
644
644
|
rubygems_version: 1.8.23
|