stylr 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: c38522363f3e8964f9c37bcd3fe9f12fa6838111
4
- data.tar.gz: c267f67af3f5d65d703bb7cdcbc21e8bbc9c30a3
3
+ metadata.gz: f11d9d241f07e4f320dc3d67108124c128ac9972
4
+ data.tar.gz: e2f885f242ba6185b50b93ebe1d9c1f076578d29
5
5
  SHA512:
6
- metadata.gz: ceb8c4938d076cb1c5d1eb9f0204a6a78a611b1f9b26fe0b60f337f27a75ee28109f8bd66f1d281f26ff3b5bd7bdccf8423b0328e3e3f7721f6bea95772d789f
7
- data.tar.gz: 7155e7cb3db60f1d1d3a846e1a17c0112a6a3edb9693b87c9e401cd69e6f7252b6655f1cb9a4f3a3cad8aeeab077d6750cfc49c836167626c02dc561f642af87
6
+ metadata.gz: 3339314a4a7593582bc04b2bceef87c2a3cd84ac41cb6378ebf09b0df4750464a5d3ba1330046d14d0ba644b66770c5811bc1fea3ddca2101cae7411df6704bc
7
+ data.tar.gz: 10980f96973dfd29b4b7ec15b38a2b4baf1603b4f63f239931d90525fca39fc7b32a6497da25ac5febc5a3fd76a471407c14f8c9adcfd94f7dc54ac5883bce15
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stylr (0.0.15)
4
+ stylr (0.0.16)
5
5
  main (~> 5.2, >= 5.2.0)
6
6
 
7
7
  GEM
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  require "bundler/gem_tasks"
2
2
 
3
3
  task :default do
4
- exec 'rspec'
4
+ exec 'ruby bin/stylr . --ignore=spec --ignore=vendor && rspec'
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module Stylr
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
@@ -186,8 +186,8 @@ module Stylr
186
186
  end
187
187
 
188
188
  context "line_too_long" do
189
- it "dislikes lines of >= 80 chars" do
190
- l.line_too_long_violation?("#{'a' * 80}").should be_true
189
+ it "dislikes lines of >= some number of chars" do
190
+ l.line_too_long_violation?("#{'a' * l.instance_variable_get(:@config)["line_length"]}").should be_true
191
191
  end
192
192
  end
193
193
 
@@ -1,5 +1,5 @@
1
1
  class Foo
2
2
  """
3
- TENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERS
3
+ TENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERSTENLETTERS
4
4
  """
5
5
  end
data/stylr.yml CHANGED
@@ -1,4 +1,4 @@
1
- line_length: 80
1
+ line_length: 180
2
2
  line_too_long: true
3
3
  missing_parens: true
4
4
  trailing_whitespace: true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stylr
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
  - Mark Billie