1 |
commit: bb66fe5f866c19b8b6d3d00afc914c62a01dfbcd |
2 |
Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Sep 26 16:20:51 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 31 12:00:11 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb66fe5f |
7 |
|
8 |
dev-ruby/multi_json: remove unused patches. |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/2417 |
11 |
|
12 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
13 |
|
14 |
.../multi_json/files/multi_json-0.0.4-gentoo.patch | 24 ------- |
15 |
.../multi_json/files/multi_json-1.0.3-gentoo.patch | 75 ---------------------- |
16 |
2 files changed, 99 deletions(-) |
17 |
|
18 |
diff --git a/dev-ruby/multi_json/files/multi_json-0.0.4-gentoo.patch b/dev-ruby/multi_json/files/multi_json-0.0.4-gentoo.patch |
19 |
deleted file mode 100644 |
20 |
index 8736809..00000000 |
21 |
--- a/dev-ruby/multi_json/files/multi_json-0.0.4-gentoo.patch |
22 |
+++ /dev/null |
23 |
@@ -1,24 +0,0 @@ |
24 |
-diff --git a/spec/multi_json_spec.rb b/spec/multi_json_spec.rb |
25 |
-index 2df3350..9d2a376 100644 |
26 |
---- a/spec/multi_json_spec.rb |
27 |
-+++ b/spec/multi_json_spec.rb |
28 |
-@@ -13,13 +13,17 @@ end |
29 |
- describe "MultiJson" do |
30 |
- context 'engines' do |
31 |
- it 'should default to the best available gem' do |
32 |
-+ begin |
33 |
- require 'yajl' |
34 |
- MultiJson.engine.name.should == 'MultiJson::Engines::Yajl' |
35 |
-+ rescue LoadError |
36 |
-+ pending "YAJL (or a dependency) not available." |
37 |
-+ end |
38 |
- end |
39 |
- |
40 |
- it 'should be settable via a symbol' do |
41 |
-- MultiJson.engine = :yajl |
42 |
-- MultiJson.engine.name.should == 'MultiJson::Engines::Yajl' |
43 |
-+ MultiJson.engine = :json_pure |
44 |
-+ MultiJson.engine.name.should == 'MultiJson::Engines::JsonPure' |
45 |
- end |
46 |
- |
47 |
- it 'should be settable via a class' do |
48 |
|
49 |
diff --git a/dev-ruby/multi_json/files/multi_json-1.0.3-gentoo.patch b/dev-ruby/multi_json/files/multi_json-1.0.3-gentoo.patch |
50 |
deleted file mode 100644 |
51 |
index 2e031e0..00000000 |
52 |
--- a/dev-ruby/multi_json/files/multi_json-1.0.3-gentoo.patch |
53 |
+++ /dev/null |
54 |
@@ -1,75 +0,0 @@ |
55 |
-A small part of |
56 |
- |
57 |
-commit d83002691a34a32b6d6d181817af7f8e68524638 |
58 |
-Author: Erik Michaels-Ober <sferik@×××××.com> |
59 |
-Date: Sat May 14 09:26:31 2011 -0700 |
60 |
- |
61 |
- Cleanup |
62 |
- |
63 |
-diff --git a/spec/multi_json_spec.rb b/spec/multi_json_spec.rb |
64 |
-index 9be78f4..55238c9 100644 |
65 |
---- b/spec/multi_json_spec.rb |
66 |
-+++ a/spec/multi_json_spec.rb |
67 |
-@@ -1,9 +1,9 @@ |
68 |
--require 'helper' |
69 |
-+require 'spec_helper' |
70 |
- require 'stringio' |
71 |
-- |
72 |
-+ |
73 |
- class MockDecoder |
74 |
- def self.decode(string, options = {}) |
75 |
-- {'abc' => 'def'} |
76 |
-+ { 'abc' => 'def' } |
77 |
- end |
78 |
- |
79 |
- def self.encode(string) |
80 |
-@@ -26,10 +26,16 @@ |
81 |
- end |
82 |
- end |
83 |
- end |
84 |
-- |
85 |
-+ |
86 |
- it 'defaults to the best available gem' do |
87 |
-- require 'yajl' |
88 |
-- MultiJson.engine.name.should == 'MultiJson::Engines::Yajl' |
89 |
-+ # the yajl-ruby gem does not work on jruby, so the best engine is the JsonGem engine |
90 |
-+ if jruby? |
91 |
-+ require 'json' |
92 |
-+ MultiJson.engine.name.should == 'MultiJson::Engines::JsonGem' |
93 |
-+ else |
94 |
-+ require 'yajl' |
95 |
-+ MultiJson.engine.name.should == 'MultiJson::Engines::Yajl' |
96 |
-+ end |
97 |
- end |
98 |
- |
99 |
- it 'is settable via a symbol' do |
100 |
-@@ -89,7 +95,7 @@ |
101 |
- encoded_json = MultiJson.encode(:a => 1, :b => {:c => 2}) |
102 |
- MultiJson.decode(encoded_json).should == { "a" => 1, "b" => { "c" => 2 } } |
103 |
- end |
104 |
-- |
105 |
-+ |
106 |
- it "properly decodes valid JSON in StringIOs" do |
107 |
- json = StringIO.new('{"abc":"def"}') |
108 |
- MultiJson.decode(json).should == { 'abc' => 'def' } |
109 |
-diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb |
110 |
-deleted file mode 100644 |
111 |
-index a9b66e6..0000000 |
112 |
---- /dev/null |
113 |
-+++ a/spec/spec_helper.rb |
114 |
-@@ -0,0 +1,15 @@ |
115 |
-+begin |
116 |
-+ require 'bundler' |
117 |
-+rescue LoadError |
118 |
-+ puts "although not required, it's recommended that you use bundler during development" |
119 |
-+end |
120 |
-+ |
121 |
-+require 'rspec' |
122 |
-+require 'rspec/autorun' |
123 |
-+ |
124 |
-+$VERBOSE = true |
125 |
-+require 'multi_json' |
126 |
-+ |
127 |
-+def jruby? |
128 |
-+ defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby" |
129 |
-+end |