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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57c2e34dcbc2bebe704d87beae5cf7cba03f745b98213d24a241be72639ea695
4
- data.tar.gz: bfce871397862b72e3c683f903c8e8eb2d0185a90774271ba4dfe62fa30c4a44
3
+ metadata.gz: e42c998483b5cefa3fc5bf21819e3232312291aa94812e2248f603c1d5d848e9
4
+ data.tar.gz: 5e3c6cd26cc1b076f77fa51ed0a9a8de8dc70495e6d8c66dee68ce998b56f24e
5
5
  SHA512:
6
- metadata.gz: 3bc8a189495793048947446e05e95b417c0059f0518efc71b9d7b5d8c7e6d86ab5f0337d4e156b0c75b289bb9b35a7780af325cf695347bef1e25d941e241bfc
7
- data.tar.gz: e98dbbb7f68c1b573b8e9924c6687c39c9c82039ea4125209651ed4781178f0032f914b01b4b532b07f30e7fc16603668e1f9358a3ecd7f9563fa6a04a613d6e
6
+ metadata.gz: 32e004fff9976148fa148d41c5a5c86914efb8c04b30aa42a26c4acb3c02ed321394e3f3f850dfb71e15d0299d911054a6dd18dbf02d397925ca71561830a01d
7
+ data.tar.gz: 4eebc5be0a52552a408b6652738e6f6892abdb720267b7fd23c94faf461c71c614de44972951190c6dc8af918987a0a80fdef5b2ad267018512d072f0caedee8
data/MIT-LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019 NoCoffee
3
+ Copyright (c) 2020 NoCoffee
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
data/README.md CHANGED
@@ -61,4 +61,4 @@ Please, visit the documentation website of Locomotive.
61
61
 
62
62
  Feel free to contact me (didier at nocoffee dot fr).
63
63
 
64
- Copyright (c) 2019 NoCoffee, released under the MIT license
64
+ Copyright (c) 2020 NoCoffee, released under the MIT license
@@ -0,0 +1,4 @@
1
+ defaults
2
+ not IE 11
3
+ not IE_Mob 11
4
+ maintained node versions
@@ -1,5 +1,5 @@
1
1
  const merge = require('webpack-merge');
2
- const common = require('./webpack.config.js');
2
+ const common = require('./webpack.common.js');
3
3
  const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
4
4
 
5
5
  module.exports = merge(common, {
@@ -14,6 +14,7 @@
14
14
  "dependencies": {
15
15
  },
16
16
  "devDependencies": {
17
+ "autoprefixer": "^9.7.3",
17
18
  "@babel/core": "^7.4.3",
18
19
  "@babel/plugin-proposal-class-properties": "^7.4.0",
19
20
  "babel-loader": "^8.0.5",
@@ -0,0 +1,7 @@
1
+ .DS_Store
2
+ Guardfile
3
+ log/
4
+ node_modules/
5
+ config/deploy.yml
6
+ public/stylesheets/bundle.css
7
+ public/javascripts/bundle.js
@@ -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.9.1', require: 'rb-fsevent' if RUBY_PLATFORM.include?('darwin')
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.9', require: 'rb-inotify' if RUBY_PLATFORM.include?('linux')
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
@@ -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
@@ -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
- say "\n# Compile assets (in a another terminal, use tmux for instance)", :on_blue
425
- say "\n\tyarn"
426
- say "\tyarn start"
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, 'true', connection_info]
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) }
@@ -13,14 +13,6 @@ module Locomotive
13
13
  copy_sources_from_generator(generator_name: 'cloned', options: self.connection_info)
14
14
  end
15
15
 
16
- def bundle_install
17
- super
18
- end
19
-
20
- def comment_gemfile
21
- false
22
- end
23
-
24
16
  end
25
17
  end
26
18
  end
@@ -1,5 +1,5 @@
1
1
  module Locomotive
2
2
  module Wagon
3
- VERSION = '3.0.2'
3
+ VERSION = '3.0.3'
4
4
  end
5
5
  end
@@ -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.0'
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.2
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: 2019-11-27 00:00:00.000000000 Z
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.0
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.0
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