dirty_hashy 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +9 -0
- data/CHANGELOG.rdoc +4 -0
- data/Gemfile +1 -0
- data/README.textile +3 -3
- data/VERSION +1 -1
- data/dirty_hashy.gemspec +4 -4
- data/lib/dirty_hashy/version.rb +1 -1
- data/lib/dirty_indifferent_hashy.rb +5 -1
- data/test/test_helper.rb +3 -3
- metadata +8 -8
data/.travis.yml
ADDED
data/CHANGELOG.rdoc
CHANGED
data/Gemfile
CHANGED
data/README.textile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
h1. DirtyHashy
|
1
|
+
h1. DirtyHashy "!https://secure.travis-ci.org/archan937/dirty_hashy.png!":http://travis-ci.org/archan937/dirty_hashy
|
2
2
|
|
3
|
-
Dirty tracking within hashes with indifferent access or objects as it is expected to be!
|
3
|
+
Dirty tracking within hashes (with or without indifferent access) or objects as it is expected to be!
|
4
4
|
|
5
5
|
h2. Introduction
|
6
6
|
|
@@ -225,7 +225,7 @@ And last but not least: don't care about specifying the attributes available? We
|
|
225
225
|
|
226
226
|
h2. Last remarks
|
227
227
|
|
228
|
-
Please check out "test/unit/test_dirty_hashy.rb":https://github.com/archan937/dirty_hashy/blob/master/test/unit/test_dirty_hashy.rb, "test/unit/test_dirty_indifferent_hashy.rb":https://github.com/archan937/dirty_hashy/blob/master/test/unit/test_dirty_indifferent_hashy.rb and "test/unit/
|
228
|
+
Please check out "test/unit/test_dirty_hashy.rb":https://github.com/archan937/dirty_hashy/blob/master/test/unit/test_dirty_hashy.rb, "test/unit/test_dirty_indifferent_hashy.rb":https://github.com/archan937/dirty_hashy/blob/master/test/unit/test_dirty_indifferent_hashy.rb and "test/unit/dirty/test_attributes.rb":https://github.com/archan937/dirty_hashy/blob/master/test/unit/dirty/test_attributes.rb the tests available.
|
229
229
|
You can run the unit tests with @rake@ within the terminal.
|
230
230
|
|
231
231
|
Also, the DirtyHashy repo is provided with @script/console@ which you can use for testing purposes.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/dirty_hashy.gemspec
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.authors = ["Paul Engel"]
|
5
5
|
gem.email = ["paul.engel@holder.nl"]
|
6
|
-
gem.description = %q{Dirty tracking within hashes with indifferent access or objects as it is expected to be!}
|
7
|
-
gem.summary = %q{Dirty tracking within hashes with indifferent access or objects as it is expected to be!}
|
6
|
+
gem.description = %q{Dirty tracking within hashes (with or without indifferent access) or objects as it is expected to be!}
|
7
|
+
gem.summary = %q{Dirty tracking within hashes (with or without indifferent access) or objects as it is expected to be!}
|
8
8
|
gem.homepage = "https://github.com/archan937/dirty_hashy"
|
9
9
|
|
10
10
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
13
13
|
gem.name = "dirty_hashy"
|
14
14
|
gem.require_paths = ["lib"]
|
15
|
-
gem.version = "0.2.
|
15
|
+
gem.version = "0.2.1"
|
16
16
|
|
17
|
-
gem.add_dependency "activesupport"
|
17
|
+
gem.add_dependency "activesupport"
|
18
18
|
end
|
data/lib/dirty_hashy/version.rb
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
|
1
|
+
begin
|
2
|
+
require "active_support/hash_with_indifferent_access"
|
3
|
+
rescue LoadError
|
4
|
+
require "active_support/core_ext/hash/indifferent_access"
|
5
|
+
end
|
2
6
|
|
3
7
|
class DirtyIndifferentHashy < HashWithIndifferentAccess
|
4
8
|
include Dirty::Hash
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: dirty_hashy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Paul Engel
|
@@ -10,8 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-
|
14
|
-
default_executable:
|
13
|
+
date: 2012-12-11 00:00:00 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: activesupport
|
@@ -21,10 +20,10 @@ dependencies:
|
|
21
20
|
requirements:
|
22
21
|
- - ">="
|
23
22
|
- !ruby/object:Gem::Version
|
24
|
-
version:
|
23
|
+
version: "0"
|
25
24
|
type: :runtime
|
26
25
|
version_requirements: *id001
|
27
|
-
description: Dirty tracking within hashes with indifferent access or objects as it is expected to be!
|
26
|
+
description: Dirty tracking within hashes (with or without indifferent access) or objects as it is expected to be!
|
28
27
|
email:
|
29
28
|
- paul.engel@holder.nl
|
30
29
|
executables: []
|
@@ -35,6 +34,7 @@ extra_rdoc_files: []
|
|
35
34
|
|
36
35
|
files:
|
37
36
|
- .gitignore
|
37
|
+
- .travis.yml
|
38
38
|
- CHANGELOG.rdoc
|
39
39
|
- Gemfile
|
40
40
|
- MIT-LICENSE
|
@@ -54,7 +54,6 @@ files:
|
|
54
54
|
- test/unit/dirty/test_attributes.rb
|
55
55
|
- test/unit/test_dirty_hashy.rb
|
56
56
|
- test/unit/test_dirty_indifferent_hashy.rb
|
57
|
-
has_rdoc: true
|
58
57
|
homepage: https://github.com/archan937/dirty_hashy
|
59
58
|
licenses: []
|
60
59
|
|
@@ -78,12 +77,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
77
|
requirements: []
|
79
78
|
|
80
79
|
rubyforge_project:
|
81
|
-
rubygems_version: 1.
|
80
|
+
rubygems_version: 1.8.17
|
82
81
|
signing_key:
|
83
82
|
specification_version: 3
|
84
|
-
summary: Dirty tracking within hashes with indifferent access or objects as it is expected to be!
|
83
|
+
summary: Dirty tracking within hashes (with or without indifferent access) or objects as it is expected to be!
|
85
84
|
test_files:
|
86
85
|
- test/test_helper.rb
|
87
86
|
- test/unit/dirty/test_attributes.rb
|
88
87
|
- test/unit/test_dirty_hashy.rb
|
89
88
|
- test/unit/test_dirty_indifferent_hashy.rb
|
89
|
+
has_rdoc:
|