cide 0.0.4 → 0.0.5

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: cc53228b6d632d1c764d54c902e48d811ab2bc2c
4
- data.tar.gz: 0bd7d12a1190e1a2f12c066a53147bb0d62b71a7
3
+ metadata.gz: 18da16129a84f961ea93066787140bdf7c89defc
4
+ data.tar.gz: 8df1aaded524d1a2df47628b982cdda2f5d28041
5
5
  SHA512:
6
- metadata.gz: 93cdf9ff055f8828493f60a29a55fdf21b83b8d77f56390881c79203a484ea767f82fd0eb0cf6dd1f577558a38f7e8206d9d6ee44151cbf4e383f3cc1b39c2d0
7
- data.tar.gz: 9e47a1a744c63180b365637087a40721e7abd9ce9508f731b1f5297bf5bdfc60f30f0b9f3e49fde28f76397ba730a1180d64df4df3fd850e5436e199567f2491
6
+ metadata.gz: cfa7429e67824465b72ba271a135d68449e2296dd21d3f1ec7af45007d9fb62438774f9ea23a7007382cfa2af30ef499daf2fdbd0f438897f7b972941ab26f17
7
+ data.tar.gz: 970631b86f66bb4ca3afa07428a260bee93b3ae42788cd4f9bd5f29c75d5af29347c303520e7953e9f3b4f052c7932a92aa0a94c4ece1c08eae0f0a4166a0820
data/.rubocop.yml CHANGED
@@ -16,3 +16,7 @@ Style/AlignParameters:
16
16
  # Keep them sorted alphabetically unless a meaningful order exists
17
17
  Style/TrailingComma:
18
18
  EnforcedStyleForMultiline: comma
19
+
20
+ # $? is not equivalent to $CHILD_STATUS
21
+ Style/SpecialGlobalVars:
22
+ Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ 0.0.5 / 2014-10-03
3
+ ==================
4
+
5
+ * FIX: Regression with exit-status handling
6
+
2
7
  0.0.4 / 2014-10-03
3
8
  ==================
4
9
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cide (0.0.3)
4
+ cide (0.0.4)
5
5
  thor
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -62,8 +62,3 @@ TODO
62
62
  * linked container
63
63
  * schema validation
64
64
  * use the /cache volume
65
- * multi-container runs
66
- * `cide setup` to configure inside of a project
67
- * `cide gc` to cleanup old cide builds
68
- * travis.yml compatiblity with docker containers that map to languages
69
- * add ways of exporting artifacts
data/cide.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'cide'
5
- s.version = '0.0.4'
5
+ s.version = '0.0.5'
6
6
  s.authors = ['zimbatm']
7
7
  s.email = ['zimbatm@zimbatm.com']
8
8
  s.summary = 'CI docker runner'
data/lib/cide.rb CHANGED
@@ -83,16 +83,16 @@ module CIDE
83
83
  aliases: ['o'],
84
84
  default: nil
85
85
 
86
- method_option 'run',
87
- desc: 'The script to run',
88
- aliases: ['r'],
89
- default: DefaultConfig.run
90
-
91
86
  method_option 'export',
92
87
  desc: 'Are we expecting to export artifacts',
93
88
  type: :boolean,
94
89
  default: false
95
90
 
91
+ method_option 'run',
92
+ desc: 'The script to run',
93
+ aliases: ['r'],
94
+ default: DefaultConfig.run
95
+
96
96
  def build
97
97
  setup_docker
98
98
 
@@ -102,6 +102,7 @@ module CIDE
102
102
 
103
103
  say_status :config, config.to_h
104
104
 
105
+ # FIXME: Move Dockerfile out of the way if it exists
105
106
  if !File.exist?(DOCKERFILE)
106
107
  say_status :Dockerfile, 'Creating temporary Dockerfile'
107
108
  File.write(DOCKERFILE, config.to_dockerfile)
@@ -216,7 +217,7 @@ module CIDE
216
217
  def docker(*args)
217
218
  opts = args.last.is_a?(Hash) ? args.pop : {}
218
219
  ret = run Shellwords.join(['docker'] + args), opts
219
- fail 'Command failed' if $CHILD_STATUS.exitstatus > 0
220
+ fail 'Command failed' if $?.exitstatus > 0
220
221
  ret
221
222
  end
222
223
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - zimbatm