rad_jquery 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile ADDED
@@ -0,0 +1,11 @@
1
+ require 'rake_ext'
2
+
3
+ project(
4
+ name: "jquery",
5
+ official_name: "rad_jquery",
6
+ version: "0.1.2",
7
+ summary: "jQuery client for Rad Framework",
8
+
9
+ author: "Alexey Petrushin",
10
+ homepage: "http://github.com/alexeypetrushin/rad_jquery"
11
+ )
data/lib/jquery.rb ADDED
@@ -0,0 +1,11 @@
1
+ require 'jquery/gems'
2
+
3
+ require 'rad/html'
4
+
5
+ rad.after :environment do
6
+ dir = File.expand_path "#{__FILE__}/../.."
7
+ rad.ensure_public_symlink "jquery", "#{dir}/static/jquery"
8
+ end
9
+
10
+ require 'jquery/jquery_helper'
11
+ Rad::ControllerContext.include Rad::JQueryHelper
@@ -0,0 +1,3 @@
1
+ if respond_to? :fake_gem
2
+ fake_gem 'rad_core'
3
+ end
@@ -0,0 +1,8 @@
1
+ module Rad
2
+ module JQueryHelper
3
+ def initialize_js_commons
4
+ javascript_tag %{\
5
+ $.authenticity_token = "#{workspace.session_authenticity_token}";}
6
+ end
7
+ end
8
+ end
data/readme.md ADDED
@@ -0,0 +1 @@
1
+ # jQuery client for Rad framework
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe "rad jquery" do
4
+ it 'smoke test' do
5
+ # should at least require 'rad_jquery'
6
+ end
7
+ end
@@ -0,0 +1,2 @@
1
+ require 'rad/controller'
2
+ require 'jquery'
metadata ADDED
@@ -0,0 +1,72 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rad_jquery
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.2
6
+ platform: ruby
7
+ authors:
8
+ - Alexey Petrushin
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-02-23 00:00:00 +03:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: rad_core
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: "0"
25
+ type: :runtime
26
+ version_requirements: *id001
27
+ description:
28
+ email:
29
+ executables: []
30
+
31
+ extensions: []
32
+
33
+ extra_rdoc_files: []
34
+
35
+ files:
36
+ - Rakefile
37
+ - readme.md
38
+ - lib/jquery/gems.rb
39
+ - lib/jquery/jquery_helper.rb
40
+ - lib/jquery.rb
41
+ - spec/jquery_spec.rb
42
+ - spec/spec_helper.rb
43
+ has_rdoc: true
44
+ homepage: http://github.com/alexeypetrushin/rad_jquery
45
+ licenses: []
46
+
47
+ post_install_message:
48
+ rdoc_options: []
49
+
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: "0"
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: "0"
64
+ requirements: []
65
+
66
+ rubyforge_project:
67
+ rubygems_version: 1.5.1
68
+ signing_key:
69
+ specification_version: 3
70
+ summary: jQuery client for Rad Framework
71
+ test_files: []
72
+