[DRE-commits] [ruby-execjs] 05/06: use local coffeescript source, not online

Caitlin Matos cm-guest at moszumanska.debian.org
Wed Jul 30 01:59:01 UTC 2014


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

cm-guest pushed a commit to branch master
in repository ruby-execjs.

commit cc791b414737d6b6bb0a5fa01e69f4296b4ac33f
Author: Caitlin Matos <caitlin.matos at zoho.com>
Date:   Tue Jul 29 21:48:54 2014 -0400

    use local coffeescript source, not online
---
 debian/patches/01_use_local_coffee_script_source | 17 +++++++++++++++++
 debian/patches/series                            |  1 +
 2 files changed, 18 insertions(+)

diff --git a/debian/patches/01_use_local_coffee_script_source b/debian/patches/01_use_local_coffee_script_source
new file mode 100644
index 0000000..6a7eb55
--- /dev/null
+++ b/debian/patches/01_use_local_coffee_script_source
@@ -0,0 +1,17 @@
+Description: use local version of coffeescript
+ The upstream test suite attempts to open an external link to grab a copy of coffee-script.js. Instead, use the local copy provided by the package ruby-coffee-script-source.
+Author: Caitlin Matos <caitlin.matos at zoho.com> 
+Last-Update: 2014-07-29 
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/test/test_execjs.rb
++++ b/test/test_execjs.rb
+@@ -166,7 +166,7 @@ class TestExecJS < Test
+ 
+   def test_coffeescript
+     require "open-uri"
+-    assert source = open("http://coffeescript.org/extras/coffee-script.js").read
++    assert source = open("/usr/share/javascript/coffeescript/coffee-script.js").read
+     context = ExecJS.compile(source)
+     assert_equal 64, context.call("CoffeeScript.eval", "((x) -> x * x)(8)")
+   end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2421a51
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01_use_local_coffee_script_source

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-execjs.git



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