kender 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/rspec.feature +2 -2
- data/features/scenarios.feature +5 -3
- data/features/support/env.rb +3 -3
- data/features/support/hooks.rb +2 -2
- data/lib/kender/tasks/ci.rake +8 -1
- data/lib/kender/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac270550b14a38b579283a3e690ce6de2fa5e447
|
4
|
+
data.tar.gz: 5366326ba394b1712055d05fc276ef2368162b2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60855155613e396b76705c75696026b2dda1cb375a6c4e248872c3d1ee649d2966033abd372729221ccd2f2152709b5d448e52359d12db9c7f4d78b2a9def4f5
|
7
|
+
data.tar.gz: a58bb520ffe2d7e9a7259d36abcb0f6772557f45df17d5f484e20552d176f1a8a902d2e82dfd7e4b3e50dbb520f936a6af51856fe6a68884b9562a552e408e67
|
data/features/rspec.feature
CHANGED
@@ -8,9 +8,9 @@ Feature: Rspec
|
|
8
8
|
source 'https://rubygems.org'
|
9
9
|
gem 'rspec', '~> 2.14'
|
10
10
|
gem 'kender', path: '../../' # needed to use the latest code
|
11
|
-
gem 'dice_bag', '~>0.7'
|
11
|
+
gem 'dice_bag', '~> 0.7'
|
12
12
|
"""
|
13
|
-
And I run `bundle install
|
13
|
+
And I run `bundle install --path vendor/`
|
14
14
|
|
15
15
|
Scenario: The project has no specs but Rspec is executed
|
16
16
|
When I run `bundle exec rake ci`
|
data/features/scenarios.feature
CHANGED
@@ -6,11 +6,13 @@ Feature: Scenarios
|
|
6
6
|
Given a file named "Gemfile" with:
|
7
7
|
"""
|
8
8
|
source 'https://rubygems.org'
|
9
|
-
gem 'cucumber', '~>1.3'
|
9
|
+
gem 'cucumber', '~> 1.3'
|
10
10
|
gem 'kender', path: '../../' # needed to use the latest code
|
11
|
-
gem 'dice_bag', '~>0.7'
|
11
|
+
gem 'dice_bag', '~> 0.7'
|
12
12
|
"""
|
13
|
-
|
13
|
+
# Running this twice because sometimes the install command will timeout.
|
14
|
+
And I run `bundle install --path vendor/ --jobs=4`
|
15
|
+
And I run `bundle install --path vendor/ --jobs=4`
|
14
16
|
|
15
17
|
Scenario: The project has no scenarios to run but cucumber is executed
|
16
18
|
When I run `bundle exec rake ci`
|
data/features/support/env.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
require 'aruba/cucumber'
|
2
2
|
require 'kender'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
# scenarios bundle to set up gems and it takes forever
|
5
|
+
Aruba.configure do |config|
|
6
|
+
config.startup_wait_time = 12
|
7
7
|
end
|
8
8
|
|
9
9
|
# Unset bundle vars so when we create new bundle files in the scenarios
|
data/features/support/hooks.rb
CHANGED
data/lib/kender/tasks/ci.rake
CHANGED
@@ -71,7 +71,14 @@ namespace :ci do
|
|
71
71
|
task :setup_db do
|
72
72
|
if Rake::Task.task_defined?('db:create')
|
73
73
|
if !defined?(ParallelTests)
|
74
|
-
|
74
|
+
# Use db:schema:load instead of db:migrate because of this issue
|
75
|
+
# https://github.com/rails/rails/issues/19001
|
76
|
+
db_task = if File.exist?('db/schema.rb')
|
77
|
+
'db:schema:load'
|
78
|
+
else
|
79
|
+
'db:migrate'
|
80
|
+
end
|
81
|
+
unless run_successfully?(['db:create', db_task])
|
75
82
|
puts 'The DB could not be set up successfully.'
|
76
83
|
end
|
77
84
|
else
|
data/lib/kender/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kender
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Smith
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2016-06-15 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -53,14 +53,14 @@ dependencies:
|
|
53
53
|
requirements:
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '0.
|
56
|
+
version: '0.14'
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
63
|
+
version: '0.14'
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
name: rake
|
66
66
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
version: '0'
|
133
133
|
requirements: []
|
134
134
|
rubyforge_project:
|
135
|
-
rubygems_version: 2.
|
135
|
+
rubygems_version: 2.5.1
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: Rake tasks for continuous integration (CI).
|