Skip to content

Commit

Permalink
Merge pull request #5 from dmtroyer/update_gems
Browse files Browse the repository at this point in the history
All gem dependencies are updated to the latest versions.
  • Loading branch information
bspaulding committed Feb 13, 2014
2 parents a1f3ade + 0545fe2 commit 11845cb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
@@ -1,10 +1,8 @@
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.0
- ree
- rbx
- jruby
notifications:
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -2,7 +2,7 @@
require 'bundler'
Bundler::GemHelper.install_tasks

testing_rubies = %w[1.8.7 1.9.2 ree ree-1.8.7-2010.01 jruby rbx]
testing_rubies = %w[1.9.2 1.9.3 2.0.0 2.1.0 jruby rbx]

task :default => :test

Expand Down Expand Up @@ -41,7 +41,7 @@ namespace :install do

puts '- Installing bundler...'
system "rvm #{ruby} gem install --no-rdoc --no-ri bundler"

puts '- Installing bundle...'
system "rvm #{ruby} exec bundle install"
end
Expand Down
6 changes: 3 additions & 3 deletions lib/sheets/parsers/nokogiri_ods_parser.rb
@@ -1,11 +1,11 @@
require 'nokogiri'
require 'zip/zip'
require 'zip'

class Sheets::Parsers::NokogiriOdsParser < Sheets::Parsers::Base
parses :ods

def to_array
rows.collect do |row|
rows.collect do |row|
table_cells = []
row.xpath('table:table-cell').each do |cell|
repeat = cell.attributes["number-columns-repeated"].text.to_i if cell.attributes["number-columns-repeated"]
Expand All @@ -21,7 +21,7 @@ def to_array

# returns the zipfile object for the document
def zipfile
@zipfile ||= Zip::ZipFile.open( @file_path )
@zipfile ||= Zip::File.open( @file_path )
end

def content_doc
Expand Down
4 changes: 2 additions & 2 deletions lib/sheets/parsers/nokogiri_xlsx_parser.rb
@@ -1,5 +1,5 @@
require 'nokogiri'
require 'zip/zip'
require 'zip'

class Sheets::Parsers::NokogiriXlsxParser < Sheets::Parsers::Base
parses :xlsx
Expand Down Expand Up @@ -44,7 +44,7 @@ def value_for_cell_type(cell_value, type)

# returns the zipfile object for the document
def zipfile
@zipfile ||= Zip::ZipFile.open( @file_path )
@zipfile ||= Zip::File.open( @file_path )
end

# returns a nokogiri document for the workbook
Expand Down
8 changes: 4 additions & 4 deletions sheets.gemspec
Expand Up @@ -14,11 +14,11 @@ Gem::Specification.new do |s|

s.rubyforge_project = "sheets"

s.add_dependency('spreadsheet', '~>0.6.5.2')
s.add_dependency('rubyzip', '~>0.9.4')
s.add_dependency('nokogiri', '~>1.4.3.1')
s.add_dependency('spreadsheet', '~>0.9.7')
s.add_dependency('rubyzip', '~>1.1.0')
s.add_dependency('nokogiri', '~>1.6.1')

s.add_development_dependency('rake', '0.9.2')
s.add_development_dependency('rake', '~>10.1.1')
s.add_development_dependency('simplecov')

s.files = `git ls-files`.split("\n")
Expand Down

0 comments on commit 11845cb

Please sign in to comment.