webpulser-jrails 0.4.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/rails/init.rb ADDED
@@ -0,0 +1,9 @@
1
+ # I made this the default, because it adds very little to the
2
+ # the size of the generated code and increases compatibility
3
+ # If it is a real problem redefine it in an initializer
4
+ ActionView::Helpers::PrototypeHelper::JQUERY_VAR = 'jQuery'
5
+
6
+ ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES = ['jquery','jquery-ui','jrails']
7
+ ActionView::Helpers::AssetTagHelper::reset_javascript_include_default
8
+ require 'jrails'
9
+
data/tasks/jrails.rake ADDED
@@ -0,0 +1,28 @@
1
+ namespace :jrails do
2
+ namespace :update do
3
+ desc "Copies the jQuery and jRails javascripts to public/javascripts"
4
+ task :javascripts do
5
+ puts "Copying files..."
6
+ project_dir = RAILS_ROOT + '/public/javascripts/'
7
+ scripts = Dir[File.join(File.dirname(__FILE__), '..', '/javascripts/', '*.js')]
8
+ FileUtils.cp(scripts, project_dir)
9
+ puts "files copied successfully."
10
+ end
11
+ end
12
+
13
+ namespace :install do
14
+ desc "Installs the jQuery and jRails javascripts to public/javascripts"
15
+ task :javascripts do
16
+ Rake::Task['jrails:update:javascripts'].invoke
17
+ end
18
+ end
19
+
20
+ desc 'Remove the prototype / script.aculo.us javascript files'
21
+ task :scrub do
22
+ files = %W[controls.js dragdrop.js effects.js prototype.js]
23
+ project_dir = File.join(RAILS_ROOT, 'public', 'javascripts')
24
+ files.each do |fname|
25
+ FileUtils.rm File.join(project_dir, fname)
26
+ end
27
+ end
28
+ end
metadata ADDED
@@ -0,0 +1,72 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: webpulser-jrails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.2
5
+ platform: ruby
6
+ authors:
7
+ - aaronchi
8
+ - Patrick Hurley
9
+ - Cyril LEPAGNOT
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+
14
+ date: 2009-08-04 00:00:00 -07:00
15
+ default_executable:
16
+ dependencies: []
17
+
18
+ description: jRails is a drop-in jQuery replacement for Prototype/script.aculo.us on Rails. Using jRails, you can get all of the same default Rails helpers for javascript functionality using the lighter jQuery library.
19
+ email: cyril.lepagnot@webpulser.com
20
+ executables:
21
+ - jrails
22
+ extensions: []
23
+
24
+ extra_rdoc_files: []
25
+
26
+ files:
27
+ - CHANGELOG
28
+ - Manifest.txt
29
+ - README
30
+ - init.rb
31
+ - bin
32
+ - bin/jrails
33
+ - javascripts
34
+ - javascripts/jquery-ui.js
35
+ - javascripts/jquery.js
36
+ - javascripts/jrails.js
37
+ - javascripts/sources
38
+ - javascripts/sources/jrails.js
39
+ - lib
40
+ - lib/jrails.rb
41
+ - tasks
42
+ - tasks/jrails.rake
43
+ - rails/init.rb
44
+ has_rdoc: false
45
+ homepage: http://ennerchi.com/projects/jrails
46
+ licenses:
47
+ post_install_message:
48
+ rdoc_options: []
49
+
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: "0"
57
+ version:
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: "0"
63
+ version:
64
+ requirements: []
65
+
66
+ rubyforge_project:
67
+ rubygems_version: 1.3.5
68
+ signing_key:
69
+ specification_version: 2
70
+ summary: jRails is a drop-in jQuery replacement for the Rails Prototype/script.aculo.us helpers.
71
+ test_files: []
72
+