lint_trap 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lint_trap/language.rb +1 -1
- data/lib/lint_trap/version.rb +1 -1
- data/spec/fixtures/empty.rb +0 -0
- data/spec/language_spec.rb +7 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 256084ab95ccc55f9033397f860964b3e4c75434
|
4
|
+
data.tar.gz: 175f84a635a448d1a032461bd8a2b1713f263457
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb4a7655a521229ecb7297c49b70b50b3a8d8390db58fa3c3697f96735b6719f44c254e91dc095b5c77849dad2ed79912a2bcd6fa263f81b0d977f65b589401b
|
7
|
+
data.tar.gz: e4e63478a7da6ee07a0ec7d58416c9667d618330fcd4aaeac95fce3500c073a08fdbb55cab8aca7e44a8803b0ccf94f7859007f5bb54559784d7b7785527cf03
|
data/lib/lint_trap/language.rb
CHANGED
data/lib/lint_trap/version.rb
CHANGED
File without changes
|
data/spec/language_spec.rb
CHANGED
@@ -69,6 +69,13 @@ describe LintTrap::Language do
|
|
69
69
|
|
70
70
|
it{is_expected.to eq(nil)}
|
71
71
|
end
|
72
|
+
|
73
|
+
context 'when given a known language file that is empty' do
|
74
|
+
let(:file){fixture_path('empty.rb')}
|
75
|
+
|
76
|
+
# Linguist can't figure out what language the empty file is
|
77
|
+
it{is_expected.to eq(nil)}
|
78
|
+
end
|
72
79
|
end
|
73
80
|
|
74
81
|
describe '.find' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lint_trap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Allen Madsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github-linguist
|
@@ -166,6 +166,7 @@ files:
|
|
166
166
|
- spec/fixtures/bad.py
|
167
167
|
- spec/fixtures/bad.rb
|
168
168
|
- spec/fixtures/bad.scss
|
169
|
+
- spec/fixtures/empty.rb
|
169
170
|
- spec/fixtures/good.coffee
|
170
171
|
- spec/fixtures/good.cpp
|
171
172
|
- spec/fixtures/good.css
|
@@ -255,6 +256,7 @@ test_files:
|
|
255
256
|
- spec/fixtures/bad.py
|
256
257
|
- spec/fixtures/bad.rb
|
257
258
|
- spec/fixtures/bad.scss
|
259
|
+
- spec/fixtures/empty.rb
|
258
260
|
- spec/fixtures/good.coffee
|
259
261
|
- spec/fixtures/good.cpp
|
260
262
|
- spec/fixtures/good.css
|