docile 1.1.1 → 1.1.2

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: fb7581d7fa7a2ace7257cb7d0fac9732c80480a5
4
- data.tar.gz: 1fab351868ad13d87ceb0882460aa059428b29f0
3
+ metadata.gz: 26bbfaa73e52625cc4514cb00b33aa05a6f96e03
4
+ data.tar.gz: a21ef74c095e1b57ba04ec04307eb10fb9f37b5e
5
5
  SHA512:
6
- metadata.gz: 762a98e99139ca515bd787e794be284c1a3a4dd1be805869736ce8f19bb6cadbcedf6a35b9fb72f71bce5806b45171190cf63b58b02754ebaf400b705971e338
7
- data.tar.gz: 5825352e7d6d819b557909f296e2d23ba8bb8807a212bb24781d758f2c59ab030f977bf9f2cb7af5dae7709d86fde8e306a77e1f56f0accb5b5c5b939427a215
6
+ metadata.gz: de5fdc2a0fe2d0dd5e4e488fe9b9cd1fe24f4537fc9be596a628e5e264422bfc4fd109a8b1ee7195ee38f93e357f7edeb68101028a1912470a88abf9b4cd2268
7
+ data.tar.gz: 005701bbad8fa30ad46c0ea377cbc23b20492356d35c7745285dd93976cb0c85088ff83beb51deb93dc05e2cad570bf2880dd1dd3cec8df157c7de9d9e080124
@@ -1 +1 @@
1
- ruby-2.0.0
1
+ ruby-2.1.0
@@ -1,6 +1,14 @@
1
1
  language: ruby
2
2
  bundler_args: --without development
3
+ # NOTE (2013-12-30): Temporary workaround for Rubygems-Bundler
4
+ # incompatibility on Travis CI for 1.8 builds, see also:
5
+ # * https://github.com/rubygems/rubygems/pull/763
6
+ # * https://github.com/freerange/mocha/commit/66bab2a8f4e7cd8734bf88e6f32157c0d5153125
7
+ before_install:
8
+ - gem update --system 2.1.11
9
+ - gem --version
3
10
  rvm:
11
+ - 2.1.0
4
12
  - 2.0.0
5
13
  - 1.9.3
6
14
  - 1.9.2
data/HISTORY.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # HISTORY
2
2
 
3
+ ## [v1.1.2 (Jan 10, 2014)](http://github.com/ms-ati/docile/compare/v1.1.1...v1.1.2)
4
+
5
+ - remove unnecessarily nested proxy objects (thanks @Ajedi32!
6
+ - documentation updates and corrections
7
+
3
8
  ## [v1.1.1 (Nov 26, 2013)](http://github.com/ms-ati/docile/compare/v1.1.0...v1.1.1)
4
9
 
5
10
  - documentation updates and corrections
@@ -35,4 +40,4 @@
35
40
 
36
41
  ## [v1.0.0 (Oct 29, 2012)](http://github.com/ms-ati/docile/compare/1b225c8a27...v1.0.0)
37
42
 
38
- - Initial Feature Set
43
+ - Initial Feature Set
data/LICENSE CHANGED
@@ -1,19 +1,21 @@
1
+ The MIT License (MIT)
2
+
1
3
  Copyright (c) 2012-2013 Marc Siegel
2
4
 
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of
4
- this software and associated documentation files (the "Software"), to deal in
5
- the Software without restriction, including without limitation the rights to
6
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
- of the Software, and to permit persons to whom the Software is furnished to do
8
- so, subject to the following conditions:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
9
11
 
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
12
14
 
13
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
- SOFTWARE.
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
  [![Dependency Status](https://gemnasium.com/ms-ati/docile.png)](https://gemnasium.com/ms-ati/docile)
5
5
  [![Code Climate](https://codeclimate.com/github/ms-ati/docile.png)](https://codeclimate.com/github/ms-ati/docile)
6
6
  [![Coverage Status](https://coveralls.io/repos/ms-ati/docile/badge.png)](https://coveralls.io/r/ms-ati/docile)
7
+ [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/ms-ati/docile/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
7
8
 
8
9
  Ruby makes it possible to create very expressive **Domain Specific
9
10
  Languages**, or **DSL**'s for short. However, it requires some deep knowledge and
@@ -231,3 +232,5 @@ Works on [all ruby versions since 1.8.7](https://github.com/ms-ati/docile/blob/m
231
232
  ## Copyright
232
233
 
233
234
  Copyright (c) 2012-2013 Marc Siegel. See LICENSE for details.
235
+
236
+
@@ -16,7 +16,7 @@ module Docile
16
16
  # @return [Object] the return value of the block
17
17
  def exec_in_proxy_context(dsl, proxy_type, *args, &block)
18
18
  block_context = eval('self', block.binding)
19
- proxy_context = proxy_type.new(dsl, proxy_type.new(dsl, block_context))
19
+ proxy_context = proxy_type.new(dsl, block_context)
20
20
  begin
21
21
  block_context.instance_variables.each do |ivar|
22
22
  value_from_block = block_context.instance_variable_get(ivar)
@@ -54,7 +54,7 @@ module Docile
54
54
  # and then to `fallback` if not found.
55
55
  def method_missing(method, *args, &block)
56
56
  @__receiver__.__send__(method.to_sym, *args, &block)
57
- rescue ::NoMethodError => e
57
+ rescue ::NoMethodError => _
58
58
  @__fallback__.__send__(method.to_sym, *args, &block)
59
59
  end
60
60
  end
@@ -1,4 +1,4 @@
1
1
  module Docile
2
2
  # The current version of this library
3
- VERSION = '1.1.1'
3
+ VERSION = '1.1.2'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docile
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Siegel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-26 00:00:00.000000000 Z
11
+ date: 2014-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -149,4 +149,3 @@ summary: Docile keeps your Ruby DSLs tame and well-behaved
149
149
  test_files:
150
150
  - spec/docile_spec.rb
151
151
  - spec/spec_helper.rb
152
- has_rdoc: