coffeelint 0.0.2 → 0.0.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.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MjU4NTEwYjRmMGY0ZjJmNTZhMzA2ZWZlMjE1OWUyODgwZTIyNTFiYQ==
5
+ data.tar.gz: !binary |-
6
+ OTcwYjBjYmYxMDQ2YmE4YTcxZDk1MDQzOWI0ZDcwNjUzMDRkMjA1Ng==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ MzkzNWMwNDg3YzNmYTIyNmQ2MWVmZjIxNTMwYmNlODhmOGZkNzA3NWYyMTQ2
10
+ NmFmYjZmMWNhNTQwMjUwZDM0MjVkMzJlZTI0NWNhYzExZmIwZTBkMWQzYmIx
11
+ MTRkZjdmZGU3ZDM0YTA0OTgyMDU1YWEyYmUxNDI1ZDlhNmQwYzg=
12
+ data.tar.gz: !binary |-
13
+ ZTUzMzI4NDBlYzFmNzg2NDFhNmE2OTE5NTMxOTZmM2QwMDY5ZTc0MjdhNmMx
14
+ NzA1YTQxNWE3NmQzNTQwNjQ3ZjIzZDcxODJjYmU3OGQ2ZjIyMzk5ZWU2ZTBi
15
+ ZjA5OTZiZjk0MDk3ZWQ1NmUyMzliZTAzN2U0Y2RhYjhkMjdlM2E=
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Coffeelint
2
2
 
3
- TODO: Write a gem description
3
+ Coffeelint is a set of simple ruby bindings for [coffeelint](https://github.com/clutchski/coffeelint).
4
4
 
5
5
  ## Installation
6
6
 
@@ -8,6 +8,10 @@ Add this line to your application's Gemfile:
8
8
 
9
9
  gem 'coffeelint'
10
10
 
11
+ Or for the most up to date version:
12
+
13
+ gem 'coffeelint', :git => 'git://github.com/zipcodeman/coffeelint-ruby.git', :submodules => true
14
+
11
15
  And then execute:
12
16
 
13
17
  $ bundle
@@ -18,7 +22,23 @@ Or install it yourself as:
18
22
 
19
23
  ## Usage
20
24
 
21
- TODO: Write usage instructions here
25
+ There are a few different uses of coffeelint.
26
+
27
+ ```ruby
28
+ lint_report = Coffeelint.lint(coffeescript source code)
29
+ lint_report = Coffeelint.lint_file(filename of coffeescript source)
30
+ lint_reports = Coffeelint.lint_dir(directory)
31
+ Coffeelint.lint_dir(directory) do |filename, lint_report|
32
+ puts filename
33
+ puts lint_report
34
+ end
35
+ ```
36
+
37
+ Additionally, if you are using rails you also get the rake task:
38
+
39
+ rake coffeelint
40
+
41
+ Which will run the test on any *.coffee file in your project
22
42
 
23
43
  ## Contributing
24
44
 
@@ -11,6 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.description = %q{Ruby bindings for coffeelint}
12
12
  gem.summary = %q{Ruby bindings for coffeelint along with railtie to add rake task to rails}
13
13
  gem.homepage = "https://github.com/zipcodeman/coffeelint-ruby"
14
+ gem.licenses = ["MIT"]
14
15
 
15
16
  gem.files = `git ls-files`.split($/)
16
17
  gem.files << 'coffeelint/src/coffeelint.coffee'
@@ -30,8 +30,6 @@ module Coffeelint
30
30
  end
31
31
 
32
32
  def self.display_test_results(name, errors)
33
- name = name[2..-1]
34
-
35
33
  good = "\u2713"
36
34
  bad = "\u2717"
37
35
 
@@ -1,3 +1,3 @@
1
1
  module Coffeelint
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  desc "lint application javascript"
2
2
  task :coffeelint do
3
- fail 'Lint!' unless Coffeelint.run_test('.')
3
+ success = Coffeelint.run_test_suite('app') and Coffeelint.run_test_suite('spec')
4
+ fail "Lint!" unless success
4
5
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coffeelint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Zachary Bush
@@ -14,7 +13,6 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: coffee-script
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -49,27 +46,27 @@ files:
49
46
  - lib/tasks/coffeelint.rake
50
47
  - coffeelint/src/coffeelint.coffee
51
48
  homepage: https://github.com/zipcodeman/coffeelint-ruby
52
- licenses: []
49
+ licenses:
50
+ - MIT
51
+ metadata: {}
53
52
  post_install_message:
54
53
  rdoc_options: []
55
54
  require_paths:
56
55
  - lib
57
56
  required_ruby_version: !ruby/object:Gem::Requirement
58
- none: false
59
57
  requirements:
60
58
  - - ! '>='
61
59
  - !ruby/object:Gem::Version
62
60
  version: '0'
63
61
  required_rubygems_version: !ruby/object:Gem::Requirement
64
- none: false
65
62
  requirements:
66
63
  - - ! '>='
67
64
  - !ruby/object:Gem::Version
68
65
  version: '0'
69
66
  requirements: []
70
67
  rubyforge_project:
71
- rubygems_version: 1.8.24
68
+ rubygems_version: 2.0.3
72
69
  signing_key:
73
- specification_version: 3
70
+ specification_version: 4
74
71
  summary: Ruby bindings for coffeelint along with railtie to add rake task to rails
75
72
  test_files: []