codescout-analyzer 0.0.1 → 0.0.2

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: 62251be9162445198519b9683c482b680f905c47
4
- data.tar.gz: 4c3d259900e1fa5bb7e2eb42f4422555e0c08d53
3
+ metadata.gz: 6a6d126d6eb7377c77080ca471e26bf039c4072e
4
+ data.tar.gz: e5d3ddfd3749840cb5ed4b3b21dc5526e55bed82
5
5
  SHA512:
6
- metadata.gz: 1ecb2fe301d2cbb23644a595e05718287f40718398fe4aeaf6663e374677b4d21f388d0f0f120dc7b971f4f60769f99e5741fe5193bd7a850471205f5ed481a1
7
- data.tar.gz: 9ef8e29a834c4b5df1040de509a855c3d70a71ebeba8272c0a7dfbc2902f0e4061cc302e49fc36626b587fe71af006ac28e1d7d27968fa11d90736f3bd17690c
6
+ metadata.gz: beb441c0c9e402a9344483288e678878536f66e423cb71b5ba188d90ed0bf9f61c3d9b4163e8857b6e637c71b0be300d60a7ca5d5a2707085cbb990c3a3b3459
7
+ data.tar.gz: 56f32c635fbb07bb38cb7f48e515e0a5e33385482febd7720c4afe66a463b99f1fdcec2a98720b11c458c77808ee57c488a33986f2070d8d4d7a17def2b6f081
data/bin/codescout CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # encoding: UTF-8
2
3
 
3
4
  lib = File.expand_path(File.dirname(__FILE__) + "/../lib")
4
5
  $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
@@ -10,7 +10,10 @@ module Codescout
10
10
 
11
11
  `rubocop -c rubocop.yml -f json -o rubocop.json`
12
12
 
13
- json = JSON.load(File.read("rubocop.json"))
13
+ report = File.read("rubocop.json")
14
+ return if report.empty?
15
+
16
+ json = JSON.load(report)
14
17
 
15
18
  json["files"].each do |file|
16
19
  next unless @analyzer.files.include?(file["path"])
@@ -1,3 +1,3 @@
1
1
  module Codescout
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codescout-analyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Sosedoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-07 00:00:00.000000000 Z
11
+ date: 2014-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flog