jruby-lint 0.4.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +2 -1
  3. data/README.md +2 -8
  4. data/jruby-lint.gemspec +2 -3
  5. data/lib/jruby/lint/ast.rb +1 -1
  6. data/lib/jruby/lint/checkers.rb +18 -1
  7. data/lib/jruby/lint/checkers/fork_exec.rb +22 -39
  8. data/lib/jruby/lint/checkers/gem.rb +44 -30
  9. data/lib/jruby/lint/checkers/gemspec.rb +4 -4
  10. data/lib/jruby/lint/checkers/nonatomic.rb +38 -8
  11. data/lib/jruby/lint/checkers/object_space.rb +8 -6
  12. data/lib/jruby/lint/checkers/system.rb +4 -4
  13. data/lib/jruby/lint/checkers/thread_critical.rb +4 -4
  14. data/lib/jruby/lint/cli.rb +8 -1
  15. data/lib/jruby/lint/collectors.rb +18 -7
  16. data/lib/jruby/lint/finding.rb +1 -1
  17. data/lib/jruby/lint/libraries.rb +21 -30
  18. data/lib/jruby/lint/project.rb +3 -3
  19. data/lib/jruby/lint/reporters/html.rb +4 -3
  20. data/lib/jruby/lint/reporters/jruby-lint.html.erb +10 -1
  21. data/lib/jruby/lint/reporters/text.rb +5 -4
  22. data/lib/jruby/lint/version.rb +1 -1
  23. data/spec/fixtures/C-Extension-Alternatives.md +81 -0
  24. data/spec/jruby/lint/ast_spec.rb +6 -6
  25. data/spec/jruby/lint/checkers_spec.rb +91 -62
  26. data/spec/jruby/lint/collectors_spec.rb +3 -9
  27. data/spec/jruby/lint/finding_spec.rb +10 -10
  28. data/spec/jruby/lint/libraries_spec.rb +13 -13
  29. data/spec/jruby/lint/project_spec.rb +34 -40
  30. data/spec/jruby/lint/reporters_spec.rb +22 -13
  31. data/spec/jruby/lint/version_spec.rb +1 -1
  32. data/spec/spec_helper.rb +1 -1
  33. metadata +30 -96
  34. data/lib/jruby/lint/checkers/timeout.rb +0 -21
  35. data/lib/jruby/lint/github.crt +0 -23
  36. data/spec/fixtures/C-Extension-Alternatives.html +0 -339
  37. data/spec/jruby/lint/cli_spec.rb +0 -73
@@ -6,13 +6,13 @@ describe JRuby::Lint::Collector do
6
6
 
7
7
  context "loads detected checkers" do
8
8
  When { checker_class }
9
- Then { collector.checkers.detect {|c| checker_class === c }.should be_true }
9
+ Then { expect(collector.checkers.detect {|c| checker_class === c }).to be_truthy }
10
10
  end
11
11
 
12
12
  context "invokes all checkers" do
13
13
  Given(:checker) do
14
14
  double("checker").tap do |checker|
15
- checker.should_receive(:visitTrueNode)
15
+ expect(checker).to receive(:visitTrueNode)
16
16
  collector.checkers = [checker]
17
17
  end
18
18
  end
@@ -20,15 +20,9 @@ describe JRuby::Lint::Collector do
20
20
  Then { collector.run }
21
21
  end
22
22
 
23
- context "loads an AST" do
24
- When { collector.contents = 'puts "hello"' }
25
- When { @ast = collector.ast }
26
- Then { @ast.inspect.should =~ /"hello"/m }
27
- end
28
-
29
23
  context "reports syntax errors as findings" do
30
24
  When { collector.contents = '<% true %>' }
31
25
  When { collector.run }
32
- Then { collector.findings.size.should == 1 }
26
+ Then { expect(collector.findings.size).to eq(1) }
33
27
  end
34
28
  end
@@ -8,36 +8,36 @@ describe JRuby::Lint::Finding do
8
8
 
9
9
  context "has a message, location and tags" do
10
10
  When { @finding = JRuby::Lint::Finding.new(message, tags, file, line) }
11
- Then { @finding.message.should == message }
12
- Then { @finding.tags.should == tags }
13
- Then { @finding.file.should == file }
14
- Then { @finding.line.should == line }
15
- Then { @finding.to_s.should == "#{file}:#{line}: [#{tags.join(', ')}] #{message}" }
11
+ Then { expect(@finding.message).to eq(message) }
12
+ Then { expect(@finding.tags).to eq(tags) }
13
+ Then { expect(@finding.file).to eq(file) }
14
+ Then { expect(@finding.line).to eq(line) }
15
+ Then { expect(@finding.to_s).to eq("#{file}:#{line}: [#{tags.join(', ')}] #{message}") }
16
16
  end
17
17
 
18
18
  context "can receive location from SourcePosition" do
19
19
  Given(:source_position) { org.jruby.lexer.yacc.SimpleSourcePosition.new(file, line) }
20
20
 
21
21
  When { @finding = JRuby::Lint::Finding.new(message, tags, source_position) }
22
- Then { @finding.file.should == file }
23
- Then { @finding.line.should == line + 1 }
22
+ Then { expect(@finding.file).to eq(file) }
23
+ Then { expect(@finding.line).to eq(line + 1) }
24
24
  end
25
25
 
26
26
  context "converts all tags to strings" do
27
27
  Given(:tags) { [1, :two, 3.0] }
28
28
  When { @finding = JRuby::Lint::Finding.new(message, tags, file, line) }
29
- Then { @finding.tags.should == ["1", "two", "3.0"] }
29
+ Then { expect(@finding.tags).to eq(["1", "two", "3.0"]) }
30
30
  end
31
31
 
32
32
  context "with error tags" do
33
33
  Given(:tags) { [:error] }
34
34
  When { @finding = JRuby::Lint::Finding.new(message, tags, file, line) }
35
- Then { @finding.should be_error }
35
+ Then { expect(@finding).to be_error }
36
36
  end
37
37
 
38
38
  context "with warnings tags" do
39
39
  Given(:tags) { [:warning] }
40
40
  When { @finding = JRuby::Lint::Finding.new(message, tags, file, line) }
41
- Then { @finding.should be_warning }
41
+ Then { expect(@finding).to be_warning }
42
42
  end
43
43
  end
@@ -5,38 +5,38 @@ describe JRuby::Lint::Libraries do
5
5
  Given(:cache) { JRuby::Lint::Libraries::Cache.new(cache_dir) }
6
6
 
7
7
  context "cache" do
8
- Given(:cache_dir) { current_dir }
8
+ Given(:cache_dir) { expand_path(".") }
9
9
 
10
10
  context "with net access", :requires_net => true do
11
11
  context "fetch" do
12
12
  When { cache.fetch('C-Extension-Alternatives') }
13
- Then { check_file_presence(['C-Extension-Alternatives.html'], true) }
13
+ Then { expect('C-Extension-Alternatives.md').to be_an_existing_file }
14
14
  end
15
15
 
16
16
  context "refreshes a file that's too old" do
17
- Given { write_file('C-Extension-Alternatives.html', 'alternatives') }
17
+ Given { write_file('C-Extension-Alternatives.md', 'alternatives') }
18
18
  Given(:yesterday) { Time.now - 25 * 60 * 60 }
19
- Given { File.utime yesterday, yesterday, File.join(current_dir, 'C-Extension-Alternatives.html')}
19
+ Given { File.utime yesterday, yesterday, File.join(expand_path("."), 'C-Extension-Alternatives.md')}
20
20
  When { cache.fetch('C-Extension-Alternatives') }
21
- Then { File.mtime(File.join(current_dir, 'C-Extension-Alternatives.html')).should > yesterday }
21
+ Then { expect(File.mtime(File.join(expand_path("."), 'C-Extension-Alternatives.md'))).to be > yesterday }
22
22
  end
23
23
  end
24
24
 
25
25
  context "with no net access" do
26
- Given { Net::HTTP.should_not_receive(:start) }
26
+ Given { expect(Net::HTTP).not_to receive(:start) }
27
27
 
28
- context "store assumes .html extension by default" do
28
+ context "store assumes .md extension by default" do
29
29
  When { cache.store('hello.yml', 'hi')}
30
- Then { check_file_presence(['hello.yml'], true) }
30
+ Then { expect('hello.yml').to be_an_existing_file }
31
31
  end
32
32
 
33
- context "store assumes .html extension by default" do
33
+ context "store assumes .md extension by default" do
34
34
  When { cache.store('hello', 'hi')}
35
- Then { check_file_presence(['hello.html'], true) }
35
+ Then { expect('hello.md').to be_an_existing_file }
36
36
  end
37
37
 
38
38
  context "fetch should not access net when file is cached" do
39
- Given { write_file('hello.html', 'hi') }
39
+ Given { write_file('hello.md', 'hi') }
40
40
  When { cache.fetch('hello') }
41
41
  end
42
42
  end
@@ -45,12 +45,12 @@ describe JRuby::Lint::Libraries do
45
45
  context "c extensions list" do
46
46
  Given(:list) { JRuby::Lint::Libraries::CExtensions.new(cache) }
47
47
  When { list.load }
48
- Then { list.gems.keys.should include("rdiscount", "rmagick")}
48
+ Then { expect(list.gems.keys).to include("rdiscount", "rmagick")}
49
49
  end
50
50
 
51
51
  context "aggregate information" do
52
52
  Given(:info) { JRuby::Lint::Libraries.new(cache) }
53
53
  When { info.load }
54
- Then { info.gems.keys.should include("rdiscount", "rmagick")}
54
+ Then { expect(info.gems.keys).to include("rdiscount", "rmagick")}
55
55
  end
56
56
  end
@@ -1,54 +1,54 @@
1
1
  require File.expand_path('../../../spec_helper', __FILE__)
2
2
 
3
3
  describe JRuby::Lint::Project do
4
- Given(:project) { in_current_dir { JRuby::Lint::Project.new.tap {|p| p.reporters.clear } } }
4
+ Given(:project) { cd('.') { JRuby::Lint::Project.new.tap {|p| p.reporters.clear } } }
5
5
 
6
6
  context "collects Ruby scripts" do
7
7
  Given { write_file('script.rb', '') }
8
8
  When { @collectors = project.collectors }
9
- Then { @collectors.size.should == 1 }
10
- Then { @collectors.first.should be_instance_of(JRuby::Lint::Collectors::Ruby) }
9
+ Then { expect(@collectors.size).to eq(1) }
10
+ Then { expect(@collectors.first).to be_instance_of(JRuby::Lint::Collectors::Ruby) }
11
11
  end
12
12
 
13
13
  context "collects Bundler Gemfiles" do
14
14
  Given { write_file('Gemfile', '') }
15
15
  When { @collectors = project.collectors }
16
- Then { @collectors.size.should == 1 }
17
- Then { @collectors.first.should be_instance_of(JRuby::Lint::Collectors::Bundler) }
16
+ Then { expect(@collectors.size).to eq(1) }
17
+ Then { expect(@collectors.first).to be_instance_of(JRuby::Lint::Collectors::Bundler) }
18
18
  end
19
19
 
20
20
  context "collects Rakefiles" do
21
21
  Given { write_file('Rakefile', '') }
22
22
  When { @collectors = project.collectors }
23
- Then { @collectors.size.should == 1 }
24
- Then { @collectors.first.should be_instance_of(JRuby::Lint::Collectors::Rake) }
23
+ Then { expect(@collectors.size).to eq(1) }
24
+ Then { expect(@collectors.first).to be_instance_of(JRuby::Lint::Collectors::Rake) }
25
25
  end
26
26
 
27
27
  context "collects gemspecs" do
28
28
  Given { write_file('temp.gemspec', '') }
29
29
  When { @collectors = project.collectors }
30
- Then { @collectors.size.should == 1 }
31
- Then { @collectors.first.should be_instance_of(JRuby::Lint::Collectors::Gemspec) }
30
+ Then { expect(@collectors.size).to eq(1) }
31
+ Then { expect(@collectors.first).to be_instance_of(JRuby::Lint::Collectors::Gemspec) }
32
32
  end
33
33
 
34
34
  context "aggregates findings from all collectors" do
35
35
  Given(:collector1) do
36
36
  double("collector 1").tap do |c1|
37
- c1.should_receive(:run)
38
- c1.stub!(:findings).and_return [double("finding 1")]
37
+ expect(c1).to receive(:run)
38
+ allow(c1).to receive(:findings) { [double("finding 1")] }
39
39
  end
40
40
  end
41
41
  Given(:collector2) do
42
42
  double("collector 2").tap do |c2|
43
- c2.should_receive(:run)
44
- c2.stub!(:findings).and_return [double("finding 2")]
43
+ expect(c2).to receive(:run)
44
+ allow(c2).to receive(:findings) { [double("finding 2")] }
45
45
  end
46
46
  end
47
47
 
48
48
  When { project.collectors.replace([collector1, collector2]) }
49
49
  When { findings = project.run }
50
50
 
51
- Then { project.findings.size.should == 2 }
51
+ Then { expect(project.findings.size).to eq(2) }
52
52
  end
53
53
 
54
54
  context "reports findings" do
@@ -56,20 +56,20 @@ describe JRuby::Lint::Project do
56
56
 
57
57
  Given(:collector) do
58
58
  double("collector").tap do |c|
59
- c.should_receive(:run)
60
- c.stub!(:findings).and_return [finding]
59
+ expect(c).to receive(:run)
60
+ allow(c).to receive(:findings) { [finding] }
61
61
  end
62
62
  end
63
63
 
64
64
  Given(:reporter) do
65
65
  double("reporter").tap do |r|
66
- r.should_receive(:report).with([finding])
66
+ expect(r).to receive(:report).with([finding])
67
67
  end
68
68
  end
69
69
 
70
70
  When do
71
- reporter.stub!(:print_report)
72
- reporter.should_receive(:print_report).with([finding])
71
+ allow(reporter).to receive(:print_report)
72
+ expect(reporter).to receive(:print_report).with([finding])
73
73
  end
74
74
 
75
75
  When do
@@ -82,50 +82,44 @@ describe JRuby::Lint::Project do
82
82
 
83
83
  context 'initializing' do
84
84
  Given(:options) { OpenStruct.new }
85
- Given(:project) { in_current_dir { JRuby::Lint::Project.new(options) } }
86
- When { STDOUT.stub!(:tty?).and_return(false) }
85
+ Given(:project) { cd('.') { JRuby::Lint::Project.new(options) } }
86
+ When { allow(STDOUT).to receive(:tty?).and_return(false) }
87
87
 
88
88
  context 'tags' do
89
89
  Given(:options) { OpenStruct.new(:tags => ["debug"]) }
90
- Then { project.tags.should include("debug") }
91
- Then { project.tags.should include(*JRuby::Lint::Project::DEFAULT_TAGS) }
90
+ Then { expect(project.tags).to include("debug") }
91
+ Then { expect(project.tags).to include(*JRuby::Lint::Project::DEFAULT_TAGS) }
92
92
  end
93
93
 
94
94
  context 'reporters' do
95
95
  context 'with html option' do
96
96
  Given(:options) { OpenStruct.new(:html => 'report.html') }
97
- Then { project.reporters.should have(1).reporter }
98
- Then { project.reporters.first.should be_an_instance_of(JRuby::Lint::Reporters::Html) }
97
+ Then { expect(project.reporters.size).to equal(1) }
98
+ Then { expect(project.reporters.first).to be_an_instance_of(JRuby::Lint::Reporters::Html) }
99
99
  end
100
100
 
101
101
  context 'with ansi option' do
102
102
  Given(:options) { OpenStruct.new(:ansi => true) }
103
- Then { project.reporters.should have(1).reporter }
104
- Then { project.reporters.first.should be_an_instance_of(JRuby::Lint::Reporters::ANSIColor) }
103
+ Then { expect(project.reporters.size).to equal(1) }
104
+ Then { expect(project.reporters.first).to be_an_instance_of(JRuby::Lint::Reporters::ANSIColor) }
105
105
  end
106
106
 
107
107
  context 'with text option' do
108
108
  Given(:options) { OpenStruct.new(:text => true) }
109
- Then { project.reporters.should have(1).reporter }
110
- Then { project.reporters.first.should be_an_instance_of(JRuby::Lint::Reporters::Text) }
111
- end
112
-
113
- context 'with tty' do
114
- Given { STDOUT.stub(:tty?).and_return(true) }
115
- Then { project.reporters.should have(1).reporter }
116
- Then { project.reporters.first.should be_an_instance_of(JRuby::Lint::Reporters::ANSIColor) }
109
+ Then { expect(project.reporters.size).to equal(1) }
110
+ Then { expect(project.reporters.first).to be_an_instance_of(JRuby::Lint::Reporters::Text) }
117
111
  end
118
112
 
119
113
  context 'without any option' do
120
- Then { project.reporters.should have(1).reporter }
121
- Then { project.reporters.first.should be_an_instance_of(JRuby::Lint::Reporters::Text) }
114
+ Then { expect(project.reporters.size).to equal(1) }
115
+ Then { expect(project.reporters.first).to be_an_instance_of(JRuby::Lint::Reporters::Text) }
122
116
  end
123
117
 
124
118
  context 'with several options' do
125
119
  Given(:options) { OpenStruct.new(:ansi => true, :html => 'report.html') }
126
- Then { project.reporters.should have(2).reporter }
127
- Then { project.reporters.map(&:class).should include(JRuby::Lint::Reporters::ANSIColor) }
128
- Then { project.reporters.map(&:class).should include(JRuby::Lint::Reporters::Html) }
120
+ Then { expect(project.reporters.size).to eq(2) }
121
+ Then { expect(project.reporters.map(&:class)).to include(JRuby::Lint::Reporters::ANSIColor) }
122
+ Then { expect(project.reporters.map(&:class)).to include(JRuby::Lint::Reporters::Html) }
129
123
  end
130
124
  end
131
125
  end
@@ -8,14 +8,14 @@ describe JRuby::Lint::Reporters do
8
8
 
9
9
  context "with a finding sharing a tag with the project" do
10
10
  Given(:finding) { double "finding", :to_s => "hello", :tags => %w(info) }
11
- Given(:output) { double("output").tap {|o| o.should_receive(:puts).with("hello") } }
11
+ Given(:output) { double("output").tap {|o| expect(o).to receive(:puts).with("hello") } }
12
12
 
13
13
  Then { reporter.report [finding] }
14
14
  end
15
15
 
16
16
  context "with a finding sharing no tags with the project" do
17
17
  Given(:finding) { double "finding", :to_s => "hello", :tags => %w(debug) }
18
- Given(:output) { double("output").tap {|o| o.should_not_receive(:puts) } }
18
+ Given(:output) { double("output").tap {|o| expect(o).to_not receive(:puts) } }
19
19
 
20
20
  Then { reporter.report [finding] }
21
21
  end
@@ -26,16 +26,25 @@ describe JRuby::Lint::Reporters do
26
26
  Given(:reporter) { JRuby::Lint::Reporters::ANSIColor.new(project, output) }
27
27
 
28
28
  context "shows a finding tagged 'error' in red" do
29
- Given(:finding) { double "finding", :to_s => "hello", :tags => %w(error), :error? => true }
30
- Given(:output) { double("output").tap {|o| o.should_receive(:puts).with(red("hello")) } }
29
+ Given(:finding) { double "finding", src_line: "line", to_s: "hello", tags: %w(error), "error?": true }
30
+ Given(:output) do
31
+ double("output").tap do |o|
32
+ expect(o).to receive(:puts).with(red("hello"))
33
+ expect(o).to receive(:puts).with("line")
34
+ end
35
+ end
31
36
 
32
37
  Then { reporter.report [finding] }
33
38
  end
34
39
 
35
- context "shows a finding tagged 'warning' in yellow" do
36
- Given(:finding) { double "finding", :to_s => "hello", :tags => %w(warning), :error? => false, :warning? => true }
37
- Given(:output) { double("output").tap {|o| o.should_receive(:puts).with(yellow("hello")) } }
38
-
40
+ context "shows a finding tagged 'warning' in cyan" do
41
+ Given(:finding) { double "finding", :src_line => "line", :to_s => "hello", :tags => %w(warning), :error? => false, :warning? => true }
42
+ Given(:output) do
43
+ double("output").tap do |o|
44
+ expect(o).to receive(:puts).with(cyan("hello"))
45
+ expect(o).to receive(:puts).with("line")
46
+ end
47
+ end
39
48
  Then { reporter.report [finding] }
40
49
  end
41
50
  end
@@ -44,20 +53,20 @@ describe JRuby::Lint::Reporters do
44
53
  Given(:reporter) { JRuby::Lint::Reporters::Html.new(project, 'lint-spec-report.html') }
45
54
 
46
55
  context "shows a finding tagged 'error' in red" do
47
- Given(:finding) { double "finding", :to_s => "hello", :tags => %w(error), :error? => true }
56
+ Given(:finding) { double "finding", :src_line => "line", :to_s => "hello", :tags => %w(error), :error? => true }
48
57
  Then { reporter.print_report [finding] }
49
- Then { File.read('lint-spec-report.html').should include('<li class="error">hello</li>') }
58
+ Then { expect(File.read('lint-spec-report.html')).to include('<li class="error">hello</li>') }
50
59
  end
51
60
 
52
61
  context "shows a finding tagged 'warning' in yellow" do
53
- Given(:finding) { double "finding", :to_s => "hello", :tags => %w(warning), :error? => false, :warning? => true }
62
+ Given(:finding) { double "finding", :src_line => "line", :to_s => "hello", :tags => %w(warning), :error? => false, :warning? => true }
54
63
  Then { reporter.print_report [finding] }
55
- Then { File.read('lint-spec-report.html').should include('<li class="warning">hello</li>') }
64
+ Then { expect(File.read('lint-spec-report.html')).to include('<li class="warning">hello</li>') }
56
65
  end
57
66
 
58
67
  context "shows a nice message when we don't find any issue" do
59
68
  When { reporter.print_report [] }
60
- Then { File.read('lint-spec-report.html').should include('Congratulations!') }
69
+ Then { expect(File.read('lint-spec-report.html')).to include('Congratulations!') }
61
70
  end
62
71
  end
63
72
  end
@@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
2
2
 
3
3
  describe JRuby::Lint, "version" do
4
4
  Given(:version) { JRuby::Lint::VERSION }
5
- Then { version.should >= "0" }
5
+ Then { expect(version).to be >= "0" }
6
6
  end
@@ -20,7 +20,7 @@ RSpec.configure do |config|
20
20
  config.before do
21
21
  @aruba_timeout_seconds = 20
22
22
  @existing_checkers = JRuby::Lint::Checker.loaded_checkers.dup
23
- in_current_dir { Dir['**/*'].each {|f| File.unlink(f) if File.file?(f) } }
23
+ cd('.') { Dir['**/*'].each {|f| File.unlink(f) if File.file?(f) } }
24
24
  JRuby::Lint::Checkers::CheckGemNode.instance_eval { @added_wiki_link = nil }
25
25
  end
26
26
 
metadata CHANGED
@@ -1,138 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby-lint
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.4.1
4
+ version: 0.9.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Nick Sieger
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-26 00:00:00.000000000 Z
11
+ date: 2019-03-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: term-ansicolor
16
- version_requirements: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - ">="
19
- - !ruby/object:Gem::Version
20
- version: !binary |-
21
- MA==
22
- none: false
23
14
  requirement: !ruby/object:Gem::Requirement
24
15
  requirements:
25
16
  - - ">="
26
17
  - !ruby/object:Gem::Version
27
- version: !binary |-
28
- MA==
29
- none: false
18
+ version: '0'
19
+ name: term-ansicolor
30
20
  prerelease: false
31
21
  type: :runtime
32
- - !ruby/object:Gem::Dependency
33
- name: jruby-openssl
34
22
  version_requirements: !ruby/object:Gem::Requirement
35
23
  requirements:
36
24
  - - ">="
37
25
  - !ruby/object:Gem::Version
38
- version: !binary |-
39
- MA==
40
- none: false
41
- requirement: !ruby/object:Gem::Requirement
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: !binary |-
46
- MA==
47
- none: false
48
- prerelease: false
49
- type: :runtime
26
+ version: '0'
50
27
  - !ruby/object:Gem::Dependency
51
- name: nokogiri
52
- version_requirements: !ruby/object:Gem::Requirement
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: 1.5.0.beta.4
57
- none: false
58
28
  requirement: !ruby/object:Gem::Requirement
59
29
  requirements:
60
30
  - - ">="
61
31
  - !ruby/object:Gem::Version
62
- version: 1.5.0.beta.4
63
- none: false
64
- prerelease: false
65
- type: :runtime
66
- - !ruby/object:Gem::Dependency
32
+ version: '0'
67
33
  name: rake
34
+ prerelease: false
35
+ type: :development
68
36
  version_requirements: !ruby/object:Gem::Requirement
69
37
  requirements:
70
38
  - - ">="
71
39
  - !ruby/object:Gem::Version
72
- version: !binary |-
73
- MA==
74
- none: false
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
75
42
  requirement: !ruby/object:Gem::Requirement
76
43
  requirements:
77
44
  - - ">="
78
45
  - !ruby/object:Gem::Version
79
- version: !binary |-
80
- MA==
81
- none: false
46
+ version: '2.5'
47
+ name: rspec
82
48
  prerelease: false
83
49
  type: :development
84
- - !ruby/object:Gem::Dependency
85
- name: rspec
86
50
  version_requirements: !ruby/object:Gem::Requirement
87
51
  requirements:
88
52
  - - ">="
89
53
  - !ruby/object:Gem::Version
90
54
  version: '2.5'
91
- none: false
55
+ - !ruby/object:Gem::Dependency
92
56
  requirement: !ruby/object:Gem::Requirement
93
57
  requirements:
94
58
  - - ">="
95
59
  - !ruby/object:Gem::Version
96
- version: '2.5'
97
- none: false
60
+ version: '0'
61
+ name: rspec-given
98
62
  prerelease: false
99
63
  type: :development
100
- - !ruby/object:Gem::Dependency
101
- name: rspec-given
102
64
  version_requirements: !ruby/object:Gem::Requirement
103
65
  requirements:
104
66
  - - ">="
105
67
  - !ruby/object:Gem::Version
106
- version: !binary |-
107
- MA==
108
- none: false
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
109
70
  requirement: !ruby/object:Gem::Requirement
110
71
  requirements:
111
72
  - - ">="
112
73
  - !ruby/object:Gem::Version
113
- version: !binary |-
114
- MA==
115
- none: false
74
+ version: '0'
75
+ name: aruba
116
76
  prerelease: false
117
77
  type: :development
118
- - !ruby/object:Gem::Dependency
119
- name: aruba
120
78
  version_requirements: !ruby/object:Gem::Requirement
121
79
  requirements:
122
80
  - - ">="
123
81
  - !ruby/object:Gem::Version
124
- version: !binary |-
125
- MA==
126
- none: false
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: !binary |-
132
- MA==
133
- none: false
134
- prerelease: false
135
- type: :development
82
+ version: '0'
136
83
  description: |-
137
84
  This utility presents hints and suggestions to
138
85
  give you an idea of potentially troublesome spots in your code and
@@ -167,7 +114,6 @@ files:
167
114
  - lib/jruby/lint/checkers/object_space.rb
168
115
  - lib/jruby/lint/checkers/system.rb
169
116
  - lib/jruby/lint/checkers/thread_critical.rb
170
- - lib/jruby/lint/checkers/timeout.rb
171
117
  - lib/jruby/lint/cli.rb
172
118
  - lib/jruby/lint/collectors.rb
173
119
  - lib/jruby/lint/collectors/bundler.rb
@@ -175,7 +121,6 @@ files:
175
121
  - lib/jruby/lint/collectors/rake.rb
176
122
  - lib/jruby/lint/collectors/ruby.rb
177
123
  - lib/jruby/lint/finding.rb
178
- - lib/jruby/lint/github.crt
179
124
  - lib/jruby/lint/libraries.rb
180
125
  - lib/jruby/lint/project.rb
181
126
  - lib/jruby/lint/reporters.rb
@@ -183,10 +128,9 @@ files:
183
128
  - lib/jruby/lint/reporters/jruby-lint.html.erb
184
129
  - lib/jruby/lint/reporters/text.rb
185
130
  - lib/jruby/lint/version.rb
186
- - spec/fixtures/C-Extension-Alternatives.html
131
+ - spec/fixtures/C-Extension-Alternatives.md
187
132
  - spec/jruby/lint/ast_spec.rb
188
133
  - spec/jruby/lint/checkers_spec.rb
189
- - spec/jruby/lint/cli_spec.rb
190
134
  - spec/jruby/lint/collectors_spec.rb
191
135
  - spec/jruby/lint/finding_spec.rb
192
136
  - spec/jruby/lint/libraries_spec.rb
@@ -196,9 +140,10 @@ files:
196
140
  - spec/spec_helper.rb
197
141
  homepage: https://github.com/jruby/jruby-lint
198
142
  licenses:
199
- - EPL 1.0
200
- - GPL 2
201
- - LGPL 2.1
143
+ - EPL-1.0
144
+ - GPL-2.0
145
+ - LGPL-2.1
146
+ metadata: {}
202
147
  post_install_message:
203
148
  rdoc_options: []
204
149
  require_paths:
@@ -207,33 +152,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
152
  requirements:
208
153
  - - ">="
209
154
  - !ruby/object:Gem::Version
210
- segments:
211
- - 0
212
- hash: 2
213
- version: !binary |-
214
- MA==
215
- none: false
155
+ version: 2.5.3
216
156
  required_rubygems_version: !ruby/object:Gem::Requirement
217
157
  requirements:
218
158
  - - ">="
219
159
  - !ruby/object:Gem::Version
220
- segments:
221
- - 0
222
- hash: 2
223
- version: !binary |-
224
- MA==
225
- none: false
160
+ version: '0'
226
161
  requirements: []
227
162
  rubyforge_project: jruby-lint
228
- rubygems_version: 1.8.24
163
+ rubygems_version: 2.7.6
229
164
  signing_key:
230
- specification_version: 3
165
+ specification_version: 4
231
166
  summary: See how ready your Ruby code is to run on JRuby.
232
167
  test_files:
233
- - spec/fixtures/C-Extension-Alternatives.html
168
+ - spec/fixtures/C-Extension-Alternatives.md
234
169
  - spec/jruby/lint/ast_spec.rb
235
170
  - spec/jruby/lint/checkers_spec.rb
236
- - spec/jruby/lint/cli_spec.rb
237
171
  - spec/jruby/lint/collectors_spec.rb
238
172
  - spec/jruby/lint/finding_spec.rb
239
173
  - spec/jruby/lint/libraries_spec.rb