sumodev 1.5.3 → 1.6.1

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
  SHA1:
3
- metadata.gz: 825c59c6c00a2914423dc9ea12d4e3361e3d2250
4
- data.tar.gz: dbd53d5efc15a3c6a6d05962e8a94dda2624f01e
3
+ metadata.gz: 6e3dae72b193cff5746b11dd6a6730dbdf36ab15
4
+ data.tar.gz: 82f33d907b89fc5d85d35f4bd0d9d84811c7b1eb
5
5
  SHA512:
6
- metadata.gz: 61b50c50eb0c4bb3725f4e92c42cd7c2371daa38a51a241ab3d8f830464e978f403ee30704106fee13f513e1e581fe0518e156ffaf742573545ffe676ec73993
7
- data.tar.gz: 62ad79623691861dcbf6416284f48a4e9f411b7b44c79c61a7bf6d81f80040b3902850b352d0050c4fb897a8a9a7118c3c1e9ff8c9bc55a2e616063034361ece
6
+ metadata.gz: 53bf7d9564bfdf2cf545e780d06c218e93a276366207a005ab2ef8d2dfeb4b07c304de12a4618ef3db93f344d7fcebbc2dc6d290f528c9048f64271019ab6fa2
7
+ data.tar.gz: 2f36dc4e3fe57b2d573cffc6c33159800d56d67be628d1ab76606e0961c8a182f83156171f43d0fe38fbb2fea60856c3c5386d550c9f12838ad51f59483dde71
data/Gemfile CHANGED
@@ -4,3 +4,4 @@ gem 'thor'
4
4
  gem 'activesupport'
5
5
  gem 'net-ssh'
6
6
  gem 'net-scp'
7
+ gem 'rake'
data/Gemfile.lock CHANGED
@@ -9,6 +9,7 @@ GEM
9
9
  net-scp (1.1.2)
10
10
  net-ssh (>= 2.6.5)
11
11
  net-ssh (2.6.8)
12
+ rake (10.5.0)
12
13
  thor (0.19.1)
13
14
 
14
15
  PLATFORMS
@@ -18,4 +19,8 @@ DEPENDENCIES
18
19
  activesupport
19
20
  net-scp
20
21
  net-ssh
22
+ rake
21
23
  thor
24
+
25
+ BUNDLED WITH
26
+ 1.11.2
@@ -53,6 +53,7 @@ class Sumodev::Commands::Project < Sumodev::Command
53
53
  option :project_path, :desc => "the path where the project should be placed"
54
54
  option :bundles, :type => :boolean, :default => true, :desc => "install bundles"
55
55
  option :node_modules, :type => :boolean, :default => true, :desc => "install node-modules"
56
+ option :npm_shrinkwrap, :type => :boolean, :default => true, :desc => "create npm shrinkwrap"
56
57
  option :bower, :type => :boolean, :default => true, :desc => "install bower packages"
57
58
  option :composer, :type => :boolean, :default => true, :desc => "install composer packages"
58
59
  option :composer_run_scripts, :type => :boolean, :default => true, :desc => "run composer scripts"
@@ -102,6 +103,7 @@ class Sumodev::Commands::Project < Sumodev::Command
102
103
  # install assets
103
104
  install_bundles(project_path) if options[:bundles]
104
105
  install_node_modules(project_path) if options[:node_modules]
106
+ create_npm_shrinkwrap(project_path) if options[:npm_shrinkwrap]
105
107
  install_bower_packages(project_path) if options[:bower]
106
108
  install_composer_packages(project_path, options[:composer_run_scripts]) if options[:composer]
107
109
 
@@ -263,12 +265,23 @@ class Sumodev::Commands::Project < Sumodev::Command
263
265
  run_command_without_output(
264
266
  [
265
267
  "npm install",
266
- "npm shrinkwrap --dev",
267
268
  ],
268
269
  path,
269
270
  "--> Installing node modules")
270
271
  end
271
272
 
273
+ def create_npm_shrinkwrap(path)
274
+ unless File.file?("#{path}/package.json")
275
+ return
276
+ end
277
+
278
+ run_command_without_output([
279
+ "npm shrinkwrap --dev",
280
+ ],
281
+ path,
282
+ "--> Creating npm shrinkwrap")
283
+ end
284
+
272
285
  def install_bower_packages(path)
273
286
  unless File.file?("#{path}/bower.json")
274
287
  return
@@ -298,8 +311,7 @@ class Sumodev::Commands::Project < Sumodev::Command
298
311
  "cp -r src/Frontend/Themes/Bootstrap src/Frontend/Themes/Custom",
299
312
  "sed -i '' -e 's|.*<name>bootstrap</name>.*| <name>custom</name>|g' src/Frontend/Themes/Custom/info.xml",
300
313
  "sed -i '' -e 's/set :theme.*/set :theme, \"Custom\"/g' Capfile",
301
- "sed -i '' -e 's/.*\"theme\":.*/ \"theme\": \"Custom\",/g' package.json",
302
- "mysql #{database} -e \"UPDATE modules_settings SET value='s:6:\\\"Custom\\\"' where module='Core' and name='theme'\""
314
+ "sed -i '' -e 's/.*\"theme\":.*/ \"theme\": \"Custom\",/g' package.json"
303
315
  ],
304
316
  path,
305
317
  "--> Creating the initial Custom theme"
@@ -1,3 +1,3 @@
1
1
  module Sumodev
2
- VERSION = "1.5.3"
2
+ VERSION = "1.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sumodev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan De Poorter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-27 00:00:00.000000000 Z
11
+ date: 2016-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -28,42 +28,42 @@ dependencies:
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: net-ssh
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: net-scp
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: A command line tool to access all things you want