snap_ci-parallel_tests 0.0.3 → 0.1.0

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: 52126284c581821e59cbb6ceec8303e4773c2a6c
4
- data.tar.gz: ef05be3b686565bc3cc77349e53eab0c5e337511
3
+ metadata.gz: b661e29b24f4eb8a29c982821f8ddc0c571f1843
4
+ data.tar.gz: 0ddde65b014637c2166604e41e19df4fa7d9b29c
5
5
  SHA512:
6
- metadata.gz: 8642f8b909b72befc68a887205bf96e483cd23c09f5427dce4dd83f51f6ae45860adeed1907cf479ecb0187e05511c5b529077b29833ea1c50c5ad0c3a14d965
7
- data.tar.gz: d59d847919a695b084b78d548c60bc681d6574506e3adebffe9755fc350a304315fbe49f1c7479510dca2b900f538645fe4834378d0430412e808949c08d6f7c
6
+ metadata.gz: 31f4c94e85db361270f10130a58a0202a373a5f81ebd308ccec21ec8d962d944b28d2f1efd76a2f0c7ce1122317c0570e24376249cb66a07753bdb083853f9f7
7
+ data.tar.gz: 9755446927b2bcfa92e0385f1c67513b9bc546c1d7728b3829fe1e8ac632feac46578973b0c1d67f238eefe03f5f4d0b19025bfc00469eb5f2e3fa6c4155e781
data/README.md CHANGED
@@ -22,6 +22,8 @@ And then execute:
22
22
 
23
23
  $ bundle
24
24
 
25
+ > Ruby version support: We will supporting this gem only with ruby 2.2.4. If there is reason you would like to use this gem with some other version of ruby, please get in touch with us by writing to support@snap-ci.com
26
+
25
27
  ## Setup for non-rails
26
28
 
27
29
  Depending on the framework of your choice -
@@ -1,7 +1,11 @@
1
- #!/usr/bin/env ruby
2
- $LOAD_PATH << File.expand_path("../../lib", __FILE__)
3
- require 'snap_ci/parallel_tests'
4
- require 'snap_ci/parallel_tests/cli'
5
- require 'snap_ci/parallel_tests/partition/runner'
1
+ #!/bin/bash
2
+ set -e
6
3
 
7
- SnapCI::ParallelTests::CLI.new(SnapCI::ParallelTests::Partition::Runner.new, ARGV).run
4
+ CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5
+ # More info about this: https://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
6
+
7
+ if [ "$( ruby --version )" != "$( cat $CURRENT_DIR/../.ruby-version )" ]; then
8
+ exec env RBENV_VERSION="$( cat $CURRENT_DIR/../.ruby-version )" $CURRENT_DIR/snap-ci-parallel-partition-assuming-ruby-version-set "$@"
9
+ else
10
+ exec $CURRENT_DIR/snap-ci-parallel-partition-assuming-ruby-version-set "$@"
11
+ fi
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ $LOAD_PATH << File.expand_path("../../lib", __FILE__)
3
+ require 'snap_ci/parallel_tests'
4
+ require 'snap_ci/parallel_tests/cli'
5
+ require 'snap_ci/parallel_tests/partition/runner'
6
+
7
+ SnapCI::ParallelTests::CLI.new(SnapCI::ParallelTests::Partition::Runner.new, ARGV).run
@@ -1,7 +1,11 @@
1
- #!/usr/bin/env ruby
2
- $LOAD_PATH << File.expand_path("../../lib", __FILE__)
3
- require 'snap_ci/parallel_tests'
4
- require 'snap_ci/parallel_tests/cli'
5
- require 'snap_ci/parallel_tests/rspec/runner'
1
+ #!/bin/bash
2
+ set -e
6
3
 
7
- SnapCI::ParallelTests::CLI.new(SnapCI::ParallelTests::RSpec::Runner.new, ARGV).run
4
+ CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5
+ # More info about this: https://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
6
+
7
+ if [ "$( ruby --version )" != "$( cat $CURRENT_DIR/../.ruby-version )" ]; then
8
+ exec env RBENV_VERSION="$( cat $CURRENT_DIR/../.ruby-version )" $CURRENT_DIR/snap-ci-parallel-rspec-assuming-ruby-version-set "$@"
9
+ else
10
+ exec $CURRENT_DIR/snap-ci-parallel-rspec-assuming-ruby-version-set "$@"
11
+ fi
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ $LOAD_PATH << File.expand_path("../../lib", __FILE__)
3
+ require 'snap_ci/parallel_tests'
4
+ require 'snap_ci/parallel_tests/cli'
5
+ require 'snap_ci/parallel_tests/rspec/runner'
6
+
7
+ SnapCI::ParallelTests::CLI.new(SnapCI::ParallelTests::RSpec::Runner.new, ARGV).run
@@ -1,7 +1,11 @@
1
- #!/usr/bin/env ruby
2
- $LOAD_PATH << File.expand_path("../../lib", __FILE__)
3
- require 'snap_ci/parallel_tests'
4
- require 'snap_ci/parallel_tests/cli'
5
- require 'snap_ci/parallel_tests/test/runner'
1
+ #!/bin/bash
2
+ set -e
6
3
 
7
- SnapCI::ParallelTests::CLI.new(SnapCI::ParallelTests::Test::Runner.new, ARGV).run
4
+ CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5
+ # More info about this: https://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
6
+
7
+ if [ "$( ruby --version )" != "$( cat $CURRENT_DIR/../.ruby-version )" ]; then
8
+ exec env RBENV_VERSION="$( cat $CURRENT_DIR/../.ruby-version )" $CURRENT_DIR/snap-ci-parallel-test-assuming-ruby-version-set "$@"
9
+ else
10
+ exec $CURRENT_DIR/snap-ci-parallel-test-assuming-ruby-version-set "$@"
11
+ fi
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ $LOAD_PATH << File.expand_path("../../lib", __FILE__)
3
+ require 'snap_ci/parallel_tests'
4
+ require 'snap_ci/parallel_tests/cli'
5
+ require 'snap_ci/parallel_tests/test/runner'
6
+
7
+ SnapCI::ParallelTests::CLI.new(SnapCI::ParallelTests::Test::Runner.new, ARGV).run
@@ -1,5 +1,5 @@
1
1
  module SnapCI
2
2
  module ParallelTests
3
- VERSION = '0.0.3'
3
+ VERSION = '0.1.0'
4
4
  end
5
5
  end
@@ -17,6 +17,8 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
+
21
+ spec.required_ruby_version = '~> 2.2'
20
22
 
21
23
  spec.add_development_dependency "bundler", "~> 1.4"
22
24
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snap_ci-parallel_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Snap CI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-21 00:00:00.000000000 Z
11
+ date: 2016-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -43,8 +43,11 @@ email:
43
43
  - support@snap-ci.com
44
44
  executables:
45
45
  - snap-ci-parallel-partition
46
+ - snap-ci-parallel-partition-assuming-ruby-version-set
46
47
  - snap-ci-parallel-rspec
48
+ - snap-ci-parallel-rspec-assuming-ruby-version-set
47
49
  - snap-ci-parallel-test
50
+ - snap-ci-parallel-test-assuming-ruby-version-set
48
51
  extensions: []
49
52
  extra_rdoc_files: []
50
53
  files:
@@ -58,8 +61,11 @@ files:
58
61
  - README.md
59
62
  - Rakefile
60
63
  - bin/snap-ci-parallel-partition
64
+ - bin/snap-ci-parallel-partition-assuming-ruby-version-set
61
65
  - bin/snap-ci-parallel-rspec
66
+ - bin/snap-ci-parallel-rspec-assuming-ruby-version-set
62
67
  - bin/snap-ci-parallel-test
68
+ - bin/snap-ci-parallel-test-assuming-ruby-version-set
63
69
  - lib/snap_ci/parallel_tests.rb
64
70
  - lib/snap_ci/parallel_tests/cli.rb
65
71
  - lib/snap_ci/parallel_tests/grouper.rb
@@ -85,9 +91,9 @@ require_paths:
85
91
  - lib
86
92
  required_ruby_version: !ruby/object:Gem::Requirement
87
93
  requirements:
88
- - - ">="
94
+ - - "~>"
89
95
  - !ruby/object:Gem::Version
90
- version: '0'
96
+ version: '2.2'
91
97
  required_rubygems_version: !ruby/object:Gem::Requirement
92
98
  requirements:
93
99
  - - ">="