diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2012-01-21 13:27:19 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2012-01-21 13:27:19 +0000 |
commit | bfcf5c60329aecd865e08d3b13b3f7405ca586a7 (patch) | |
tree | 299c201af150f83f0ddf47448f489a21d753280e /dev-ruby/best_in_place | |
parent | Drop old. (diff) | |
download | historical-bfcf5c60329aecd865e08d3b13b3f7405ca586a7.tar.gz historical-bfcf5c60329aecd865e08d3b13b3f7405ca586a7.tar.bz2 historical-bfcf5c60329aecd865e08d3b13b3f7405ca586a7.zip |
Revision bump, replacing the patch to disable tests with one that fixes them, and another issue as well.
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby/best_in_place')
-rw-r--r-- | dev-ruby/best_in_place/ChangeLog | 11 | ||||
-rw-r--r-- | dev-ruby/best_in_place/Manifest | 12 | ||||
-rw-r--r-- | dev-ruby/best_in_place/best_in_place-1.0.4-r1.ebuild (renamed from dev-ruby/best_in_place/best_in_place-1.0.4.ebuild) | 7 | ||||
-rw-r--r-- | dev-ruby/best_in_place/files/best_in_place-1.0.4-disable-some-tests.patch | 53 | ||||
-rw-r--r-- | dev-ruby/best_in_place/files/best_in_place-1.0.4-gentoo.patch | 77 |
5 files changed, 97 insertions, 63 deletions
diff --git a/dev-ruby/best_in_place/ChangeLog b/dev-ruby/best_in_place/ChangeLog index 87286d682d43..e165d755ace8 100644 --- a/dev-ruby/best_in_place/ChangeLog +++ b/dev-ruby/best_in_place/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for dev-ruby/best_in_place # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/best_in_place/ChangeLog,v 1.1 2012/01/17 23:48:49 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/best_in_place/ChangeLog,v 1.2 2012/01/21 13:27:18 flameeyes Exp $ + +*best_in_place-1.0.4-r1 (21 Jan 2012) + + 21 Jan 2012; Diego E. Pettenò <flameeyes@gentoo.org> + +best_in_place-1.0.4-r1.ebuild, +files/best_in_place-1.0.4-gentoo.patch, + -best_in_place-1.0.4.ebuild, + -files/best_in_place-1.0.4-disable-some-tests.patch: + Revision bump, replacing the patch to disable tests with one that fixes them, + and another issue as well. *best_in_place-1.0.4 (17 Jan 2012) diff --git a/dev-ruby/best_in_place/Manifest b/dev-ruby/best_in_place/Manifest index d0c0e316818d..c35b775d478c 100644 --- a/dev-ruby/best_in_place/Manifest +++ b/dev-ruby/best_in_place/Manifest @@ -1,15 +1,15 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -AUX best_in_place-1.0.4-disable-some-tests.patch 1530 RMD160 a3009b2b93ba55bea298a6c5717def807531e741 SHA1 dc482d0a2b6a54c43a0844d4057b45a301cc3519 SHA256 7e869ed4872a2adb73ffd7a0517b050f4bcf8ce7109dd1d02ad1188bbe1c4e1a +AUX best_in_place-1.0.4-gentoo.patch 2513 RMD160 62d38fad032bebd561a7dd4fb235c19df04b6d62 SHA1 947b2176bbc8a9f5424851f18cde48f16a40e039 SHA256 945c0f3e02dc0fb72456d278a4ddf3357c805deafab086c40fcf4f769ee4170a DIST best_in_place-1.0.4.gem 56832 RMD160 ccb3c88bd989b73c731987d8dbcae6e224edfa56 SHA1 aba5a95e07513c0b75e5297d61a4fff257bae965 SHA256 9abb4c2e3713bb1a4ded74924fbb23ee48e5abcef21adb245b906453bb1b2acd -EBUILD best_in_place-1.0.4.ebuild 1459 RMD160 aec194ef422aa3b439feaad101250ba99e296d74 SHA1 3a9bd9c4715cfafa28cbcc7bd466bf09279eaa04 SHA256 0e39772da963be661f7ccfdfa520bd958b1e8bdb2abe044400fe4357160e2d37 -MISC ChangeLog 445 RMD160 d47b51af5d485cf0c78ad730a84b5adcb20bf0ad SHA1 80675181d71b30255d8bd5c3c0a1fd1adf3b26e2 SHA256 65e04572f5ae46203af85b04524a243f1cc95990c88d505e5c2a2b8f89ec9abd +EBUILD best_in_place-1.0.4-r1.ebuild 1533 RMD160 7546e8a29943fb68cfa11cdaf7c659353802ede6 SHA1 326f253ba31ac25ffea875e1ff09d9e3739171c3 SHA256 588c5af66680ce18af28f2eb62884f71fd8046c6ff01d19369739e8c8ca26e41 +MISC ChangeLog 811 RMD160 808b23092cc6dd7dffcc0c4743d0fb179cf1f1a7 SHA1 977d68f6d490663e971181cded40fb27a8dcdc7e SHA256 640ae848074747147c526b74e6e5d3c9af37121c1ff0dd28ddae31d3da826b94 MISC metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 SHA1 8ce15dcc608eeb5616aeec610dc695cbe6f93e02 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) -iEYEARECAAYFAk8WCM4ACgkQAiZjviIA2XjWTQCgsHWu1zI89QthN9f61o1a/6Uk -DisAn3sJ8lFZ0UmnABsMT1lLLZ2m61DA -=p3dQ +iEYEARECAAYFAk8avRkACgkQAiZjviIA2XhJiQCfdgRSFdzgAiHe6El2yTsmViHL +t/YAoKyjkZkw2UtiPrW5+kxLO00DhC/j +=nCUq -----END PGP SIGNATURE----- diff --git a/dev-ruby/best_in_place/best_in_place-1.0.4.ebuild b/dev-ruby/best_in_place/best_in_place-1.0.4-r1.ebuild index e3b38367b7d8..a571377d007b 100644 --- a/dev-ruby/best_in_place/best_in_place-1.0.4.ebuild +++ b/dev-ruby/best_in_place/best_in_place-1.0.4-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/best_in_place/best_in_place-1.0.4.ebuild,v 1.1 2012/01/17 23:48:49 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/best_in_place/best_in_place-1.0.4-r1.ebuild,v 1.1 2012/01/21 13:27:18 flameeyes Exp $ EAPI=4 USE_RUBY="ruby18 ree18" @@ -50,9 +50,10 @@ all_ruby_prepare() { ${RUBY_FAKEGEM_GEMSPEC} || die rm test_app/Gemfile.lock - # this disables two tests that seem to be timing-related + # improve timing-resilience on two tests that would otherwise fail # https://github.com/bernat/best_in_place/issues/87 - epatch "${FILESDIR}"/${P}-disable-some-tests.patch + # fix an issue with the :display_as option, that has been sent upstream + epatch "${FILESDIR}"/${P}-gentoo.patch } each_ruby_test() { diff --git a/dev-ruby/best_in_place/files/best_in_place-1.0.4-disable-some-tests.patch b/dev-ruby/best_in_place/files/best_in_place-1.0.4-disable-some-tests.patch deleted file mode 100644 index 8db8554f4617..000000000000 --- a/dev-ruby/best_in_place/files/best_in_place-1.0.4-disable-some-tests.patch +++ /dev/null @@ -1,53 +0,0 @@ -Index: best_in_place-1.0.4/spec/integration/js_spec.rb -=================================================================== ---- best_in_place-1.0.4.orig/spec/integration/js_spec.rb -+++ best_in_place-1.0.4/spec/integration/js_spec.rb -@@ -279,23 +279,6 @@ describe "JS behaviour", :js => true do - text.should == "Via Roma 99" - end - end -- -- it "should display the updated content after editing the field two consecutive times" do -- @user.save! -- retry_on_timeout do -- visit user_path(@user) -- -- bip_text @user, :address, "New address" -- -- id = BestInPlace::Utils.build_best_in_place_id @user, :address -- page.execute_script <<-JS -- $("##{id}").click(); -- JS -- -- text = page.find("##{id} input").value -- text.should == "New address" -- end -- end - end - - describe "display_with" do -@@ -347,24 +330,6 @@ describe "JS behaviour", :js => true do - end - end - -- it "should display the updated content after editing the field two consecutive times" do -- @user.save! -- -- retry_on_timeout do -- visit user_path(@user) -- -- bip_text @user, :money, "40" -- -- id = BestInPlace::Utils.build_best_in_place_id @user, :money -- page.execute_script <<-JS -- $("##{id}").click(); -- JS -- -- text = page.find("##{id} input").value -- text.should == "40" -- end -- end -- - it "should show the money in euros" do - @user.save! - visit double_init_user_path(@user) diff --git a/dev-ruby/best_in_place/files/best_in_place-1.0.4-gentoo.patch b/dev-ruby/best_in_place/files/best_in_place-1.0.4-gentoo.patch new file mode 100644 index 000000000000..d143d7eed1c9 --- /dev/null +++ b/dev-ruby/best_in_place/files/best_in_place-1.0.4-gentoo.patch @@ -0,0 +1,77 @@ +diff --git a/lib/best_in_place/helper.rb b/lib/best_in_place/helper.rb +index 7ab2561..7d40f58 100644 +--- a/lib/best_in_place/helper.rb ++++ b/lib/best_in_place/helper.rb +@@ -43,7 +43,7 @@ module BestInPlace + out << " data-type='#{opts[:type]}'" + out << " data-inner-class='#{opts[:inner_class]}'" if opts[:inner_class] + out << " data-html-attrs='#{opts[:html_attrs].to_json}'" unless opts[:html_attrs].blank? +- out << " data-original-content='#{object.send(field)}'" if opts[:display_as] || opts[:display_with] ++ out << " data-original-content='#{attribute_escape(object.send(field))}'" if opts[:display_as] || opts[:display_with] + if !opts[:sanitize].nil? && !opts[:sanitize] + out << " data-sanitize='false'>" + out << sanitize(value, :tags => %w(b i u s a strong em p h1 h2 h3 h4 h5 ul li ol hr pre span img br), :attributes => %w(id class href)) +@@ -80,6 +80,10 @@ module BestInPlace + object.send(field).to_s.presence || "" + end + end ++ ++ def attribute_escape(data) ++ data.to_s.gsub("&", "&").gsub("'", "'") unless data.nil? ++ end + end + end + +diff --git a/spec/integration/js_spec.rb b/spec/integration/js_spec.rb +index 38e09c8..e773108 100644 +--- a/spec/integration/js_spec.rb ++++ b/spec/integration/js_spec.rb +@@ -466,15 +466,32 @@ describe "JS behaviour", :js => true do + + bip_text @user, :address, "New address" + ++ sleep 1 ++ + id = BestInPlace::Utils.build_best_in_place_id @user, :address + page.execute_script <<-JS + $("##{id}").click(); + JS + ++ sleep 1 ++ + text = page.find("##{id} input").value + text.should == "New address" + end + end ++ ++ it "should quote properly the data-original-content attribute" do ++ @user.address = "A's & B's" ++ @user.save! ++ retry_on_timeout do ++ visit user_path(@user) ++ ++ id = BestInPlace::Utils.build_best_in_place_id @user, :address ++ ++ text = page.find("##{id}")["data-original-content"] ++ text.should == "A's & B's" ++ end ++ end + end + + describe "display_with" do +@@ -534,11 +551,15 @@ describe "JS behaviour", :js => true do + + bip_text @user, :money, "40" + ++ sleep 1 ++ + id = BestInPlace::Utils.build_best_in_place_id @user, :money + page.execute_script <<-JS + $("##{id}").click(); + JS + ++ sleep 1 ++ + text = page.find("##{id} input").value + text.should == "40" + end |