eyeballs 0.5.7.1 → 0.5.7.2
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/CHANGELOG +4 -0
- data/Rakefile +1 -1
- data/app.rb +1 -1
- data/eyeballs.gemspec +2 -2
- data/src/drivers/jquery/adapters/o_O.rest.js +1 -11
- data/test/unit/test_rest.html +2 -2
- metadata +4 -4
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
data/app.rb
CHANGED
data/eyeballs.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{eyeballs}
|
8
|
-
s.version = "0.5.7.
|
8
|
+
s.version = "0.5.7.2"
|
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{2010-08-
|
12
|
+
s.date = %q{2010-08-08}
|
13
13
|
s.default_executable = %q{eyeballs}
|
14
14
|
s.email = %q{paul@rslw.com}
|
15
15
|
s.executables = ["eyeballs"]
|
@@ -99,17 +99,7 @@ o_O.rest = {
|
|
99
99
|
},
|
100
100
|
find: function(model, id, callback, options)
|
101
101
|
{
|
102
|
-
var url =
|
103
|
-
if(typeof options === 'object')
|
104
|
-
{
|
105
|
-
if(options['url']){
|
106
|
-
url = options['url'];
|
107
|
-
}
|
108
|
-
else if(options['prefix'])
|
109
|
-
{
|
110
|
-
url = options.prefix + url;
|
111
|
-
}
|
112
|
-
}
|
102
|
+
var url = this.figure_url(options, model) + '/' + id;
|
113
103
|
$.get(url, function(response){
|
114
104
|
try{
|
115
105
|
var retrieved_object = JSON.parse(response);
|
data/test/unit/test_rest.html
CHANGED
@@ -130,7 +130,7 @@
|
|
130
130
|
|
131
131
|
asyncTest('consistent ID find with string back', function(){
|
132
132
|
var string_back_id;
|
133
|
-
Review.find(
|
133
|
+
Review.find('1',{
|
134
134
|
url: "/string_back",
|
135
135
|
loading: function(found_review){
|
136
136
|
string_back_id = found_review.id;
|
@@ -155,7 +155,7 @@
|
|
155
155
|
})
|
156
156
|
|
157
157
|
asyncTest('pulling something in with prefix', 1, function(){
|
158
|
-
Review.find(1, {
|
158
|
+
Review.find(1, {url:'/my/reviews', success: function(found_review){
|
159
159
|
equals(found_review.title, 'Prefixed');
|
160
160
|
start();
|
161
161
|
}})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyeballs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 127
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
9
|
- 7
|
10
|
-
-
|
11
|
-
version: 0.5.7.
|
10
|
+
- 2
|
11
|
+
version: 0.5.7.2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Paul Campbell
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-08-
|
19
|
+
date: 2010-08-08 00:00:00 +01:00
|
20
20
|
default_executable: eyeballs
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|