amfetamine 0.4.1 → 0.4.2

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: 508fe247999f1772a3503610553052e4edfca9f4
4
- data.tar.gz: c738eb8a65ccd90ed8c5e16fb0750277dd5f87dc
3
+ metadata.gz: 700a2952eaee9f8c389836835e4031123b57c336
4
+ data.tar.gz: d116075a6025995398ead5bb6801d40f9128c7e2
5
5
  SHA512:
6
- metadata.gz: 526826ec7216d7ed306294ec9880a1953655b64b402fe756afde833000d0a73eae0ec4fd7b5da8676dfce4ae31a7eb5964b71c17aff5c0e0f3cbb5ee99dfb60c
7
- data.tar.gz: 3f96bb55fc5a59b5ed4d6f442956d6868e952c07bfb262d200411352f0de1e4a327fb42748e1babd314e8fd81cc2e01b435ffa25afe95c75474ec4a9add2d9c3
6
+ metadata.gz: 4688fe467e676ab287837cb536fffb5aaedbbc57022fcfcf0a474c8018e614bd32ce9c6a906695d6c3077488c4ff087fc1ee3987448b1726c9c814087b906625
7
+ data.tar.gz: 3febcaed4560e63dd16b06115343fbd76326f38f0413a7c9da1800bfc7f436046a4c85e94adaa0322a742e2746873766f180a596c07a2e21e34c498acefe1025
data/.gitignore CHANGED
@@ -8,4 +8,4 @@ doc/
8
8
  coverage/
9
9
  .rvmrc
10
10
  .rspec
11
- .tmp/
11
+ tmp/
@@ -1,3 +1,7 @@
1
+ ## 0.4.2
2
+
3
+ * Simplified/fixed caching in Rails development mode (it is 60 seconds and is working now)
4
+
1
5
  ## 0.4.1
2
6
 
3
7
  * Fixed bundling in Rails applications
@@ -34,8 +34,6 @@ module Amfetamine
34
34
  @disable_caching = value
35
35
  end
36
36
 
37
- private
38
-
39
37
  def default_memcached_options
40
38
  {
41
39
  expires_in: expiration_time
@@ -43,20 +41,11 @@ module Amfetamine
43
41
  end
44
42
 
45
43
  def expiration_time
46
- if defined?(Rails)
47
- method = "expiration_time_for_#{ Rails.env }"
48
- return send(method) if respond_to?(method)
44
+ if defined?(::Rails) && Rails.env.development?
45
+ 60.seconds
46
+ else
47
+ 10.minutes
49
48
  end
50
-
51
- default_expiration_time
52
- end
53
-
54
- def expiration_time_for_development
55
- 60.seconds
56
- end
57
-
58
- def default_expiration_time
59
- 10.minutes
60
49
  end
61
50
 
62
51
  end
@@ -1,3 +1,3 @@
1
1
  module Amfetamine
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -11,8 +11,8 @@ describe Amfetamine::Base do
11
11
  options.should include(:expires_in)
12
12
  end
13
13
 
14
- specify 'exires_in option is set to an integer value' do
15
- options[:expires_in].should be_an_integer
14
+ specify 'exires_in option is set by default to 10 minutes' do
15
+ options[:expires_in].should eq(10.minutes)
16
16
  end
17
17
  end
18
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amfetamine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timon Vonk
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-28 00:00:00.000000000 Z
12
+ date: 2013-07-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -285,7 +285,6 @@ files:
285
285
  - spec/helpers/active_model_lint.rb
286
286
  - spec/helpers/id_pool.rb
287
287
  - spec/spec_helper.rb
288
- - tmp/rspec_guard_result
289
288
  homepage: http://www.github.com/exvo/amfetamine
290
289
  licenses: []
291
290
  metadata: {}
@@ -305,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
305
304
  version: '0'
306
305
  requirements: []
307
306
  rubyforge_project: amfetamine
308
- rubygems_version: 2.0.3
307
+ rubygems_version: 2.0.5
309
308
  signing_key:
310
309
  specification_version: 4
311
310
  summary: REST object abstraction on steroids the makes shit go boom!
@@ -1 +0,0 @@
1
-