honkster-jelly 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +1 -2
- data/Gemfile.lock +1 -1
- data/Rakefile +0 -16
- data/jelly.gemspec +13 -64
- data/lib/jelly/jelly_helper.rb +1 -1
- data/spec/fixtures/public/javascripts/components/component1.js +0 -0
- data/spec/fixtures/public/javascripts/foo/components/paw.js +0 -0
- data/spec/fixtures/public/javascripts/foo/components/teeth.js +0 -0
- data/spec/fixtures/public/javascripts/foo/pages/bears.js +0 -0
- data/spec/fixtures/public/javascripts/foo/pages/lions.js +0 -0
- data/spec/fixtures/public/javascripts/foo/pages/tigers.js +0 -0
- data/spec/fixtures/public/javascripts/pages/page1.js +0 -0
- data/spec/jasmine/TrivialReporter.js +129 -0
- data/spec/jasmine/jasmine-0.10.0.js +2149 -0
- data/spec/jasmine/jasmine.css +76 -0
- data/spec/jasmine/json2.js +478 -0
- data/spec/jasmine_runner.html +30 -0
- data/spec/javascript/ajax_with_jelly_spec.js +157 -0
- data/spec/javascript/jelly_spec.js +649 -0
- data/spec/javascript/spec_helper.js +7 -0
- data/spec/jelly/common_spec.rb +56 -0
- data/spec/jelly/jelly_controller_spec.rb +331 -0
- data/spec/jelly/jelly_helper_spec.rb +88 -0
- data/spec/rails_root/Gemfile +31 -0
- data/spec/rails_root/Gemfile.lock +73 -0
- data/spec/rails_root/README +256 -0
- data/spec/rails_root/Rakefile +7 -0
- data/spec/rails_root/app/controllers/application_controller.rb +3 -0
- data/spec/rails_root/app/helpers/application_helper.rb +2 -0
- data/spec/rails_root/app/views/layouts/application.html.erb +14 -0
- data/spec/rails_root/config.ru +4 -0
- data/spec/rails_root/config/application.rb +42 -0
- data/spec/rails_root/config/boot.rb +6 -0
- data/spec/rails_root/config/database.yml +22 -0
- data/spec/rails_root/config/environment.rb +5 -0
- data/spec/rails_root/config/environments/development.rb +26 -0
- data/spec/rails_root/config/environments/production.rb +49 -0
- data/spec/rails_root/config/environments/test.rb +35 -0
- data/spec/rails_root/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails_root/config/initializers/inflections.rb +10 -0
- data/spec/rails_root/config/initializers/mime_types.rb +5 -0
- data/spec/rails_root/config/initializers/new_rails_defaults.rb +19 -0
- data/spec/rails_root/config/initializers/secret_token.rb +7 -0
- data/spec/rails_root/config/initializers/session_store.rb +8 -0
- data/spec/rails_root/config/locales/en.yml +5 -0
- data/spec/rails_root/config/routes.rb +58 -0
- data/spec/rails_root/db/seeds.rb +7 -0
- data/spec/rails_root/db/test.sqlite3 +1 -0
- data/spec/rails_root/doc/README_FOR_APP +2 -0
- data/spec/rails_root/log/development.log +0 -0
- data/spec/rails_root/log/production.log +0 -0
- data/spec/rails_root/log/server.log +0 -0
- data/spec/rails_root/log/test.log +6 -0
- data/spec/rails_root/public/404.html +26 -0
- data/spec/rails_root/public/422.html +26 -0
- data/spec/rails_root/public/500.html +26 -0
- data/spec/rails_root/public/favicon.ico +0 -0
- data/spec/rails_root/public/images/rails.png +0 -0
- data/spec/rails_root/public/index.html +239 -0
- data/spec/rails_root/public/javascripts/application.js +2 -0
- data/spec/rails_root/public/javascripts/controls.js +965 -0
- data/spec/rails_root/public/javascripts/dragdrop.js +974 -0
- data/spec/rails_root/public/javascripts/effects.js +1123 -0
- data/spec/rails_root/public/javascripts/prototype.js +6001 -0
- data/spec/rails_root/public/javascripts/rails.js +191 -0
- data/spec/rails_root/public/robots.txt +5 -0
- data/spec/rails_root/script/about +4 -0
- data/spec/rails_root/script/console +3 -0
- data/spec/rails_root/script/dbconsole +3 -0
- data/spec/rails_root/script/destroy +3 -0
- data/spec/rails_root/script/generate +3 -0
- data/spec/rails_root/script/performance/benchmarker +3 -0
- data/spec/rails_root/script/performance/profiler +3 -0
- data/spec/rails_root/script/plugin +3 -0
- data/spec/rails_root/script/rails +6 -0
- data/spec/rails_root/script/runner +3 -0
- data/spec/rails_root/script/server +3 -0
- data/spec/rails_root/test/performance/browsing_test.rb +9 -0
- data/spec/rails_root/test/test_helper.rb +13 -0
- data/spec/spec_helper.rb +37 -0
- data/spec/spec_suite.rb +3 -0
- metadata +271 -46
- data/VERSION.yml +0 -5
@@ -0,0 +1,191 @@
|
|
1
|
+
(function() {
|
2
|
+
// Technique from Juriy Zaytsev
|
3
|
+
// http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
|
4
|
+
function isEventSupported(eventName) {
|
5
|
+
var el = document.createElement('div');
|
6
|
+
eventName = 'on' + eventName;
|
7
|
+
var isSupported = (eventName in el);
|
8
|
+
if (!isSupported) {
|
9
|
+
el.setAttribute(eventName, 'return;');
|
10
|
+
isSupported = typeof el[eventName] == 'function';
|
11
|
+
}
|
12
|
+
el = null;
|
13
|
+
return isSupported;
|
14
|
+
}
|
15
|
+
|
16
|
+
function isForm(element) {
|
17
|
+
return Object.isElement(element) && element.nodeName.toUpperCase() == 'FORM'
|
18
|
+
}
|
19
|
+
|
20
|
+
function isInput(element) {
|
21
|
+
if (Object.isElement(element)) {
|
22
|
+
var name = element.nodeName.toUpperCase()
|
23
|
+
return name == 'INPUT' || name == 'SELECT' || name == 'TEXTAREA'
|
24
|
+
}
|
25
|
+
else return false
|
26
|
+
}
|
27
|
+
|
28
|
+
var submitBubbles = isEventSupported('submit'),
|
29
|
+
changeBubbles = isEventSupported('change')
|
30
|
+
|
31
|
+
if (!submitBubbles || !changeBubbles) {
|
32
|
+
// augment the Event.Handler class to observe custom events when needed
|
33
|
+
Event.Handler.prototype.initialize = Event.Handler.prototype.initialize.wrap(
|
34
|
+
function(init, element, eventName, selector, callback) {
|
35
|
+
init(element, eventName, selector, callback)
|
36
|
+
// is the handler being attached to an element that doesn't support this event?
|
37
|
+
if ( (!submitBubbles && this.eventName == 'submit' && !isForm(this.element)) ||
|
38
|
+
(!changeBubbles && this.eventName == 'change' && !isInput(this.element)) ) {
|
39
|
+
// "submit" => "emulated:submit"
|
40
|
+
this.eventName = 'emulated:' + this.eventName
|
41
|
+
}
|
42
|
+
}
|
43
|
+
)
|
44
|
+
}
|
45
|
+
|
46
|
+
if (!submitBubbles) {
|
47
|
+
// discover forms on the page by observing focus events which always bubble
|
48
|
+
document.on('focusin', 'form', function(focusEvent, form) {
|
49
|
+
// special handler for the real "submit" event (one-time operation)
|
50
|
+
if (!form.retrieve('emulated:submit')) {
|
51
|
+
form.on('submit', function(submitEvent) {
|
52
|
+
var emulated = form.fire('emulated:submit', submitEvent, true)
|
53
|
+
// if custom event received preventDefault, cancel the real one too
|
54
|
+
if (emulated.returnValue === false) submitEvent.preventDefault()
|
55
|
+
})
|
56
|
+
form.store('emulated:submit', true)
|
57
|
+
}
|
58
|
+
})
|
59
|
+
}
|
60
|
+
|
61
|
+
if (!changeBubbles) {
|
62
|
+
// discover form inputs on the page
|
63
|
+
document.on('focusin', 'input, select, texarea', function(focusEvent, input) {
|
64
|
+
// special handler for real "change" events
|
65
|
+
if (!input.retrieve('emulated:change')) {
|
66
|
+
input.on('change', function(changeEvent) {
|
67
|
+
input.fire('emulated:change', changeEvent, true)
|
68
|
+
})
|
69
|
+
input.store('emulated:change', true)
|
70
|
+
}
|
71
|
+
})
|
72
|
+
}
|
73
|
+
|
74
|
+
function handleRemote(element) {
|
75
|
+
var method, url, params;
|
76
|
+
|
77
|
+
var event = element.fire("ajax:before");
|
78
|
+
if (event.stopped) return false;
|
79
|
+
|
80
|
+
if (element.tagName.toLowerCase() === 'form') {
|
81
|
+
method = element.readAttribute('method') || 'post';
|
82
|
+
url = element.readAttribute('action');
|
83
|
+
params = element.serialize();
|
84
|
+
} else {
|
85
|
+
method = element.readAttribute('data-method') || 'get';
|
86
|
+
url = element.readAttribute('href');
|
87
|
+
params = {};
|
88
|
+
}
|
89
|
+
|
90
|
+
new Ajax.Request(url, {
|
91
|
+
method: method,
|
92
|
+
parameters: params,
|
93
|
+
evalScripts: true,
|
94
|
+
|
95
|
+
onComplete: function(request) { element.fire("ajax:complete", request); },
|
96
|
+
onSuccess: function(request) { element.fire("ajax:success", request); },
|
97
|
+
onFailure: function(request) { element.fire("ajax:failure", request); }
|
98
|
+
});
|
99
|
+
|
100
|
+
element.fire("ajax:after");
|
101
|
+
}
|
102
|
+
|
103
|
+
function handleMethod(element) {
|
104
|
+
var method = element.readAttribute('data-method'),
|
105
|
+
url = element.readAttribute('href'),
|
106
|
+
csrf_param = $$('meta[name=csrf-param]')[0],
|
107
|
+
csrf_token = $$('meta[name=csrf-token]')[0];
|
108
|
+
|
109
|
+
var form = new Element('form', { method: "POST", action: url, style: "display: none;" });
|
110
|
+
element.parentNode.insert(form);
|
111
|
+
|
112
|
+
if (method !== 'post') {
|
113
|
+
var field = new Element('input', { type: 'hidden', name: '_method', value: method });
|
114
|
+
form.insert(field);
|
115
|
+
}
|
116
|
+
|
117
|
+
if (csrf_param) {
|
118
|
+
var param = csrf_param.readAttribute('content'),
|
119
|
+
token = csrf_token.readAttribute('content'),
|
120
|
+
field = new Element('input', { type: 'hidden', name: param, value: token });
|
121
|
+
form.insert(field);
|
122
|
+
}
|
123
|
+
|
124
|
+
form.submit();
|
125
|
+
}
|
126
|
+
|
127
|
+
|
128
|
+
document.on("click", "*[data-confirm]", function(event, element) {
|
129
|
+
var message = element.readAttribute('data-confirm');
|
130
|
+
if (!confirm(message)) event.stop();
|
131
|
+
});
|
132
|
+
|
133
|
+
document.on("click", "a[data-remote]", function(event, element) {
|
134
|
+
if (event.stopped) return;
|
135
|
+
handleRemote(element);
|
136
|
+
event.stop();
|
137
|
+
});
|
138
|
+
|
139
|
+
document.on("click", "a[data-method]", function(event, element) {
|
140
|
+
if (event.stopped) return;
|
141
|
+
handleMethod(element);
|
142
|
+
event.stop();
|
143
|
+
});
|
144
|
+
|
145
|
+
document.on("submit", function(event) {
|
146
|
+
var element = event.findElement(),
|
147
|
+
message = element.readAttribute('data-confirm');
|
148
|
+
if (message && !confirm(message)) {
|
149
|
+
event.stop();
|
150
|
+
return false;
|
151
|
+
}
|
152
|
+
|
153
|
+
var inputs = element.select("input[type=submit][data-disable-with]");
|
154
|
+
inputs.each(function(input) {
|
155
|
+
input.disabled = true;
|
156
|
+
input.writeAttribute('data-original-value', input.value);
|
157
|
+
input.value = input.readAttribute('data-disable-with');
|
158
|
+
});
|
159
|
+
|
160
|
+
var element = event.findElement("form[data-remote]");
|
161
|
+
if (element) {
|
162
|
+
handleRemote(element);
|
163
|
+
event.stop();
|
164
|
+
}
|
165
|
+
});
|
166
|
+
|
167
|
+
document.on("ajax:after", "form", function(event, element) {
|
168
|
+
var inputs = element.select("input[type=submit][disabled=true][data-disable-with]");
|
169
|
+
inputs.each(function(input) {
|
170
|
+
input.value = input.readAttribute('data-original-value');
|
171
|
+
input.removeAttribute('data-original-value');
|
172
|
+
input.disabled = false;
|
173
|
+
});
|
174
|
+
});
|
175
|
+
|
176
|
+
Ajax.Responders.register({
|
177
|
+
onCreate: function(request) {
|
178
|
+
var csrf_meta_tag = $$('meta[name=csrf-token]')[0];
|
179
|
+
|
180
|
+
if (csrf_meta_tag) {
|
181
|
+
var header = 'X-CSRF-Token',
|
182
|
+
token = csrf_meta_tag.readAttribute('content');
|
183
|
+
|
184
|
+
if (!request.options.requestHeaders) {
|
185
|
+
request.options.requestHeaders = {};
|
186
|
+
}
|
187
|
+
request.options.requestHeaders[header] = token;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
});
|
191
|
+
})();
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,13 @@
|
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
2
|
+
require File.expand_path('../../config/environment', __FILE__)
|
3
|
+
require 'rails/test_help'
|
4
|
+
|
5
|
+
class ActiveSupport::TestCase
|
6
|
+
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
7
|
+
#
|
8
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
9
|
+
# -- they do not yet inherit this setting
|
10
|
+
fixtures :all
|
11
|
+
|
12
|
+
# Add more helper methods to be used by all tests here...
|
13
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
|
2
|
+
# from the project root directory.
|
3
|
+
ENV["RAILS_ENV"] ||= 'test'
|
4
|
+
ENV['RAILS_ROOT'] ||= File.dirname(__FILE__) + '/rails_root'
|
5
|
+
ARGV.push("-b")
|
6
|
+
require "rubygems"
|
7
|
+
require "bundler"
|
8
|
+
Bundler.setup
|
9
|
+
require File.expand_path(File.join(ENV['RAILS_ROOT'], 'config/environment.rb'))
|
10
|
+
require 'rr'
|
11
|
+
|
12
|
+
#class Test::Unit::TestCase
|
13
|
+
# class << self
|
14
|
+
# def inherited(sub_class)
|
15
|
+
# super
|
16
|
+
# DESCENDANTS << sub_class
|
17
|
+
# end
|
18
|
+
# alias_method :inherited_without_test_unit_gem_inherited_fix, :inherited
|
19
|
+
# alias_method :inherited, :inherited_without_test_unit_gem_inherited_fix
|
20
|
+
# end
|
21
|
+
#end
|
22
|
+
|
23
|
+
require 'rspec'
|
24
|
+
require 'rspec/rails'
|
25
|
+
require 'rspec/autorun'
|
26
|
+
require 'nokogiri'
|
27
|
+
require 'capybara'
|
28
|
+
require 'capybara/rspec'
|
29
|
+
|
30
|
+
$LOAD_PATH.unshift(File.expand_path("#{File.dirname(__FILE__)}/../lib"))
|
31
|
+
require "jelly"
|
32
|
+
|
33
|
+
RSpec.configure do |configuration|
|
34
|
+
configuration.mock_with :rr
|
35
|
+
configuration.filter_run :focus => true
|
36
|
+
configuration.run_all_when_everything_filtered = true
|
37
|
+
end
|
data/spec/spec_suite.rb
ADDED
metadata
CHANGED
@@ -1,57 +1,131 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: honkster-jelly
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.2
|
4
5
|
prerelease:
|
5
|
-
version: 0.9.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Pivotal Labs, Inc
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
date: 2011-06-14 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: capybara
|
16
|
+
requirement: &70153703375720 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - =
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.4.1.2
|
22
|
+
type: :runtime
|
18
23
|
prerelease: false
|
19
|
-
|
24
|
+
version_requirements: *70153703375720
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: jeweler
|
27
|
+
requirement: &70153703375240 !ruby/object:Gem::Requirement
|
20
28
|
none: false
|
21
|
-
requirements:
|
22
|
-
- -
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version:
|
29
|
+
requirements:
|
30
|
+
- - =
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.6.2
|
25
33
|
type: :runtime
|
26
|
-
|
27
|
-
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70153703375240
|
36
|
+
- !ruby/object:Gem::Dependency
|
28
37
|
name: rails
|
38
|
+
requirement: &70153694315920 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - =
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 3.0.8
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70153694315920
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rake
|
49
|
+
requirement: &70153694315440 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - =
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.9.2
|
55
|
+
type: :runtime
|
29
56
|
prerelease: false
|
30
|
-
|
57
|
+
version_requirements: *70153694315440
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rr
|
60
|
+
requirement: &70153694314960 !ruby/object:Gem::Requirement
|
31
61
|
none: false
|
32
|
-
requirements:
|
33
|
-
- -
|
34
|
-
- !ruby/object:Gem::Version
|
62
|
+
requirements:
|
63
|
+
- - =
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 1.0.2
|
66
|
+
type: :runtime
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70153694314960
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: &70153694314480 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - =
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 2.6.0
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *70153694314480
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: rspec-rails
|
82
|
+
requirement: &70153694314000 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - =
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 2.6.1
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *70153694314000
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: sqlite3
|
93
|
+
requirement: &70153694313520 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - =
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 1.3.3
|
99
|
+
type: :runtime
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: *70153694313520
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: rails
|
104
|
+
requirement: &70153694313040 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
35
109
|
version: 2.3.0
|
36
110
|
type: :runtime
|
37
|
-
|
38
|
-
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: *70153694313040
|
113
|
+
description: Jelly provides a set of tools and conventions for creating rich ajax/javascript
|
114
|
+
web applications with jQuery and Ruby on Rails.
|
39
115
|
email: opensource@pivotallabs.com
|
40
116
|
executables: []
|
41
|
-
|
42
117
|
extensions: []
|
43
|
-
|
44
|
-
extra_rdoc_files:
|
118
|
+
extra_rdoc_files:
|
45
119
|
- README.markdown
|
46
|
-
files:
|
120
|
+
files:
|
47
121
|
- .bundle/config
|
122
|
+
- .gitignore
|
48
123
|
- .rvmrc
|
49
124
|
- Gemfile
|
50
125
|
- Gemfile.lock
|
51
126
|
- MIT-LICENSE
|
52
127
|
- README.markdown
|
53
128
|
- Rakefile
|
54
|
-
- VERSION.yml
|
55
129
|
- generators/jelly/USAGE
|
56
130
|
- generators/jelly/jelly_generator.rb
|
57
131
|
- generators/jelly/templates/javascripts/ajax_with_jelly.js
|
@@ -63,39 +137,190 @@ files:
|
|
63
137
|
- lib/jelly/common.rb
|
64
138
|
- lib/jelly/jelly_controller.rb
|
65
139
|
- lib/jelly/jelly_helper.rb
|
140
|
+
- spec/fixtures/public/javascripts/components/component1.js
|
141
|
+
- spec/fixtures/public/javascripts/foo/components/paw.js
|
142
|
+
- spec/fixtures/public/javascripts/foo/components/teeth.js
|
143
|
+
- spec/fixtures/public/javascripts/foo/pages/bears.js
|
144
|
+
- spec/fixtures/public/javascripts/foo/pages/lions.js
|
145
|
+
- spec/fixtures/public/javascripts/foo/pages/tigers.js
|
146
|
+
- spec/fixtures/public/javascripts/pages/page1.js
|
147
|
+
- spec/jasmine/TrivialReporter.js
|
148
|
+
- spec/jasmine/jasmine-0.10.0.js
|
149
|
+
- spec/jasmine/jasmine.css
|
150
|
+
- spec/jasmine/json2.js
|
151
|
+
- spec/jasmine_runner.html
|
152
|
+
- spec/javascript/ajax_with_jelly_spec.js
|
153
|
+
- spec/javascript/jelly_spec.js
|
154
|
+
- spec/javascript/spec_helper.js
|
155
|
+
- spec/jelly/common_spec.rb
|
156
|
+
- spec/jelly/jelly_controller_spec.rb
|
157
|
+
- spec/jelly/jelly_helper_spec.rb
|
66
158
|
- spec/rails_root/.gitignore
|
159
|
+
- spec/rails_root/Gemfile
|
160
|
+
- spec/rails_root/Gemfile.lock
|
161
|
+
- spec/rails_root/README
|
162
|
+
- spec/rails_root/Rakefile
|
163
|
+
- spec/rails_root/app/controllers/application_controller.rb
|
164
|
+
- spec/rails_root/app/helpers/application_helper.rb
|
165
|
+
- spec/rails_root/app/views/layouts/application.html.erb
|
166
|
+
- spec/rails_root/config.ru
|
167
|
+
- spec/rails_root/config/application.rb
|
168
|
+
- spec/rails_root/config/boot.rb
|
169
|
+
- spec/rails_root/config/database.yml
|
170
|
+
- spec/rails_root/config/environment.rb
|
171
|
+
- spec/rails_root/config/environments/development.rb
|
172
|
+
- spec/rails_root/config/environments/production.rb
|
173
|
+
- spec/rails_root/config/environments/test.rb
|
174
|
+
- spec/rails_root/config/initializers/backtrace_silencers.rb
|
175
|
+
- spec/rails_root/config/initializers/inflections.rb
|
176
|
+
- spec/rails_root/config/initializers/mime_types.rb
|
177
|
+
- spec/rails_root/config/initializers/new_rails_defaults.rb
|
178
|
+
- spec/rails_root/config/initializers/secret_token.rb
|
179
|
+
- spec/rails_root/config/initializers/session_store.rb
|
180
|
+
- spec/rails_root/config/locales/en.yml
|
181
|
+
- spec/rails_root/config/routes.rb
|
182
|
+
- spec/rails_root/db/seeds.rb
|
183
|
+
- spec/rails_root/db/test.sqlite3
|
184
|
+
- spec/rails_root/doc/README_FOR_APP
|
67
185
|
- spec/rails_root/lib/tasks/.gitkeep
|
186
|
+
- spec/rails_root/log/development.log
|
187
|
+
- spec/rails_root/log/production.log
|
188
|
+
- spec/rails_root/log/server.log
|
189
|
+
- spec/rails_root/log/test.log
|
190
|
+
- spec/rails_root/public/404.html
|
191
|
+
- spec/rails_root/public/422.html
|
192
|
+
- spec/rails_root/public/500.html
|
193
|
+
- spec/rails_root/public/favicon.ico
|
194
|
+
- spec/rails_root/public/images/rails.png
|
195
|
+
- spec/rails_root/public/index.html
|
196
|
+
- spec/rails_root/public/javascripts/application.js
|
197
|
+
- spec/rails_root/public/javascripts/controls.js
|
198
|
+
- spec/rails_root/public/javascripts/dragdrop.js
|
199
|
+
- spec/rails_root/public/javascripts/effects.js
|
200
|
+
- spec/rails_root/public/javascripts/prototype.js
|
201
|
+
- spec/rails_root/public/javascripts/rails.js
|
202
|
+
- spec/rails_root/public/robots.txt
|
68
203
|
- spec/rails_root/public/stylesheets/.gitkeep
|
204
|
+
- spec/rails_root/script/about
|
205
|
+
- spec/rails_root/script/console
|
206
|
+
- spec/rails_root/script/dbconsole
|
207
|
+
- spec/rails_root/script/destroy
|
208
|
+
- spec/rails_root/script/generate
|
209
|
+
- spec/rails_root/script/performance/benchmarker
|
210
|
+
- spec/rails_root/script/performance/profiler
|
211
|
+
- spec/rails_root/script/plugin
|
212
|
+
- spec/rails_root/script/rails
|
213
|
+
- spec/rails_root/script/runner
|
214
|
+
- spec/rails_root/script/server
|
215
|
+
- spec/rails_root/test/performance/browsing_test.rb
|
216
|
+
- spec/rails_root/test/test_helper.rb
|
69
217
|
- spec/rails_root/vendor/plugins/.gitkeep
|
218
|
+
- spec/spec_helper.rb
|
219
|
+
- spec/spec_suite.rb
|
70
220
|
- tasks/jelly_tasks.rake
|
71
221
|
- uninstall.rb
|
72
|
-
has_rdoc: true
|
73
222
|
homepage: http://github.com/pivotal/jelly
|
74
223
|
licenses: []
|
75
|
-
|
76
224
|
post_install_message:
|
77
225
|
rdoc_options: []
|
78
|
-
|
79
|
-
require_paths:
|
226
|
+
require_paths:
|
80
227
|
- lib
|
81
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
228
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
229
|
none: false
|
83
|
-
requirements:
|
84
|
-
- -
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version:
|
87
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
|
+
requirements:
|
231
|
+
- - ! '>='
|
232
|
+
- !ruby/object:Gem::Version
|
233
|
+
version: '0'
|
234
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
235
|
none: false
|
89
|
-
requirements:
|
90
|
-
- -
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version:
|
236
|
+
requirements:
|
237
|
+
- - ! '>='
|
238
|
+
- !ruby/object:Gem::Version
|
239
|
+
version: '0'
|
93
240
|
requirements: []
|
94
|
-
|
95
241
|
rubyforge_project:
|
96
|
-
rubygems_version: 1.
|
242
|
+
rubygems_version: 1.8.6
|
97
243
|
signing_key:
|
98
244
|
specification_version: 3
|
99
245
|
summary: a sweet unobtrusive javascript framework for jQuery and Rails
|
100
|
-
test_files:
|
101
|
-
|
246
|
+
test_files:
|
247
|
+
- spec/fixtures/public/javascripts/components/component1.js
|
248
|
+
- spec/fixtures/public/javascripts/foo/components/paw.js
|
249
|
+
- spec/fixtures/public/javascripts/foo/components/teeth.js
|
250
|
+
- spec/fixtures/public/javascripts/foo/pages/bears.js
|
251
|
+
- spec/fixtures/public/javascripts/foo/pages/lions.js
|
252
|
+
- spec/fixtures/public/javascripts/foo/pages/tigers.js
|
253
|
+
- spec/fixtures/public/javascripts/pages/page1.js
|
254
|
+
- spec/jasmine/TrivialReporter.js
|
255
|
+
- spec/jasmine/jasmine-0.10.0.js
|
256
|
+
- spec/jasmine/jasmine.css
|
257
|
+
- spec/jasmine/json2.js
|
258
|
+
- spec/jasmine_runner.html
|
259
|
+
- spec/javascript/ajax_with_jelly_spec.js
|
260
|
+
- spec/javascript/jelly_spec.js
|
261
|
+
- spec/javascript/spec_helper.js
|
262
|
+
- spec/jelly/common_spec.rb
|
263
|
+
- spec/jelly/jelly_controller_spec.rb
|
264
|
+
- spec/jelly/jelly_helper_spec.rb
|
265
|
+
- spec/rails_root/.gitignore
|
266
|
+
- spec/rails_root/Gemfile
|
267
|
+
- spec/rails_root/Gemfile.lock
|
268
|
+
- spec/rails_root/README
|
269
|
+
- spec/rails_root/Rakefile
|
270
|
+
- spec/rails_root/app/controllers/application_controller.rb
|
271
|
+
- spec/rails_root/app/helpers/application_helper.rb
|
272
|
+
- spec/rails_root/app/views/layouts/application.html.erb
|
273
|
+
- spec/rails_root/config.ru
|
274
|
+
- spec/rails_root/config/application.rb
|
275
|
+
- spec/rails_root/config/boot.rb
|
276
|
+
- spec/rails_root/config/database.yml
|
277
|
+
- spec/rails_root/config/environment.rb
|
278
|
+
- spec/rails_root/config/environments/development.rb
|
279
|
+
- spec/rails_root/config/environments/production.rb
|
280
|
+
- spec/rails_root/config/environments/test.rb
|
281
|
+
- spec/rails_root/config/initializers/backtrace_silencers.rb
|
282
|
+
- spec/rails_root/config/initializers/inflections.rb
|
283
|
+
- spec/rails_root/config/initializers/mime_types.rb
|
284
|
+
- spec/rails_root/config/initializers/new_rails_defaults.rb
|
285
|
+
- spec/rails_root/config/initializers/secret_token.rb
|
286
|
+
- spec/rails_root/config/initializers/session_store.rb
|
287
|
+
- spec/rails_root/config/locales/en.yml
|
288
|
+
- spec/rails_root/config/routes.rb
|
289
|
+
- spec/rails_root/db/seeds.rb
|
290
|
+
- spec/rails_root/db/test.sqlite3
|
291
|
+
- spec/rails_root/doc/README_FOR_APP
|
292
|
+
- spec/rails_root/lib/tasks/.gitkeep
|
293
|
+
- spec/rails_root/log/development.log
|
294
|
+
- spec/rails_root/log/production.log
|
295
|
+
- spec/rails_root/log/server.log
|
296
|
+
- spec/rails_root/log/test.log
|
297
|
+
- spec/rails_root/public/404.html
|
298
|
+
- spec/rails_root/public/422.html
|
299
|
+
- spec/rails_root/public/500.html
|
300
|
+
- spec/rails_root/public/favicon.ico
|
301
|
+
- spec/rails_root/public/images/rails.png
|
302
|
+
- spec/rails_root/public/index.html
|
303
|
+
- spec/rails_root/public/javascripts/application.js
|
304
|
+
- spec/rails_root/public/javascripts/controls.js
|
305
|
+
- spec/rails_root/public/javascripts/dragdrop.js
|
306
|
+
- spec/rails_root/public/javascripts/effects.js
|
307
|
+
- spec/rails_root/public/javascripts/prototype.js
|
308
|
+
- spec/rails_root/public/javascripts/rails.js
|
309
|
+
- spec/rails_root/public/robots.txt
|
310
|
+
- spec/rails_root/public/stylesheets/.gitkeep
|
311
|
+
- spec/rails_root/script/about
|
312
|
+
- spec/rails_root/script/console
|
313
|
+
- spec/rails_root/script/dbconsole
|
314
|
+
- spec/rails_root/script/destroy
|
315
|
+
- spec/rails_root/script/generate
|
316
|
+
- spec/rails_root/script/performance/benchmarker
|
317
|
+
- spec/rails_root/script/performance/profiler
|
318
|
+
- spec/rails_root/script/plugin
|
319
|
+
- spec/rails_root/script/rails
|
320
|
+
- spec/rails_root/script/runner
|
321
|
+
- spec/rails_root/script/server
|
322
|
+
- spec/rails_root/test/performance/browsing_test.rb
|
323
|
+
- spec/rails_root/test/test_helper.rb
|
324
|
+
- spec/rails_root/vendor/plugins/.gitkeep
|
325
|
+
- spec/spec_helper.rb
|
326
|
+
- spec/spec_suite.rb
|