guard-jslint-on-rails 0.0.1

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.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use ree-1.8.7-2011.03@guard-jslint-on-rails --create
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in guard-jslint-on-rails.gemspec
4
+ gemspec
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -0,0 +1,23 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "guard/jslint-on-rails"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "guard-jslint-on-rails"
7
+ s.version = Guard::JslintOnRails::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Ryan Sonnek"]
10
+ s.email = ["ryan@codecrate.com"]
11
+ s.homepage = ""
12
+ s.summary = %q{Guard Javascript changes to ensure JSLint complience}
13
+ s.description = %q{Guard Javascript changes to ensure JSLint complience}
14
+
15
+ s.rubyforge_project = "guard-jslint-on-rails"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
21
+
22
+ s.add_dependency 'guard', '>= 0.4.0'
23
+ end
@@ -0,0 +1,54 @@
1
+ require 'guard'
2
+ require 'guard/guard'
3
+
4
+ puts 'loading'
5
+ module Guard
6
+ class JslintOnRails < Guard
7
+ VERSION = '0.0.1'
8
+
9
+ # def initialize(watchers = [], options = {})
10
+ # @process = nil
11
+ # @pid = nil
12
+ # @command = options[:command]
13
+ # @env = options[:env]
14
+ # @name = options[:name]
15
+ # @stop_signal = options[:stop_signal] || "TERM"
16
+ # super
17
+ # end
18
+ # def process_running?
19
+ # begin
20
+ # @pid ? ::Process.kill(0, @pid) : false
21
+ # rescue Errno::ESRCH => e
22
+ # false
23
+ # end
24
+ # end
25
+ # def start
26
+ # UI.info("Starting process #{@name}")
27
+ # @process = @env ? IO.popen([@env, @command]) : IO.popen(@command)
28
+ # UI.info("Started process #{@name}")
29
+ # @pid = @process.pid
30
+ # end
31
+ # def stop
32
+ # if @process
33
+ # UI.info("Stopping process #{@name}")
34
+ # ::Process.kill(@stop_signal, @process.pid)
35
+ # ::Process.waitpid(@pid) rescue Errno::ESRCH
36
+ # @process.close
37
+ # @pid = nil
38
+ # UI.info("Stopped process #{@name}")
39
+ # end
40
+ # end
41
+ # def reload
42
+ # stop
43
+ # start
44
+ # end
45
+ # def run_all
46
+ # true
47
+ # end
48
+
49
+ def run_on_change(paths)
50
+ puts paths.inspect
51
+ reload
52
+ end
53
+ end
54
+ end
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: guard-jslint-on-rails
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Ryan Sonnek
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-08-03 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: guard
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 15
29
+ segments:
30
+ - 0
31
+ - 4
32
+ - 0
33
+ version: 0.4.0
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ description: Guard Javascript changes to ensure JSLint complience
37
+ email:
38
+ - ryan@codecrate.com
39
+ executables: []
40
+
41
+ extensions: []
42
+
43
+ extra_rdoc_files: []
44
+
45
+ files:
46
+ - .gitignore
47
+ - .rvmrc
48
+ - Gemfile
49
+ - Rakefile
50
+ - guard-jslint-on-rails.gemspec
51
+ - lib/guard/jslint-on-rails.rb
52
+ homepage: ""
53
+ licenses: []
54
+
55
+ post_install_message:
56
+ rdoc_options: []
57
+
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ hash: 3
66
+ segments:
67
+ - 0
68
+ version: "0"
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ hash: 3
75
+ segments:
76
+ - 0
77
+ version: "0"
78
+ requirements: []
79
+
80
+ rubyforge_project: guard-jslint-on-rails
81
+ rubygems_version: 1.8.5
82
+ signing_key:
83
+ specification_version: 3
84
+ summary: Guard Javascript changes to ensure JSLint complience
85
+ test_files: []
86
+