code_analyzer 0.4.3 → 0.4.4
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 +4 -4
- data/.travis.yml +2 -0
- data/lib/code_analyzer/checker.rb +1 -1
- data/lib/code_analyzer/version.rb +1 -1
- data/spec/code_analyzer/sexp_spec.rb +5 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1313a9c7eebbf19bc331a99a0f809d7d3045b0d2
|
4
|
+
data.tar.gz: b681f810a0971fb916cde01d97d80fbf78b1af0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c32a12cedaa8586b3aa1398bc1e2da6226b426838c6a13b2bc95b9fc9f7a641d747d4cbdfb114d416d70e4f4f747f5496fad891ccd0f2a75248672e215f069ad
|
7
|
+
data.tar.gz: 12bd4b30529bdbc137463836a9ccc813676ec128b2760685eef02e452d41ff279963c9853047f5135235ff2e825a4647fe31be0ccc6b685ffd6a748ba4873d6c
|
data/.travis.yml
CHANGED
@@ -51,7 +51,7 @@ module CodeAnalyzer
|
|
51
51
|
# @param [String] message, is the warning message
|
52
52
|
# @param [String] filename, is the filename of source code
|
53
53
|
# @param [Integer] line_number, is the line number of the source code which is reviewing
|
54
|
-
def add_warning(message, filename = @node.file, line_number = @node.
|
54
|
+
def add_warning(message, filename = @node.file, line_number = @node.line_number)
|
55
55
|
warnings << Warning.new(filename: filename, line_number: line_number, message: message)
|
56
56
|
end
|
57
57
|
|
@@ -568,9 +568,11 @@ describe Sexp do
|
|
568
568
|
node.array_values.map(&:to_s).should == ["first_name", "last_name"]
|
569
569
|
end
|
570
570
|
|
571
|
-
|
572
|
-
|
573
|
-
|
571
|
+
if RUBY_VERSION.to_i > 1
|
572
|
+
it "should get array value with array and qsymbols_add" do
|
573
|
+
node = parse_content("%i(first_name last_name)").grep_node(sexp_type: :array)
|
574
|
+
node.array_values.map(&:to_s).should == ["first_name", "last_name"]
|
575
|
+
end
|
574
576
|
end
|
575
577
|
end
|
576
578
|
|
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.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Huang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sexp_processor
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.0.
|
112
|
+
rubygems_version: 2.0.14
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: a code analyzer helps you build your own code analyzer tool.
|