coyote 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest +1 -22
- data/bin/coyote +5 -0
- data/coyote.gemspec +11 -12
- data/lib/coyote.rb +2 -2
- metadata +12 -37
- data/lib/coyote.rb.orig +0 -79
- data/test/src/public/assets/javascripts/app/application/interface.coffee +0 -10
- data/test/src/public/assets/javascripts/app/application/main.coffee +0 -14
- data/test/src/public/assets/javascripts/app/application/pages/home.coffee +0 -9
- data/test/src/public/assets/javascripts/app/boot.coffee +0 -1
- data/test/src/public/assets/javascripts/lib/imulus.coffee +0 -7
- data/test/src/public/assets/javascripts/lib/imulus/forms.coffee +0 -46
- data/test/src/public/assets/javascripts/lib/imulus/maps/infowindow.coffee +0 -37
- data/test/src/public/assets/javascripts/lib/imulus/maps/map.coffee +0 -51
- data/test/src/public/assets/javascripts/lib/imulus/maps/marker.coffee +0 -66
- data/test/src/public/assets/javascripts/lib/imulus/maps/point.coffee +0 -5
- data/test/src/public/assets/javascripts/lib/imulus/maps/results.coffee +0 -117
- data/test/src/public/assets/javascripts/lib/imulus/tables.coffee +0 -11
- data/test/src/public/assets/javascripts/lib/imulus/triggers.coffee +0 -26
- data/test/src/public/assets/javascripts/scripts.coffee +0 -14
- data/test/src/public/assets/javascripts/vendor/jquery.js +0 -18
- data/test/src/public/assets/javascripts/vendor/jquery/jquery.cookie.js +0 -89
- data/test/src/public/assets/javascripts/vendor/jquery/jquery.cycle.js +0 -21
- data/test/src/public/assets/javascripts/vendor/jquery/jquery.query.js +0 -224
- data/test/src/public/assets/javascripts/vendor/swfobject.js +0 -4
- data/test/src/public/scripts/scripts.combine +0 -18
- data/test/src/public/scripts/scripts.js +0 -944
data/Manifest
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
README.md
|
2
2
|
Rakefile
|
3
3
|
bin/coyote
|
4
|
+
coyote.gemspec
|
4
5
|
lib/coyote.rb
|
5
|
-
lib/coyote.rb.orig
|
6
6
|
lib/coyote/asset.rb
|
7
7
|
lib/coyote/assets/coffeescript.rb
|
8
8
|
lib/coyote/assets/javascript.rb
|
@@ -23,25 +23,4 @@ test/scripts/lib/input5.coffee
|
|
23
23
|
test/scripts/lib/input6.js
|
24
24
|
test/scripts/lib/keystone/input7.js
|
25
25
|
test/scripts/vendor/input8.coffee
|
26
|
-
test/src/public/assets/javascripts/app/application/interface.coffee
|
27
|
-
test/src/public/assets/javascripts/app/application/main.coffee
|
28
|
-
test/src/public/assets/javascripts/app/application/pages/home.coffee
|
29
|
-
test/src/public/assets/javascripts/app/boot.coffee
|
30
|
-
test/src/public/assets/javascripts/lib/imulus.coffee
|
31
|
-
test/src/public/assets/javascripts/lib/imulus/forms.coffee
|
32
|
-
test/src/public/assets/javascripts/lib/imulus/maps/infowindow.coffee
|
33
|
-
test/src/public/assets/javascripts/lib/imulus/maps/map.coffee
|
34
|
-
test/src/public/assets/javascripts/lib/imulus/maps/marker.coffee
|
35
|
-
test/src/public/assets/javascripts/lib/imulus/maps/point.coffee
|
36
|
-
test/src/public/assets/javascripts/lib/imulus/maps/results.coffee
|
37
|
-
test/src/public/assets/javascripts/lib/imulus/tables.coffee
|
38
|
-
test/src/public/assets/javascripts/lib/imulus/triggers.coffee
|
39
|
-
test/src/public/assets/javascripts/scripts.coffee
|
40
|
-
test/src/public/assets/javascripts/vendor/jquery.js
|
41
|
-
test/src/public/assets/javascripts/vendor/jquery/jquery.cookie.js
|
42
|
-
test/src/public/assets/javascripts/vendor/jquery/jquery.cycle.js
|
43
|
-
test/src/public/assets/javascripts/vendor/jquery/jquery.query.js
|
44
|
-
test/src/public/assets/javascripts/vendor/swfobject.js
|
45
|
-
test/src/public/scripts/scripts.combine
|
46
|
-
test/src/public/scripts/scripts.js
|
47
26
|
Manifest
|
data/bin/coyote
CHANGED
data/coyote.gemspec
CHANGED
@@ -1,24 +1,23 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
|
-
s.name =
|
5
|
-
s.version = "1.0.
|
4
|
+
s.name = "coyote"
|
5
|
+
s.version = "1.0.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 = ["Imulus"]
|
9
|
-
s.date =
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.email = %q{developer@imulus.com}
|
9
|
+
s.date = "2012-02-16"
|
10
|
+
s.description = "An intelligent command-line tool for combining, compressing and compiling your JavaScript and CoffeeScript files."
|
11
|
+
s.email = "developer@imulus.com"
|
13
12
|
s.executables = ["coyote"]
|
14
|
-
s.extra_rdoc_files = ["README.md", "bin/coyote", "lib/coyote.rb", "lib/coyote
|
15
|
-
s.files = ["README.md", "Rakefile", "bin/coyote", "
|
16
|
-
s.homepage =
|
13
|
+
s.extra_rdoc_files = ["README.md", "bin/coyote", "lib/coyote.rb", "lib/coyote/asset.rb", "lib/coyote/assets/coffeescript.rb", "lib/coyote/assets/javascript.rb", "lib/coyote/bundle.rb", "lib/coyote/closure_compiler.rb", "lib/coyote/configuration.rb", "lib/coyote/fs_listener.rb", "lib/coyote/fs_listeners/darwin.rb", "lib/coyote/fs_listeners/linux.rb", "lib/coyote/fs_listeners/polling.rb", "lib/coyote/fs_listeners/windows.rb", "lib/coyote/notifications.rb"]
|
14
|
+
s.files = ["README.md", "Rakefile", "bin/coyote", "coyote.gemspec", "lib/coyote.rb", "lib/coyote/asset.rb", "lib/coyote/assets/coffeescript.rb", "lib/coyote/assets/javascript.rb", "lib/coyote/bundle.rb", "lib/coyote/closure_compiler.rb", "lib/coyote/configuration.rb", "lib/coyote/fs_listener.rb", "lib/coyote/fs_listeners/darwin.rb", "lib/coyote/fs_listeners/linux.rb", "lib/coyote/fs_listeners/polling.rb", "lib/coyote/fs_listeners/windows.rb", "lib/coyote/notifications.rb", "test/scripts/input1.js", "test/scripts/input2.js", "test/scripts/input3.js", "test/scripts/input4.js", "test/scripts/lib/input5.coffee", "test/scripts/lib/input6.js", "test/scripts/lib/keystone/input7.js", "test/scripts/vendor/input8.coffee", "Manifest"]
|
15
|
+
s.homepage = "http://github.com/imulus/coyote"
|
17
16
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Coyote", "--main", "README.md"]
|
18
17
|
s.require_paths = ["lib"]
|
19
|
-
s.rubyforge_project =
|
20
|
-
s.rubygems_version =
|
21
|
-
s.summary =
|
18
|
+
s.rubyforge_project = "coyote"
|
19
|
+
s.rubygems_version = "1.8.16"
|
20
|
+
s.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."
|
22
21
|
|
23
22
|
if s.respond_to? :specification_version then
|
24
23
|
s.specification_version = 3
|
data/lib/coyote.rb
CHANGED
@@ -7,7 +7,7 @@ include Coyote::Notifications
|
|
7
7
|
|
8
8
|
module Coyote
|
9
9
|
|
10
|
-
VERSION = '1.0.
|
10
|
+
VERSION = '1.0.1'
|
11
11
|
|
12
12
|
def self.run(input_path, output_path, options = {})
|
13
13
|
@@input_path = input_path
|
@@ -19,7 +19,7 @@ module Coyote
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def self.options
|
22
|
-
['compress', 'watch', 'quiet']
|
22
|
+
['compress', 'watch', 'quiet', 'version']
|
23
23
|
end
|
24
24
|
|
25
25
|
def self.build(bundle)
|
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: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-02-
|
13
|
-
default_executable: coyote
|
12
|
+
date: 2012-02-16 00:00:00.000000000Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rb-fsevent
|
17
|
-
requirement: &
|
16
|
+
requirement: &2168527360 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
19
|
- - ! '>='
|
@@ -22,10 +21,10 @@ dependencies:
|
|
22
21
|
version: 0.4.0
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
24
|
+
version_requirements: *2168527360
|
26
25
|
- !ruby/object:Gem::Dependency
|
27
26
|
name: term-ansicolor
|
28
|
-
requirement: &
|
27
|
+
requirement: &2168524180 !ruby/object:Gem::Requirement
|
29
28
|
none: false
|
30
29
|
requirements:
|
31
30
|
- - ! '>='
|
@@ -33,10 +32,10 @@ dependencies:
|
|
33
32
|
version: 1.0.5
|
34
33
|
type: :runtime
|
35
34
|
prerelease: false
|
36
|
-
version_requirements: *
|
35
|
+
version_requirements: *2168524180
|
37
36
|
- !ruby/object:Gem::Dependency
|
38
37
|
name: rb-fsevent
|
39
|
-
requirement: &
|
38
|
+
requirement: &2168522140 !ruby/object:Gem::Requirement
|
40
39
|
none: false
|
41
40
|
requirements:
|
42
41
|
- - ! '>='
|
@@ -44,10 +43,10 @@ dependencies:
|
|
44
43
|
version: 0.4.0
|
45
44
|
type: :development
|
46
45
|
prerelease: false
|
47
|
-
version_requirements: *
|
46
|
+
version_requirements: *2168522140
|
48
47
|
- !ruby/object:Gem::Dependency
|
49
48
|
name: term-ansicolor
|
50
|
-
requirement: &
|
49
|
+
requirement: &2168520400 !ruby/object:Gem::Requirement
|
51
50
|
none: false
|
52
51
|
requirements:
|
53
52
|
- - ! '>='
|
@@ -55,7 +54,7 @@ dependencies:
|
|
55
54
|
version: 1.0.5
|
56
55
|
type: :development
|
57
56
|
prerelease: false
|
58
|
-
version_requirements: *
|
57
|
+
version_requirements: *2168520400
|
59
58
|
description: An intelligent command-line tool for combining, compressing and compiling
|
60
59
|
your JavaScript and CoffeeScript files.
|
61
60
|
email: developer@imulus.com
|
@@ -66,7 +65,6 @@ extra_rdoc_files:
|
|
66
65
|
- README.md
|
67
66
|
- bin/coyote
|
68
67
|
- lib/coyote.rb
|
69
|
-
- lib/coyote.rb.orig
|
70
68
|
- lib/coyote/asset.rb
|
71
69
|
- lib/coyote/assets/coffeescript.rb
|
72
70
|
- lib/coyote/assets/javascript.rb
|
@@ -83,8 +81,8 @@ files:
|
|
83
81
|
- README.md
|
84
82
|
- Rakefile
|
85
83
|
- bin/coyote
|
84
|
+
- coyote.gemspec
|
86
85
|
- lib/coyote.rb
|
87
|
-
- lib/coyote.rb.orig
|
88
86
|
- lib/coyote/asset.rb
|
89
87
|
- lib/coyote/assets/coffeescript.rb
|
90
88
|
- lib/coyote/assets/javascript.rb
|
@@ -105,30 +103,7 @@ files:
|
|
105
103
|
- test/scripts/lib/input6.js
|
106
104
|
- test/scripts/lib/keystone/input7.js
|
107
105
|
- test/scripts/vendor/input8.coffee
|
108
|
-
- test/src/public/assets/javascripts/app/application/interface.coffee
|
109
|
-
- test/src/public/assets/javascripts/app/application/main.coffee
|
110
|
-
- test/src/public/assets/javascripts/app/application/pages/home.coffee
|
111
|
-
- test/src/public/assets/javascripts/app/boot.coffee
|
112
|
-
- test/src/public/assets/javascripts/lib/imulus.coffee
|
113
|
-
- test/src/public/assets/javascripts/lib/imulus/forms.coffee
|
114
|
-
- test/src/public/assets/javascripts/lib/imulus/maps/infowindow.coffee
|
115
|
-
- test/src/public/assets/javascripts/lib/imulus/maps/map.coffee
|
116
|
-
- test/src/public/assets/javascripts/lib/imulus/maps/marker.coffee
|
117
|
-
- test/src/public/assets/javascripts/lib/imulus/maps/point.coffee
|
118
|
-
- test/src/public/assets/javascripts/lib/imulus/maps/results.coffee
|
119
|
-
- test/src/public/assets/javascripts/lib/imulus/tables.coffee
|
120
|
-
- test/src/public/assets/javascripts/lib/imulus/triggers.coffee
|
121
|
-
- test/src/public/assets/javascripts/scripts.coffee
|
122
|
-
- test/src/public/assets/javascripts/vendor/jquery.js
|
123
|
-
- test/src/public/assets/javascripts/vendor/jquery/jquery.cookie.js
|
124
|
-
- test/src/public/assets/javascripts/vendor/jquery/jquery.cycle.js
|
125
|
-
- test/src/public/assets/javascripts/vendor/jquery/jquery.query.js
|
126
|
-
- test/src/public/assets/javascripts/vendor/swfobject.js
|
127
|
-
- test/src/public/scripts/scripts.combine
|
128
|
-
- test/src/public/scripts/scripts.js
|
129
106
|
- Manifest
|
130
|
-
- coyote.gemspec
|
131
|
-
has_rdoc: true
|
132
107
|
homepage: http://github.com/imulus/coyote
|
133
108
|
licenses: []
|
134
109
|
post_install_message:
|
@@ -155,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
130
|
version: '1.2'
|
156
131
|
requirements: []
|
157
132
|
rubyforge_project: coyote
|
158
|
-
rubygems_version: 1.
|
133
|
+
rubygems_version: 1.8.16
|
159
134
|
signing_key:
|
160
135
|
specification_version: 3
|
161
136
|
summary: Coyote selectively concatenates your files, combining them into a single
|
data/lib/coyote.rb.orig
DELETED
@@ -1,79 +0,0 @@
|
|
1
|
-
require 'coyote/configuration'
|
2
|
-
require 'coyote/bundle'
|
3
|
-
require 'coyote/fs_listener'
|
4
|
-
require 'coyote/notifications'
|
5
|
-
include Coyote::Notifications
|
6
|
-
|
7
|
-
|
8
|
-
module Coyote
|
9
|
-
<<<<<<< HEAD
|
10
|
-
APP_NAME = "Coyote"
|
11
|
-
VERSION = "0.7.0"
|
12
|
-
ROOT_PATH = Dir.pwd
|
13
|
-
CONFIG_PATH = File.expand_path(File.dirname(__FILE__) + "/../config")
|
14
|
-
CONFIG_FILENAME = "coyote.yaml"
|
15
|
-
CONFIG_ICON = "coyote-icon.png"
|
16
|
-
USAGE_FILENAME = "coyote-usage.txt"
|
17
|
-
|
18
|
-
module Defaults
|
19
|
-
OUTPUT = "coyote.js"
|
20
|
-
=======
|
21
|
-
|
22
|
-
VERSION = '1.0.0'
|
23
|
-
|
24
|
-
def self.run(input_path, output_path, options = {})
|
25
|
-
@@input_path = input_path
|
26
|
-
@@output_path = output_path
|
27
|
-
@@options = options
|
28
|
-
bundle = Coyote::Bundle.new(input_path, output_path)
|
29
|
-
build bundle
|
30
|
-
watch bundle if @@options[:watch]
|
31
|
-
>>>>>>> develop
|
32
|
-
end
|
33
|
-
|
34
|
-
def self.options
|
35
|
-
['compress', 'watch', 'quiet']
|
36
|
-
end
|
37
|
-
|
38
|
-
def self.build(bundle)
|
39
|
-
notify bundle.manifest unless @@options[:quiet]
|
40
|
-
bundle.compress! if @@options[:compress]
|
41
|
-
bundle.save
|
42
|
-
notify "#{Time.new.strftime("%I:%M:%S")} Saved bundle to #{@@output_path} [#{bundle.files.length} files]", :success
|
43
|
-
end
|
44
|
-
|
45
|
-
|
46
|
-
def self.watch(bundle)
|
47
|
-
listener = Coyote::FSListener.select_and_init
|
48
|
-
|
49
|
-
<<<<<<< HEAD
|
50
|
-
inputs = config.inputs.values.collect do |script|
|
51
|
-
script.relative_path
|
52
|
-
end
|
53
|
-
|
54
|
-
listener.on_change do |files|
|
55
|
-
if files.include? config.source
|
56
|
-
Coyote::Notification.new "Config file (#{config.source}) changed. Reading it in.\n", "warning"
|
57
|
-
config.load_from_yaml! config.source
|
58
|
-
self.build config
|
59
|
-
else
|
60
|
-
changed_watched_files = inputs & files
|
61
|
-
if changed_watched_files.length > 0
|
62
|
-
self.build config
|
63
|
-
end
|
64
|
-
=======
|
65
|
-
listener.on_change do |changed_files|
|
66
|
-
changed_files = bundle.files & changed_files
|
67
|
-
|
68
|
-
if changed_files.length > 0
|
69
|
-
notify "#{Time.new.strftime("%I:%M:%S")} Detected change, recompiling...", :warning
|
70
|
-
bundle.update! changed_files
|
71
|
-
build bundle
|
72
|
-
>>>>>>> develop
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
notify "#{Time.new.strftime("%I:%M:%S")} Watching for changes to your bundle. CTRL+C to stop."
|
77
|
-
listener.start
|
78
|
-
end
|
79
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
@module "Application", ->
|
2
|
-
|
3
|
-
@main = ->
|
4
|
-
new Application.Interface
|
5
|
-
|
6
|
-
initializers = $('body').attr('data-js-init')
|
7
|
-
|
8
|
-
Application.initializers = if initializers? then initializers.replace(" ","").split(",") else []
|
9
|
-
|
10
|
-
for initializer in Application.initializers
|
11
|
-
segments = initializer.split(".")
|
12
|
-
method = window
|
13
|
-
method = method[segment] for segment in segments
|
14
|
-
do method if method?
|
@@ -1 +0,0 @@
|
|
1
|
-
$ -> Application.main()
|
@@ -1,46 +0,0 @@
|
|
1
|
-
@module "Imulus", ->
|
2
|
-
class @Forms
|
3
|
-
constructor: ($form)->
|
4
|
-
do @build
|
5
|
-
|
6
|
-
build: ->
|
7
|
-
if not Imulus.elementSupportsAttribute 'input', 'placeholder'
|
8
|
-
$('input[placeholder]').each ->
|
9
|
-
$input = $(this)
|
10
|
-
placeholder = $input.attr 'placeholder'
|
11
|
-
$input.val(placeholder).addClass 'inactive'
|
12
|
-
$input.bind
|
13
|
-
focus : ->
|
14
|
-
if $input.val() is placeholder
|
15
|
-
$input.val('').removeClass 'inactive'
|
16
|
-
blur : ->
|
17
|
-
if $input.val() is ''
|
18
|
-
$input.val(placeholder).addClass 'inactive'
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
$('fieldset.overlay .row').each ->
|
23
|
-
|
24
|
-
$label = $(this).find 'label'
|
25
|
-
$input = $(this).find 'input'
|
26
|
-
|
27
|
-
if $input.val() isnt ""
|
28
|
-
$label.hide()
|
29
|
-
|
30
|
-
$label.click -> $input.focus()
|
31
|
-
|
32
|
-
$input.bind
|
33
|
-
focus: ->
|
34
|
-
if $input.val() is ""
|
35
|
-
$label.addClass 'faded'
|
36
|
-
|
37
|
-
blur: ->
|
38
|
-
if $input.val() is ""
|
39
|
-
$label.fadeIn().removeClass 'faded'
|
40
|
-
|
41
|
-
change: ->
|
42
|
-
if $input.val() isnt ""
|
43
|
-
$label.fadeOut().removeClass 'faded'
|
44
|
-
|
45
|
-
keypress: ->
|
46
|
-
$label.hide().removeClass 'faded'
|
@@ -1,37 +0,0 @@
|
|
1
|
-
@module "Imulus", ->
|
2
|
-
@module "Maps", ->
|
3
|
-
class @InfoWindow
|
4
|
-
|
5
|
-
# Class variable
|
6
|
-
@windows: []
|
7
|
-
|
8
|
-
constructor : (@map, @marker, params)->
|
9
|
-
Imulus.Maps.InfoWindow.windows.push this
|
10
|
-
{@title, @body} = params
|
11
|
-
do @build
|
12
|
-
|
13
|
-
settings : {}
|
14
|
-
|
15
|
-
build : ->
|
16
|
-
content = "<div class='infowindow-content'>"
|
17
|
-
if @title then content += "<div class='title'>#{@title}</div>"
|
18
|
-
if @body then content += "<div class='body'>#{@body}</div>"
|
19
|
-
content += "</div>";
|
20
|
-
|
21
|
-
@settings.content = content
|
22
|
-
|
23
|
-
@window = new google.maps.InfoWindow @settings
|
24
|
-
|
25
|
-
|
26
|
-
open : ->
|
27
|
-
do @closeAll
|
28
|
-
@window.open @map.canvas, @marker
|
29
|
-
|
30
|
-
|
31
|
-
close : ->
|
32
|
-
@window.close()
|
33
|
-
|
34
|
-
|
35
|
-
closeAll : ->
|
36
|
-
_window.close() for _window in Imulus.Maps.InfoWindow.windows
|
37
|
-
|