plug 0.1.3 → 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/app/controllers/plug/application_controller.rb +4 -0
- data/lib/plug.rb +2 -0
- data/lib/plug/configuration.rb +21 -0
- data/lib/plug/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75a58aa6dd10a22d5612e56d847ba8a28435a70a
|
4
|
+
data.tar.gz: 0eebbd65e9d323f56cb16fb7345d095c18b38950
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e7c9f6326960e9b8a71f64d7ccb110bd707ec6aab11a9e190df37668619d6daa78db9c02e8996d2667ee84ec427447ff102a8bf9918a16f577da5ff785c3f77
|
7
|
+
data.tar.gz: 9ccc3bce86d5697f30ababcd96e94dbc1baeee703ca1c9f0034ebe477e338c7b93a9b3bfed08e254282af050a957b86295296cd24ba30f062aab795b30b82cac
|
data/lib/plug.rb
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
module Plug
|
2
|
+
module Configuration
|
3
|
+
AUTH_USER = ''
|
4
|
+
AUTH_PASSWORD = ''
|
5
|
+
|
6
|
+
VALID_OPTIONS_KEYS = [
|
7
|
+
:auth_user,
|
8
|
+
:auth_password
|
9
|
+
].freeze
|
10
|
+
|
11
|
+
attr_accessor *VALID_OPTIONS_KEYS
|
12
|
+
|
13
|
+
def configure
|
14
|
+
yield self
|
15
|
+
end
|
16
|
+
|
17
|
+
def options
|
18
|
+
Hash[ * VALID_OPTIONS_KEYS.map { |key| [key, send(key)] }.flatten ]
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/plug/version.rb
CHANGED
metadata
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plug
|
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
|
- Ben
|
8
|
+
- Boost
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
@@ -178,9 +179,10 @@ dependencies:
|
|
178
179
|
- - ">="
|
179
180
|
- !ruby/object:Gem::Version
|
180
181
|
version: '0'
|
181
|
-
description:
|
182
|
+
description: Rails engine that can plug/unplug features with notice (WIP)
|
182
183
|
email:
|
183
184
|
- benedict@boost.co.nz
|
185
|
+
- info@boost.co.nz
|
184
186
|
executables: []
|
185
187
|
extensions: []
|
186
188
|
extra_rdoc_files: []
|
@@ -221,6 +223,7 @@ files:
|
|
221
223
|
- config/routes.rb
|
222
224
|
- db/migrate/20171207020316_create_plug_features.rb
|
223
225
|
- lib/plug.rb
|
226
|
+
- lib/plug/configuration.rb
|
224
227
|
- lib/plug/engine.rb
|
225
228
|
- lib/plug/version.rb
|
226
229
|
- lib/tasks/plug_tasks.rake
|
@@ -247,5 +250,5 @@ rubyforge_project:
|
|
247
250
|
rubygems_version: 2.6.13
|
248
251
|
signing_key:
|
249
252
|
specification_version: 4
|
250
|
-
summary:
|
253
|
+
summary: Rails engine that can plug/unplug features
|
251
254
|
test_files: []
|