[rubygem-execjs] Update to ExecJS 2.2.0.
Vít Ondruch
vondruch at fedoraproject.org
Mon Jun 23 13:27:34 UTC 2014
commit 5c1285387f40fe4dbfc4c00c1335988e3d245a13
Author: Vít Ondruch <vondruch at redhat.com>
Date: Mon Jun 23 15:27:27 2014 +0200
Update to ExecJS 2.2.0.
.gitignore | 2 ++
rubygem-execjs.spec | 21 ++++++++-------------
sources | 4 ++--
3 files changed, 12 insertions(+), 15 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ec587ec..ecde128 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
/execjs-1.4.0-tests.tgz
/execjs-1.4.0.gem
+/execjs-2.2.0-tests.tgz
+/execjs-2.2.0.gem
diff --git a/rubygem-execjs.spec b/rubygem-execjs.spec
index 6ae4087..51bb829 100644
--- a/rubygem-execjs.spec
+++ b/rubygem-execjs.spec
@@ -3,29 +3,21 @@
Summary: Run JavaScript code from Ruby
Name: rubygem-%{gem_name}
-Version: 1.4.0
-Release: 7%{?dist}
+Version: 2.2.0
+Release: 1%{?dist}
Group: Development/Languages
# Public Domain: %%{gem_libdir}/execjs/support/json2.js
License: MIT and Public Domain
URL: https://github.com/sstephenson/execjs
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
# git clone https://github.com/sstephenson/execjs.git && cd execjs
-# git checkout v1.4.0 && tar czf execjs-1.4.0-tests.tgz test/
+# git checkout v2.2.0 && tar czf execjs-2.2.0-tests.tgz test/
Source1: %{gem_name}-%{version}-tests.tgz
-Requires: ruby(release)
-Requires: ruby(rubygems)
-Requires: ruby
-Requires: rubygem(multi_json) => 1.0
-Requires: rubygem(multi_json) < 2
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: rubygem(minitest)
-BuildRequires: rubygem(multi_json) => 1.0
-BuildRequires: rubygem(multi_json) < 2
BuildRequires: rubygem(therubyracer)
BuildArch: noarch
-Provides: rubygem(%{gem_name}) = %{version}
%description
ExecJS lets you run JavaScript code from Ruby. It automatically picks the
@@ -56,9 +48,9 @@ cp -a .%{gem_dir}/* \
pushd .%{gem_instdir}
tar xzf %{SOURCE1}
# disable test that needs internet connection
-sed -i '163,168d' test/test_execjs.rb
+sed -i '/def test_coffeescript/,/^ end$/ s/^/#/' test/test_execjs.rb
export LANG=en_US.utf8
-testrb -Ilib test
+ruby -Ilib -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
popd
%files
@@ -73,6 +65,9 @@ popd
%doc %{gem_instdir}/README.md
%changelog
+* Mon Jun 23 2014 Vít Ondruch <vondruch at redhat.com> - 2.2.0-1
+- Update to ExecJS 2.2.0.
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/sources b/sources
index d176a66..7d9b91b 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-09268122b5ee0f686fb9493ca386744e execjs-1.4.0-tests.tgz
-65cba14d74742b05a8538df2d272ec6f execjs-1.4.0.gem
+343ad5e720db752d463fabc851ea1807 execjs-2.2.0-tests.tgz
+2f05807dab13dc0721969fe8f445020e execjs-2.2.0.gem
More information about the scm-commits
mailing list