corundum 0.2 → 0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/bin/corundum-skel +15 -2
- data/lib/corundum/core.rb +17 -2
- data/lib/corundum/default_configuration/skel-files/gemfile +1 -1
- data/lib/corundum/default_configuration/skel-files/gemspec +1 -0
- data/lib/corundum/gemcutter.rb +2 -2
- data/lib/corundum/questionable-content.rb +2 -1
- data/lib/corundum/rspec.rb +2 -1
- data/lib/corundum/simplecov.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDZjODAzMjAxN2MyYmMzMDA1NjZlYjFmZmVhMTA0ZTNhYzE5Y2VhZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjI5OTU2MjdhZGVhYmUwYTM2Mjc0N2RjYjAxZDgzODZlYTM2YWUyNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTRlNDczZTFjMzI4MDQ0NmM4Mzc2Nzg2NDc0NDhmNmVmZmI1YjMwMmRmMDcw
|
10
|
+
ZDBmMTIxMDZiYWM5MGQ1MGIyOThmZTgzMDk5OTZhZjk3ZmUxOGE2MjNiNGY4
|
11
|
+
Y2U3ZTkxZTQ2YzQxZmJjMzdlZTdjNDJjN2ZkMDljZjJjODczY2U=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2Q0YmY2MzFiMzBhODJmM2E1NmM5ZmE0MTM0M2NlMzc2YzVhMWNmMWMxNjk0
|
14
|
+
ZWI4MjUxNDYxYzZmNWIwZDA5ZTQ4Nzg3NThhNTc3NDZhMjUyNWNmYTU5NWJm
|
15
|
+
NzU0ZGFlZDM4NjAxNGIyNWI0M2Q3OGRjOWQ1NWJkZmYxZTFkMmY=
|
data/bin/corundum-skel
CHANGED
@@ -9,9 +9,19 @@ skelfiles = [ {
|
|
9
9
|
:target => 'Rakefile',
|
10
10
|
:unless => Rake::Application::DEFAULT_RAKEFILES,
|
11
11
|
},
|
12
|
+
{
|
13
|
+
:source => 'skel-files/simplecov',
|
14
|
+
:target => '.simplecov',
|
15
|
+
:unless => ['.simplecov']
|
16
|
+
},
|
17
|
+
{
|
18
|
+
:source => 'skel-files/travis',
|
19
|
+
:target => '.travis.yml',
|
20
|
+
:unless => ['.travis.yml']
|
21
|
+
},
|
12
22
|
{
|
13
23
|
:source => 'skel-files/gemspec',
|
14
|
-
:target => 'gemspec
|
24
|
+
:target => 'gem.gemspec',
|
15
25
|
:unless => ['gemspec.rb', '*.gemspec'],
|
16
26
|
},
|
17
27
|
{
|
@@ -22,8 +32,11 @@ skelfiles = [ {
|
|
22
32
|
|
23
33
|
if %w{-h --help -help help}.include?(ARGV[0])
|
24
34
|
puts "Spits out skeleton files to start a gem with."
|
25
|
-
puts "Files are copied from the skel-files directory out of this search path:"
|
26
35
|
puts
|
36
|
+
puts "Will emit these files:"
|
37
|
+
puts skelfiles.map{|desc| desc[:target]}.join(", ")
|
38
|
+
puts
|
39
|
+
puts "Files are copied from the skel-files directory out of this search path:"
|
27
40
|
puts Corundum.configuration_store.valise
|
28
41
|
exit 0
|
29
42
|
end
|
data/lib/corundum/core.rb
CHANGED
@@ -95,16 +95,31 @@ module Corundum
|
|
95
95
|
desc "Run preflight checks"
|
96
96
|
task :preflight
|
97
97
|
|
98
|
+
task :run_quality_assurance => [:preflight, finished_files.qa]
|
99
|
+
|
100
|
+
task :run_continuous_integration
|
101
|
+
|
98
102
|
desc "Run quality assurance tasks"
|
99
|
-
task :qa =>
|
103
|
+
task :qa => :run_quality_assurance do
|
100
104
|
require 'corundum/qa-report'
|
101
105
|
puts QA::ReportFormatter.new(qa_rejections).to_s
|
102
|
-
|
103
106
|
unless qa_rejections.all?(&:passed)
|
104
107
|
fail "There are QA tests that failed"
|
105
108
|
end
|
106
109
|
end
|
107
110
|
|
111
|
+
desc "Run limited set of QA tasks appropriate for CI"
|
112
|
+
task :ci => :run_continuous_integration do
|
113
|
+
require 'corundum/qa-report'
|
114
|
+
puts QA::ReportFormatter.new(qa_rejections).to_s
|
115
|
+
if qa_rejections.all?(&:passed)
|
116
|
+
puts "Passed"
|
117
|
+
else
|
118
|
+
fail "There are Continuous Integration tests that failed"
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
|
108
123
|
file finished_files.qa =>
|
109
124
|
[finished_dir] + file_lists.project + file_lists.code + file_lists.test do |task|
|
110
125
|
Rake::Task[:qa].invoke
|
data/lib/corundum/gemcutter.rb
CHANGED
@@ -163,8 +163,8 @@ module Corundum
|
|
163
163
|
end
|
164
164
|
task :release => in_namespace(:push)
|
165
165
|
task :preflight => in_namespace(:is_unpushed)
|
166
|
-
task :
|
167
|
-
task :
|
166
|
+
task :run_quality_assurance => in_namespace(:dependencies_available, :pinned_dependencies)
|
167
|
+
task :run_continuous_integration => in_namespace(:pinned_dependencies)
|
168
168
|
end
|
169
169
|
end
|
170
170
|
end
|
data/lib/corundum/rspec.rb
CHANGED
@@ -110,7 +110,8 @@ module Corundum
|
|
110
110
|
desc "Run failing examples if any exist, otherwise, run the whole suite"
|
111
111
|
task root_task => in_namespace(:quick)
|
112
112
|
|
113
|
-
task :
|
113
|
+
task :run_quality_assurance => in_namespace(:verify)
|
114
|
+
task :run_continuous_integration => in_namespace(:verify)
|
114
115
|
end
|
115
116
|
end
|
116
117
|
end
|
data/lib/corundum/simplecov.rb
CHANGED
@@ -83,7 +83,7 @@ module Corundum
|
|
83
83
|
end
|
84
84
|
file entry_path => :report
|
85
85
|
|
86
|
-
task :generate_report => [:
|
86
|
+
task :generate_report => [:config_exists, entry_path]
|
87
87
|
|
88
88
|
task :verify_coverage => :generate_report do
|
89
89
|
require 'nokogiri'
|
@@ -134,7 +134,8 @@ module Corundum
|
|
134
134
|
end
|
135
135
|
|
136
136
|
task :preflight => in_namespace(:config_exists)
|
137
|
-
task :
|
137
|
+
task :run_quality_assurance => in_namespace(:verify_coverage, :find_stragglers)
|
138
|
+
task :run_continuous_integration => in_namespace(:verify_coverage, :find_stragglers)
|
138
139
|
end
|
139
140
|
end
|
140
141
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: corundum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Judson Lester
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -333,7 +333,7 @@ metadata: {}
|
|
333
333
|
post_install_message:
|
334
334
|
rdoc_options:
|
335
335
|
- --title
|
336
|
-
- corundum-0.
|
336
|
+
- corundum-0.3 RDoc
|
337
337
|
require_paths:
|
338
338
|
- lib/
|
339
339
|
required_ruby_version: !ruby/object:Gem::Requirement
|