dirty_hashy 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/VERSION +1 -1
- data/dirty_hashy.gemspec +1 -1
- data/lib/dirty_hashy/version.rb +1 -1
- data/lib/method_map.rb +2 -2
- metadata +32 -39
data/CHANGELOG.rdoc
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
= DirtyHashy CHANGELOG
|
2
2
|
|
3
|
+
== Version 0.1.3 (December 24, 2011)
|
4
|
+
|
5
|
+
* Fixed incorrect regular expressions within dirty_map!
|
6
|
+
|
3
7
|
== Version 0.1.2 (December 24, 2011)
|
4
8
|
|
5
9
|
* Moved restricted keys logic from MethodMap to DirtyHash and thus being able to restrict keys of a DirtyHashy without dirty mapping ^^
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/dirty_hashy.gemspec
CHANGED
@@ -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.1.
|
15
|
+
gem.version = "0.1.3"
|
16
16
|
|
17
17
|
gem.add_dependency "activesupport", ">= 3.0.0"
|
18
18
|
end
|
data/lib/dirty_hashy/version.rb
CHANGED
data/lib/method_map.rb
CHANGED
@@ -9,8 +9,8 @@ module MethodMap
|
|
9
9
|
map_method(/^([\w_]+)_changed\?$/, :changed?, true)
|
10
10
|
map_method(/^([\w_]+)_change$/, :change, true)
|
11
11
|
map_method(/^([\w_]+)_was$/, :was, true)
|
12
|
-
map_method(
|
13
|
-
map_method(
|
12
|
+
map_method(/^([\w_]+)=$/, :[]=)
|
13
|
+
map_method(/^([\w_]+)$/, :[], true)
|
14
14
|
end
|
15
15
|
|
16
16
|
def map_method(pattern, method_or_proc = nil, args = nil)
|
metadata
CHANGED
@@ -1,39 +1,35 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: dirty_hashy
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.3
|
4
5
|
prerelease:
|
5
|
-
version: 0.1.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Paul Engel
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-12-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
17
15
|
name: activesupport
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2153173480 !ruby/object:Gem::Requirement
|
20
17
|
none: false
|
21
|
-
requirements:
|
22
|
-
- -
|
23
|
-
- !ruby/object:Gem::Version
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
24
21
|
version: 3.0.0
|
25
22
|
type: :runtime
|
26
|
-
|
27
|
-
|
28
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2153173480
|
25
|
+
description: Dirty tracking within hashes with indifferent access or objects as it
|
26
|
+
is expected to be!
|
27
|
+
email:
|
29
28
|
- paul.engel@holder.nl
|
30
29
|
executables: []
|
31
|
-
|
32
30
|
extensions: []
|
33
|
-
|
34
31
|
extra_rdoc_files: []
|
35
|
-
|
36
|
-
files:
|
32
|
+
files:
|
37
33
|
- .gitignore
|
38
34
|
- CHANGELOG.rdoc
|
39
35
|
- Gemfile
|
@@ -50,35 +46,32 @@ files:
|
|
50
46
|
- test/test_helper.rb
|
51
47
|
- test/unit/test_dirty_attributes.rb
|
52
48
|
- test/unit/test_dirty_hashy.rb
|
53
|
-
has_rdoc: true
|
54
49
|
homepage: https://github.com/archan937/dirty_hashy
|
55
50
|
licenses: []
|
56
|
-
|
57
51
|
post_install_message:
|
58
52
|
rdoc_options: []
|
59
|
-
|
60
|
-
require_paths:
|
53
|
+
require_paths:
|
61
54
|
- lib
|
62
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
55
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
63
56
|
none: false
|
64
|
-
requirements:
|
65
|
-
- -
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version:
|
68
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ! '>='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
62
|
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version:
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
74
67
|
requirements: []
|
75
|
-
|
76
68
|
rubyforge_project:
|
77
|
-
rubygems_version: 1.
|
69
|
+
rubygems_version: 1.8.10
|
78
70
|
signing_key:
|
79
71
|
specification_version: 3
|
80
|
-
summary: Dirty tracking within hashes with indifferent access or objects as it is
|
81
|
-
|
72
|
+
summary: Dirty tracking within hashes with indifferent access or objects as it is
|
73
|
+
expected to be!
|
74
|
+
test_files:
|
82
75
|
- test/test_helper.rb
|
83
76
|
- test/unit/test_dirty_attributes.rb
|
84
77
|
- test/unit/test_dirty_hashy.rb
|