Skip to content

Commit

Permalink
Don't require rubygems or ruby 1.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
Empact committed Mar 14, 2013
1 parent b132102 commit 311020d
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 29 deletions.
1 change: 0 additions & 1 deletion examples/roo_soap_server.rb
@@ -1,4 +1,3 @@
require 'rubygems'
require 'roo'
require 'soap/rpc/standaloneServer'

Expand Down
3 changes: 1 addition & 2 deletions examples/write_me.rb
@@ -1,8 +1,7 @@
require 'rubygems'
require 'roo'

#-- create a new spreadsheet within your google-spreadsheets and paste
#-- the 'key' parameter in the spreadsheet URL
#-- the 'key' parameter in the spreadsheet URL
MAXTRIES = 1000
print "what's your name? "
my_name = gets.chomp
Expand Down
1 change: 0 additions & 1 deletion lib/roo/csv.rb
@@ -1,4 +1,3 @@
require 'rubygems'
require 'csv'
require 'time'

Expand Down
1 change: 0 additions & 1 deletion lib/roo/excel.rb
@@ -1,4 +1,3 @@
require 'rubygems'
require 'spreadsheet'
#require 'lib/roo/generic_spreadsheet'
#require 'parseexcel'
Expand Down
8 changes: 0 additions & 8 deletions lib/roo/excelx.rb
Expand Up @@ -2,14 +2,6 @@
require 'date'
require 'nokogiri'

unless ''.respond_to?(:end_with?)
class String
def end_with?(str)
self[-str.length,str.length] == str
end
end
end

class Roo::Excelx < Roo::GenericSpreadsheet
module Format
EXCEPTIONAL_FORMATS = {
Expand Down
1 change: 0 additions & 1 deletion lib/roo/openoffice.rb
@@ -1,4 +1,3 @@
require 'rubygems'
require 'fileutils'
require 'date'
require 'nokogiri'
Expand Down
1 change: 0 additions & 1 deletion test/rm_sub_test.rb
@@ -1,5 +1,4 @@
# Loeschen von Dateien, wenn mit Excel geoeffnet
require 'rubygems'
require 'roo'

oo = Excel.new("tmp.xls")
Expand Down
13 changes: 0 additions & 13 deletions test/rm_test.rb
@@ -1,16 +1,3 @@
=begin
require 'rubygems'
require 'roo'
oo = Excel.new("tmp.xls")
oo.default_sheet = oo.sheets.first
oo.first_row.upto(oo.last_row) do |row|
oo.first_column.upto(oo.last_column) do |col|
p oo.cell(row,col)
end
end
FileUtils.rm_f("tmp.xls", {:verbose => true, :force => true})
=end
require 'spreadsheet'

book = Spreadsheet.open 'tmp.xls'
Expand Down
1 change: 0 additions & 1 deletion test/test_helper.rb
@@ -1,5 +1,4 @@
# require deps
require 'rubygems'
require 'tmpdir'
require 'test/unit'
require 'shoulda'
Expand Down

0 comments on commit 311020d

Please sign in to comment.