[DRE-commits] [ruby-rails-assets-jquery-placeholder] 07/08: set rails engine root, use system jquery

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Tue Dec 30 17:15:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository ruby-rails-assets-jquery-placeholder.

commit 259a670dc47d605a13d5775a39cbb9816b4b0330
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Tue Dec 30 22:40:17 2014 +0530

    set rails engine root, use system jquery
---
 debian/patches/engine-root.patch       | 17 +++++++++++++++++
 debian/patches/series                  |  2 ++
 debian/patches/use-system-jquery.patch | 31 +++++++++++++++++++++++++++++++
 3 files changed, 50 insertions(+)

diff --git a/debian/patches/engine-root.patch b/debian/patches/engine-root.patch
new file mode 100644
index 0000000..5c579b4
--- /dev/null
+++ b/debian/patches/engine-root.patch
@@ -0,0 +1,17 @@
+Description: set rails engine root
+ Debian specific
+Author: Pirate Praveen <praveen at debian.org>
+Last-Updated: 30-12-2014
+
+Index: ruby-rails-assets-jquery-placeholder-2.0.8/lib/rails-assets-jquery-placeholder.rb
+===================================================================
+--- ruby-rails-assets-jquery-placeholder-2.0.8.orig/lib/rails-assets-jquery-placeholder.rb
++++ ruby-rails-assets-jquery-placeholder-2.0.8/lib/rails-assets-jquery-placeholder.rb
+@@ -25,6 +25,7 @@ module RailsAssetsJqueryPlaceholder
+ 
+   if defined?(Rails)
+     class Engine < ::Rails::Engine
++      config.root = '/usr/share/ruby-rails-assets-jquery-placeholder'
+       # Rails -> use app/assets directory.
+     end
+   end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3d8bf7b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+use-system-jquery.patch
+engine-root.patch
diff --git a/debian/patches/use-system-jquery.patch b/debian/patches/use-system-jquery.patch
new file mode 100644
index 0000000..dfb22ab
--- /dev/null
+++ b/debian/patches/use-system-jquery.patch
@@ -0,0 +1,31 @@
+Description: use local jquery
+ Debian specific
+Author: Pirate Praveen <praveen at debian.org>
+Last-Updated: 30-12-2014
+
+Index: ruby-rails-assets-jquery-placeholder-2.0.8/app/assets/templates/jquery-placeholder/demo.html
+===================================================================
+--- ruby-rails-assets-jquery-placeholder-2.0.8.orig/app/assets/templates/jquery-placeholder/demo.html
++++ ruby-rails-assets-jquery-placeholder-2.0.8/app/assets/templates/jquery-placeholder/demo.html
+@@ -29,7 +29,7 @@
+ 			<p><input type="submit" value="type=submit"></p>
+ 		</form>
+ 		<p>— <a href="http://mathiasbynens.be/" title="Mathias Bynens, front-end developer">Mathias</a></p>
+-		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
++		<script src="file:///usr/share/javascript/jquery/jquery.min.js"></script>
+ 		<script src="jquery.placeholder.js"></script>
+ 		<script>
+ 			// To test the @id toggling on password inputs in browsers that don’t support changing an input’s @type dynamically (e.g. Firefox 3.6 or IE), uncomment this:
+Index: ruby-rails-assets-jquery-placeholder-2.0.8/app/assets/templates/jquery-placeholder/tests/index.html
+===================================================================
+--- ruby-rails-assets-jquery-placeholder-2.0.8.orig/app/assets/templates/jquery-placeholder/tests/index.html
++++ ruby-rails-assets-jquery-placeholder-2.0.8/app/assets/templates/jquery-placeholder/tests/index.html
+@@ -24,7 +24,7 @@
+ 				<p><input type="submit" value="type=submit"></p>
+ 			</form>
+ 		</div>
+-		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
++		<script src="file:///usr/share/javascript/jquery/jquery.min.js"></script>
+ 		<script src="http://code.jquery.com/qunit/qunit-1.12.0.js"></script>
+ 		<script src="../jquery.placeholder.js"></script>
+ 		<script src="tests.js"></script>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rails-assets-jquery-placeholder.git



More information about the Pkg-ruby-extras-commits mailing list