s3_rails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/s3_rails/resolver.rb +6 -2
- data/lib/s3_rails/version.rb +1 -1
- data/test/dummy/log/test.log +15 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a50d166d08f7df37f24c7d7309d7c78544e915d3
|
4
|
+
data.tar.gz: 7bdae2119e35500cc9b4526c1fc6fd7d5e2336b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a191bf112ee9904e8e81bb336bac7bd876714d42d40d4418931f09e9a11cdc62c01d573e3f984292814930d6025d82f412d488ff8bb401e8f2164cca1e420bf1
|
7
|
+
data.tar.gz: fbbfe69fc294848c15ebfa8a0952e4810f78fc4827a0763244d6c54d4177f01f9f3dc6705750d2dbc654173022da20f509bf9b4490b6aebef06dedbb2212bbb3
|
data/lib/s3_rails/resolver.rb
CHANGED
@@ -23,8 +23,7 @@ module S3Rails
|
|
23
23
|
|
24
24
|
if File.exists?('tmp/reload_s3.txt') &&
|
25
25
|
@s3.last_load < File.mtime('tmp/reload_s3.txt')
|
26
|
-
|
27
|
-
clear_cache
|
26
|
+
reload
|
28
27
|
end
|
29
28
|
|
30
29
|
# objects = @s3.bucket.objects.with_prefix(path.prefix).select do |obj|
|
@@ -49,5 +48,10 @@ module S3Rails
|
|
49
48
|
)
|
50
49
|
end
|
51
50
|
end
|
51
|
+
|
52
|
+
def reload
|
53
|
+
@s3.load_cache
|
54
|
+
clear_cache
|
55
|
+
end
|
52
56
|
end
|
53
57
|
end
|
data/lib/s3_rails/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -138,5 +138,20 @@ S3RailsTest: test_reload_S3rails_cache
|
|
138
138
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
139
139
|
--------------------------------------------------
|
140
140
|
S3RailsTest: test_resolver_returns_a_template_body
|
141
|
+
--------------------------------------------------
|
142
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
143
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
144
|
+
--------------------------------
|
145
|
+
S3RailsTest: test_connects_to_S3
|
146
|
+
--------------------------------
|
147
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
148
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
149
|
+
--------------------------------------
|
150
|
+
S3RailsTest: test_reload_S3rails_cache
|
151
|
+
--------------------------------------
|
152
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
153
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
154
|
+
--------------------------------------------------
|
155
|
+
S3RailsTest: test_resolver_returns_a_template_body
|
141
156
|
--------------------------------------------------
|
142
157
|
[1m[35m (0.1ms)[0m rollback transaction
|