usable 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/usable/config.rb +1 -1
- data/lib/usable/version.rb +1 -1
- data/lib/usable.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa0cb884552cb07e0a3d903e528bb66cb6f111dc
|
4
|
+
data.tar.gz: 8faac4e475d6c9cdc08310d7d0a79daf03fd5a6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25c94039ef7c234eaea76ce5e44ea7bf319371ce1bf79d049c1b7c86d67e94bd173d1b762eca3d1d148b29d045844f9fbb12ab202d22fd534cc115afdc623e21
|
7
|
+
data.tar.gz: 3ffd8a3aff44bcceaa14dbebc5319ce756368c300eb80bca928f5e466320f734efc00408615bee76eb538a216284ff33f95616e454ee095f3155df64424e5e6a
|
data/README.md
CHANGED
@@ -113,6 +113,11 @@ Add this line to your application's Gemfile:
|
|
113
113
|
gem 'usable'
|
114
114
|
```
|
115
115
|
|
116
|
+
## TODO
|
117
|
+
|
118
|
+
* Support blocks for config values (e.g. `config.user { User.first }`)
|
119
|
+
|
120
|
+
|
116
121
|
## Development
|
117
122
|
|
118
123
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/usable/config.rb
CHANGED
data/lib/usable/version.rb
CHANGED
data/lib/usable.rb
CHANGED
@@ -51,7 +51,7 @@ module Usable
|
|
51
51
|
# @param [Hash] options Customize the extension of the module as well as define config settings on the target
|
52
52
|
# @option [Array,Symbol] :only Limit which methods are copied from the module
|
53
53
|
# @option [String,Symbol] :method (:include) The method to use for including the module
|
54
|
-
# @return
|
54
|
+
# @return self
|
55
55
|
def usable(mod, options = {}, &block)
|
56
56
|
usable_options = { only: options.delete(:only), method: options.delete(:method) }
|
57
57
|
# Define settings on @usables and on the scoped @usables
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: usable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Buckley
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|