kender 0.6.0 → 0.7.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
- SHA1:
3
- metadata.gz: 4e7b117a4e050c6126e337f747b28445324006bc
4
- data.tar.gz: 4bba5098abef22668b1ef19d94c45f5917fb79b1
2
+ SHA256:
3
+ metadata.gz: 88118cdf0ba10cad78605b01022eb67a5c0a44bbba91105c4e3982e666a465e8
4
+ data.tar.gz: 05ebc13eb3247414b71410ed8bc6fae02e7d4b68ca36bf853a697acabc4f2fc4
5
5
  SHA512:
6
- metadata.gz: 84b530d485504cb5411c7716df449487a26ac4d2ce834d631dea8bf2f5ba3517e8f8aaf345be4ba0ccc438f296d4938d55807c5f01759d0afd25fdca2260d9bf
7
- data.tar.gz: fddc758079fbfeed7d47478b5cf6bf11c1382207b505df0e27449d3d9ae1220e5fcf67487c945795535d7f6aca7d23f559a22727ff756a19483a906278f2796b
6
+ metadata.gz: f07ff0cf0b9a3ef76b5877949810e76eaa593e95513beaf6a5c25e1437e70d3aaf02e592b89ae55e940fbd445fb82609aa06789ebe1880ed8caa963b3109a7f2
7
+ data.tar.gz: b22cdc62d27b77470264995b155b3f45cc93244196b4d3cfae3c9535af87d2d21434dd2795b9ff8e314e9be6c32ab726b7f3ef57f4e5ce61333b0dc57b458e1c
@@ -33,6 +33,18 @@ Feature: Rspec
33
33
  """
34
34
  1 example, 0 failures
35
35
  """
36
+
37
+ Scenario: A project with failing specs should fail when running the ci:run task
38
+ Given a file named "spec/testing_spec.rb" with:
39
+ """
40
+ describe "My software" do
41
+ it "fails miserably" do
42
+ expect(false).to be_true
43
+ end
44
+ end
45
+ """
46
+ When I run `bundle exec rake ci:run`
47
+ Then the exit status should not be 0
36
48
 
37
49
  Scenario: The project has some non passing specs to run
38
50
  Given a file named "spec/testing_spec.rb" with:
@@ -24,7 +24,7 @@ module Kender
24
24
  class << self
25
25
 
26
26
  def all_success?
27
- all.inject(true) {|all_result, command_result| all_result && command_result }
27
+ all.all?(&:success)
28
28
  end
29
29
 
30
30
  def commands
@@ -76,4 +76,4 @@ require_relative 'commands/cucumber'
76
76
  require_relative 'commands/reek'
77
77
  require_relative 'commands/i18n_tasks'
78
78
  require_relative 'commands/pb_duplicates'
79
- require_relative 'commands/rdlint'
79
+ require_relative 'commands/cypress_rails'
@@ -0,0 +1,15 @@
1
+ module Kender
2
+ class CypressRails < Command
3
+
4
+ # Kender might be in some projects which use cypress-rails but
5
+ # do not have this rake task.
6
+ def available?
7
+ in_gemfile?('cypress-rails') && Rake::Task.task_defined?('cypress_extended:enhanced_run')
8
+ end
9
+
10
+ def command
11
+ 'bundle exec rake cypress_extended:enhanced_run'
12
+ end
13
+
14
+ end
15
+ end
@@ -46,7 +46,7 @@ namespace :ci do
46
46
  Kender::Command.all.each do |command|
47
47
  puts "#{command.name} failed" unless command.success
48
48
  end
49
- abort "Command failed: #{command}" unless Kender::Command.all_success?
49
+ abort "Command(s) failed" unless Kender::Command.all_success?
50
50
  end
51
51
 
52
52
 
@@ -1,3 +1,3 @@
1
1
  module Kender
2
- VERSION = '0.6.0'.freeze
2
+ VERSION = '0.7.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.6.0
4
+ version: 0.7.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: 2017-09-27 00:00:00.000000000 Z
14
+ date: 2022-11-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -53,28 +53,28 @@ dependencies:
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: '0.14'
56
+ version: '1.0'
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.14'
63
+ version: '1.0'
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: rake
66
66
  requirement: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - "~>"
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
- version: '0'
70
+ version: '13'
71
71
  type: :development
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - "~>"
75
+ - - ">="
76
76
  - !ruby/object:Gem::Version
77
- version: '0'
77
+ version: '13'
78
78
  description: Kender is a library of rake tasks that provides a consistent framework
79
79
  for continuous integration (CI).
80
80
  email:
@@ -97,11 +97,11 @@ files:
97
97
  - lib/kender/commands/bundle_audit.rb
98
98
  - lib/kender/commands/consistency_fail.rb
99
99
  - lib/kender/commands/cucumber.rb
100
+ - lib/kender/commands/cypress_rails.rb
100
101
  - lib/kender/commands/factorygirl_lint.rb
101
102
  - lib/kender/commands/i18n_tasks.rb
102
103
  - lib/kender/commands/jasmine.rb
103
104
  - lib/kender/commands/pb_duplicates.rb
104
- - lib/kender/commands/rdlint.rb
105
105
  - lib/kender/commands/reek.rb
106
106
  - lib/kender/commands/rspec.rb
107
107
  - lib/kender/commands/shamus.rb
@@ -130,14 +130,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  requirements: []
133
- rubyforge_project:
134
- rubygems_version: 2.6.11
133
+ rubygems_version: 3.1.6
135
134
  signing_key:
136
135
  specification_version: 4
137
136
  summary: Rake tasks for continuous integration (CI).
138
137
  test_files:
139
- - features/install.feature
140
- - features/rspec.feature
141
- - features/scenarios.feature
142
138
  - features/support/env.rb
143
139
  - features/support/hooks.rb
140
+ - features/scenarios.feature
141
+ - features/rspec.feature
142
+ - features/install.feature
@@ -1,13 +0,0 @@
1
- module Kender
2
- class Rdlint < Command
3
-
4
- def available?
5
- in_gemfile?('crichton') && Dir.exists?(File.join(Dir.pwd, 'api_descriptors'))
6
- end
7
-
8
- def command
9
- 'bundle exec rdlint -as'
10
- end
11
-
12
- end
13
- end