jrails 0.6.0

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.
@@ -0,0 +1,16 @@
1
+ # The following options can be changed by creating an initializer in config/initializers/jrails.rb
2
+
3
+ # jRails uses jQuery.noConflict() by default
4
+ # to use the default jQuery varibale, use:
5
+ # ActionView::Helpers::PrototypeHelper::JQUERY_VAR = '$'
6
+
7
+ # ActionView::Helpers::PrototypeHelper:: DISABLE_JQUERY_FORGERY_PROTECTION
8
+ # Set this to disable forgery protection in ajax calls
9
+ # This is handy if you want to use caching with ajax by injecting the forgery token via another means
10
+ # for an example, see http://henrik.nyh.se/2008/05/rails-authenticity-token-with-jquery
11
+ # ActionView::Helpers::PrototypeHelper::DISABLE_JQUERY_FORGERY_PROTECTION = true
12
+
13
+ ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES = ['jquery','jquery-ui','jrails']
14
+ ActionView::Helpers::AssetTagHelper::reset_javascript_include_default
15
+ require 'jrails'
16
+ require 'jquery_selector_assertions' if RAILS_ENV == 'test'
@@ -0,0 +1,25 @@
1
+ namespace :jrails do
2
+
3
+ namespace :js do
4
+ desc "Copies the jQuery and jRails javascripts to public/javascripts"
5
+ task :install do
6
+ puts "Copying files..."
7
+ project_dir = RAILS_ROOT + '/public/javascripts/'
8
+ scripts = Dir[File.join(File.dirname(__FILE__), '..', '/javascripts/', '*.js')]
9
+ FileUtils.cp(scripts, project_dir)
10
+ puts "files copied successfully."
11
+ end
12
+
13
+ desc 'Remove the prototype / script.aculo.us javascript files'
14
+ task :scrub do
15
+ puts "Removing files..."
16
+ files = %W[controls.js dragdrop.js effects.js prototype.js]
17
+ project_dir = File.join(RAILS_ROOT, 'public', 'javascripts')
18
+ files.each do |fname|
19
+ FileUtils.rm(File.join(project_dir, fname)) if File.exists?(File.join(project_dir, fname))
20
+ end
21
+ puts "files removed successfully."
22
+ end
23
+ end
24
+
25
+ end
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jrails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.0
5
+ platform: ruby
6
+ authors:
7
+ - Aaron Eisenberger
8
+ - Patrick Hurley
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2009-10-20 00:00:00 -07:00
14
+ default_executable: jrails
15
+ dependencies: []
16
+
17
+ description: Using jRails, you can get all of the same default Rails helpers for javascript functionality using the lighter jQuery library.
18
+ email: aaronchi@gmail.com
19
+ executables:
20
+ - jrails
21
+ extensions: []
22
+
23
+ extra_rdoc_files:
24
+ - CHANGELOG
25
+ - LICENSE
26
+ - README.rdoc
27
+ files:
28
+ - bin/jrails
29
+ - init.rb
30
+ - install.rb
31
+ - javascripts/jquery-ui.js
32
+ - javascripts/jquery.js
33
+ - javascripts/jrails.js
34
+ - javascripts/sources/jrails.js
35
+ - lib/jquery_selector_assertions.rb
36
+ - lib/jrails.rb
37
+ - rails/init.rb
38
+ - tasks/jrails.rake
39
+ - CHANGELOG
40
+ - LICENSE
41
+ - README.rdoc
42
+ has_rdoc: true
43
+ homepage: http://ennerchi.com/projects/jrails
44
+ licenses: []
45
+
46
+ post_install_message:
47
+ rdoc_options:
48
+ - --charset=UTF-8
49
+ require_paths:
50
+ - lib
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: "0"
56
+ version:
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: "0"
62
+ version:
63
+ requirements: []
64
+
65
+ rubyforge_project: jrails
66
+ rubygems_version: 1.3.5
67
+ signing_key:
68
+ specification_version: 3
69
+ summary: jRails is a drop-in jQuery replacement for the Rails Prototype/script.aculo.us helpers.
70
+ test_files: []
71
+