yokunai 0.1.4 → 0.1.5
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 +4 -4
- data/lib/yokunai/config.rb +11 -0
- data/lib/yokunai/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b9c0e99195305885f6b8bb7fc5b95c12ecb3b97
|
4
|
+
data.tar.gz: 6239c14f0ac81cc28209e2710a7bcf2c6d64c26e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fcd44d832c315b88c97ada60a21552d1961cbbaf8cbe7a97f59802e25972bd0a34d230b1f15cc3f81c6d910612a5ad1c579aea4ee4c3d06dff8922ff695cbe0
|
7
|
+
data.tar.gz: 68302c4671305859f6ca29f4eb4794c041d98420fb61a8638bd18df731369b74d65aa70bd0ed185a2d325929a9415203f6ee59e365584ff13867f6b9ed84a3da
|
data/lib/yokunai/config.rb
CHANGED
@@ -46,5 +46,16 @@ module Yokunai
|
|
46
46
|
@@config[key]
|
47
47
|
end
|
48
48
|
|
49
|
+
# Set the given value to the given key. This does *not* persist to the
|
50
|
+
# YAML, just stores it in memory. Useful for storing "singleton"-like
|
51
|
+
# service classes (database connections, etc).
|
52
|
+
#
|
53
|
+
# @param key [String] the key
|
54
|
+
# @param value [Any] the object to store under key.
|
55
|
+
# @return [Any] the value.
|
56
|
+
def self.set(key, value)
|
57
|
+
@@config[key] = value
|
58
|
+
end
|
59
|
+
|
49
60
|
end
|
50
61
|
end
|
data/lib/yokunai/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yokunai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Blackie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
version: '0'
|
79
79
|
requirements: []
|
80
80
|
rubyforge_project:
|
81
|
-
rubygems_version: 2.6.
|
81
|
+
rubygems_version: 2.6.13
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: Helps you make really simple dynamic Internet Web Pages.
|