eyeballs 0.5.13.2 → 0.5.14
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -1
- data/README.md +8 -2
- data/Rakefile +1 -1
- data/eyeballs.gemspec +78 -65
- data/src/o_O.js +23 -0
- metadata +83 -14
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
Wed Feb 2
|
2
|
+
- - - - -
|
3
|
+
- Array.indexOf has no support in IE. Who knew?
|
4
|
+
|
1
5
|
Wed Nov 3
|
2
6
|
- - - - -
|
3
7
|
- Support passing in params via the routes
|
@@ -78,4 +82,4 @@ Tues Jun 8 2010
|
|
78
82
|
|
79
83
|
Thu Jun 3 2010
|
80
84
|
- - - - - - - -
|
81
|
-
- Added Generators for an app, models and controllers
|
85
|
+
- Added Generators for an app, models and controllers
|
data/README.md
CHANGED
@@ -365,9 +365,15 @@ Finally, the o\_O.render function takes a template, which is a Mustache.js templ
|
|
365
365
|
Running the tests
|
366
366
|
-----------------
|
367
367
|
|
368
|
-
eyeballs.js uses QUnit
|
368
|
+
eyeballs.js uses QUnit and a Sinatra app for in-browser testing.
|
369
369
|
|
370
|
-
|
370
|
+
To start the test server:
|
371
|
+
|
372
|
+
ruby app.rb
|
373
|
+
|
374
|
+
To run all the tests, visit:
|
375
|
+
|
376
|
+
http://localhost:4567/test/run_unit_tests.html
|
371
377
|
|
372
378
|
Contributors
|
373
379
|
------------
|
data/Rakefile
CHANGED
data/eyeballs.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{eyeballs}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.14"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Paul Campbell"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-02-02}
|
13
13
|
s.default_executable = %q{eyeballs}
|
14
14
|
s.email = %q{paul@rslw.com}
|
15
15
|
s.executables = ["eyeballs"]
|
@@ -18,87 +18,100 @@ Gem::Specification.new do |s|
|
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
"CHANGELOG",
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"README.md",
|
24
|
+
"Rakefile",
|
25
|
+
"TODO",
|
26
|
+
"app.rb",
|
27
|
+
"bin/eyeballs",
|
28
|
+
"config.ru",
|
29
|
+
"dist/jquery/jquery-1.4.2.min.js",
|
30
|
+
"dist/jquery/jquery.ba-bbq.min.js",
|
31
|
+
"dist/mustache/mustache.0.3.0.js",
|
32
|
+
"eyeballs.gemspec",
|
33
|
+
"lib/eyeballs.rb",
|
34
|
+
"lib/eyeballs/app_detector.rb",
|
35
|
+
"lib/eyeballs/app_generator.rb",
|
36
|
+
"lib/eyeballs/cli.rb",
|
37
|
+
"lib/eyeballs/controller_generator.rb",
|
38
|
+
"lib/eyeballs/model_generator.rb",
|
39
|
+
"lib/eyeballs/scaffold_generator.rb",
|
40
|
+
"src/adapters/o_O.localstorage.js",
|
41
|
+
"src/drivers/jquery/adapters/o_O.couchdb.js",
|
42
|
+
"src/drivers/jquery/adapters/o_O.dom.js",
|
43
|
+
"src/drivers/jquery/adapters/o_O.rest.js",
|
44
|
+
"src/drivers/jquery/modules/o_O.controller.js",
|
45
|
+
"src/drivers/jquery/modules/o_O.routes.js",
|
46
|
+
"src/drivers/jquery/modules/o_O.support.js",
|
47
|
+
"src/modules/o_O.model.js",
|
48
|
+
"src/modules/o_O.validations.js",
|
49
|
+
"src/o_O.js",
|
50
|
+
"templates/app_root/app.rb",
|
51
|
+
"templates/app_root/config/routes.js",
|
52
|
+
"templates/app_root/index.html",
|
53
|
+
"templates/controller.js",
|
54
|
+
"templates/initializer.js",
|
55
|
+
"templates/model.js",
|
56
|
+
"templates/scaffold_controller.js",
|
57
|
+
"templates/scaffold_edit.html.mustache",
|
58
|
+
"templates/scaffold_index.html",
|
59
|
+
"templates/scaffold_partial.html.mustache",
|
60
|
+
"test/run_unit_tests.html",
|
61
|
+
"test/unit/qunit.css",
|
62
|
+
"test/unit/qunit.js",
|
63
|
+
"test/unit/run_all.js",
|
64
|
+
"test/unit/test_binding.html",
|
65
|
+
"test/unit/test_controller.html",
|
66
|
+
"test/unit/test_dom.html",
|
67
|
+
"test/unit/test_dom_with_callbacks.html",
|
68
|
+
"test/unit/test_localstorage.html",
|
69
|
+
"test/unit/test_model.html",
|
70
|
+
"test/unit/test_model_with_callbacks.html",
|
71
|
+
"test/unit/test_params.html",
|
72
|
+
"test/unit/test_rest.html",
|
73
|
+
"test/unit/test_rest_global_config.html",
|
74
|
+
"test/unit/test_routing.html"
|
75
75
|
]
|
76
76
|
s.homepage = %q{http://www.github.com/paulca/eyeballs.js}
|
77
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
78
77
|
s.require_paths = ["lib"]
|
79
|
-
s.rubygems_version = %q{1.
|
78
|
+
s.rubygems_version = %q{1.4.2}
|
80
79
|
s.summary = %q{A lightweight javascript MVC framework.}
|
81
80
|
s.test_files = [
|
82
81
|
"spec/app_generator_spec.rb",
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
82
|
+
"spec/controller_generator_spec.rb",
|
83
|
+
"spec/model_generator_spec.rb",
|
84
|
+
"spec/rack_app_detector_spec.rb",
|
85
|
+
"spec/scaffold_generator_spec.rb",
|
86
|
+
"spec/spec_helper.rb"
|
88
87
|
]
|
89
88
|
|
90
89
|
if s.respond_to? :specification_version then
|
91
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
92
90
|
s.specification_version = 3
|
93
91
|
|
94
92
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
93
|
+
s.add_runtime_dependency(%q<sinatra>, [">= 0"])
|
94
|
+
s.add_runtime_dependency(%q<thor>, [">= 0"])
|
95
|
+
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
96
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
97
|
+
s.add_development_dependency(%q<rake>, [">= 0"])
|
95
98
|
s.add_runtime_dependency(%q<thor>, [">= 0"])
|
96
99
|
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
97
100
|
else
|
101
|
+
s.add_dependency(%q<sinatra>, [">= 0"])
|
102
|
+
s.add_dependency(%q<thor>, [">= 0"])
|
103
|
+
s.add_dependency(%q<activesupport>, [">= 0"])
|
104
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
105
|
+
s.add_dependency(%q<rake>, [">= 0"])
|
98
106
|
s.add_dependency(%q<thor>, [">= 0"])
|
99
107
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
100
108
|
end
|
101
109
|
else
|
110
|
+
s.add_dependency(%q<sinatra>, [">= 0"])
|
111
|
+
s.add_dependency(%q<thor>, [">= 0"])
|
112
|
+
s.add_dependency(%q<activesupport>, [">= 0"])
|
113
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
114
|
+
s.add_dependency(%q<rake>, [">= 0"])
|
102
115
|
s.add_dependency(%q<thor>, [">= 0"])
|
103
116
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
104
117
|
end
|
data/src/o_O.js
CHANGED
@@ -95,4 +95,27 @@ if(typeof String.prototype.blank === 'undefined')
|
|
95
95
|
|
96
96
|
String.prototype.o_O_trim = function(chars) {
|
97
97
|
return this.replace(new RegExp("(^[" + chars + "]+|[" + chars + "]+$)", "g"), '')
|
98
|
+
}
|
99
|
+
|
100
|
+
if (!Array.prototype.indexOf)
|
101
|
+
{
|
102
|
+
Array.prototype.indexOf = function(elt)
|
103
|
+
{
|
104
|
+
var len = this.length >>> 0;
|
105
|
+
|
106
|
+
var from = Number(arguments[1]) || 0;
|
107
|
+
from = (from < 0)
|
108
|
+
? Math.ceil(from)
|
109
|
+
: Math.floor(from);
|
110
|
+
if (from < 0)
|
111
|
+
from += len;
|
112
|
+
|
113
|
+
for (; from < len; from++)
|
114
|
+
{
|
115
|
+
if (from in this &&
|
116
|
+
this[from] === elt)
|
117
|
+
return from;
|
118
|
+
}
|
119
|
+
return -1;
|
120
|
+
};
|
98
121
|
}
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyeballs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 23
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
|
11
|
-
version: 0.5.13.2
|
9
|
+
- 14
|
10
|
+
version: 0.5.14
|
12
11
|
platform: ruby
|
13
12
|
authors:
|
14
13
|
- Paul Campbell
|
@@ -16,13 +15,14 @@ autorequire:
|
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date:
|
18
|
+
date: 2011-02-02 00:00:00 +00:00
|
20
19
|
default_executable: eyeballs
|
21
20
|
dependencies:
|
22
21
|
- !ruby/object:Gem::Dependency
|
23
|
-
name: thor
|
24
22
|
prerelease: false
|
25
|
-
|
23
|
+
name: sinatra
|
24
|
+
type: :runtime
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
26
|
none: false
|
27
27
|
requirements:
|
28
28
|
- - ">="
|
@@ -31,12 +31,40 @@ dependencies:
|
|
31
31
|
segments:
|
32
32
|
- 0
|
33
33
|
version: "0"
|
34
|
+
requirement: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
prerelease: false
|
37
|
+
name: thor
|
34
38
|
type: :runtime
|
35
|
-
version_requirements:
|
39
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
version: "0"
|
48
|
+
requirement: *id002
|
36
49
|
- !ruby/object:Gem::Dependency
|
50
|
+
prerelease: false
|
37
51
|
name: activesupport
|
52
|
+
type: :runtime
|
53
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
59
|
+
segments:
|
60
|
+
- 0
|
61
|
+
version: "0"
|
62
|
+
requirement: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
38
64
|
prerelease: false
|
39
|
-
|
65
|
+
name: jeweler
|
66
|
+
type: :development
|
67
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
40
68
|
none: false
|
41
69
|
requirements:
|
42
70
|
- - ">="
|
@@ -45,8 +73,49 @@ dependencies:
|
|
45
73
|
segments:
|
46
74
|
- 0
|
47
75
|
version: "0"
|
76
|
+
requirement: *id004
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
prerelease: false
|
79
|
+
name: rake
|
80
|
+
type: :development
|
81
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
87
|
+
segments:
|
88
|
+
- 0
|
89
|
+
version: "0"
|
90
|
+
requirement: *id005
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
prerelease: false
|
93
|
+
name: thor
|
48
94
|
type: :runtime
|
49
|
-
version_requirements:
|
95
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
96
|
+
none: false
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
hash: 3
|
101
|
+
segments:
|
102
|
+
- 0
|
103
|
+
version: "0"
|
104
|
+
requirement: *id006
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
prerelease: false
|
107
|
+
name: activesupport
|
108
|
+
type: :runtime
|
109
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
110
|
+
none: false
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
hash: 3
|
115
|
+
segments:
|
116
|
+
- 0
|
117
|
+
version: "0"
|
118
|
+
requirement: *id007
|
50
119
|
description:
|
51
120
|
email: paul@rslw.com
|
52
121
|
executables:
|
@@ -122,8 +191,8 @@ homepage: http://www.github.com/paulca/eyeballs.js
|
|
122
191
|
licenses: []
|
123
192
|
|
124
193
|
post_install_message:
|
125
|
-
rdoc_options:
|
126
|
-
|
194
|
+
rdoc_options: []
|
195
|
+
|
127
196
|
require_paths:
|
128
197
|
- lib
|
129
198
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -147,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
216
|
requirements: []
|
148
217
|
|
149
218
|
rubyforge_project:
|
150
|
-
rubygems_version: 1.
|
219
|
+
rubygems_version: 1.4.2
|
151
220
|
signing_key:
|
152
221
|
specification_version: 3
|
153
222
|
summary: A lightweight javascript MVC framework.
|