jslint 1.0.1 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/Rakefile +3 -3
  2. data/VERSION +1 -1
  3. data/bin/jslint +1 -1
  4. data/jslint.gemspec +4 -7
  5. data/jslint/node.js +7 -6
  6. metadata +8 -24
data/Rakefile CHANGED
@@ -5,12 +5,12 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = 'jslint'
8
- gem.summary = %Q{wrapping of jslint}
9
- gem.description = %Q{longer description of your gem}
8
+ gem.summary = %Q{Wrapping of jslint}
9
+ gem.description = %Q{This gem provides an easy way to use jslint with your programs. It comes with rhino and it will use nodes.js if it is present.}
10
10
  gem.email = 'geraud@gmail.com'
11
11
  gem.homepage = "http://github.com/geraud/jslint"
12
12
  gem.authors = ['Geraud Boyer']
13
- gem.add_development_dependency "rspec", ">= 1.2.9"
13
+ # gem.add_development_dependency "rspec", ">= 1.2.9"
14
14
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
15
15
  gem.files += Dir['{bin}/**/*', '{lib}/**/*', '{jslint}/**/*']
16
16
  gem.bindir = 'bin'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.4
data/bin/jslint CHANGED
@@ -12,7 +12,7 @@ if File.exist? config_file
12
12
  options['predef'] = predefined.map { |defs| defs.split(',') }.flatten.map(&:strip) unless predefined.empty?
13
13
 
14
14
  options = config['options'].map do |option, value|
15
- option = option.strip
15
+ option = option.to_s.strip
16
16
  case value
17
17
  when true
18
18
  "--#{option}"
data/jslint.gemspec CHANGED
@@ -5,13 +5,13 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jslint}
8
- s.version = "1.0.1"
8
+ s.version = "1.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Geraud Boyer"]
12
- s.date = %q{2010-09-07}
12
+ s.date = %q{2010-10-03}
13
13
  s.default_executable = %q{jslint}
14
- s.description = %q{longer description of your gem}
14
+ s.description = %q{This gem provides an easy way to use jslint with your programs. It comes with rhino and it will use nodes.js if it is present.}
15
15
  s.email = %q{geraud@gmail.com}
16
16
  s.executables = ["jslint"]
17
17
  s.extra_rdoc_files = [
@@ -49,7 +49,7 @@ Gem::Specification.new do |s|
49
49
  s.rdoc_options = ["--charset=UTF-8"]
50
50
  s.require_paths = ["lib"]
51
51
  s.rubygems_version = %q{1.3.7}
52
- s.summary = %q{wrapping of jslint}
52
+ s.summary = %q{Wrapping of jslint}
53
53
  s.test_files = [
54
54
  "spec/jslint_spec.rb",
55
55
  "spec/spec_helper.rb"
@@ -60,14 +60,11 @@ Gem::Specification.new do |s|
60
60
  s.specification_version = 3
61
61
 
62
62
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
63
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
64
63
  s.add_runtime_dependency(%q<json>, [">= 0"])
65
64
  else
66
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
67
65
  s.add_dependency(%q<json>, [">= 0"])
68
66
  end
69
67
  else
70
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
71
68
  s.add_dependency(%q<json>, [">= 0"])
72
69
  end
73
70
  end
data/jslint/node.js CHANGED
@@ -28,18 +28,18 @@
28
28
  eval(JSLINT);
29
29
 
30
30
  args.forEach(function (arg, index) {
31
- sys.debug("Arg(" + index + "): " + arg);
32
- if (arg.match(/^--no(\w+)$/)) {
33
- sys.debug("a=false");
31
+ // sys.debug("Arg(" + index + "): " + arg);
32
+ if (arg.match(/^--no-(\w+)$/)) {
33
+ // sys.debug("a=false");
34
34
  options[RegExp.$1] = false;
35
35
  }
36
36
  else if (arg.match(/^--(\w+)=(\S.*)$/)) {
37
- sys.debug("a=b");
38
- sys.debug("value: " + RegExp.$2);
37
+ // sys.debug("a=b");
38
+ // sys.debug("value: " + RegExp.$2);
39
39
  options[RegExp.$1] = JSON.parse(RegExp.$2);
40
40
  }
41
41
  else if (arg.match(/^--(\w+)$/)) {
42
- sys.debug("a=true");
42
+ // sys.debug("a=true");
43
43
  options[RegExp.$1] = true;
44
44
  }
45
45
  else {
@@ -50,6 +50,7 @@
50
50
  process.exit(1);
51
51
  }
52
52
  else {
53
+ // sys.debug('opening input');
53
54
  input = input.toString('UTF8');
54
55
  }
55
56
  }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jslint
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Geraud Boyer
@@ -15,29 +15,13 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-07 00:00:00 -07:00
18
+ date: 2010-10-03 00:00:00 -07:00
19
19
  default_executable: jslint
20
20
  dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: rspec
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 13
30
- segments:
31
- - 1
32
- - 2
33
- - 9
34
- version: 1.2.9
35
- type: :development
36
- version_requirements: *id001
37
21
  - !ruby/object:Gem::Dependency
38
22
  name: json
39
23
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ requirement: &id001 !ruby/object:Gem::Requirement
41
25
  none: false
42
26
  requirements:
43
27
  - - ">="
@@ -47,8 +31,8 @@ dependencies:
47
31
  - 0
48
32
  version: "0"
49
33
  type: :runtime
50
- version_requirements: *id002
51
- description: longer description of your gem
34
+ version_requirements: *id001
35
+ description: This gem provides an easy way to use jslint with your programs. It comes with rhino and it will use nodes.js if it is present.
52
36
  email: geraud@gmail.com
53
37
  executables:
54
38
  - jslint
@@ -116,7 +100,7 @@ rubyforge_project:
116
100
  rubygems_version: 1.3.7
117
101
  signing_key:
118
102
  specification_version: 3
119
- summary: wrapping of jslint
103
+ summary: Wrapping of jslint
120
104
  test_files:
121
105
  - spec/jslint_spec.rb
122
106
  - spec/spec_helper.rb