extlib 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of extlib might be problematic. Click here for more details.

data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'pathname'
3
3
  require 'rubygems'
4
+ require 'rubygems/installer'
4
5
  require 'rake'
5
6
  require "rake/clean"
6
7
  require "rake/gempackagetask"
@@ -136,6 +137,8 @@ namespace :ci do
136
137
  task :spec => :prepare do
137
138
  Rake::Task[:spec].invoke
138
139
  mv ROOT + "coverage", ROOT + "ci/coverage"
140
+ Rake::Task[:gem]
141
+ Gem::Installer.new("pkg/#{GEM_NAME}-#{GEM_VERSION}.gem").install
139
142
  end
140
143
 
141
144
  task :doc do
@@ -161,4 +161,15 @@ class Object
161
161
  def encoded_hash
162
162
  (self.hash * 2).to_s(16)
163
163
  end
164
+
165
+ # Add instance_variable_defined? for backward compatibility
166
+ # @param variable<Symbol, String>
167
+ #
168
+ # @return <TrueClass, FalseClass>
169
+ # True if the object has the given instance variable defined
170
+ unless respond_to?(:instance_variable_defined?)
171
+ def instance_variable_defined?(variable)
172
+ instance_variables.include?(variable.to_s)
173
+ end
174
+ end
164
175
  end
@@ -1,3 +1,3 @@
1
1
  module Extlib
2
- VERSION = "0.9.7"
2
+ VERSION = "0.9.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Smoot
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-06 00:00:00 +03:00
12
+ date: 2008-10-12 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -26,37 +26,37 @@ files:
26
26
  - LICENSE
27
27
  - README.txt
28
28
  - Rakefile
29
+ - lib/extlib.rb
29
30
  - lib/extlib
30
- - lib/extlib/assertions.rb
31
- - lib/extlib/blank.rb
32
- - lib/extlib/boolean.rb
33
- - lib/extlib/class.rb
34
- - lib/extlib/datetime.rb
35
31
  - lib/extlib/dictionary.rb
36
- - lib/extlib/hash.rb
37
- - lib/extlib/hook.rb
38
- - lib/extlib/inflection.rb
39
32
  - lib/extlib/lazy_array.rb
40
- - lib/extlib/logger.rb
41
- - lib/extlib/mash.rb
42
- - lib/extlib/module.rb
43
33
  - lib/extlib/nil.rb
44
- - lib/extlib/numeric.rb
45
- - lib/extlib/object.rb
46
- - lib/extlib/object_space.rb
47
- - lib/extlib/pathname.rb
48
- - lib/extlib/pooling.rb
34
+ - lib/extlib/class.rb
49
35
  - lib/extlib/rubygems.rb
50
- - lib/extlib/simple_set.rb
36
+ - lib/extlib/module.rb
51
37
  - lib/extlib/string.rb
52
- - lib/extlib/struct.rb
38
+ - lib/extlib/hook.rb
39
+ - lib/extlib/blank.rb
40
+ - lib/extlib/logger.rb
41
+ - lib/extlib/datetime.rb
42
+ - lib/extlib/assertions.rb
43
+ - lib/extlib/inflection.rb
44
+ - lib/extlib/pathname.rb
45
+ - lib/extlib/object_space.rb
46
+ - lib/extlib/mash.rb
47
+ - lib/extlib/virtual_file.rb
48
+ - lib/extlib/simple_set.rb
49
+ - lib/extlib/object.rb
50
+ - lib/extlib/hash.rb
51
+ - lib/extlib/version.rb
52
+ - lib/extlib/boolean.rb
53
53
  - lib/extlib/symbol.rb
54
+ - lib/extlib/numeric.rb
55
+ - lib/extlib/struct.rb
56
+ - lib/extlib/pooling.rb
54
57
  - lib/extlib/tasks
55
58
  - lib/extlib/tasks/release.rb
56
59
  - lib/extlib/time.rb
57
- - lib/extlib/version.rb
58
- - lib/extlib/virtual_file.rb
59
- - lib/extlib.rb
60
60
  has_rdoc: false
61
61
  homepage: http://extlib.rubyforge.org
62
62
  post_install_message: