locomotivecms_wagon 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +1 -1
- data/generators/blank/app/assets/.browserslistrc +4 -0
- data/generators/blank/app/assets/webpack.prod.js +1 -1
- data/generators/blank/package.json.tt +1 -0
- data/generators/cloned/.gitignore +7 -0
- data/generators/cloned/Gemfile.tt +6 -8
- data/lib/locomotive/wagon.rb +2 -2
- data/lib/locomotive/wagon/cli.rb +7 -4
- data/lib/locomotive/wagon/commands/clone_command.rb +1 -1
- data/lib/locomotive/wagon/commands/pull_sub_commands/concerns/assets_concern.rb +1 -1
- data/lib/locomotive/wagon/generators/site/cloned.rb +0 -8
- data/lib/locomotive/wagon/version.rb +1 -1
- data/locomotivecms_wagon.gemspec +3 -3
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e42c998483b5cefa3fc5bf21819e3232312291aa94812e2248f603c1d5d848e9
|
4
|
+
data.tar.gz: 5e3c6cd26cc1b076f77fa51ed0a9a8de8dc70495e6d8c66dee68ce998b56f24e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32e004fff9976148fa148d41c5a5c86914efb8c04b30aa42a26c4acb3c02ed321394e3f3f850dfb71e15d0299d911054a6dd18dbf02d397925ca71561830a01d
|
7
|
+
data.tar.gz: 4eebc5be0a52552a408b6652738e6f6892abdb720267b7fd23c94faf461c71c614de44972951190c6dc8af918987a0a80fdef5b2ad267018512d072f0caedee8
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,22 +1,20 @@
|
|
1
|
+
# By default, Wagon 3 doesn't need `bundle exec` to be executed.
|
2
|
+
# However, if down the road, you want to run a specific version of Wagon or try a new version
|
3
|
+
# without overriding the global Wagon binary, please use this Gemfile.
|
4
|
+
|
1
5
|
source 'https://rubygems.org'
|
2
6
|
|
3
7
|
gem 'locomotivecms_wagon', '~> <%= config[:version] -%>'
|
4
8
|
|
5
9
|
group :development do
|
6
10
|
# Mac OS X
|
7
|
-
gem 'rb-fsevent', '~> 0.
|
11
|
+
gem 'rb-fsevent', '~> 0.10.0', require: 'rb-fsevent' if RUBY_PLATFORM.include?('darwin')
|
8
12
|
|
9
13
|
# Unix
|
10
14
|
gem 'therubyracer', require: 'v8', platforms: :ruby unless RUBY_PLATFORM.include?('darwin')
|
11
15
|
|
12
|
-
gem 'rb-inotify', '~> 0.
|
16
|
+
gem 'rb-inotify', '~> 0.10.0', require: 'rb-inotify' if RUBY_PLATFORM.include?('linux')
|
13
17
|
|
14
18
|
# Windows
|
15
19
|
gem 'wdm', '~> 0.1.1', require: 'wdm' if RUBY_PLATFORM =~ /mswin|mingw/i
|
16
20
|
end
|
17
|
-
|
18
|
-
group :misc do
|
19
|
-
# Add your extra gems here
|
20
|
-
# gem 'susy', require: 'susy'
|
21
|
-
# gem 'bourbon', require: 'bourbon'
|
22
|
-
end
|
data/lib/locomotive/wagon.rb
CHANGED
@@ -121,13 +121,13 @@ module Locomotive
|
|
121
121
|
Locomotive::Wagon::DeleteCommand.delete(env, path, resource, slug, shell)
|
122
122
|
end
|
123
123
|
|
124
|
-
def self.require_misc_gems
|
124
|
+
def self.require_misc_gems
|
125
125
|
return if ENV['WAGON_GEMFILE'].nil?
|
126
126
|
|
127
127
|
# at this point, we are sure that in a bundle exec contact
|
128
128
|
begin
|
129
129
|
require 'bundler'
|
130
|
-
::Bundler.require(:misc)
|
130
|
+
::Bundler.require(:misc)
|
131
131
|
rescue Exception => e
|
132
132
|
puts "Warning: cant' require the Gemfile misc group, reason: #{e.message}"
|
133
133
|
# Bundler is not defined or there is an issue
|
data/lib/locomotive/wagon/cli.rb
CHANGED
@@ -414,16 +414,19 @@ module Locomotive
|
|
414
414
|
#
|
415
415
|
# @param [ String ] name The name of the site
|
416
416
|
# @param [ String ] path The path of the local site
|
417
|
+
# @param [ Boolean ] assets True (default) if we want to display the instructions about Webpack
|
417
418
|
#
|
418
|
-
def print_next_instructions_when_site_created(name, path)
|
419
|
+
def print_next_instructions_when_site_created(name, path, assets = true)
|
419
420
|
say "\nCongratulations, your site \"#{name}\" has been created successfully !", :green
|
420
421
|
say "\nNext steps:\n", :bold
|
421
422
|
say "\n# Run the local web server", :on_blue
|
422
423
|
say "\n\tcd #{path}/#{name}"
|
423
424
|
say "\twagon serve"
|
424
|
-
|
425
|
-
|
426
|
-
|
425
|
+
if assets
|
426
|
+
say "\n# Compile assets (in a another terminal, use tmux for instance)", :on_blue
|
427
|
+
say "\n\tyarn"
|
428
|
+
say "\tyarn start"
|
429
|
+
end
|
427
430
|
say "\n# Preview your site!", :on_blue
|
428
431
|
say "\n\topen http://0.0.0.0:3333\n\n", :bold
|
429
432
|
end
|
@@ -26,7 +26,7 @@ module Locomotive::Wagon
|
|
26
26
|
def create_site
|
27
27
|
require 'locomotive/wagon/generators/site'
|
28
28
|
generator = Locomotive::Wagon::Generators::Site::Cloned
|
29
|
-
generator.start [name, path,
|
29
|
+
generator.start [name, path, connection_info]
|
30
30
|
end
|
31
31
|
|
32
32
|
def pull_site
|
@@ -78,7 +78,7 @@ module Locomotive::Wagon
|
|
78
78
|
if binary = get_asset_binary(url)
|
79
79
|
FileUtils.mkdir_p(File.dirname(filepath))
|
80
80
|
|
81
|
-
(binary_file = Tempfile.new(File.basename(filepath))).write(binary)
|
81
|
+
(binary_file = Tempfile.new(File.basename(filepath)).binmode).write(binary)
|
82
82
|
|
83
83
|
find_unique_filepath(filepath, binary_file).tap do |filepath|
|
84
84
|
File.open(filepath, 'wb') { |f| f.write(binary) }
|
data/locomotivecms_wagon.gemspec
CHANGED
@@ -13,9 +13,9 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.homepage = 'https://www.locomotivecms.com'
|
14
14
|
gem.license = 'MIT'
|
15
15
|
|
16
|
-
gem.files = Dir['bin/*'] +
|
16
|
+
gem.files = Dir['bin/*'] +
|
17
17
|
Dir.glob('generators/**/*', File::FNM_DOTMATCH) +
|
18
|
-
Dir['lib/**/*.rb'] +
|
18
|
+
Dir['lib/**/*.rb'] +
|
19
19
|
%w(locomotivecms_wagon.gemspec MIT-LICENSE README.md)
|
20
20
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
21
21
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
@@ -31,7 +31,7 @@ Gem::Specification.new do |gem|
|
|
31
31
|
|
32
32
|
gem.add_dependency 'locomotivecms_common', '~> 0.4.0'
|
33
33
|
gem.add_dependency 'locomotivecms_coal', '~> 1.6.0'
|
34
|
-
gem.add_dependency 'locomotivecms_steam', '~> 1.5.
|
34
|
+
gem.add_dependency 'locomotivecms_steam', '~> 1.5.1'
|
35
35
|
|
36
36
|
gem.add_dependency 'haml', '~> 5.1.2'
|
37
37
|
gem.add_dependency 'listen', '~> 3.1.5'
|
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: 3.0.
|
4
|
+
version: 3.0.3
|
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:
|
12
|
+
date: 2020-01-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -115,14 +115,14 @@ dependencies:
|
|
115
115
|
requirements:
|
116
116
|
- - "~>"
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: 1.5.
|
118
|
+
version: 1.5.1
|
119
119
|
type: :runtime
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
123
|
- - "~>"
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: 1.5.
|
125
|
+
version: 1.5.1
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: haml
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,6 +196,7 @@ files:
|
|
196
196
|
- generators/blank/.gitignore
|
197
197
|
- generators/blank/Gemfile.tt
|
198
198
|
- generators/blank/app/assets/.babelrc
|
199
|
+
- generators/blank/app/assets/.browserslistrc
|
199
200
|
- generators/blank/app/assets/fonts/.empty_directory
|
200
201
|
- generators/blank/app/assets/javascripts/app.js
|
201
202
|
- generators/blank/app/assets/javascripts/sections/_manager.js
|
@@ -225,6 +226,7 @@ files:
|
|
225
226
|
- generators/blank/public/samples/.empty_directory
|
226
227
|
- generators/blank/public/samples/images/default.svg
|
227
228
|
- generators/blank/public/stylesheets/.empty_directory
|
229
|
+
- generators/cloned/.gitignore
|
228
230
|
- generators/cloned/Gemfile.tt
|
229
231
|
- generators/cloned/app/content_types/.empty_directory
|
230
232
|
- generators/cloned/app/views/pages/.empty_directory
|