drydocker 0.1.1 → 0.1.2

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: 10350c4f8c940caa2514d76a8f263ff76d126123
4
- data.tar.gz: 832d5f0b40e15743fa4c9939de917731d2a4a21e
3
+ metadata.gz: a9810aa645bfaeb58086951c06010fb2526448aa
4
+ data.tar.gz: b2a32417a306d56c8b40167b9bd24136247b2edd
5
5
  SHA512:
6
- metadata.gz: c0efc2edb1f30c3866e744d2d10e5b2ee6454206915015b8c253dfea1d115b281a2fd823b3d414679bf97f397e86ab61402902f3034d6cd7a28590249dd077b0
7
- data.tar.gz: f7f281edf1176ac9165cd4911df24b0ba782d0181967d3da85e01b9b41dc79b1ef7e1a3df89e3180623980703db811412b02103313248a30a11222d8ac5757bd
6
+ metadata.gz: 67499c017318d239abbbfd89c0666460b56bdbd6a711d6294c98dd29f686e564ea19e943a69d2fb040bc7059c271764fcdc19e2d6041e3f0c0749d8d28fea6e3
7
+ data.tar.gz: d4245594261ff0e02975d0ad941febf5c1b444c0f4e95d91f311c2b08ea72b3c07209cee7bbd3bb8a07bb99096ac10f69e4219141f74a530d27e068476b4a845
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # drydocker
2
2
 
3
+ [![wercker status](https://app.wercker.com/status/b00d4339862ef12b880f0022b6d20b2a/s "wercker status")](https://app.wercker.com/project/bykey/b00d4339862ef12b880f0022b6d20b2a)
4
+
3
5
  A project to provide a simple continuous testing tool.
4
6
 
5
7
  ## Installation
@@ -9,10 +11,16 @@ image (`docker pull silarsis/drydocker`)
9
11
 
10
12
  ## Usage
11
13
 
12
- If installed as a gem, you will have a `drydocker` executable. If installed as
13
- a docker image, your command to run drydocker is `docker run -it silarsis/drydocker`
14
+ When installed as a gem, you will have a `drydocker` executable. Running with
15
+ `-h` will provide up-to-date usage instructions.
16
+
17
+ Basic usage is to run `drydocker` in the top level directory of the project
18
+ you're working on - by default, it will mount that directory into an image
19
+ that has enough for running rspec installed, and will run `rspec spec` every
20
+ time it sees a change in the directory.
14
21
 
15
- In either case, running with `-h` will provide up-to-date usage instructions.
22
+ You can specify particular images to run in and commands to run at command line
23
+ if you need to run your tests in a different way or container.
16
24
 
17
25
  ## Contributing to drydocker
18
26
 
data/Rakefile CHANGED
@@ -11,6 +11,10 @@ rescue Bundler::BundlerError => e
11
11
  end
12
12
  require 'rake'
13
13
 
14
+ def version
15
+ File.exist?('VERSION') ? File.read('VERSION').strip : ''
16
+ end
17
+
14
18
  require 'jeweler'
15
19
  Jeweler::Tasks.new do |gem|
16
20
  gem.name = 'drydocker'
@@ -34,8 +38,6 @@ task default: :test
34
38
 
35
39
  require 'rdoc/task'
36
40
  Rake::RDocTask.new do |rdoc|
37
- version = File.exist?('VERSION') ? File.read('VERSION') : ''
38
-
39
41
  rdoc.rdoc_dir = 'rdoc'
40
42
  rdoc.title = "drydocker #{version}"
41
43
  rdoc.rdoc_files.include('README*')
@@ -45,6 +47,14 @@ end
45
47
  namespace :build do
46
48
  desc 'Build the Docker container'
47
49
  task :docker do
48
- system('docker build -t silarsis/drydocker .')
50
+ system("docker build -t silarsis/drydocker:#{version} .")
51
+ system("docker tag -f silarsis/drydocker:#{version} silarsis/drydocker:latest")
52
+ end
53
+ end
54
+
55
+ namespace :release do
56
+ desc 'Release the Docker container'
57
+ task :docker do
58
+ system("docker push silarsis/drydocker:#{version}")
49
59
  end
50
60
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/drydocker.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: drydocker 0.1.1 ruby lib
5
+ # stub: drydocker 0.1.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "drydocker"
9
- s.version = "0.1.1"
9
+ s.version = "0.1.2"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
data/lib/drydocker.rb CHANGED
@@ -18,7 +18,7 @@ module Drydocker
18
18
 
19
19
  def initialize(params = {})
20
20
  config = Config.default_config.merge(params)
21
- @name = config[:name] || "#{config[:image]}-test"
21
+ @name = config[:name] || "#{config[:image].sub('/', '-')}-test"
22
22
  @entrypoint = config[:entrypoint]
23
23
  @image = config[:image]
24
24
  @command = config[:command]
@@ -6,7 +6,7 @@ module Drydocker
6
6
  describe Config do
7
7
  context 'with basic configuration' do
8
8
  let(:config) { Config.new }
9
- specify { expect(config.name).to eq 'silarsis/drydocker-test' }
9
+ specify { expect(config.name).to eq 'silarsis-drydocker-test' }
10
10
  specify { expect(config.entrypoint).to be_nil }
11
11
  specify { expect(config.image).to eq 'silarsis/drydocker' }
12
12
  specify { expect(config.command).to eq 'rspec spec' }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drydocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Littlejohn