lgtm 0.1.0 → 0.2.0

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -2
  3. data/exe/lgtm +8 -1
  4. data/lib/lgtm/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32024d27efaea5104233a1595cfe0041d82ccaca
4
- data.tar.gz: 24a0a9e044fc609f91432f9874ab522bd691a66d
3
+ metadata.gz: 79d6da6e6b6c3a0105915892fba9ed7267a08e11
4
+ data.tar.gz: 535b8f9284b0a25f39b7ed11d9849b4558dcb83f
5
5
  SHA512:
6
- metadata.gz: e86bae23ce709003f482da1978fbdb157371c5fe0bcf2ddd255c24e92e5f6a8b2927a0d64f9f77c074a6af089a693feec143a01c6827a76731fff39d8be415c2
7
- data.tar.gz: a31ce9fcdf0ec47e2d8b0aa5d19dc5bc19b5537455d1d2d5442f6505486a27477eda282e36b9109f06a8bff15b284eb80bf4fc433f2f6e21ab7a0f6fa73e9a5c
6
+ metadata.gz: 7c9991ab533ae29655f9021e2ae67ba296b9244abe15b130fc3246060397a98a6588a753aac1cec6193ce1b1a4eb430adca5504107e20285fdd6ff40971eb1bd
7
+ data.tar.gz: 152cfc16e796eb4581aa63c079ec3144c12340f70100c348f4750be7648a0263903de75d68a7e0abba6e3bc2322fe0c8b2284cb13a5c3fb7608bed84ed9ffa55
data/.gitignore CHANGED
@@ -7,5 +7,5 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
- /bin/*.time
11
- /bin/*.links
10
+ /exe/*.time
11
+ /exe/*.links
data/exe/lgtm CHANGED
@@ -3,7 +3,14 @@
3
3
  require 'mechanize'
4
4
 
5
5
  LGTM_LINK_BASE = 'http://lgtm.in/i'.freeze
6
- LGTM_HAITO_PAGE = ENV['LGTM_IN_USER_PATH'] || 'http://lgtm.in/l/HaiTo'
6
+ NOT_SET_VALIAVLE_ALERT = "please set enviromant variable LGTM_IN_USER_PATH. example) http://lgtm.in/l/HaiTo".freeze
7
+
8
+ def not_set_valiavle_alert
9
+ p NOT_SET_VALIAVLE_ALERT
10
+ exit(1)
11
+ end
12
+
13
+ LGTM_HAITO_PAGE = ENV['LGTM_IN_USER_PATH'].nil? ? not_set_valiavle_alert : ENV['LGTM_IN_USER_PATH']
7
14
 
8
15
  REFLASH_TIME = 604_800.freeze
9
16
 
@@ -1,3 +1,3 @@
1
1
  module Lgtm
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lgtm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - HaiTo