Browse Source

Rubocop: Using single-quotes properly

dev
Andy Meneely 11 years ago
parent
commit
e115135d51
  1. 8
      bin/squib
  2. 2
      lib/squib/api/data.rb
  3. 4
      lib/squib/api/image.rb
  4. 2
      lib/squib/api/units.rb
  5. 2
      lib/squib/commands/new.rb
  6. 4
      lib/squib/constants.rb
  7. 6
      lib/squib/deck.rb
  8. 2
      lib/squib/progress.rb
  9. 2
      lib/squib/project_template/deck.rb
  10. 2
      lib/squib/version.rb
  11. 2356
      problems.txt
  12. 2
      samples/colors.rb
  13. 4
      samples/custom_config.rb
  14. 8
      samples/portrait-landscape.rb
  15. 14
      samples/ranges.rb
  16. 4
      samples/save_pdf.rb
  17. 18
      samples/text_options.rb
  18. 4
      spec/api/api_text_spec.rb
  19. 12
      spec/commands/new_spec.rb
  20. 40
      spec/deck_spec.rb
  21. 40
      spec/input_helpers_spec.rb
  22. 6
      spec/samples_run_spec.rb
  23. 34
      squib.gemspec

8
bin/squib

@ -4,12 +4,12 @@ require 'mercenary'
Mercenary.program(:squib) do |p|
p.version Squib::VERSION
p.description "A Ruby DSL for prototyping card games"
p.syntax "squib <subcommand> [options]"
p.description 'A Ruby DSL for prototyping card games'
p.syntax 'squib <subcommand> [options]'
p.command(:new) do |c|
c.syntax "new PATH"
c.description "Creates a new Squib project scaffolding in PATH. Must be a new directory or already empty."
c.syntax 'new PATH'
c.description 'Creates a new Squib project scaffolding in PATH. Must be a new directory or already empty.'
c.action do |args, options|
Squib::Commands::New.new.process(args)

2
lib/squib/api/data.rb

@ -32,7 +32,7 @@ module Squib
(s.first_row+1).upto(s.last_row) do |row|
cell = s.cell(row,col)
# Roo hack for avoiding unnecessary .0's on whole integers
cell = s.excelx_value(row,col) if s.excelx_type(row,col) == [:numeric_or_formula, "General"]
cell = s.excelx_value(row,col) if s.excelx_type(row,col) == [:numeric_or_formula, 'General']
data[header] << cell
end#row
end#col

4
lib/squib/api/image.rb

@ -20,7 +20,7 @@ module Squib
def png(opts = {})
opts = needs(opts, [:range, :files, :x, :y, :alpha, :layout, :blend])
Dir.chdir(@img_dir) do
@progress_bar.start("Loading PNG(s)", opts[:range].size) do |bar|
@progress_bar.start('Loading PNG(s)', opts[:range].size) do |bar|
opts[:range].each do |i|
@cards[i].png(opts[:file][i], opts[:x][i], opts[:y][i], opts[:alpha][i], opts[:blend][i])
bar.increment
@ -51,7 +51,7 @@ module Squib
def svg(opts = {})
p = needs(opts,[:range, :files, :svgid, :force_svgid, :x, :y, :width, :height, :layout, :alpha, :blend])
Dir.chdir(@img_dir) do
@progress_bar.start("Loading SVG(s)", p[:range].size) do |bar|
@progress_bar.start('Loading SVG(s)', p[:range].size) do |bar|
p[:range].each do |i|
unless p[:force_id][i] && p[:id][i].to_s.empty?
@cards[i].svg(p[:file][i], p[:id][i], p[:x][i], p[:y][i],

2
lib/squib/api/units.rb

@ -6,7 +6,7 @@ module Squib
# @example
# inches(2.5) # 750 (for default Deck::dpi of 300)
#
# @param [Decimal] n, the number of inches
# @param n [Decimal], the number of inches
# @return [Decimal] the number of pixels, according to the deck's DPI
# @api public
def inches(n)

2
lib/squib/commands/new.rb

@ -26,7 +26,7 @@ module Squib
def process(args)
raise ArgumentError.new('Please specify a path.') if args.empty?
new_project_path = File.expand_path(args.join(" "), Dir.pwd)
new_project_path = File.expand_path(args.join(' '), Dir.pwd)
template_path = File.expand_path('../project_template', File.dirname(__FILE__))
FileUtils.mkdir_p new_project_path

4
lib/squib/constants.rb

@ -9,7 +9,7 @@ module Squib
:blend => :none,
:color => :black,
:default_font => 'Arial 36',
:dir => "_output",
:dir => '_output',
:ellipsize => :end,
:fill_color => '#0000',
:force_id => false,
@ -23,7 +23,7 @@ module Squib
:justify => false,
:margin => 75,
:markup => false,
:prefix => "card_",
:prefix => 'card_',
:progress_bar => false,
:range => :all,
:rotate => false,

6
lib/squib/deck.rb

@ -42,7 +42,7 @@ module Squib
# @example
# require 'squib'
# Squib::Deck.new do
# text str: 'Hello, World!'
# text str: 'Hello, World!"
# end
#
# @param width [Integer] the width of each card in pixels
@ -126,9 +126,9 @@ module Squib
parent_keys.each do |parent_key|
from_extends = yml[key].merge(recurse_extends(yml, parent_key, visited)) do |key, child_val, parent_val|
if child_val.to_s.strip.start_with?('+=')
parent_val + child_val.sub("+=",'').strip.to_f
parent_val + child_val.sub('+=','').strip.to_f
elsif child_val.to_s.strip.start_with?('-=')
parent_val - child_val.sub("-=",'').strip.to_f
parent_val - child_val.sub('-=','').strip.to_f
else
child_val #child overrides parent when merging, no +=
end

2
lib/squib/progress.rb

@ -23,7 +23,7 @@ module Squib
@enabled = enabled
end
def start(title="", total=100, &block)
def start(title='', total=100, &block)
if @enabled
@bar = ProgressBar.create(title: title, total: total, format: '%t <%B> %p%% %a')
yield(@bar)

2
lib/squib/project_template/deck.rb

@ -1,6 +1,6 @@
require 'squib'
Squib::Deck.new(cards: 3, layout: 'layout.yml') do
text str: "Hello, World!"
text str: 'Hello, World!'
save format: :png
end

2
lib/squib/version.rb

@ -6,5 +6,5 @@ module Squib
# Most of the time this is in the alpha of the next release.
# e.g. v0.0.5a is on its way to becoming v0.0.5
#
VERSION = "0.0.5a"
VERSION = '0.0.5a'
end

2356
problems.txt

File diff suppressed because it is too large Load Diff

2
samples/colors.rb

@ -12,5 +12,5 @@ Squib::Deck.new(width: 825, height: 1125, cards: 1) do
text color: '#ffff000000009999', str: '12-hex (alpha)', x: 50, y: y+=50
text color: :burnt_orange, str: 'Symbols of constants too', x: 50, y: y+=50
save_png prefix: "colors_"
save_png prefix: 'colors_'
end

4
samples/custom_config.rb

@ -6,7 +6,7 @@ Squib::Deck.new(config: 'custom-config.yml') do
background color: :foo
# Hints are turned on in the config file
text str: "The Title", x: 0, y: 78, width: 825,
text str: 'The Title', x: 0, y: 78, width: 825,
font: 'Arial 72', align: :center
# Progress bars are shown for these commands
@ -14,6 +14,6 @@ Squib::Deck.new(config: 'custom-config.yml') do
png file: 'shiny-purse2.png', x: 620, y: 75
svg file: 'spanner2.svg', x: 620, y: 218
save_png prefix: 'custom-config_'
save_pdf file: "custom-config-out.pdf"
save_pdf file: 'custom-config-out.pdf'
end

8
samples/portrait-landscape.rb

@ -8,16 +8,16 @@ require 'squib'
Squib::Deck.new(width: 825, height: 1125) do
background color: '#aaa'
text str: "This is portrait"
text str: 'This is portrait'
save_png prefix: "portrait_"
save_png prefix: 'portrait_'
end
# Money cards are landscape
Squib::Deck.new(width: 1125, height: 825) do
background color: '#aaa'
text str: "This is landscape"
text str: 'This is landscape'
save_png prefix: "landscape_", rotate: true
save_png prefix: 'landscape_', rotate: true
end

14
samples/ranges.rb

@ -17,17 +17,17 @@ Squib::Deck.new(width: 825, height: 1125, cards: 3) do
width: 100, align: :center
# Ranges are inclusive, zero-based
text range: 0..1, str: "Thief and Grifter only!!", x: 25, y:200
text range: 0..1, str: 'Thief and Grifter only!!', x: 25, y:200
# Integers are also allowed
text range: 0, str: "Thief only!", x: 25, y: 250
text range: 0, str: 'Thief only!', x: 25, y: 250
# Negatives go from the back of the deck
text range: -1, str: "Mastermind only!", x: 25, y: 250
text range: -2..-1, str: "Grifter and Mastermind only!", x: 25, y: 650
text range: -1, str: 'Mastermind only!', x: 25, y: 250
text range: -2..-1, str: 'Grifter and Mastermind only!', x: 25, y: 650
# We can use Arrays too!
text range: [0,2], str: "Thief and Mastermind only!!", x: 25, y:300
text range: [0,2], str: 'Thief and Mastermind only!!', x: 25, y:300
# Just about everything in Squib can be given an array that
# corresponds to the deck's cards. This allows for each card to be styled differently
@ -41,13 +41,13 @@ Squib::Deck.new(width: 825, height: 1125, cards: 3) do
# then use a range. No need to memorize IDs, and you can add cards easily
id = {} ; data['name'].each_with_index{ |name,i| id[name] = i}
text range: id['Thief']..id['Grifter'],
str: "Thief through Grifter with id lookup!!",
str: 'Thief through Grifter with id lookup!!',
x:25, y: 400
# Useful idiom: generate arrays from a column called 'type'
type = {}; data['type'].each_with_index{ |t,i| (type[t] ||= []) << i}
text range: type['Thinker'],
str: "Only for Thinkers!",
str: 'Only for Thinkers!',
x:25, y: 500
save prefix: 'ranges_', format: :png

4
samples/save_pdf.rb

@ -7,8 +7,8 @@ Squib::Deck.new(width: 825, height: 1125, cards: 16) do
text str: (1..16).to_a, x: 220, y: 78, font: 'Arial 54'
save_pdf file: "sample-save-pdf.pdf", margin: 75, gap: 5, trim: 37
save_pdf file: 'sample-save-pdf.pdf', margin: 75, gap: 5, trim: 37
#Note that our PNGs still are not trimmed even though the pdf ones are
save_png range: 1, prefix: "save_pdf_"
save_png range: 1, prefix: 'save_pdf_'
end

18
samples/text_options.rb

@ -16,38 +16,38 @@ Squib::Deck.new(width: 825, height: 1125, cards: 3) do
text str: "UTF-8 \u2663", x: 565, y: 150, font: 'Arial weight=900 36'
text str: "Font strings are expressive!", x:65, y: 200,
text str: 'Font strings are expressive!', x:65, y: 200,
font: 'Impact bold italic 36'
text str: "Font strings are expressive!", x:65, y: 300,
text str: 'Font strings are expressive!', x:65, y: 300,
font: 'Arial,Verdana weight=900 style=oblique 36'
text str: "Font string sizes can be overridden per card.", x: 65, y: 350,
text str: 'Font string sizes can be overridden per card.', x: 65, y: 350,
font: 'Impact 36', font_size: [16, 20, 24]
text str: "This text has fixed width, fixed height, center-aligned, middle-valigned, and has a red hint",
text str: 'This text has fixed width, fixed height, center-aligned, middle-valigned, and has a red hint',
hint: :red,
x: 65, y: 400,
width: 300, height: 200,
align: :center, valign: :middle,
font: 'Arial 18'
text str: "Ellipsization!\nThe ultimate question of life, the universe, and everything to life and everything is 42",
text str: 'Ellipsization!\nThe ultimate question of life, the universe, and everything to life and everything is 42',
hint: :green, font: 'Arial 22',
x: 450, y: 400,
width: 280, height: 180,
ellipsize: true
hint text: :cyan
text str: "Text hints are also globally togglable!",
text str: 'Text hints are also globally togglable!',
x: 65, y: 625,
font: 'Arial 22'
hint text: :off
text str: "See? No hint here.",
text str: 'See? No hint here.',
x: 565, y: 625,
font: 'Arial 22'
text str: "Rotated",
text str: 'Rotated',
x: 565, y: 675, angle: 0.1,
font: 'Arial 18'
@ -56,7 +56,7 @@ Squib::Deck.new(width: 825, height: 1125, cards: 3) do
width: inches(2.25), height: inches(1),
justify: true
text str: "<b>Markup</b> is also <i>quite</i> <s>easy</s> awesome",
text str: '<b>Markup</b> is also <i>quite</i> <s>easy</s> awesome',
markup: true,
x: 50, y: 1000,
width: 750, height: 100,

4
spec/api/api_text_spec.rb

@ -3,7 +3,7 @@ require 'squib'
describe Squib::Deck, '#text' do
context "fonts" do
context 'fonts' do
it "should use the default font when #text and #set_font don't specify" do
card = instance_double(Squib::Card)
expect(card).to receive(:text).with('a', 'Arial 36',
@ -27,7 +27,7 @@ describe Squib::Deck, '#text' do
end
end
it "should use the specified font no matter what" do
it 'should use the specified font no matter what' do
card = instance_double(Squib::Card)
expect(card).to receive(:text).with('a', 'Arial 18',
anything, anything, anything, anything,anything,anything,anything, anything, anything,anything, anything, anything, anything, anything, anything

12
spec/commands/new_spec.rb

@ -3,7 +3,7 @@ require 'squib'
describe Squib::Commands::New do
describe "#process" do
describe '#process' do
before(:all) do
@old_stderr = $stderr
$stderr = StringIO.new
@ -16,27 +16,27 @@ describe Squib::Commands::New do
@cmd = Squib::Commands::New.new
end
it "raises an error if no directory was specified" do
it 'raises an error if no directory was specified' do
expect{@cmd.process([])}.to raise_error(ArgumentError, 'Please specify a path.')
end
it "creates a new template on an fresh directory" do
it 'creates a new template on an fresh directory' do
@cmd.process(['foo'])
expect(File.exists?('foo/deck.rb')).to be true
end
it "creates a new template on an empty directory" do
it 'creates a new template on an empty directory' do
Dir.mkdir('foo')
@cmd.process(['foo'])
expect(File.exists?('foo/deck.rb')).to be true
end
it "does not create a new template on an empty " do
it 'does not create a new template on an empty ' do
Dir.mkdir('foo')
File.new('foo/somefile.txt', 'w+')
@cmd.process(['foo'])
$stderr.rewind
expect($stderr.string.chomp).to end_with " exists and is not empty. Doing nothing and quitting."
expect($stderr.string.chomp).to end_with ' exists and is not empty. Doing nothing and quitting.'
end
after(:all) do

40
spec/deck_spec.rb

@ -3,15 +3,15 @@ require 'squib/deck'
describe Squib::Deck do
it "initializes with default parameters" do
it 'initializes with default parameters' do
d = Squib::Deck.new
expect(d.width).to eq(825)
expect(d.height).to eq(1125)
expect(d.cards.size).to eq(1)
end
context "in dealing with ranges" do
it "calls text on all cards by default" do
context 'in dealing with ranges' do
it 'calls text on all cards by default' do
card1 = instance_double(Squib::Card)
card2 = instance_double(Squib::Card)
expect(card1).to receive(:text).once
@ -22,7 +22,7 @@ describe Squib::Deck do
end
end
it "calls text on some cards with an integer" do
it 'calls text on some cards with an integer' do
card1 = instance_double(Squib::Card)
card2 = instance_double(Squib::Card)
expect(card2).to receive(:text).once
@ -32,7 +32,7 @@ describe Squib::Deck do
end
end
it "calls text with ranges" do
it 'calls text with ranges' do
card1 = instance_double(Squib::Card)
card2 = instance_double(Squib::Card)
card3 = instance_double(Squib::Card)
@ -45,22 +45,22 @@ describe Squib::Deck do
end
end
context "#load_layout" do
context '#load_layout' do
it "loads a normal layout with no extends" do
it 'loads a normal layout with no extends' do
d = Squib::Deck.new(layout: test_file('no-extends.yml'))
expect(d.layout).to \
eq({'frame' => {
'x' => 38,
'valign' => :middle,
'str' => "blah",
'font' => "Mr. Font",
'str' => 'blah',
'font' => 'Mr. Font',
}
}
)
end
it "loads with a single extends" do
it 'loads with a single extends' do
d = Squib::Deck.new(layout: test_file('single-extends.yml'))
expect(d.layout).to \
eq({'frame' => {
@ -77,7 +77,7 @@ describe Squib::Deck do
)
end
it "applies the extends regardless of order" do
it 'applies the extends regardless of order' do
d = Squib::Deck.new(layout: test_file('pre-extends.yml'))
expect(d.layout).to \
eq({'frame' => {
@ -94,7 +94,7 @@ describe Squib::Deck do
)
end
it "applies the single-level extends multiple times" do
it 'applies the single-level extends multiple times' do
d = Squib::Deck.new(layout: test_file('single-level-multi-extends.yml'))
expect(d.layout).to \
eq({'frame' => {
@ -117,7 +117,7 @@ describe Squib::Deck do
)
end
it "applies multiple extends in a single rule" do
it 'applies multiple extends in a single rule' do
d = Squib::Deck.new(layout: test_file('multi-extends-single-entry.yml'))
expect(d.layout).to \
eq({'aunt' => {
@ -142,7 +142,7 @@ describe Squib::Deck do
)
end
it "applies multi-level extends" do
it 'applies multi-level extends' do
d = Squib::Deck.new(layout: test_file('multi-level-extends.yml'))
expect(d.layout).to \
eq({'frame' => {
@ -165,22 +165,22 @@ describe Squib::Deck do
)
end
it "fails on a self-circular extends" do
it 'fails on a self-circular extends' do
file = test_file('self-circular-extends.yml')
expect { Squib::Deck.new(layout: file) }.to \
raise_error(RuntimeError, "Invalid layout: circular extends with 'a'")
raise_error(RuntimeError, 'Invalid layout: circular extends with \'a\'')
end
it "fails on a easy-circular extends" do
it 'fails on a easy-circular extends' do
file = test_file('easy-circular-extends.yml')
expect { Squib::Deck.new(layout: file) }.to \
raise_error(RuntimeError, "Invalid layout: circular extends with 'a'")
raise_error(RuntimeError, 'Invalid layout: circular extends with \'a\'')
end
it "hard on a easy-circular extends" do
it 'hard on a easy-circular extends' do
file = test_file('hard-circular-extends.yml')
expect { Squib::Deck.new(layout: file) }.to \
raise_error(RuntimeError, "Invalid layout: circular extends with 'a'")
raise_error(RuntimeError, 'Invalid layout: circular extends with \'a\'')
end
end

40
spec/input_helpers_spec.rb

@ -28,7 +28,7 @@ describe Squib::InputHelpers do
end
context '#layoutify' do
it "warns on the logger when the layout doesn't exist" do
it 'warns on the logger when the layout does not exist' do
@old_logger = Squib.logger
Squib.logger = instance_double(Logger)
expect(Squib.logger).to receive(:warn).with("Layout entry 'foo' does not exist.").twice
@ -37,23 +37,23 @@ describe Squib::InputHelpers do
Squib.logger = @old_logger
end
it "applies the layout in a normal situation" do
it 'applies the layout in a normal situation' do
expect(@deck.send(:layoutify, {layout: :blah})).to \
eq({layout: [:blah, :blah], x: [25, 25]})
end
it "applies two different layouts for two different situations" do
it 'applies two different layouts for two different situations' do
expect(@deck.send(:layoutify, {layout: ['blah', 'apples']})).to \
eq({layout: ['blah','apples'], x: [25, 35]})
end
it "still has nils when not applied two different layouts differ in structure" do
it 'still has nils when not applied two different layouts differ in structure' do
expect(@deck.send(:layoutify, {layout: ['apples', 'oranges']})).to \
eq({layout: ['apples','oranges'], x: [35], y: [nil, 45]})
#...this might behavior that is hard to debug for users. Trying to come up with a warning or something...
end
it "also looks up based on strings" do
it 'also looks up based on strings' do
expect(@deck.send(:layoutify, {layout: 'blah'})).to \
eq({layout: ['blah','blah'], x: [25, 25]})
end
@ -61,54 +61,54 @@ describe Squib::InputHelpers do
end
context '#rangeify' do
it "must be within the card size range" do
it 'must be within the card size range' do
expect{@deck.send(:rangeify, {range: 2..3})}.to \
raise_error(ArgumentError, '2..3 is outside of deck range of 0..1')
end
it "cannot be nil" do
it 'cannot be nil' do
expect{@deck.send(:rangeify, {range: nil})}.to \
raise_error(RuntimeError, 'Range cannot be nil')
end
it "defaults to a range of all cards if :all" do
it 'defaults to a range of all cards if :all' do
expect(@deck.send(:rangeify, {range: :all})).to eq({range: 0..1})
end
end
context "#fileify" do
it "should throw an error if the file doesn't exist" do
context '#fileify' do
it 'should throw an error if the file does not exist' do
expect{@deck.send(:fileify, {file: 'nonexist.txt'}, true)}.to \
raise_error(RuntimeError,"File #{File.expand_path('nonexist.txt')} does not exist!")
end
end
context "#dir" do
it "should raise an error if the directory does not exist" do
context '#dir' do
it 'should raise an error if the directory does not exist' do
expect{@deck.send(:dirify, {dir: 'nonexist'}, :dir, false)}.to \
raise_error(RuntimeError,"'nonexist' does not exist!")
end
end
context "#colorify" do
it "should parse if nillable" do
context '#colorify' do
it 'should parse if nillable' do
color = @deck.send(:colorify, {color: ['#fff']}, true)[:color]
expect(color.to_a[0].to_a).to eq([1.0, 1.0, 1.0, 1.0])
end
it "raises and error if the color doesn't exist" do
it 'raises and error if the color does not exist' do
expect{ @deck.send(:colorify, {color: [:nonexist]}, false) }.to \
raise_error(ArgumentError, "unknown color name: nonexist")
raise_error(ArgumentError, 'unknown color name: nonexist')
end
it "pulls from config's custom colors" do
@deck.custom_colors['foo'] = "#abc"
it 'pulls from custom colors in the config' do
@deck.custom_colors['foo'] = '#abc'
expect(@deck.send(:colorify, {color: [:foo]}, false)[:color][0].to_s).to \
eq('#AABBCCFF')
end
it "pulls from config's custom colors even when a string" do
@deck.custom_colors['foo'] = "#abc"
it 'pulls custom colors even when a string' do
@deck.custom_colors['foo'] = '#abc'
expect(@deck.send(:colorify, {color: ['foo']}, false)[:color][0].to_s).to \
eq('#AABBCCFF')
end

6
spec/samples_run_spec.rb

@ -4,9 +4,9 @@ require 'pp'
describe Squib do
context "all samples run without error" do
it "should execute with no errors" do
p = double("ProgressBar")
context 'all samples run without error' do
it 'should execute with no errors' do
p = double('ProgressBar')
allow(ProgressBar).to receive(:create).and_return(Squib::DoNothing.new)
samples = File.expand_path('../samples', File.dirname(__FILE__))
Dir["#{samples}/**/*.rb"].each do |sample|

34
squib.gemspec

@ -5,27 +5,27 @@ require 'squib/version'
Gem::Specification.new do |spec|
spec.specification_version = 2 if spec.respond_to? :specification_version=
spec.required_rubygems_version = Gem::Requirement.new(">= 0") if spec.respond_to? :required_rubygems_version=
spec.required_rubygems_version = Gem::Requirement.new('>= 0') if spec.respond_to? :required_rubygems_version=
spec.rubygems_version = '2.2.2'
spec.required_ruby_version = '>= 2.0.0'
spec.name = "squib"
spec.name = 'squib'
spec.version = Squib::VERSION
spec.license = "MIT"
spec.license = 'MIT'
spec.summary = %q{A Ruby DSL for prototyping card games}
spec.description = %q{Squib is a Ruby DSL for prototyping card games}
spec.authors = ["Andy Meneely"]
spec.email = ["playconfidencegames@gmail.com"]
spec.homepage = "https://github.com/andymeneely/squib"
spec.authors = ['Andy Meneely']
spec.email = ['playconfidencegames@gmail.com']
spec.homepage = 'https://github.com/andymeneely/squib'
spec.rdoc_options = ["--charset=UTF-8"]
spec.extra_rdoc_files = %w[README.md LICENSE.txt]
spec.rdoc_options = ['--charset=UTF-8']
spec.extra_rdoc_files = %w(README.md LICENSE.txt)
spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.require_paths = ['lib']
spec.add_runtime_dependency 'cairo', '~> 1.12.9'
spec.add_runtime_dependency 'pango', '~> 2.2.0'
@ -34,13 +34,13 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency 'mercenary', '~> 0.3.4'
spec.add_runtime_dependency 'ruby-progressbar', '~> 1.6'
spec.add_development_dependency "bundler", "~> 1.6"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "rspec-mocks", "~> 3.0"
spec.add_development_dependency "redcarpet", '~> 3.1.2'
spec.add_development_dependency "github-markup", '~> 1.3'
spec.add_development_dependency "yard"
spec.add_development_dependency "coveralls"
spec.add_development_dependency 'bundler', '~> 1.6'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'rspec-mocks', '~> 3.0'
spec.add_development_dependency 'redcarpet', '~> 3.1.2'
spec.add_development_dependency 'github-markup', '~> 1.3'
spec.add_development_dependency 'yard'
spec.add_development_dependency 'coveralls'
end

Loading…
Cancel
Save