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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 302091dea6e4c83d5b143e02ff10f6f04d242750
4
- data.tar.gz: c5106c2329acd29b966f8a166de811fe5e9dfc03
3
+ metadata.gz: fa0cb884552cb07e0a3d903e528bb66cb6f111dc
4
+ data.tar.gz: 8faac4e475d6c9cdc08310d7d0a79daf03fd5a6d
5
5
  SHA512:
6
- metadata.gz: 4fa5f3463f1fa6c23114e04fa5fbed769c788026614d00758975c73dce0bce3df6637de41dcc99efaec48aed30396882581d348d581f01185573d11f948ea754
7
- data.tar.gz: 4375b84ab60d8f7f3c5b52432743815d2cf1943a571c5aa4e9729c346c34984de9c788e5f4fecdf20551b7d036b066870d536a517ad5b7b6ef4141fcf6477010
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
@@ -49,7 +49,7 @@ module Usable
49
49
  end
50
50
 
51
51
  def respond_to_missing?(method_name, _private = false)
52
- method_name.to_s.end_with?('=') || spec.respond_to?(method_name)
52
+ method_name.to_s.end_with?('=') || @spec.respond_to?(method_name)
53
53
  end
54
54
 
55
55
  module Null
@@ -1,3 +1,3 @@
1
1
  module Usable
2
- VERSION = "2.1.2".freeze
2
+ VERSION = "2.1.3".freeze
3
3
  end
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 [ModExtender] containing the original and modified module
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.2
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-08-29 00:00:00.000000000 Z
11
+ date: 2016-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler