merb_jquery 0.9.9 → 0.9.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +22 -3
  2. data/Rakefile +1 -0
  3. metadata +3 -3
data/README CHANGED
@@ -3,10 +3,10 @@ merb-jquery
3
3
 
4
4
  Makes it easy to use jQuery in your application.
5
5
 
6
- $ gem install merb-jquery
6
+ $ gem install merb_jquery
7
7
 
8
8
  Add
9
- require 'merb-jquery'
9
+ require 'merb_jquery'
10
10
  to your init.rb
11
11
 
12
12
  $ rake merb:jquery:install
@@ -21,4 +21,23 @@ In your views:
21
21
 
22
22
  <% jquery do %>
23
23
  $('#foo').something();
24
- <% end %>
24
+ <% end %>
25
+
26
+ jquery is a helper method is a shortcut to
27
+
28
+ throw_content :for_query and catch_content :for_jquery
29
+
30
+ You still need to inlude jQuery javascript file manually, for instance,
31
+ using merb-assets:
32
+
33
+ # in init.rb
34
+
35
+ dependency "merb-assets", "0.9.10"
36
+
37
+ # in Erb layout
38
+
39
+ <%= js_include_tag "jquery" %>
40
+
41
+ # or in Haml layout
42
+
43
+ = js_include_tag "jquery"
data/Rakefile CHANGED
@@ -3,6 +3,7 @@ require 'rake/gempackagetask'
3
3
  require "extlib"
4
4
  require 'merb-core/tasks/merb_rake_helper'
5
5
  require "spec/rake/spectask"
6
+ require "#{File.dirname(__FILE__)}" / ".." / "version"
6
7
 
7
8
  ##############################################################################
8
9
  # Package && release
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb_jquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: 0.9.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael D. Ivey
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-14 00:00:00 +03:00
12
+ date: 2008-10-21 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  requirements: []
63
63
 
64
64
  rubyforge_project: merb
65
- rubygems_version: 1.2.0
65
+ rubygems_version: 1.3.0
66
66
  signing_key:
67
67
  specification_version: 2
68
68
  summary: Merb plugin that provides jQuery support