rpbertp13-dm-s3 0.1.2 → 0.1.4
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.yml +1 -1
- data/dm-s3.gemspec +2 -2
- data/lib/dm-s3.rb +14 -7
- metadata +2 -2
data/VERSION.yml
CHANGED
data/dm-s3.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{dm-s3}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.4"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Roberto Thais"]
|
9
|
-
s.date = %q{2009-
|
9
|
+
s.date = %q{2009-07-10}
|
10
10
|
s.email = %q{roberto.n.thais@gmail.com}
|
11
11
|
s.extra_rdoc_files = [
|
12
12
|
"LICENSE",
|
data/lib/dm-s3.rb
CHANGED
@@ -85,23 +85,30 @@ module DataMapper
|
|
85
85
|
module ClassMethods
|
86
86
|
#Auto-add the properties in future version
|
87
87
|
|
88
|
-
attr_reader :connector
|
89
|
-
|
90
88
|
def has_s3_file_at(bucket_name)
|
91
|
-
@connector = ClassBucketConnector.new(self, bucket_name)
|
92
|
-
|
89
|
+
@connector = ClassBucketConnector.new(self, bucket_name)
|
90
|
+
|
91
|
+
class << self
|
92
|
+
attr_reader :connector
|
93
|
+
puts self
|
93
94
|
send :define_method, :s3 do
|
94
95
|
self.connector.s3
|
95
96
|
end
|
97
|
+
|
96
98
|
send :define_method, :bucket do
|
97
99
|
self.connector.bucket
|
98
|
-
end
|
99
|
-
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
send :after_class_method, :inherited do |retval, subclass|
|
104
|
+
subclass.instance_variable_set "@connector", @connector
|
105
|
+
end
|
100
106
|
end
|
101
107
|
|
102
108
|
def has_s3_file
|
103
109
|
@connector = InstanceBucketConnector.new
|
104
|
-
end
|
110
|
+
end
|
111
|
+
|
105
112
|
end
|
106
113
|
end
|
107
114
|
Resource.append_inclusions(S3::InstanceMethods)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rpbertp13-dm-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Thais
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-07-10 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|