jsl-hashpipe 0.0.4 → 0.0.5
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/hashpipe.gemspec +2 -2
- data/lib/hashpipe.rb +1 -8
- data/lib/hashpipe/moneta_backend.rb +1 -1
- metadata +2 -2
data/hashpipe.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "hashpipe"
|
3
|
-
s.version = "0.0.
|
4
|
-
s.date = "2009-05-
|
3
|
+
s.version = "0.0.5"
|
4
|
+
s.date = "2009-05-13"
|
5
5
|
s.summary = "ActiveRecord plugin to save content to a pluggable, hash-style backend"
|
6
6
|
s.email = "justin@phq.org"
|
7
7
|
s.homepage = "http://github.com/jsl/hashpipe"
|
data/lib/hashpipe.rb
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
require File.expand_path(File.join(File.dirname(__FILE__), %w[hashpipe archived_attribute] ))
|
2
2
|
require File.expand_path(File.join(File.dirname(__FILE__), %w[hashpipe global_configuration] ))
|
3
3
|
|
4
|
-
require 'uuid'
|
5
|
-
|
6
4
|
module HashPipe
|
7
5
|
|
8
6
|
def self.included(base)
|
@@ -20,8 +18,7 @@ module HashPipe
|
|
20
18
|
if archived_attribute_definitions.nil?
|
21
19
|
write_inheritable_attribute(:archived_attribute_definitions, {})
|
22
20
|
|
23
|
-
|
24
|
-
before_save :save_archived_attributes
|
21
|
+
after_save :save_archived_attributes
|
25
22
|
before_destroy :destroy_archived_attributes
|
26
23
|
end
|
27
24
|
|
@@ -72,10 +69,6 @@ module HashPipe
|
|
72
69
|
end
|
73
70
|
end
|
74
71
|
|
75
|
-
def generate_uuid
|
76
|
-
self.uuid = UUID.new.generate if self.new_record?
|
77
|
-
end
|
78
|
-
|
79
72
|
end
|
80
73
|
end
|
81
74
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsl-hashpipe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Leitgeb
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-05-
|
12
|
+
date: 2009-05-13 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|