sane 0.10.2 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/sane.rb +11 -4
- data/sane.gemspec +2 -2
- data/spec/test_sane.spec +4 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.10.
|
1
|
+
0.10.3
|
data/lib/sane.rb
CHANGED
@@ -1,10 +1,17 @@
|
|
1
|
-
# some
|
2
|
-
|
1
|
+
# require some "necessary" gems
|
2
|
+
|
3
|
+
require 'rubygems' if RUBY_VERSION < '1.9' # for the other requires
|
3
4
|
require 'require_all'
|
4
|
-
require 'hash_set_operators' # not sure why
|
5
|
-
|
5
|
+
require 'hash_set_operators' # not sure why this one isn't in core
|
6
|
+
|
7
|
+
require_rel 'sane' # and require all files in sub directory
|
8
|
+
|
6
9
|
|
7
10
|
class Sane
|
11
|
+
# helper for installing it locally on 1.8
|
12
|
+
# if you want to be able to use it without rubygems
|
13
|
+
# except, then you'll still need rubygems anyway...
|
14
|
+
# I hate 1.8
|
8
15
|
def self.install_local!
|
9
16
|
if RUBY_VERSION >= '1.9'
|
10
17
|
raise 'you dont need to install local for 1.9!'
|
data/sane.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{sane}
|
8
|
-
s.version = "0.10.
|
8
|
+
s.version = "0.10.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Roger Pack"]
|
12
|
-
s.date = %q{2009-12-
|
12
|
+
s.date = %q{2009-12-02}
|
13
13
|
s.description = %q{Helpers for ruby core to make it easier to work with--things that are missing from core but should arguably be there}
|
14
14
|
s.email = ["rogerdpack@gmail.com"]
|
15
15
|
s.extra_rdoc_files = [
|
data/spec/test_sane.spec
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
require File.dirname(File.expand_path __FILE__) + '/../lib/sane'
|
2
|
-
require 'rubygems'
|
3
|
-
class TestSane; end
|
4
2
|
|
5
|
-
|
3
|
+
require 'rubygems' if RUBY_VERSION < '1.9'
|
4
|
+
require 'spec/autorun'
|
5
|
+
|
6
|
+
describe Sane do
|
6
7
|
|
7
8
|
before do
|
8
9
|
#Object.send(:remove_const, 'Klass') rescue nil
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roger Pack
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-02 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|