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 +5 -5
- data/features/rspec.feature +12 -0
- data/lib/kender/command.rb +2 -2
- data/lib/kender/commands/cypress_rails.rb +15 -0
- data/lib/kender/tasks/ci.rake +1 -1
- data/lib/kender/version.rb +1 -1
- metadata +13 -14
- data/lib/kender/commands/rdlint.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 88118cdf0ba10cad78605b01022eb67a5c0a44bbba91105c4e3982e666a465e8
|
4
|
+
data.tar.gz: 05ebc13eb3247414b71410ed8bc6fae02e7d4b68ca36bf853a697acabc4f2fc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f07ff0cf0b9a3ef76b5877949810e76eaa593e95513beaf6a5c25e1437e70d3aaf02e592b89ae55e940fbd445fb82609aa06789ebe1880ed8caa963b3109a7f2
|
7
|
+
data.tar.gz: b22cdc62d27b77470264995b155b3f45cc93244196b4d3cfae3c9535af87d2d21434dd2795b9ff8e314e9be6c32ab726b7f3ef57f4e5ce61333b0dc57b458e1c
|
data/features/rspec.feature
CHANGED
@@ -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:
|
data/lib/kender/command.rb
CHANGED
@@ -24,7 +24,7 @@ module Kender
|
|
24
24
|
class << self
|
25
25
|
|
26
26
|
def all_success?
|
27
|
-
all.
|
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/
|
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
|
data/lib/kender/tasks/ci.rake
CHANGED
@@ -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
|
49
|
+
abort "Command(s) failed" unless Kender::Command.all_success?
|
50
50
|
end
|
51
51
|
|
52
52
|
|
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.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:
|
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
|
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
|
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: '
|
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: '
|
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
|
-
|
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
|