shuber-hattr_accessor 1.0.2 → 1.0.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/CHANGELOG +4 -0
- data/README.markdown +1 -1
- data/Rakefile +2 -2
- data/lib/hattr_accessor.rb +4 -2
- metadata +4 -5
- data/init.rb +0 -1
data/CHANGELOG
CHANGED
data/README.markdown
CHANGED
data/Rakefile
CHANGED
|
@@ -5,14 +5,14 @@ require 'rake/rdoctask'
|
|
|
5
5
|
desc 'Default: run the hattr_accessor tests'
|
|
6
6
|
task :default => :test
|
|
7
7
|
|
|
8
|
-
desc 'Test the hattr_accessor gem
|
|
8
|
+
desc 'Test the hattr_accessor gem.'
|
|
9
9
|
Rake::TestTask.new(:test) do |t|
|
|
10
10
|
t.libs << 'lib'
|
|
11
11
|
t.pattern = 'test/*_test.rb'
|
|
12
12
|
t.verbose = true
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
desc 'Generate documentation for the hattr_accessor gem
|
|
15
|
+
desc 'Generate documentation for the hattr_accessor gem.'
|
|
16
16
|
Rake::RDocTask.new(:rdoc) do |rdoc|
|
|
17
17
|
rdoc.rdoc_dir = 'rdoc'
|
|
18
18
|
rdoc.title = 'hattr_accessor'
|
data/lib/hattr_accessor.rb
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
unless Object.method_defined? :alias_method_chain
|
|
2
|
+
require File.dirname(__FILE__) + '/alias_method_chain'
|
|
3
|
+
Object.send :include, Huberry::AliasMethodChain
|
|
4
|
+
end
|
|
3
5
|
|
|
4
6
|
module Huberry
|
|
5
7
|
module HattrAccessor
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shuber-hattr_accessor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean Huber
|
|
@@ -9,11 +9,11 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-01-
|
|
12
|
+
date: 2009-01-10 00:00:00 -08:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
16
|
-
description:
|
|
16
|
+
description: Allows you to define attr_accessors that reference members of a hash
|
|
17
17
|
email: shuber@huberry.com
|
|
18
18
|
executables: []
|
|
19
19
|
|
|
@@ -23,7 +23,6 @@ extra_rdoc_files: []
|
|
|
23
23
|
|
|
24
24
|
files:
|
|
25
25
|
- CHANGELOG
|
|
26
|
-
- init.rb
|
|
27
26
|
- lib/alias_method_chain.rb
|
|
28
27
|
- lib/hattr_accessor.rb
|
|
29
28
|
- MIT-LICENSE
|
|
@@ -54,6 +53,6 @@ rubyforge_project:
|
|
|
54
53
|
rubygems_version: 1.2.0
|
|
55
54
|
signing_key:
|
|
56
55
|
specification_version: 2
|
|
57
|
-
summary:
|
|
56
|
+
summary: Allows you to define attr_accessors that reference members of a hash
|
|
58
57
|
test_files:
|
|
59
58
|
- test/hattr_accessor_test.rb
|
data/init.rb
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require 'hattr_accessor'
|