monorepo 0.1.4 → 0.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: b415a8385568fbed54da736811d7986973261fefa4e0d0703422ff53b886f651
4
- data.tar.gz: 3e92f8746b80d55467ed21f33cd798abd1cca3a65885aaa2aaf1f0c657db131d
3
+ metadata.gz: 2e38fc26186e81555cb7bfd02fbc29465686215904a739fe515115c63d61bc8c
4
+ data.tar.gz: c8ca018fb6e1bcb9a83d3d129afd0676a7371ab8f93d488f1fb945126f69ce3a
5
5
  SHA512:
6
- metadata.gz: 89049aaf2e35dcd3a5cb7864d8a6db0433d51eb5ccf133cacc7551e7a60d869963fa893c60f64072cb89034c5227a5ff73e078a5d2233a182e956f14f9b2240d
7
- data.tar.gz: 847073fe1bc6a8ee053cb43e6aa7dcecaacda799d7d76b4acd7b046c321896be73c2b9539ba6109d9ba434abe97f0ad4695a3eb4f9fe516d866f65ac246f1eb2
6
+ metadata.gz: 1a0297a8193fe091be2be55ac5f2f0c51bb4aa8b87cd2d68ffdcb85800a30f8eb36c05b90f3936a55b54ff7ef689b4b27fab0e85b356a9f4edbe42b3c889e3d5
7
+ data.tar.gz: 30fe9513dc58b6e79c60d1f9db9512e301e39ec8668ed23b5e514bfbbc0dc5b41d47a6bd0582f258cc912caa353500ca4881f92ec9df6e2d111ba9d15b243073
data/.rubocop.yml CHANGED
@@ -1,9 +1,6 @@
1
1
  Style/Documentation:
2
2
  Enabled: false
3
3
 
4
- Style/TrailingCommaInLiteral:
5
- EnforcedStyleForMultiline: consistent_comma
6
-
7
4
  Metrics/BlockLength:
8
5
  Enabled: false
9
6
 
@@ -21,3 +18,9 @@ Metrics/CyclomaticComplexity:
21
18
 
22
19
  AllCops:
23
20
  TargetRubyVersion: 2.2
21
+
22
+ Style/TrailingCommaInArrayLiteral:
23
+ EnforcedStyleForMultiline: consistent_comma
24
+
25
+ Style/TrailingCommaInHashLiteral:
26
+ EnforcedStyleForMultiline: consistent_comma
data/lib/commands/exec.rb CHANGED
@@ -1,4 +1,6 @@
1
1
  class MonorepoCLI
2
+ EXIT_STATUS_ZERO = 0
3
+
2
4
  desc 'exec [COMMAND]', 'exec commands at all the monorepo repo'
3
5
  method_option :config_filename, aliases: '-c'
4
6
  method_option :bundler, aliases: '-b'
@@ -32,6 +34,8 @@ class MonorepoCLI
32
34
  subdirs.each do |gem|
33
35
  puts "executing `#{local_command_str}` at #{gem}..."
34
36
  system "cd #{gem} && pwd && #{local_command_str}"
37
+ status = $CHILD_STATUS
38
+ exit status.exitstatus unless status.exitstatus == EXIT_STATUS_ZERO
35
39
  end
36
40
  end
37
41
  end
data/lib/monorepo.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'English'
1
2
  require 'thor'
2
3
  require_relative './version'
3
4
 
data/lib/version.rb CHANGED
@@ -1 +1 @@
1
- MONOREPO_VERSION = '0.1.4'.freeze
1
+ MONOREPO_VERSION = '0.2.0'.freeze
data/monorepo.gemspec CHANGED
@@ -1,5 +1,4 @@
1
-
2
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require './lib/version'
5
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monorepo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kamataryo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-27 00:00:00.000000000 Z
11
+ date: 2018-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor