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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01394f24ab6a4475ecfc8665d2c95d278e2b4aab
4
- data.tar.gz: e3c546de0ac009adbf8e25b3ea33d4db390f9998
3
+ metadata.gz: a50d166d08f7df37f24c7d7309d7c78544e915d3
4
+ data.tar.gz: 7bdae2119e35500cc9b4526c1fc6fd7d5e2336b9
5
5
  SHA512:
6
- metadata.gz: 35de911789a214f202ee351e43fcb5497546769aaee9b40de68716442176269bcfc72db8bd22e257230c254fbeb161b1e989e7762b6edf6ba54a49b146831818
7
- data.tar.gz: a2a8ff991557240c9dc31af764605d3d0dd83884c05638995bb6d02acbeeedc48fcc7672297085668642173a20466e9f08a6d2c52fac441084b758bbcdf8034e
6
+ metadata.gz: a191bf112ee9904e8e81bb336bac7bd876714d42d40d4418931f09e9a11cdc62c01d573e3f984292814930d6025d82f412d488ff8bb401e8f2164cca1e420bf1
7
+ data.tar.gz: fbbfe69fc294848c15ebfa8a0952e4810f78fc4827a0763244d6c54d4177f01f9f3dc6705750d2dbc654173022da20f509bf9b4490b6aebef06dedbb2212bbb3
@@ -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
- @s3.load_cache
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
@@ -1,3 +1,3 @@
1
1
  module S3Rails
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -138,5 +138,20 @@ S3RailsTest: test_reload_S3rails_cache
138
138
   (0.1ms) begin transaction
139
139
  --------------------------------------------------
140
140
  S3RailsTest: test_resolver_returns_a_template_body
141
+ --------------------------------------------------
142
+  (0.1ms) rollback transaction
143
+  (0.1ms) begin transaction
144
+ --------------------------------
145
+ S3RailsTest: test_connects_to_S3
146
+ --------------------------------
147
+  (0.1ms) rollback transaction
148
+  (0.1ms) begin transaction
149
+ --------------------------------------
150
+ S3RailsTest: test_reload_S3rails_cache
151
+ --------------------------------------
152
+  (0.1ms) rollback transaction
153
+  (0.1ms) begin transaction
154
+ --------------------------------------------------
155
+ S3RailsTest: test_resolver_returns_a_template_body
141
156
  --------------------------------------------------
142
157
   (0.1ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noel Peden