utilrb 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Rakefile +4 -1
- data/ext/value_set.cc +1 -5
- data/lib/utilrb/common.rb +1 -1
- data/test/test_pkgconfig.rb +1 -1
- metadata +20 -17
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -28,7 +28,10 @@ begin
|
|
28
28
|
end
|
29
29
|
config.spec.extensions << 'ext/extconf.rb'
|
30
30
|
rescue LoadError
|
31
|
-
puts "cannot load the Hoe gem
|
31
|
+
STDERR.puts "cannot load the Hoe gem. Distribution is disabled"
|
32
|
+
rescue Exception => e
|
33
|
+
STDERR.puts "cannot load the Hoe gem, or Hoe fails. Distribution is disabled"
|
34
|
+
STDERR.puts "error message is: #{e.message}"
|
32
35
|
end
|
33
36
|
|
34
37
|
desc "builds Utilrb's C extension"
|
data/ext/value_set.cc
CHANGED
@@ -2,9 +2,6 @@
|
|
2
2
|
#include <set>
|
3
3
|
#include <algorithm>
|
4
4
|
|
5
|
-
#include <boost/tuple/tuple.hpp>
|
6
|
-
|
7
|
-
using namespace boost;
|
8
5
|
using namespace std;
|
9
6
|
|
10
7
|
static VALUE cValueSet;
|
@@ -250,8 +247,7 @@ static VALUE value_set_difference(VALUE vself, VALUE vother)
|
|
250
247
|
static VALUE value_set_insert(VALUE vself, VALUE v)
|
251
248
|
{
|
252
249
|
ValueSet& self = get_wrapped_set(vself);
|
253
|
-
bool exists;
|
254
|
-
tie(tuples::ignore, exists) = self.insert(v);
|
250
|
+
bool exists = self.insert(v).second;
|
255
251
|
return exists ? Qtrue : Qfalse;
|
256
252
|
}
|
257
253
|
/* call-seq:
|
data/lib/utilrb/common.rb
CHANGED
data/test/test_pkgconfig.rb
CHANGED
@@ -8,7 +8,7 @@ class TC_PkgConfig < Test::Unit::TestCase
|
|
8
8
|
ENV['PKG_CONFIG_PATH'] = File.join(File.expand_path(File.dirname(__FILE__)), 'data')
|
9
9
|
end
|
10
10
|
def teardown
|
11
|
-
ENV
|
11
|
+
ENV['PKG_CONFIG_PATH'] = @old_pkg_config_path
|
12
12
|
end
|
13
13
|
|
14
14
|
PkgConfig = Utilrb::PkgConfig
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: utilrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvain Joyeux
|
@@ -9,11 +9,12 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-07-17 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: facets
|
17
|
+
type: :runtime
|
17
18
|
version_requirement:
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
19
20
|
requirements:
|
@@ -23,6 +24,7 @@ dependencies:
|
|
23
24
|
version:
|
24
25
|
- !ruby/object:Gem::Dependency
|
25
26
|
name: rake
|
27
|
+
type: :runtime
|
26
28
|
version_requirement:
|
27
29
|
version_requirements: !ruby/object:Gem::Requirement
|
28
30
|
requirements:
|
@@ -32,12 +34,13 @@ dependencies:
|
|
32
34
|
version:
|
33
35
|
- !ruby/object:Gem::Dependency
|
34
36
|
name: hoe
|
37
|
+
type: :runtime
|
35
38
|
version_requirement:
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
41
|
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
43
|
+
version: 1.6.0
|
41
44
|
version:
|
42
45
|
description: == What is Utilrb ? Utilrb is yet another Ruby toolkit, in the spirit of facets. It includes all the standard class extensions I use in my own projects like Genom.rb. == Installation The only dependency Utilrb has is flexmock if you want to run tests. It is available as a gem, so you can run gem install flexmock == Utilrb's C extension Utilrb includes a C extension in ext/. It is optional, but some of the functionalities will be disabled if it is not present. Trying to require a file in which there is a C-only feature will yield a warning on STDOUT.
|
43
46
|
email:
|
@@ -165,26 +168,26 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
168
|
requirements: []
|
166
169
|
|
167
170
|
rubyforge_project: utilrb
|
168
|
-
rubygems_version: 1.
|
171
|
+
rubygems_version: 1.2.0
|
169
172
|
signing_key:
|
170
173
|
specification_version: 2
|
171
174
|
summary: Yet another Ruby toolkit
|
172
175
|
test_files:
|
173
|
-
- test/test_dir.rb
|
174
|
-
- test/test_proc.rb
|
175
|
-
- test/test_exception.rb
|
176
|
-
- test/test_set.rb
|
177
176
|
- test/test_time.rb
|
178
|
-
- test/
|
179
|
-
- test/
|
180
|
-
- test/test_unbound_method.rb
|
181
|
-
- test/test_config.rb
|
182
|
-
- test/test_kernel.rb
|
177
|
+
- test/test_set.rb
|
178
|
+
- test/test_weakref.rb
|
183
179
|
- test/test_object.rb
|
184
|
-
- test/
|
185
|
-
- test/
|
180
|
+
- test/test_kernel.rb
|
181
|
+
- test/test_pkgconfig.rb
|
186
182
|
- test/test_enumerable.rb
|
187
|
-
- test/
|
183
|
+
- test/test_proc.rb
|
184
|
+
- test/test_module.rb
|
188
185
|
- test/test_hash.rb
|
186
|
+
- test/test_exception.rb
|
187
|
+
- test/test_config.rb
|
188
|
+
- test/test_gc.rb
|
189
|
+
- test/test_misc.rb
|
190
|
+
- test/test_unbound_method.rb
|
189
191
|
- test/test_objectstats.rb
|
190
|
-
- test/
|
192
|
+
- test/test_dir.rb
|
193
|
+
- test/test_array.rb
|