corundum 0.3.5 → 0.3.6

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
- YTBkMjhiMDcxZWM3YWQ0MmJlNmQ0ODBkZTkxZjM5ZDcyY2I3NmU1Mw==
4
+ MWE0ZGFjOThhN2RjMjhjYTE2MzkxYWIzNmMwODllNmI4N2YwNDYyYQ==
5
5
  data.tar.gz: !binary |-
6
- ZGYwNTZlYzdhMTkxMTJjNGZiZTI5MGYxMzFhOGM4ZGNmODllYzE4YQ==
6
+ ZDQ2OGQ5Nzc4YjA1ZTM2ODFiYWNhMDNkYWZhNTkwM2QwOTFhMTlkNw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OTQzMjQ5M2M5NjFhNjBlZWM4MTRjYTQ1YmY0ZDA0YWEzOWI2MmViNGIwNGFh
10
- ZWUwODc2M2I4ZDI3Zjg1MjI3OTdmMTQyZTIxMjk2ODZjODU0MzU1N2QyMzA3
11
- NTJlYWM2MWFmMjkxNjE3NmU3MGRjNTE4NWM4M2IwNWFhZjU3OWY=
9
+ NDAxNWJiMjM2ODJmZjE1ZGY1NWNmNzg3YmYxYjdiNDNkNDg1ZjdmYTZkZmY5
10
+ OTE4MDAzMTllNTFlMzk5Y2M5NmYwMWUyYjE4ZjA4OWI1ZmE0YzZjNDMxNzA1
11
+ ZDJjZWVhNWY3YTZjNjE5YzQzZjk0MGZmYjllNjk4ZDg2MDQ3ODY=
12
12
  data.tar.gz: !binary |-
13
- YWQzNDdmNGNjYjM4ZTE2ZGQxNGZjNWU4ODUxMmZjN2M0NmM4N2JlNDU1MThj
14
- MDMzN2NkYWI1N2U0ZGQ1M2JjNjY0Yzk1NmIyZDA3MWExODMzNDE3MGVjODQ1
15
- MjEyNDNhOGMwMjdlNTg1OWVhNzZiZWU5YmM5YmI0ZTIxYjlkY2U=
13
+ ZTMwZWUyNGIwYjFiM2MwYzgxY2MzN2MzOTRkMTExNWNmYjIzMGJjZWQ4ZTkx
14
+ YmQ2NTJlZjE1MjU5NTdjYmJjZDkyZjJkNTJjNzgxMTUzMzJiMDMwMWY2ZDJk
15
+ OTUyMDhjZGQxMWIxMThiNWYyZWYzZTg5MDljN2U4NzczOTkxYzc=
@@ -133,13 +133,13 @@ module Corundum
133
133
  report = QA::Report.new("Bundler pinned dependencies")
134
134
  qa_rejections << report
135
135
  runtime_deps = gemspec.runtime_dependencies.map(&:name)
136
- pinned_dependencies = parser.dependencies.each do |dep|
136
+ parser.dependencies.each do |dep|
137
137
  next unless runtime_deps.include? dep.name
138
138
  next if dep.source.nil?
139
139
  next if dep.source.respond_to?(:path) and dep.source.path.to_s == "."
140
140
  report.add("source", dep, nil, dep.source)
141
- report.fail("Pinned runtime dependencies:\n" +
142
- " Specs depended on by the gemspec are pinned and " +
141
+ report.fail("Pinned gem dependencies:\n" +
142
+ " Specs depended on by the gemspec are pinned (by :path or :git) and " +
143
143
  "as a result, spec results are suspect\n")
144
144
  end
145
145
  end
@@ -1,3 +1,5 @@
1
+ require 'paint'
2
+
1
3
  module Corundum
2
4
  module QA
3
5
  #Adopted gratefully from Xavier Shay's Cane
@@ -100,9 +102,12 @@ module Corundum
100
102
  end
101
103
 
102
104
  def to_s(widths=nil)
103
- (passed ? "Ok" : "FAIL") +
104
- ": #{name} " +
105
- (summary_counts ? "(#{length})" : "") + "\n" +
105
+ Paint[
106
+ (passed ? "Ok" : "FAIL") +
107
+ ": #{name} " +
108
+ (summary_counts ? "(#{length})" : ""),
109
+ passed ? :green : :red
110
+ ] + "\n" +
106
111
  (summary.empty? ? "" : (summary + "\n")) +
107
112
  rejects.map do |reject|
108
113
  " " + reject.to_s(widths) + "\n"
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.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Judson Lester
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-24 00:00:00.000000000 Z
11
+ date: 2014-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: corundum
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: paint
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 0.8.7
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.8.7
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: yard
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -322,7 +336,7 @@ metadata: {}
322
336
  post_install_message:
323
337
  rdoc_options:
324
338
  - --title
325
- - corundum-0.3.5 RDoc
339
+ - corundum-0.3.6 RDoc
326
340
  require_paths:
327
341
  - lib/
328
342
  required_ruby_version: !ruby/object:Gem::Requirement