Skip to content

Commit

Permalink
Use double quote (") for string literal
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 6, 2015
1 parent 23128b4 commit 5e962be
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions lib/cairo.rb
@@ -1,19 +1,19 @@
# vim: filetype=ruby:expandtab:shiftwidth=2:tabstop=8:softtabstop=2 :

if /mingw|mswin|mswin32/ =~ RUBY_PLATFORM
require 'pathname'
require "pathname"
base_dir = Pathname(File.dirname(__FILE__))
base_dir = base_dir.parent + "vendor" + "local"
if base_dir.exist?
base_dir = base_dir.to_s.gsub(/\//, "\\")
ENV['PATH'] = %w(bin lib).collect do |dir|
ENV["PATH"] = %w(bin lib).collect do |dir|
"#{base_dir}\\#{dir};"
end.join('') + ENV['PATH']
end.join("") + ENV["PATH"]
else
require 'rbconfig'
ENV['PATH'] = %w(bin lib).collect do |dir|
require "rbconfig"
ENV["PATH"] = %w(bin lib).collect do |dir|
"#{RbConfig::CONFIG["prefix"]}\\lib\\GTK\\#{dir};"
end.join('') + ENV['PATH']
end.join("") + ENV["PATH"]
end
end

Expand All @@ -36,24 +36,24 @@ def normalize_const_name(name)
end
end

require 'cairo/color'
require 'cairo/paper'
require "cairo/color"
require "cairo/paper"

begin
major, minor, _ = RUBY_VERSION.split(/\./)
require "#{major}.#{minor}/cairo.so"
rescue LoadError
require 'cairo.so'
require "cairo.so"
end
require 'cairo/constants'
require "cairo/constants"

module Cairo
class << self
undef __add_one_arg_setter

def bindings_version
major, minor, micro, tag = BINDINGS_VERSION
version = [major, minor, micro].join('.')
version = [major, minor, micro].join(".")
version << "-#{tag}" if tag
version
end
Expand Down Expand Up @@ -138,15 +138,15 @@ def merge(other)
end
end

require 'cairo/point'
require 'cairo/colors'
require 'cairo/papers'
require 'cairo/context'
require 'cairo/device'
require 'cairo/surface'
require 'cairo/pattern'
require 'cairo/path'
require 'cairo/region'
require "cairo/point"
require "cairo/colors"
require "cairo/papers"
require "cairo/context"
require "cairo/device"
require "cairo/surface"
require "cairo/pattern"
require "cairo/path"
require "cairo/region"

module Cairo
if const_defined?(:Win32Surface)
Expand Down

0 comments on commit 5e962be

Please sign in to comment.