shrine-memory 0.1.0 → 0.2.0

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: 3fd54c31c0af0cbc24bf2cc13ed31ddefa9d75c2
4
- data.tar.gz: ac78c8c8b12aa63628a4be5b3ff3e792d8d50324
3
+ metadata.gz: 5ebd4f79d66075d5c9939d2ea1674e2f156c6a95
4
+ data.tar.gz: 3037f1d48c6d8569012fce7108c75b4b31a0f05f
5
5
  SHA512:
6
- metadata.gz: fb572300024fd9f94df599628f91512d3ed65d0874d6727378c12399a5abaf73768c67859ed59fa246a78e16c3a2da44b4e66dce1c3b96849d30051ec14448ae
7
- data.tar.gz: 1a66355aa04acceaa80af5e644342b431574b6c22da5094c94ea575fd415d13d1bd89cb0bab9d3c9fd188a9214ac0bc01d83b9918b534b5cb7f51695fa8d6d63
6
+ metadata.gz: e1558f58b78454641aac46c5a4f774223670b7462317e0b3032a5137da8d6da9128ec77cb2bea867b22a87afbbd86942b9c5e3a7197011c3ac8615773ea2a701
7
+ data.tar.gz: 60bb7d17505f4b7f466371b5cccedeeb6869f340504e6e3bf85bfd99b01ec9e2f7ef241f8a1340efe5c9bddfae510d205095220e74715d707b9d5b83d45d185f
data/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # Shrine::Storage::Memory
2
2
 
3
- Provides in-memory storage for Shrine.
3
+ Provides in-memory storage for [Shrine].
4
4
 
5
- This storage generally shouldn't be used in real applications, but it is handy
6
- for testing.
5
+ This storage shouldn't be used in production, but it is handy to use in tests.
7
6
 
8
7
  ## Installation
9
8
 
@@ -19,6 +18,13 @@ require "shrine/storage/memory"
19
18
  Shrine.storages[:cache] = Shrine::Storage::Memory.new
20
19
  ```
21
20
 
21
+ ## Inspiration
22
+
23
+ This gem was inspired by [refile-memory].
24
+
22
25
  ## License
23
26
 
24
27
  [MIT](/LICENSE.txt)
28
+
29
+ [Shrine]: https://github.com/janko-m/shrine
30
+ [refile-memory]: https://github.com/refile/refile-memory
@@ -55,8 +55,7 @@ class Shrine
55
55
  "memory://#{id}"
56
56
  end
57
57
 
58
- def clear!(confirm = nil)
59
- raise Shrine::Confirm unless confirm == :confirm
58
+ def clear!
60
59
  store.clear
61
60
  end
62
61
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "shrine-memory"
3
- gem.version = "0.1.0"
3
+ gem.version = "0.2.0"
4
4
 
5
5
  gem.required_ruby_version = ">= 2.1"
6
6
 
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
  gem.files = Dir["README.md", "LICENSE.txt", "lib/**/*.rb", "*.gemspec"]
14
14
  gem.require_path = "lib"
15
15
 
16
- gem.add_dependency "shrine"
16
+ gem.add_dependency "shrine", "~> 2.0"
17
17
  gem.add_dependency "down"
18
18
 
19
19
  gem.add_development_dependency "rake"
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrine-memory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janko Marohnić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-01 00:00:00.000000000 Z
11
+ date: 2016-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shrine
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: down
29
29
  requirement: !ruby/object:Gem::Requirement