eyeballs 0.5.16 → 0.5.17

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -11,5 +11,5 @@ end
11
11
 
12
12
  group :test do
13
13
  gem 'rspec', '1.3.1'
14
- gem 'ruby-debug19'
14
+ gem 'ruby-debug'
15
15
  end
@@ -2,8 +2,7 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  activesupport (3.0.0)
5
- archive-tar-minitar (0.5.2)
6
- columnize (0.3.1)
5
+ columnize (0.3.2)
7
6
  gemcutter (0.6.1)
8
7
  git (1.2.5)
9
8
  jeweler (1.4.0)
@@ -11,21 +10,15 @@ GEM
11
10
  git (>= 1.2.5)
12
11
  rubyforge (>= 2.0.0)
13
12
  json_pure (1.4.6)
14
- linecache19 (0.5.11)
15
- ruby_core_source (>= 0.1.4)
13
+ linecache (0.43)
16
14
  rack (1.2.1)
17
15
  rake (0.8.7)
18
16
  rspec (1.3.1)
19
- ruby-debug-base19 (0.11.24)
20
- columnize (>= 0.3.1)
21
- linecache19 (>= 0.5.11)
22
- ruby_core_source (>= 0.1.4)
23
- ruby-debug19 (0.11.6)
24
- columnize (>= 0.3.1)
25
- linecache19 (>= 0.5.11)
26
- ruby-debug-base19 (>= 0.11.19)
27
- ruby_core_source (0.1.4)
28
- archive-tar-minitar (>= 0.5.2)
17
+ ruby-debug (0.10.4)
18
+ columnize (>= 0.1)
19
+ ruby-debug-base (~> 0.10.4.0)
20
+ ruby-debug-base (0.10.4)
21
+ linecache (>= 0.3)
29
22
  rubyforge (2.0.4)
30
23
  json_pure (>= 1.1.7)
31
24
  sinatra (1.0)
@@ -40,6 +33,6 @@ DEPENDENCIES
40
33
  jeweler
41
34
  rake
42
35
  rspec (= 1.3.1)
43
- ruby-debug19
36
+ ruby-debug
44
37
  sinatra
45
38
  thor
data/Rakefile CHANGED
@@ -27,7 +27,7 @@ begin
27
27
  require 'jeweler'
28
28
  Jeweler::Tasks.new do |s|
29
29
  s.name = "eyeballs"
30
- s.version = "0.5.16"
30
+ s.version = "0.5.17"
31
31
  s.author = "Paul Campbell"
32
32
  s.email = "paul@rslw.com"
33
33
  s.homepage = "http://www.github.com/paulca/eyeballs.js"
File without changes
@@ -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 'rake gemspec'
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
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.16"
8
+ s.version = "0.5.17"
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{2011-03-03}
12
+ s.date = %q{2011-03-20}
13
13
  s.default_executable = %q{eyeballs}
14
14
  s.email = %q{paul@rslw.com}
15
15
  s.executables = ["eyeballs"]
@@ -18,100 +18,86 @@ Gem::Specification.new do |s|
18
18
  ]
19
19
  s.files = [
20
20
  "CHANGELOG",
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"
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"]
77
78
  s.require_paths = ["lib"]
78
- s.rubygems_version = %q{1.5.0}
79
+ s.rubygems_version = %q{1.6.2}
79
80
  s.summary = %q{A lightweight javascript MVC framework.}
80
81
  s.test_files = [
81
82
  "spec/app_generator_spec.rb",
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"
83
+ "spec/controller_generator_spec.rb",
84
+ "spec/model_generator_spec.rb",
85
+ "spec/rack_app_detector_spec.rb",
86
+ "spec/scaffold_generator_spec.rb",
87
+ "spec/spec_helper.rb"
87
88
  ]
88
89
 
89
90
  if s.respond_to? :specification_version then
90
91
  s.specification_version = 3
91
92
 
92
93
  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"])
98
94
  s.add_runtime_dependency(%q<thor>, [">= 0"])
99
95
  s.add_runtime_dependency(%q<activesupport>, [">= 0"])
100
96
  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"])
106
97
  s.add_dependency(%q<thor>, [">= 0"])
107
98
  s.add_dependency(%q<activesupport>, [">= 0"])
108
99
  end
109
100
  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"])
115
101
  s.add_dependency(%q<thor>, [">= 0"])
116
102
  s.add_dependency(%q<activesupport>, [">= 0"])
117
103
  end
@@ -21,7 +21,7 @@ o_O.rest = {
21
21
  },
22
22
  all: function(model, callback, original_callback){
23
23
  var include_json_root = this.include_json_root(model);
24
- $.get(this.figure_url(original_callback, model), function(response){
24
+ $.get(this.figure_url(original_callback, model), function(response, textStatus, xhr){
25
25
  var documents;
26
26
  try {
27
27
  documents = JSON.parse(response);
@@ -41,7 +41,7 @@ o_O.rest = {
41
41
 
42
42
  if(typeof callback === 'function')
43
43
  {
44
- callback(documents, response);
44
+ callback(documents, response, xhr);
45
45
  }
46
46
  })
47
47
  },
@@ -50,10 +50,10 @@ o_O.rest = {
50
50
  $.ajax({
51
51
  type: 'DELETE',
52
52
  url: this.figure_url(original_callback, object) + '/' + object.id,
53
- success: function(response){
53
+ success: function(response, textStatus, xhr){
54
54
  if(typeof callback === 'function')
55
55
  {
56
- callback(object, response);
56
+ callback(object, response, xhr);
57
57
  }
58
58
  }
59
59
  })
@@ -67,7 +67,7 @@ o_O.rest = {
67
67
  {
68
68
  object_to_save[object.attributes[i]] = object[object.attributes[i]];
69
69
  }
70
- var respond = function(response){
70
+ var respond = function(response, textStatus, xhr){
71
71
  try{
72
72
  if(typeof response === 'string') {
73
73
  response = JSON.parse(response);
@@ -92,7 +92,7 @@ o_O.rest = {
92
92
  }
93
93
  if(typeof callback === 'function')
94
94
  {
95
- callback(object_to_save, response);
95
+ callback(object_to_save, response, xhr);
96
96
  }
97
97
  }
98
98
  url = this.figure_url(original_callback, object);
@@ -134,7 +134,7 @@ o_O.rest = {
134
134
  {
135
135
  var url = this.figure_url(options, model) + '/' + id;
136
136
  var include_json_root = this.include_json_root(model)
137
- $.get(url, function(response){
137
+ $.get(url, function(response, textStatus, xhr){
138
138
  try{
139
139
  if(typeof response === 'object')
140
140
  {
@@ -155,7 +155,7 @@ o_O.rest = {
155
155
  if(typeof callback === 'function')
156
156
  {
157
157
  retrieved_object.new_record = false;
158
- callback(retrieved_object, response);
158
+ callback(retrieved_object, response, xhr);
159
159
  }
160
160
  })
161
161
  }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eyeballs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 43
4
+ hash: 41
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 16
10
- version: 0.5.16
9
+ - 17
10
+ version: 0.5.17
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paul Campbell
@@ -15,11 +15,12 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-03 00:00:00 +00:00
18
+ date: 2011-03-20 00:00:00 +00:00
19
19
  default_executable: eyeballs
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- type: :runtime
22
+ name: thor
23
+ prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
24
25
  none: false
25
26
  requirements:
@@ -29,68 +30,12 @@ dependencies:
29
30
  segments:
30
31
  - 0
31
32
  version: "0"
32
- name: sinatra
33
- version_requirements: *id001
34
- prerelease: false
35
- - !ruby/object:Gem::Dependency
36
33
  type: :runtime
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
46
- name: thor
47
- version_requirements: *id002
48
- prerelease: false
34
+ version_requirements: *id001
49
35
  - !ruby/object:Gem::Dependency
50
- type: :runtime
51
- requirement: &id003 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- hash: 3
57
- segments:
58
- - 0
59
- version: "0"
60
36
  name: activesupport
61
- version_requirements: *id003
62
- prerelease: false
63
- - !ruby/object:Gem::Dependency
64
- type: :development
65
- requirement: &id004 !ruby/object:Gem::Requirement
66
- none: false
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- hash: 3
71
- segments:
72
- - 0
73
- version: "0"
74
- name: jeweler
75
- version_requirements: *id004
76
37
  prerelease: false
77
- - !ruby/object:Gem::Dependency
78
- type: :development
79
- requirement: &id005 !ruby/object:Gem::Requirement
80
- none: false
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- hash: 3
85
- segments:
86
- - 0
87
- version: "0"
88
- name: rake
89
- version_requirements: *id005
90
- prerelease: false
91
- - !ruby/object:Gem::Dependency
92
- type: :runtime
93
- requirement: &id006 !ruby/object:Gem::Requirement
38
+ requirement: &id002 !ruby/object:Gem::Requirement
94
39
  none: false
95
40
  requirements:
96
41
  - - ">="
@@ -99,23 +44,8 @@ dependencies:
99
44
  segments:
100
45
  - 0
101
46
  version: "0"
102
- name: thor
103
- version_requirements: *id006
104
- prerelease: false
105
- - !ruby/object:Gem::Dependency
106
47
  type: :runtime
107
- requirement: &id007 !ruby/object:Gem::Requirement
108
- none: false
109
- requirements:
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- hash: 3
113
- segments:
114
- - 0
115
- version: "0"
116
- name: activesupport
117
- version_requirements: *id007
118
- prerelease: false
48
+ version_requirements: *id002
119
49
  description:
120
50
  email: paul@rslw.com
121
51
  executables:
@@ -191,8 +121,8 @@ homepage: http://www.github.com/paulca/eyeballs.js
191
121
  licenses: []
192
122
 
193
123
  post_install_message:
194
- rdoc_options: []
195
-
124
+ rdoc_options:
125
+ - --charset=UTF-8
196
126
  require_paths:
197
127
  - lib
198
128
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -216,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
146
  requirements: []
217
147
 
218
148
  rubyforge_project:
219
- rubygems_version: 1.5.0
149
+ rubygems_version: 1.6.2
220
150
  signing_key:
221
151
  specification_version: 3
222
152
  summary: A lightweight javascript MVC framework.