eyeballs 0.5.6 → 0.5.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -237,6 +237,22 @@ You can now bind this to particular links, by adding the `data-ajax-history` att
237
237
 
238
238
  This link will now call `PostsController.new()` when it is clicked.
239
239
 
240
+ You can also set params in the URL, eg:
241
+
242
+ o_O.routes.draw(function(map){
243
+ map.match('/posts/:id/', {to: 'posts#show'})
244
+ })
245
+
246
+ <a href="/posts/1">Click Me for Post 1!</a>
247
+
248
+ and your controller:
249
+
250
+ o_O('PostsController', {
251
+ show: function(params){
252
+ alert(params('id')) #=> '1'
253
+ }
254
+ })
255
+
240
256
  If you want a default action to fire, that is when the `document.hash` is empty, just hook up a `map.root`:
241
257
 
242
258
  o_O.routes.draw(function(map){
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.6"
30
+ s.version = "0.5.6.1"
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/eyeballs.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{eyeballs}
8
- s.version = "0.5.6"
8
+ s.version = "0.5.6.1"
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"]
@@ -47,10 +47,10 @@ Gem::Specification.new do |s|
47
47
  "src/modules/o_O.model.js",
48
48
  "src/modules/o_O.validations.js",
49
49
  "src/o_O.js",
50
- "templates/app_root/config/initializer.js",
51
50
  "templates/app_root/config/routes.js",
52
51
  "templates/app_root/index.html",
53
52
  "templates/controller.js",
53
+ "templates/initializer.js",
54
54
  "templates/model.js",
55
55
  "templates/scaffold_controller.js",
56
56
  "templates/scaffold_edit.html.mustache",
@@ -20,6 +20,7 @@ module Eyeballs
20
20
  copy_file 'dist/jquery/jquery-1.4.2.min.js', "#{new_app_path}/vendor/jquery/jquery-1.4.2.min.js"
21
21
  copy_file 'dist/mustache/mustache.0.2.3.js', "#{new_app_path}/vendor/mustache/mustache.0.2.3.js"
22
22
  directory "src", "#{new_app_path}/vendor/eyeballs/"
23
+ template "templates/initializer.js", "#{new_app_path}/config/initializer.js"
23
24
  end
24
25
 
25
26
  def farewell
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  require 'eyeballs'
2
2
  require 'fileutils'
3
3
  require 'pathname'
4
- # Debugger.settings[:autoeval] = true
4
+ require 'ruby-debug'
5
+ Debugger.settings[:autoeval] = true
5
6
 
6
7
  def create_test_root
7
8
  FileUtils.mkdir_p(test_root)
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eyeballs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 125
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
9
  - 6
10
- version: 0.5.6
10
+ - 1
11
+ version: 0.5.6.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - Paul Campbell
@@ -85,10 +86,10 @@ files:
85
86
  - src/modules/o_O.model.js
86
87
  - src/modules/o_O.validations.js
87
88
  - src/o_O.js
88
- - templates/app_root/config/initializer.js
89
89
  - templates/app_root/config/routes.js
90
90
  - templates/app_root/index.html
91
91
  - templates/controller.js
92
+ - templates/initializer.js
92
93
  - templates/model.js
93
94
  - templates/scaffold_controller.js
94
95
  - templates/scaffold_edit.html.mustache