code_analyzer 0.4.8 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,13 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  module CodeAnalyzer
4
6
  describe Warning do
5
- it "should return error with filename, line number and message" do
6
-
7
- expect(Warning.new(
8
- filename: "app/models/user.rb",
9
- line_number: "100",
10
- message: "not good").to_s).to eq "app/models/user.rb:100 - not good"
7
+ it 'should return error with filename, line number and message' do
8
+ expect(
9
+ Warning.new(filename: 'app/models/user.rb', line_number: '100', message: 'not good').to_s
10
+ ).to eq 'app/models/user.rb:100 - not good'
11
11
  end
12
12
  end
13
13
  end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  $LOAD_PATH.unshift(File.dirname(__FILE__))
2
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
4
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
5
 
4
6
  require 'rspec'
5
7
  require 'code_analyzer'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code_analyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-26 00:00:00.000000000 Z
11
+ date: 2022-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sexp_processor
@@ -60,9 +60,10 @@ executables: []
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
+ - ".github/workflows/main.yml"
63
64
  - ".gitignore"
64
65
  - ".rspec"
65
- - ".travis.yml"
66
+ - ".ruby-version"
66
67
  - Gemfile
67
68
  - LICENSE
68
69
  - README.md
@@ -91,7 +92,7 @@ homepage: https://github.com/flyerhzm/code_analyzer
91
92
  licenses:
92
93
  - MIT
93
94
  metadata: {}
94
- post_install_message:
95
+ post_install_message:
95
96
  rdoc_options: []
96
97
  require_paths:
97
98
  - lib
@@ -106,9 +107,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
107
  - !ruby/object:Gem::Version
107
108
  version: '0'
108
109
  requirements: []
109
- rubyforge_project:
110
- rubygems_version: 2.6.12
111
- signing_key:
110
+ rubygems_version: 3.3.3
111
+ signing_key:
112
112
  specification_version: 4
113
113
  summary: a code analyzer helps you build your own code analyzer tool.
114
114
  test_files:
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- sudo: false
4
- rvm:
5
- - 2.3.1