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 +4 -4
- data/README.md +9 -3
- data/lib/shrine/storage/memory.rb +1 -2
- data/shrine-memory.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ebd4f79d66075d5c9939d2ea1674e2f156c6a95
|
4
|
+
data.tar.gz: 3037f1d48c6d8569012fce7108c75b4b31a0f05f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/shrine-memory.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = "shrine-memory"
|
3
|
-
gem.version = "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.
|
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-
|
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
|