coyote 0.2.0 → 0.2.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/Rakefile CHANGED
@@ -2,8 +2,9 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('coyote', '0.2.0') do |p|
6
- p.description = "A command-line gem to combine multiple files"
5
+ Echoe.new('coyote', '0.2.1') do |p|
6
+ p.description = "A command-line tool for combining and compressing JS files"
7
+ p.summary = "Coyote is a command-line tool for combining and compressing JS files. It uses YAML for configuration and the Google Closure Compiler to compilation and compression."
7
8
  p.url = "http://github.com/caseyohara/coyote"
8
9
  p.author = "Casey O'Hara"
9
10
  p.email = "casey.ohara@imulus.com"
@@ -2,13 +2,12 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{coyote}
5
- s.version = "0.2.0"
5
+ s.version = "0.2.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 = ["Casey O'Hara"]
9
9
  s.date = %q{2011-04-30}
10
- s.default_executable = %q{coyote}
11
- s.description = %q{A command-line tool for combining and compressing multiple JavaScript files}
10
+ s.description = %q{A command-line tool for combining and compressing JS files}
12
11
  s.email = %q{casey.ohara@imulus.com}
13
12
  s.executables = ["coyote"]
14
13
  s.extra_rdoc_files = ["bin/coyote", "lib/coyote.rb", "lib/coyote/builder.rb", "lib/coyote/generator.rb", "lib/coyote/output.rb"]
@@ -17,8 +16,8 @@ Gem::Specification.new do |s|
17
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Coyote"]
18
17
  s.require_paths = ["lib"]
19
18
  s.rubyforge_project = %q{coyote}
20
- s.rubygems_version = %q{1.6.2}
21
- s.summary = %q{A command-line tool for combining and compressing multiple JavaScript files. Uses YAML to define file paths and compression.}
19
+ s.rubygems_version = %q{1.7.2}
20
+ s.summary = %q{Coyote is a command-line tool for combining and compressing JS files. It uses YAML for configuration and the Google Closure Compiler to compilation and compression.}
22
21
 
23
22
  if s.respond_to? :specification_version then
24
23
  s.specification_version = 3
@@ -9,7 +9,7 @@ module Coyote
9
9
  end
10
10
 
11
11
  def build
12
- if config_defined?
12
+ if @config && config_defined?
13
13
  @config.each do |k,v|
14
14
  input_files = @config[k]['files']
15
15
  output_filename = @config[k]['output']
@@ -33,13 +33,14 @@ module Coyote
33
33
 
34
34
  def get_config_or_defaults
35
35
  if File.exists?(Coyote::CONFIG_FILENAME)
36
- parsed = begin
36
+ config = begin
37
37
  YAML.load(File.open(Coyote::CONFIG_FILENAME))
38
38
  rescue ArgumentError => e
39
39
  print "Could not parse YAML: #{e.message}\n".red
40
40
  end
41
41
  else
42
- print "Could not find a Coyote configuration file in this directory.\n\n Use 'coyote generate' to create one.\n".red
42
+ print "Could not find a Coyote configuration file in this directory. Use 'coyote generate' to create one.\n".red
43
+ exit
43
44
  end
44
45
  end
45
46
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: coyote
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Casey O'Hara
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: 1.1.1
35
35
  type: :development
36
36
  version_requirements: *id002
37
- description: A command-line tool for combining and compressing multiple JavaScript files
37
+ description: A command-line tool for combining and compressing JS files
38
38
  email: casey.ohara@imulus.com
39
39
  executables:
40
40
  - coyote
@@ -85,6 +85,6 @@ rubyforge_project: coyote
85
85
  rubygems_version: 1.7.2
86
86
  signing_key:
87
87
  specification_version: 3
88
- summary: A command-line tool for combining and compressing multiple JavaScript files. Uses YAML to define file paths and compression.
88
+ summary: Coyote is a command-line tool for combining and compressing JS files. It uses YAML for configuration and the Google Closure Compiler to compilation and compression.
89
89
  test_files: []
90
90