miss_cleo 0.3.2 → 0.3.4

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
2
  SHA1:
3
- metadata.gz: f65320c1042c0c225a420c0a71a9bb176146c2ea
4
- data.tar.gz: 9bee07706949fbf2529d07eee3407fe2559039a7
3
+ metadata.gz: cb548a7fe1a3d67044f2b6f8d0a99a70f8d37f30
4
+ data.tar.gz: b67b5e3e012594c6411d33e9f5fb6df6c43eb913
5
5
  SHA512:
6
- metadata.gz: 16a9d3f6c1820e6f8473a947979950177193afdfc7d195212c6275b532e50e90f75e91ea165820b26cbad6594752cacbff67c4638f211e6490190f6dfad0de0f
7
- data.tar.gz: c2b1726859d10f06bc6fdb36a12dab107eba1ad7c4d6347cf22aa15d803188a9ed17ba038f2fd04c7b1303be3bea59b9bb2cabd5cb5f358977e8e2d6d1b9831e
6
+ metadata.gz: ad577f4f1cf88ca9853b96308eb8b4d32ab8eca43a4e25b48f65a4b6333b427cd3e42cf8d246a737e96e24fcc5bfa236b9a237f6fd745432279ff9fb3d45aac1
7
+ data.tar.gz: 3cc9b2f6cdd858a2e191f01c3e05952507ed22b59eb320d21b99faab2be8da9e8cace8bc3c06a9fb0e0232559d008e022fc411d0239ec2bdca3d3adea80f531d
data/bin/miss_cleo CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "miss_cleo"
4
4
  require 'pry'
5
- include MissCleo::CoverageMapHelper
5
+ include ::MissCleo::CoverageMapHelper
6
6
 
7
7
  case ARGV.first
8
8
  when "build_deck"
@@ -15,8 +15,8 @@ module MissCleo
15
15
  end
16
16
  end
17
17
 
18
- File.open("total_coverage_map.json", "w") do |f|
19
- f.write(JSON.dump(cov_map))
18
+ File.open("total_coverage_map.json.gz", "w") do |f|
19
+ f.write(JSON.dump(cov_map).gzip)
20
20
  end
21
21
  end
22
22
 
@@ -41,7 +41,7 @@ module MissCleo
41
41
  end
42
42
  end
43
43
 
44
- coverage_map = JSON.parse(File.open("total_coverage_map.json").read)
44
+ coverage_map = JSON.parse(File.open("total_coverage_map.json.gz").read.gunzip)
45
45
  tests_to_run = []
46
46
  lines_changed.each do |file, line|
47
47
  coverage_map && coverage_map[file] && coverage_map[file].fetch(line.to_s, []).uniq.each do |desc|
@@ -1,3 +1,3 @@
1
1
  module MissCleo
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.4"
3
3
  end
data/lib/miss_cleo.rb CHANGED
@@ -4,11 +4,13 @@ require 'coverage'
4
4
  require 'shellwords'
5
5
  require 'rugged'
6
6
  require 'set'
7
+ require 'gzip'
7
8
 
8
9
  require "miss_cleo/version"
9
10
  require 'miss_cleo/coverage_filter'
10
11
  require 'miss_cleo/test_configurations/cucumber_config'
11
12
  require 'miss_cleo/test_configurations/rspec_config'
13
+ require 'miss_cleo/coverage_map_helper.rb'
12
14
 
13
15
  module MissCleo
14
16
  end
data/miss_cleo.gemspec CHANGED
@@ -20,4 +20,5 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.8"
22
22
  spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_runtime_dependency "gzip"
23
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miss_cleo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Hu
@@ -40,6 +40,20 @@ dependencies:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '10.0'
43
+ - !ruby/object:Gem::Dependency
44
+ name: gzip
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
43
57
  description: Miss Cleo frees you from having to run your full test suite to be confident
44
58
  in your recent code changes. Call me now!
45
59
  email: