coffeelint 0.2.7 → 0.3.0

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: c911352ec2b63e923e39d097f0e77bfa86e78e11
4
- data.tar.gz: 48e9f7be428f2c7db10e1842cc44e3b98f39471e
3
+ metadata.gz: 18e8384007a23b427d77d61296f6620c1315169d
4
+ data.tar.gz: c057588f3b99110d18e78f5b8a2303e9cc84b072
5
5
  SHA512:
6
- metadata.gz: c9514800789c878c521b808a94e1f9220bd5686f70a392915acfd482495b77878a3729ea65db813809986abd6866bf569be40ea8934d6241e0d641e52c9346c7
7
- data.tar.gz: 3e23fb9822c1e448cdf0f15c563bd87d6f9a4e65a728a1dc1e696c2d28a141c1ae7d8c9c2f0030f03e35b408e460974f29fb36d250b5e6bfb634bde0e1ac5b19
6
+ metadata.gz: 90c1107483e85fa8bcebd329dc736c405502c924150672c0b3c14e2876496a4e69a2dcf2f89a9a88712327ff4e675ea3ef7d3e231ea4f853ed0cee0b19ca1e9c
7
+ data.tar.gz: 7448dcd8573831b69112cd274d2272fc990c3d46c5d893bb1481608bb804960396d01c1bc1658ec1480aa56822c778ca5c6cef088a2ccdb4a160890b51dc06d9
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Coffeelint [![Build Status](https://travis-ci.org/zmbush/coffeelint-ruby.svg?branch=master)](https://travis-ci.org/zmbush/coffeelint-ruby) [![Gem Version](https://badge.fury.io/rb/coffeelint.png)](http://badge.fury.io/rb/coffeelint)
2
2
 
3
- Using coffeelint version: v1.3.0
3
+ Using coffeelint version: v1.4.1
4
4
 
5
5
  Coffeelint is a set of simple ruby bindings for [coffeelint](https://github.com/clutchski/coffeelint).
6
6
 
@@ -2,7 +2,7 @@
2
2
  module.exports={
3
3
  "name": "coffeelint",
4
4
  "description": "Lint your CoffeeScript",
5
- "version": "1.3.0",
5
+ "version": "1.4.1",
6
6
  "homepage": "http://www.coffeelint.org",
7
7
  "keywords": [
8
8
  "lint",
@@ -22,11 +22,12 @@ module.exports={
22
22
  "coffeelint": "./bin/coffeelint"
23
23
  },
24
24
  "dependencies": {
25
- "optimist": ">=0.2.8",
25
+ "browserify": "~3.37",
26
26
  "coffee-script": "~1.7",
27
+ "coffeeify": "~0.6.0",
27
28
  "glob": ">=3.1.9",
28
- "browserify": "~3.37",
29
- "coffeeify": "~0.6.0"
29
+ "optimist": ">=0.2.8",
30
+ "resolve": "^0.6.3"
30
31
  },
31
32
  "devDependencies": {
32
33
  "vows": ">=0.6.0",
@@ -471,7 +472,7 @@ hasSyntaxError = function(source) {
471
472
  };
472
473
 
473
474
  coffeelint.lint = function(source, userConfig, literate) {
474
- var all_errors, astErrors, block_config, cmd, config, disabled, disabled_initially, e, errors, i, l, lexErrors, lexicalLinter, lineErrors, lineLinter, next_line, r, rules, s, tokensByLine, _i, _j, _k, _len, _len1, _ref, _ref1, _ref2, _ref3, _ref4;
475
+ var all_errors, astErrors, block_config, cmd, config, disabled, disabled_initially, e, errors, i, l, lexErrors, lexicalLinter, lineErrors, lineLinter, name, next_line, r, rules, s, tokensByLine, _i, _j, _k, _len, _len1, _ref, _ref1, _ref2, _ref3, _ref4;
475
476
  if (userConfig == null) {
476
477
  userConfig = {};
477
478
  }
@@ -481,6 +482,13 @@ coffeelint.lint = function(source, userConfig, literate) {
481
482
  if (literate) {
482
483
  source = this.invertLiterate(source);
483
484
  }
485
+ for (name in userConfig) {
486
+ if (name !== 'coffeescript_error' && name !== '_comment') {
487
+ if (_rules[name] == null) {
488
+ void 0;
489
+ }
490
+ }
491
+ }
484
492
  config = mergeDefaultConfig(userConfig);
485
493
  disabled_initially = [];
486
494
  _ref = source.split('\n');
@@ -1,3 +1,3 @@
1
1
  module Coffeelint
2
- VERSION = "0.2.7"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coffeelint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Bush
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-21 00:00:00.000000000 Z
11
+ date: 2014-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-script