Skip to content

Commit

Permalink
Standardize on double-quoted strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-ati committed Jan 15, 2018
1 parent 5e777f6 commit 6e37fb8
Show file tree
Hide file tree
Showing 8 changed files with 97 additions and 97 deletions.
8 changes: 4 additions & 4 deletions lib/docile.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'docile/version'
require 'docile/execution'
require 'docile/fallback_context_proxy'
require 'docile/chaining_fallback_context_proxy'
require "docile/version"
require "docile/execution"
require "docile/fallback_context_proxy"
require "docile/chaining_fallback_context_proxy"

# Docile keeps your Ruby DSLs tame and well-behaved.
module Docile
Expand Down
4 changes: 2 additions & 2 deletions lib/docile/chaining_fallback_context_proxy.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'docile/fallback_context_proxy'
require "docile/fallback_context_proxy"

module Docile
# @api private
Expand All @@ -17,4 +17,4 @@ def method_missing(method, *args, &block)
@__receiver__ = super(method, *args, &block)
end
end
end
end
4 changes: 2 additions & 2 deletions lib/docile/execution.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module Execution
# @param block [Proc] the block of DSL commands to be executed
# @return [Object] the return value of the block
def exec_in_proxy_context(dsl, proxy_type, *args, &block)
block_context = eval('self', block.binding)
block_context = eval("self", block.binding)
proxy_context = proxy_type.new(dsl, block_context)
begin
block_context.instance_variables.each do |ivar|
Expand All @@ -32,4 +32,4 @@ def exec_in_proxy_context(dsl, proxy_type, *args, &block)
end
module_function :exec_in_proxy_context
end
end
end
4 changes: 2 additions & 2 deletions lib/docile/fallback_context_proxy.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'set'
require "set"

module Docile
# @api private
Expand All @@ -17,7 +17,7 @@ class FallbackContextProxy
# The set of methods which will **not** be proxied, but instead answered
# by this object directly.
NON_PROXIED_METHODS = Set[:__send__, :object_id, :__id__, :==, :equal?,
:'!', :'!=', :instance_exec, :instance_variables,
:"!", :"!=", :instance_exec, :instance_variables,
:instance_variable_get, :instance_variable_set,
:remove_instance_variable]

Expand Down
2 changes: 1 addition & 1 deletion lib/docile/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Docile
# The current version of this library
VERSION = '1.2.0'
VERSION = "1.2.0"
end
12 changes: 6 additions & 6 deletions on_what.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@
# between Rakefile, gemspec, and spec_helper. Not for use in actual library.

def on_travis?
ENV['CI'] == 'true'
ENV["CI"] == "true"
end

def on_jruby?
defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE
defined?(RUBY_ENGINE) && "jruby" == RUBY_ENGINE
end

def on_rubinius?
defined?(RUBY_ENGINE) && 'rbx' == RUBY_ENGINE
defined?(RUBY_ENGINE) && "rbx" == RUBY_ENGINE
end

def on_1_8?
RUBY_VERSION.start_with? '1.8'
RUBY_VERSION.start_with? "1.8"
end

def on_less_than_1_9_3?
RUBY_VERSION < '1.9.3'
RUBY_VERSION < "1.9.3"
end

def on_less_than_2_0?
RUBY_VERSION < '2.0.0'
RUBY_VERSION < "2.0.0"
end
Loading

0 comments on commit 6e37fb8

Please sign in to comment.