coyote 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -4,7 +4,6 @@ bin/coyote
4
4
  config/coyote-icon.png
5
5
  config/coyote-usage.txt
6
6
  config/coyote.yaml
7
- coyote.gemspec
8
7
  lib/coyote.rb
9
8
  lib/coyote/closure_compiler.rb
10
9
  lib/coyote/configuration.rb
data/README.md CHANGED
@@ -1,32 +1,39 @@
1
1
  COYOTE
2
2
  =============
3
3
 
4
- An intelligent command-line tool for combining and compressing JavaScript files.
4
+ An intelligent command-line tool for combining, compressing and compiling your JavaScript and CoffeeScript files.
5
5
 
6
- Coyote selectively concatenates your JS files, combining them into a single file with the option of running the output through the Google Closure Compiler before save. Coyote automatically observes your directories and source files for changes and will recompile and save on the fly for easy development.
6
+ Coyote selectively concatenates your files, combining them into a single file with the option of running the output through the Google Closure Compiler before save. It can be used to observe your source files for changes and will recompile and save on the fly for easy development.
7
+
8
+ Coyote automatically compiles CoffeeScript files (bare, with no safety closure) before combining them with other source files. You can freely combine JavaScript and CoffeeScript source files in your compilation.
7
9
 
8
10
 
9
11
  Installation
10
12
  ------
11
13
  $ gem install coyote
12
14
 
13
- Usage
15
+ Requirements
16
+ ------
17
+ - Compiling CoffeeScript files requires that you have nodejs and coffee-script installed
18
+ - Growl notifications require that you have Growl installed
19
+
20
+ Terminal Usage
14
21
  ------
15
22
 
16
23
  **Configuration**
17
24
 
18
25
  $ cd myproject/scripts
19
- $ coyote generate
26
+ $ coyote new
20
27
 
21
- *This will create the configuration file at coyote.yaml and will find any .js files and automatically add them to the input parameter. Open coyote.yaml and modify the input and output configurations to meet your needs. Coyote will combine the input files in the order you define.*
28
+ *This will create the configuration file (coyote.yaml) and will discover any .js and .coffee files in this directory, automatically adding them to the configuration. Open coyote.yaml and modify the input and output configurations to meet your needs. Coyote will combine the input files in the order you define.*
22
29
 
23
- **Running Coyote**
30
+ **Trigger a build**
24
31
 
25
- $ coyote
32
+ $ coyote build
26
33
 
27
- **Building without watching**
34
+ **Trigger the observer**
28
35
 
29
- $ coyote build
36
+ $ coyote watch
30
37
 
31
38
  **Input wildcards**
32
39
 
@@ -34,40 +41,36 @@ You can wildcard your input parameters to find files.
34
41
 
35
42
  - **/*.js # recursively find all files with the extension '.js'
36
43
  - /jquery/plugins/*.js # find all .js files in the directory
37
-
44
+
38
45
 
39
46
  **Dependency discovery**
40
47
 
41
- If your JavaScript files depend on other files or libraries to run, you can define those dependencies so Coyote will include them in the compiled output before the files that require them.
48
+ If your files depend on other files or libraries to run, you can define those dependencies so Coyote will include them in the compiled output before the files that require them.
49
+
50
+ //= require /jquery/jquery.js
51
+ #= require /jquery/jquery.js (in CoffeeScript)
42
52
 
43
- // require /jquery/jquery.js
44
-
45
53
  or simply
46
54
 
47
- // require jquery
55
+ //= require jquery
56
+ #= require jquery (in CoffeeScript)
48
57
 
49
58
  Dependencies are relative to the top level of your directory, likely where your coyote.yaml config file is located.
50
59
 
51
60
 
52
61
  Options
53
62
  -------
54
- **Forced compression**
55
-
56
- $ coyote -c
57
-
58
- or
63
+ **Compress output with Google Closure Compiler**
59
64
 
60
65
  $ coyote build -c
66
+ $ coyote build --compress
61
67
 
62
- Plan
63
- ----
64
-
65
- - Global configuration for logging
66
- - Support for Growl notifications
67
- - Configuration options for level of compression
68
+ or
68
69
 
70
+ $ coyote watch -c
71
+ $ coyote watch --compress
69
72
 
70
- License
73
+ License
71
74
  -------
72
75
 
73
76
  Copyright (C) 2011 by Imulus
data/Rakefile CHANGED
@@ -7,8 +7,9 @@ $: << File.expand_path(File.dirname(__FILE__) + "/lib")
7
7
  require 'coyote'
8
8
 
9
9
  Echoe.new(Coyote::APP_NAME.downcase, Coyote::VERSION) do |p|
10
- p.description = "An intelligent command-line tool for combining and compressing JavaScript files."
11
- p.summary = "Coyote selectively concatenates your JS files, combining them into a single file with the option of running the output through the Google Closure Compiler. Coyote automatically observes your directories and source files for changes and will recompile and save on the fly for easy development."
10
+ p.description = "An intelligent command-line tool for combining, compressing and compiling your JavaScript and CoffeeScript files."
11
+ p.summary = "Coyote selectively concatenates your files, combining them into a single file with the option of running the output through the Google Closure Compiler before save. It can be used to observe your source files for changes and will recompile and save on the fly for easy development."
12
+
12
13
  p.url = "http://github.com/imulus/coyote"
13
14
  p.author = "Imulus"
14
15
  p.email = "developer@imulus.com"
data/coyote.gemspec CHANGED
@@ -2,22 +2,22 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{coyote}
5
- s.version = "0.5.0"
5
+ s.version = "0.5.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = [%q{Imulus}]
9
- s.date = %q{2011-08-21}
10
- s.description = %q{An intelligent command-line tool for combining and compressing JavaScript files.}
9
+ s.date = %q{2011-08-24}
10
+ s.description = %q{An intelligent command-line tool for combining, compressing and compiling your JavaScript and CoffeeScript files.}
11
11
  s.email = %q{developer@imulus.com}
12
12
  s.executables = [%q{coyote}]
13
13
  s.extra_rdoc_files = [%q{README.md}, %q{bin/coyote}, %q{lib/coyote.rb}, %q{lib/coyote/closure_compiler.rb}, %q{lib/coyote/configuration.rb}, %q{lib/coyote/coy_file.rb}, %q{lib/coyote/fs_listener.rb}, %q{lib/coyote/fs_listeners/darwin.rb}, %q{lib/coyote/fs_listeners/linux.rb}, %q{lib/coyote/fs_listeners/polling.rb}, %q{lib/coyote/fs_listeners/windows.rb}, %q{lib/coyote/generator.rb}, %q{lib/coyote/notification.rb}, %q{lib/coyote/output.rb}]
14
- s.files = [%q{README.md}, %q{Rakefile}, %q{bin/coyote}, %q{config/coyote-icon.png}, %q{config/coyote-usage.txt}, %q{config/coyote.yaml}, %q{coyote.gemspec}, %q{lib/coyote.rb}, %q{lib/coyote/closure_compiler.rb}, %q{lib/coyote/configuration.rb}, %q{lib/coyote/coy_file.rb}, %q{lib/coyote/fs_listener.rb}, %q{lib/coyote/fs_listeners/darwin.rb}, %q{lib/coyote/fs_listeners/linux.rb}, %q{lib/coyote/fs_listeners/polling.rb}, %q{lib/coyote/fs_listeners/windows.rb}, %q{lib/coyote/generator.rb}, %q{lib/coyote/notification.rb}, %q{lib/coyote/output.rb}, %q{Manifest}]
14
+ s.files = [%q{README.md}, %q{Rakefile}, %q{bin/coyote}, %q{config/coyote-icon.png}, %q{config/coyote-usage.txt}, %q{config/coyote.yaml}, %q{lib/coyote.rb}, %q{lib/coyote/closure_compiler.rb}, %q{lib/coyote/configuration.rb}, %q{lib/coyote/coy_file.rb}, %q{lib/coyote/fs_listener.rb}, %q{lib/coyote/fs_listeners/darwin.rb}, %q{lib/coyote/fs_listeners/linux.rb}, %q{lib/coyote/fs_listeners/polling.rb}, %q{lib/coyote/fs_listeners/windows.rb}, %q{lib/coyote/generator.rb}, %q{lib/coyote/notification.rb}, %q{lib/coyote/output.rb}, %q{Manifest}, %q{coyote.gemspec}]
15
15
  s.homepage = %q{http://github.com/imulus/coyote}
16
16
  s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Coyote}, %q{--main}, %q{README.md}]
17
17
  s.require_paths = [%q{lib}]
18
18
  s.rubyforge_project = %q{coyote}
19
19
  s.rubygems_version = %q{1.8.5}
20
- s.summary = %q{Coyote selectively concatenates your JS files, combining them into a single file with the option of running the output through the Google Closure Compiler. Coyote automatically observes your directories and source files for changes and will recompile and save on the fly for easy development.}
20
+ s.summary = %q{Coyote selectively concatenates your files, combining them into a single file with the option of running the output through the Google Closure Compiler before save. It can be used to observe your source files for changes and will recompile and save on the fly for easy development.}
21
21
 
22
22
  if s.respond_to? :specification_version then
23
23
  s.specification_version = 3
data/lib/coyote.rb CHANGED
@@ -12,7 +12,7 @@ include Term::ANSIColor
12
12
 
13
13
  module Coyote
14
14
  APP_NAME = "Coyote"
15
- VERSION = "0.5.0"
15
+ VERSION = "0.5.1"
16
16
  ROOT_PATH = Dir.pwd
17
17
  CONFIG_PATH = File.expand_path(File.dirname(__FILE__) + "/../config")
18
18
  CONFIG_FILENAME = "coyote.yaml"
@@ -17,7 +17,7 @@ module Coyote
17
17
 
18
18
 
19
19
  def inputs=(inputs)
20
- inputs.each { |input| add_input input }
20
+ add_input inputs
21
21
  end
22
22
 
23
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coyote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-21 00:00:00.000000000Z
12
+ date: 2011-08-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: term-ansicolor
16
- requirement: &2168745980 !ruby/object:Gem::Requirement
16
+ requirement: &2156325500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.0.5
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2168745980
24
+ version_requirements: *2156325500
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rb-fsevent
27
- requirement: &2168745300 !ruby/object:Gem::Requirement
27
+ requirement: &2156324760 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.4.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2168745300
35
+ version_requirements: *2156324760
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rb-appscript
38
- requirement: &2168744720 !ruby/object:Gem::Requirement
38
+ requirement: &2156324120 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.6.1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2168744720
46
+ version_requirements: *2156324120
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: term-ansicolor
49
- requirement: &2168744040 !ruby/object:Gem::Requirement
49
+ requirement: &2156323040 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.0.5
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2168744040
57
+ version_requirements: *2156323040
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rb-fsevent
60
- requirement: &2168743420 !ruby/object:Gem::Requirement
60
+ requirement: &2156322100 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.4.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2168743420
68
+ version_requirements: *2156322100
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rb-appscript
71
- requirement: &2168742880 !ruby/object:Gem::Requirement
71
+ requirement: &2156321400 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,9 +76,9 @@ dependencies:
76
76
  version: 0.6.1
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2168742880
80
- description: An intelligent command-line tool for combining and compressing JavaScript
81
- files.
79
+ version_requirements: *2156321400
80
+ description: An intelligent command-line tool for combining, compressing and compiling
81
+ your JavaScript and CoffeeScript files.
82
82
  email: developer@imulus.com
83
83
  executables:
84
84
  - coyote
@@ -105,7 +105,6 @@ files:
105
105
  - config/coyote-icon.png
106
106
  - config/coyote-usage.txt
107
107
  - config/coyote.yaml
108
- - coyote.gemspec
109
108
  - lib/coyote.rb
110
109
  - lib/coyote/closure_compiler.rb
111
110
  - lib/coyote/configuration.rb
@@ -119,6 +118,7 @@ files:
119
118
  - lib/coyote/notification.rb
120
119
  - lib/coyote/output.rb
121
120
  - Manifest
121
+ - coyote.gemspec
122
122
  homepage: http://github.com/imulus/coyote
123
123
  licenses: []
124
124
  post_install_message:
@@ -148,8 +148,8 @@ rubyforge_project: coyote
148
148
  rubygems_version: 1.8.5
149
149
  signing_key:
150
150
  specification_version: 3
151
- summary: Coyote selectively concatenates your JS files, combining them into a single
152
- file with the option of running the output through the Google Closure Compiler.
153
- Coyote automatically observes your directories and source files for changes and
154
- will recompile and save on the fly for easy development.
151
+ summary: Coyote selectively concatenates your files, combining them into a single
152
+ file with the option of running the output through the Google Closure Compiler before
153
+ save. It can be used to observe your source files for changes and will recompile
154
+ and save on the fly for easy development.
155
155
  test_files: []