geordi 2.1.0 → 2.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd4118d5ea35ff6c548d5ad3f158410fd2ac83edda2b181be2454f8228946825
4
- data.tar.gz: b114780373ad8673f40eab2c65412dd334eecc6d97e6786a523fa7a3d9017958
3
+ metadata.gz: 798b88d15991f16a8c7b78a2a7509f61181f47ecb838f1c4607db8f2686da166
4
+ data.tar.gz: 7a4d7bf12621ff4c9d13759e80358e5f9f0cb4739ee538b32b7d4e97b3d0e064
5
5
  SHA512:
6
- metadata.gz: 4523d1f1c32f42ebdd15a9d66b032bf9f220b94835c4aa71f9e3e24a2675b5c6806cec3ea80f225a03d8640002fa229e044fed72cc9e6392d56413bc01ee371b
7
- data.tar.gz: 77c57c948d4f95880e9f55211d6ab3e7a079ac2bb0e4c4b1e0757aa291facaa224f56899ff435a3b846273dd8c5390a564235e17625cecc71735226a62d7c5c9
6
+ metadata.gz: 9efe9b47f6d37bee9d9a97f5e087157be3c59551474c1105ba24f92f5a39928abb46abc3efeed569937263998105193e92b8c2180e226a40ce7581085f104c93
7
+ data.tar.gz: ceabaa4cf3773c8b7a4c223a30a27a51e79291a16c101a1daac4d188ca658e283f2f7183e3ab1079f3fba517bad845810edd27c67c98cd3fcddc8f6457816164
data/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 2.2.0 2019-02-28
10
+
11
+ ### Compatible changes
12
+ - Fixes [#67]: Don't run yarn install unless needed
13
+
9
14
  ## 2.1.0 2019-02-25
10
15
 
11
16
  ### Compatible changes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- geordi (2.0.0)
4
+ geordi (2.1.0)
5
5
  thor (>= 0.18.0)
6
6
 
7
7
  GEM
@@ -12,10 +12,11 @@ def console(target = 'development', *args)
12
12
  require 'geordi/remote'
13
13
 
14
14
  if target == 'development'
15
+ invoke_cmd 'yarn_install'
16
+
15
17
  announce 'Opening a local Rails console'
16
18
 
17
19
  Util.system! Util.console_command(target)
18
-
19
20
  else
20
21
  announce 'Opening a Rails console on ' + target
21
22
 
@@ -49,7 +49,7 @@ def cucumber(*args)
49
49
  require 'geordi/cucumber'
50
50
 
51
51
  invoke_cmd 'bundle_install'
52
- invoke_cmd 'yarn'
52
+ invoke_cmd 'yarn_install'
53
53
 
54
54
  cmd_opts, files = args.partition { |f| f.start_with? '-' }
55
55
  cmd_opts << '--format' << 'pretty' << '--backtrace' if options.debug
@@ -73,7 +73,7 @@ def deploy(target_stage = nil)
73
73
  capistrano_call = "bundle exec #{capistrano_call}" if Util.file_containing?('Gemfile', /capistrano/)
74
74
 
75
75
  invoke_cmd 'bundle_install'
76
- invoke_cmd 'yarn'
76
+ invoke_cmd 'yarn_install'
77
77
 
78
78
  puts
79
79
  commands = []
@@ -9,7 +9,7 @@ LONGDESC
9
9
 
10
10
  def migrate
11
11
  invoke_cmd 'bundle_install'
12
- invoke_cmd 'yarn'
12
+ invoke_cmd 'yarn_install'
13
13
  announce 'Migrating'
14
14
 
15
15
  if File.directory?('db/migrate')
@@ -9,7 +9,7 @@ LONGDESC
9
9
  def rspec(*files)
10
10
  if File.exists?('spec/spec_helper.rb')
11
11
  invoke_cmd 'bundle_install'
12
- invoke_cmd 'yarn'
12
+ invoke_cmd 'yarn_install'
13
13
 
14
14
  announce 'Running specs'
15
15
 
@@ -7,7 +7,7 @@ option :public, :aliases => '-P', :type => :boolean,
7
7
 
8
8
  def server(port = nil)
9
9
  invoke_cmd 'bundle_install'
10
- invoke_cmd 'yarn'
10
+ invoke_cmd 'yarn_install'
11
11
  require 'geordi/util'
12
12
 
13
13
  announce 'Booting a development server'
@@ -2,7 +2,7 @@ desc 'unit', 'Run Test::Unit'
2
2
  def unit
3
3
  if File.exists?('test/test_helper.rb')
4
4
  invoke_cmd 'bundle_install'
5
- invoke_cmd 'yarn'
5
+ invoke_cmd 'yarn_install'
6
6
 
7
7
  announce 'Running Test::Unit'
8
8
  Util.system! 'bundle exec rake test'
@@ -2,7 +2,7 @@ desc 'with-rake', 'Run tests with `rake`', :hide => true
2
2
  def with_rake
3
3
  if Util.file_containing?('Rakefile', /^task.+default.+(spec|test|feature)/)
4
4
  invoke_cmd 'bundle_install'
5
- invoke_cmd 'yarn'
5
+ invoke_cmd 'yarn_install'
6
6
 
7
7
  announce 'Running tests with `rake`'
8
8
  Util.system! 'rake'
@@ -0,0 +1,8 @@
1
+ desc 'yarn-install', 'Runs yarn install if required', :hide => true
2
+
3
+ def yarn_install
4
+ if File.exists?('package.json') and !system('yarn check --integrity > /dev/null 2>&1')
5
+ announce 'Yarn install'
6
+ Util.system! 'yarn install'
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '2.1.0'
2
+ VERSION = '2.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geordi
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-25 00:00:00.000000000 Z
11
+ date: 2019-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -120,7 +120,7 @@ files:
120
120
  - lib/geordi/commands/version.rb
121
121
  - lib/geordi/commands/vnc.rb
122
122
  - lib/geordi/commands/with_rake.rb
123
- - lib/geordi/commands/yarn.rb
123
+ - lib/geordi/commands/yarn_install.rb
124
124
  - lib/geordi/cucumber.rb
125
125
  - lib/geordi/db_cleaner.rb
126
126
  - lib/geordi/dump_loader.rb
@@ -1,7 +0,0 @@
1
- desc 'yarn', 'Runs yarn install', :hide => true
2
-
3
- def yarn
4
- if File.exists?('package.json')
5
- Util.system! 'yarn'
6
- end
7
- end