corundum 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDcxY2UyZjI1ZWJlMzNiYmQwNTBlODk1NzJiZWMzNDA2ODRmNWE3OA==
4
+ ZDZjODAzMjAxN2MyYmMzMDA1NjZlYjFmZmVhMTA0ZTNhYzE5Y2VhZg==
5
5
  data.tar.gz: !binary |-
6
- N2VjMDYyMGQ3YWE5YzU3ZDUxNDRmNjRjY2UzNDBkNTk2OWQ2ZGUxNw==
6
+ NjI5OTU2MjdhZGVhYmUwYTM2Mjc0N2RjYjAxZDgzODZlYTM2YWUyNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTFlNGNlOTE5M2I1NmM2YzQzN2E3ODk5MjgzNDZiNWJiZDc0ZmZmNzdmNmUx
10
- Yjc4ZWVkMjg1ZTgyMGRkOGM0Mjg4NGI1NzA5YzA5OGFmYWRjZTlkNzE5ZDZl
11
- NWU3M2IyZmE2NDNmMWEwMWE2MDk4YWQxNzhlOGQwZWQwNjMxOWY=
9
+ YTRlNDczZTFjMzI4MDQ0NmM4Mzc2Nzg2NDc0NDhmNmVmZmI1YjMwMmRmMDcw
10
+ ZDBmMTIxMDZiYWM5MGQ1MGIyOThmZTgzMDk5OTZhZjk3ZmUxOGE2MjNiNGY4
11
+ Y2U3ZTkxZTQ2YzQxZmJjMzdlZTdjNDJjN2ZkMDljZjJjODczY2U=
12
12
  data.tar.gz: !binary |-
13
- MzJiMjE5ZTJjMDBjYzJjODQ2M2E1YWJkYWI5MzViZGJlMzUxNzg3M2FiOTk3
14
- ZjEyZWQ1Njc3ODYxNGRiNjQ1OWYyYWM1NzdkN2ZhOWY2OGM5YmRjOTgxYzFm
15
- MWZjMDcxMzFiNjA2ZDBiMWJiZWEzNTU5OWY5Njk3MjdiZGQ0ZjI=
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.rb',
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 => [:preflight, finished_files.qa] do
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
@@ -1,4 +1,4 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gem 'corundum'
4
- gemspec
4
+ gemspec :name => "gem" #points to default 'gem.gemspec'
@@ -1,5 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = ""
3
+ #{MAJOR: incompatible}.{MINOR added feature}.{PATCH bugfix}-{LABEL}
3
4
  spec.version = "0.0.1"
4
5
  author_list = {
5
6
  }
@@ -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 :qa => in_namespace(:dependencies_available)
167
- task :qa => in_namespace(:pinned_dependencies)
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
@@ -85,7 +85,8 @@ module Corundum
85
85
  end
86
86
  end
87
87
  end
88
- task :qa => in_namespace(type)
88
+ task :run_quality_assurance => in_namespace(type)
89
+ task :run_continuous_integration => in_namespace(type)
89
90
  end
90
91
  end
91
92
  end
@@ -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 :qa => in_namespace(:verify)
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
@@ -83,7 +83,7 @@ module Corundum
83
83
  end
84
84
  file entry_path => :report
85
85
 
86
- task :generate_report => [:preflight, entry_path]
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 :qa => in_namespace(:verify_coverage, :find_stragglers)
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.2'
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-12 00:00:00.000000000 Z
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.2 RDoc
336
+ - corundum-0.3 RDoc
337
337
  require_paths:
338
338
  - lib/
339
339
  required_ruby_version: !ruby/object:Gem::Requirement