hecks-memory-database 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/hecks-memory-database.rb +18 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c2adbb0dce174587a5673097661a6b91669ac3a4
4
+ data.tar.gz: 5cd15c2659c52cafa8611f75e6df173c2b25cf51
5
+ SHA512:
6
+ metadata.gz: ccb2f989f0b128419456dad24e04bc68ad498a1b242ee1375c724f24f0ca73e94cef7d7d86c6e0a268a8345549f23c0ffbd9db4ebaef6024242d2b0afd9a8975
7
+ data.tar.gz: ec7cd2bf7f39f366b4e4b0cf5183a5fa1431bedbe153d3ae67686050cc3d908f7e822e6c9491535b53b37f668a701b15a66ae2563ede21fc02fa1c5b590f0670
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+ module Hecks
3
+ module Adapters
4
+ class MemoryDatabase
5
+ def initialize(domain:)
6
+ @repositories = domain.repositories
7
+ end
8
+
9
+ def [](module_name)
10
+ @repositories[module_name.to_s.downcase.to_sym]
11
+ end
12
+
13
+ def delete_all
14
+ @repositories.values.each(&:delete_all)
15
+ end
16
+ end
17
+ end
18
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hecks-memory-database
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.9
5
+ platform: ruby
6
+ authors:
7
+ - Chris Young
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-04-15 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Hecks Memory Database
14
+ email: chris@example.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/hecks-memory-database.rb
20
+ homepage: https://github.com/chrisyoung/hecks
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.6.10
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: The default 'in memory' database for Hecks applications
44
+ test_files: []