railsbp_in_browser 0.1.0 → 1.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5955b884ba8a7801aba7b6caad4ecd3e0181e8c
4
- data.tar.gz: 3be44d089df11b965876cdecdc906e8c7edbab71
3
+ metadata.gz: 041d938c7f4dfe12a44c013580c5ae36ae43c849
4
+ data.tar.gz: 2bce8aabcc9bbd1b6dbde0de0b9692184b4fe73c
5
5
  SHA512:
6
- metadata.gz: 6a835a4ed3f0933d9dd6ae8d755f1b4dda4315f93503970b5a7729ff290d520d1e7974ad3771f8737f5f504c18c083aa4ffc67330488acd94f40397af186076b
7
- data.tar.gz: 9acc685671ed71b5f0c0cb3d1051b766bdd9263b922145e870ea76acaf1bb7196e3cb8623c015d3f8a4ff41ae19f9b765b432e026b0138918bfc26340848fffd
6
+ metadata.gz: f470412a3e88f697b1c76af2dd45fd02db5c6189f63c4c5165c07a6abeed917fe72c34dbe1888940940bafb91627802822966540d91759c4d22d375e02afb888
7
+ data.tar.gz: 26139861fc404d6c732bd5b559f05d389414638aac290e7ed825bb4f36ce6c424b7148d474af5f4077d478dd1b76d4122a0258b197ab75df6102761d6380d255
@@ -1,3 +1,3 @@
1
1
  module RailsbpInBrowser
2
- VERSION = "0.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -18,8 +18,9 @@ module RailsbpInBrowser
18
18
  puts "Generating the code climate ..."
19
19
  `rails_best_practices . > rails_best_practices_output.html`
20
20
 
21
+ output_file_path = "#{ENV['HOME']}/tmp/code_climate.html"
21
22
  f = File.open("rails_best_practices_output.html")
22
- of = File.open("code_climate.html", 'w')
23
+ of = File.open(output_file_path, 'w')
23
24
  reg = /.*\[31m(.*):([0-9]+) - (.*)\e.*/
24
25
  f.each_line do |line|
25
26
  next unless reg.match(line)
@@ -48,8 +49,8 @@ module RailsbpInBrowser
48
49
  f.close
49
50
  of.close
50
51
 
51
- puts "Open file in Chrome"
52
- Launchy::Browser.run('./code_climate.html')
52
+ puts "Open report in the Browser"
53
+ Launchy.open(output_file_path)
53
54
 
54
55
  `rm rails_best_practices_output.html`
55
56
  `rm code_climate.html`
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railsbp_in_browser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiveer