starting_blocks 1.3.0 → 1.3.1

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
  SHA1:
3
- metadata.gz: 3ce4e880814c71fa1c9174d5cd5434ea103adf95
4
- data.tar.gz: 0a161dd6c02163a8af232282868e8f64dbdf5b1e
3
+ metadata.gz: 73cec2160c61ea89f777f22ef48cb7355bdfd1b9
4
+ data.tar.gz: f4e366762b126c7998e2df85bcd0753e144f1feb
5
5
  SHA512:
6
- metadata.gz: a805f694449086284b027a891c9801d8e5f5b6a49845ec712b3eb5baa361926ba620e244ab7722ce792bbd085fc9faa0c2112c850e3b987c91f66b626b73c5bf
7
- data.tar.gz: 00f70b03454fad00d7323e33d0826b76547e96c03328202a2480d5db3afe4b76994ecd366177b10c67228f8cb9d3a838758a1a70859f5c4e271b296c4e3663e5
6
+ metadata.gz: 04f501524e2b4e0ca19cb37476d9adfae836c4c7dac0cdfe6ee0d99d7503cc28f3b83c7f15199a19cd4554638049ffa0138fc894b9f599a9a4bd8419177a4596
7
+ data.tar.gz: 4c249e2f0ab5ff8d295fa7401b545ebaa2bb60fe9789644dcbf58fea77c316fd5fb02744735e090bbbfe9a5a1f8dca2e0128696a7e9ce6bd247eeb0148106045
@@ -1,6 +1,7 @@
1
1
  module StartingBlocks
2
2
  module Bash
3
3
  def self.run command
4
+ puts "Running: #{command}" if StartingBlocks.verbose
4
5
  text = `#{command}`
5
6
  result = $?
6
7
  {
@@ -51,11 +51,12 @@ module StartingBlocks
51
51
 
52
52
  def execute_these_files files
53
53
  requires = files.map { |x| "require '#{x}'" }.join("\n")
54
- if options[:use_bundler]
55
- Bash.run "bundle exec ruby -e \"#{requires}\""
56
- else
57
- Bash.run "ruby -e \"#{requires}\""
58
- end
54
+ command = if options[:use_bundler]
55
+ "bundle exec ruby -e \"#{requires}\""
56
+ else
57
+ "ruby -e \"#{requires}\""
58
+ end
59
+ Bash.run command
59
60
  end
60
61
 
61
62
  end
@@ -1,3 +1,3 @@
1
1
  module StartingBlocks
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: starting_blocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Cauthon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-21 00:00:00.000000000 Z
11
+ date: 2014-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler