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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c3a61d765517036eca70bcc232cc2e162f28fb2
4
- data.tar.gz: 8ca7e07d9b9c496b79c3bb007bd51ffae07f46e4
3
+ metadata.gz: ac270550b14a38b579283a3e690ce6de2fa5e447
4
+ data.tar.gz: 5366326ba394b1712055d05fc276ef2368162b2d
5
5
  SHA512:
6
- metadata.gz: 50d67e0864377a86834e2199f347e735657187045aa1181e92ae710606916405f645582273b9376791ec2ae99df743ac34e55505c293b05f081a4834ad73778b
7
- data.tar.gz: f13e1d4dedc8de2a6e5ce6a7084881a11dec8a37c5df657eab20a93e980a2d9fbb4c742dd1e32261eb93aadf5e329cd4b51ca39847492a86d930d81737c3cd17
6
+ metadata.gz: 60855155613e396b76705c75696026b2dda1cb375a6c4e248872c3d1ee649d2966033abd372729221ccd2f2152709b5d448e52359d12db9c7f4d78b2a9def4f5
7
+ data.tar.gz: a58bb520ffe2d7e9a7259d36abcb0f6772557f45df17d5f484e20552d176f1a8a902d2e82dfd7e4b3e50dbb520f936a6af51856fe6a68884b9562a552e408e67
@@ -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`
@@ -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
- And I run `bundle install`
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`
@@ -1,9 +1,9 @@
1
1
  require 'aruba/cucumber'
2
2
  require 'kender'
3
3
 
4
- Before do
5
- #scenarios bundle to set up gems and it takes forever
6
- @aruba_timeout_seconds = 30
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
@@ -1,5 +1,5 @@
1
1
  Before do
2
2
  write_file("Rakefile", "require 'kender/tasks'")
3
- create_dir('features')
4
- create_dir('spec')
3
+ create_directory('features')
4
+ create_directory('spec')
5
5
  end
@@ -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
- unless run_successfully?(['db:create', 'db:migrate'])
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
@@ -1,3 +1,3 @@
1
1
  module Kender
2
- VERSION = '0.3.3'
2
+ VERSION = '0.4.0'.freeze
3
3
  end
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.3.3
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: 2015-12-22 00:00:00.000000000 Z
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.5'
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.5'
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.4.8
135
+ rubygems_version: 2.5.1
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: Rake tasks for continuous integration (CI).