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 CHANGED
@@ -1,3 +1,7 @@
1
+ Sun Aug 8
2
+ - - - - -
3
+ - Remove 'previx', 'url' is better ...
4
+
1
5
  Fri Aug 6
2
6
  - - - - -
3
7
  - Add support for passing params from the URL to the controller
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.7.1"
30
+ s.version = "0.5.7.2"
31
31
  s.author = "Paul Campbell"
32
32
  s.email = "paul@rslw.com"
33
33
  s.homepage = "http://www.github.com/paulca/eyeballs.js"
data/app.rb CHANGED
@@ -15,7 +15,7 @@ post '/alternate_reviews' do
15
15
  '{"id": "2"}'
16
16
  end
17
17
 
18
- get '/string_back' do
18
+ get '/string_back/1' do
19
19
  'found a string'
20
20
  end
21
21
 
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.1"
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-06}
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 = '/' + model.table_name + '/' + id;
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);
@@ -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, {prefix:'/my', success: function(found_review){
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: 121
4
+ hash: 127
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
9
  - 7
10
- - 1
11
- version: 0.5.7.1
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-06 00:00:00 +01:00
19
+ date: 2010-08-08 00:00:00 +01:00
20
20
  default_executable: eyeballs
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency