skeptic 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c45fc1d62324bffc8b9f0d3eb676021c5e633c7c
4
- data.tar.gz: e094168af9aa0e039cc09631dd5929621d5f8035
3
+ metadata.gz: 32730b6647f52795d7c20678e0026137e592af04
4
+ data.tar.gz: 12c7bdb4def24814422f7a4b941aad3f012ae699
5
5
  SHA512:
6
- metadata.gz: 0d9daef8f8c76ab20091d592afcad6543660d9a255ac8b2e89fa9226a4302c99ec9ebc0cfbc5957d39c12e3b685386b442721c0700e5c8508bbb016e16824497
7
- data.tar.gz: 8293ead770542d3e179c411b61079c9a3b47ecd188383cf0d5ae0405581bec8868111e843b81deebe76a6091e03723200f94f7add6041221aa75a44409bde5b2
6
+ metadata.gz: b73349b63c10af9f7ef3402f7a0d4b8cfe8f0a2b2e701c473ae57f52b929fc9a0743a6f6d73ee4bd8ea05f9a588a5c413f0efa21b305f92b372abc8a8d8a9521
7
+ data.tar.gz: 02b98284899763efba4e877501f34df8c29242595a69ba29980a915ff3f88bf4d915a00ae9566942dcb29067e90af424c29985dedd091a10593ed45c1bf9be8a
@@ -1,3 +1,7 @@
1
+ ## 0.0.16 (2015-11-21)
2
+ Bugfixes:
3
+ - Stop reporting double negation operator as a space-around-operators violation
4
+
1
5
  ## 0.0.15 (2015-11-16)
2
6
  Bugfixes:
3
7
  - Fix unary operators that start lines handling ([s2gatev](https://github.com/s2gatev))
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.15
1
+ 0.0.16
@@ -71,6 +71,7 @@ module Skeptic
71
71
 
72
72
  def no_spaces_on_right_of?(operator, neighbour)
73
73
  neighbour.first[0] == operator.first[0] and
74
+ !double_negation_operator?(operator, neighbour) and
74
75
  !RIGHT_LIMIT_TOKEN_TYPES.include?(neighbour[1]) and
75
76
  !special_token?(neighbour)
76
77
  end
@@ -79,6 +80,10 @@ module Skeptic
79
80
  operator.last[0..1] == '..'
80
81
  end
81
82
 
83
+ def double_negation_operator?(token, other)
84
+ token.last == '!' and other.last == '!'
85
+ end
86
+
82
87
  def mark_special_tokens(*token_locations)
83
88
  @special_tokens_locations.concat(token_locations)
84
89
  end
@@ -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.15 ruby lib
5
+ # stub: skeptic 0.0.16 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "skeptic"
9
- s.version = "0.0.15"
9
+ s.version = "0.0.16"
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-11-16"
14
+ s.date = "2015-11-21"
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.15
4
+ version: 0.0.16
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-11-16 00:00:00.000000000 Z
11
+ date: 2015-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop