zadok 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/zadok/engine.rb +29 -0
- data/lib/zadok/version.rb +3 -0
- metadata +46 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2652319db49395908561e60e099e918279420f72029ceca0d34db08afaf9286b
|
4
|
+
data.tar.gz: 933c6fda7f0e91c3b1ef07c978b514d1d010d0497da3322796ca80388648c52d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 87d5ba04782d2621f179aa8eb3a5799218e24293e49a5ee90dd8a9b802d177ecf9855862dd4ec20d88a2deb074e8a5631322440bfbe7c6816348a55090e3ae74
|
7
|
+
data.tar.gz: 4b4db384365efd70879ea3499c64b3e0697246aa612588ee88f4735f28b50e5a4dcb0cfa7c91face9bb38d4d5d0a11f9a362e56f9cafa67b14e60b8a9238ddd8
|
data/lib/zadok/engine.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
module Zadok
|
2
|
+
class << self
|
3
|
+
attr_writer :configuration
|
4
|
+
end
|
5
|
+
|
6
|
+
def self.configuration
|
7
|
+
@configuration ||= Configuration.new
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.reset
|
11
|
+
@configuration = Configuration.new
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.configure
|
15
|
+
yield(configuration)
|
16
|
+
end
|
17
|
+
|
18
|
+
class Configuration
|
19
|
+
attr_accessor :parent_controller
|
20
|
+
|
21
|
+
def initialize
|
22
|
+
@parent_controller = ::ApplicationController
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
class Engine < ::Rails::Engine
|
27
|
+
isolate_namespace Zadok
|
28
|
+
end
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: zadok
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Leon Hooijer
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-11-09 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: A data management gem.
|
14
|
+
email:
|
15
|
+
- mail@leonhooijer.nl
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- lib/zadok/engine.rb
|
21
|
+
- lib/zadok/version.rb
|
22
|
+
homepage: https://github.com/leonhooijer/zadok
|
23
|
+
licenses:
|
24
|
+
- MIT
|
25
|
+
metadata: {}
|
26
|
+
post_install_message:
|
27
|
+
rdoc_options: []
|
28
|
+
require_paths:
|
29
|
+
- lib
|
30
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
requirements: []
|
41
|
+
rubyforge_project:
|
42
|
+
rubygems_version: 2.7.1
|
43
|
+
signing_key:
|
44
|
+
specification_version: 4
|
45
|
+
summary: A data management gem.
|
46
|
+
test_files: []
|