skeptic 0.0.14 → 0.0.15

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c50ddb8500c67652b5d76236fed471b66e7c10a2
4
- data.tar.gz: 701c0cfc317879fcb8d23834dcaffab02ba5d7a7
3
+ metadata.gz: c45fc1d62324bffc8b9f0d3eb676021c5e633c7c
4
+ data.tar.gz: e094168af9aa0e039cc09631dd5929621d5f8035
5
5
  SHA512:
6
- metadata.gz: 3af0a80ff4d84495ae3cbe21163bb368913494a69a172d0027fa616e391a9e442170aa10e58e8c195a43ecc2a63fc2ec4b209af7694e95ca77e9e5292d69ce93
7
- data.tar.gz: d459748904f7e8fd71e199318f93065cd352a723955cf15912dfbfa291c4e0a77166b5d04da53c5718b6e526a8dfa3cc4e26f9ebee3dfaf29f0a80dfbd46a9c5
6
+ metadata.gz: 0d9daef8f8c76ab20091d592afcad6543660d9a255ac8b2e89fa9226a4302c99ec9ebc0cfbc5957d39c12e3b685386b442721c0700e5c8508bbb016e16824497
7
+ data.tar.gz: 8293ead770542d3e179c411b61079c9a3b47ecd188383cf0d5ae0405581bec8868111e843b81deebe76a6091e03723200f94f7add6041221aa75a44409bde5b2
@@ -1,3 +1,11 @@
1
+ ## 0.0.15 (2015-11-16)
2
+ Bugfixes:
3
+ - Fix unary operators that start lines handling ([s2gatev](https://github.com/s2gatev))
4
+
5
+ ## 0.0.14 (2015-10-16)
6
+ Bugfixes:
7
+ - Fix unary operators false positives
8
+
1
9
  ## 0.0.12 (2015-10-14)
2
10
  Bugfixes:
3
11
  - Fix range operators handling and stop detecting splat operators in beginning of collection literals
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.14
1
+ 0.0.15
@@ -9,7 +9,7 @@ module Skeptic
9
9
  IGNORED_TOKEN_TYPES = [:on_sp, :on_ignored_nl, :on_nl, :on_lparen, :on_symbeg, :on_lbracket, :on_lbrace]
10
10
  LEFT_LIMIT_TOKEN_TYPES = [:on_lparen, :on_lbracket]
11
11
  RIGHT_LIMIT_TOKEN_TYPES = [:on_rparen, :on_rbracket]
12
- WHITESPACE_TOKEN_TYPES = [:on_sp, :on_nl, :on_ignored_nl]
12
+ WHITESPACE_TOKEN_TYPES = [:on_sp]
13
13
 
14
14
  def initialize(data)
15
15
  @violations = []
@@ -97,7 +97,7 @@ module Skeptic
97
97
  last_significant_token = nil
98
98
  tokens.each do |token|
99
99
  if token[1] == :on_op
100
- if last_significant_token == :on_op
100
+ if [:on_op, :on_semicolon, :on_ignored_nl].include?(last_significant_token)
101
101
  @unary_token_locations << token[0]
102
102
  end
103
103
  last_significant_token = :on_op
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: skeptic 0.0.14 ruby lib
5
+ # stub: skeptic 0.0.15 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "skeptic"
9
- s.version = "0.0.14"
9
+ s.version = "0.0.15"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Stefan Kanev"]
14
- s.date = "2015-10-16"
14
+ s.date = "2015-11-16"
15
15
  s.description = "An experimental, half-assed, bug-ridden and highly opinionated code analyzer."
16
16
  s.email = "stefan.kanev@gmail.com"
17
17
  s.executables = ["skeptic"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skeptic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kanev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-16 00:00:00.000000000 Z
11
+ date: 2015-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop