Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add block support for Workbook#initialize. This closes #31 #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

artembaikuzin
Copy link

Add block yield inside Workbook#initialize. Usage:

WriteExcel.new('ruby.xls') do |book|
  worksheet = book.add_worksheet
  worksheet.write('A1', 'Hi Excel!')
end

@artembaikuzin
Copy link
Author

Build has failed on ruby 1.9.3:

$ bundle --version
Bundler version 1.7.6
$ gem --version
2.6.8
12.26s$ bundle install --jobs=3 --retry=3
Fetching gem metadata from https://rubygems.org/..............
Resolving dependencies...
Installing docile 1.1.5
Installing rake 12.0.0
Installing power_assert 1.0.1
Installing simplecov-html 0.10.0
NoMethodError: undefined method `spec' for nil:NilClass
Installing json 2.0.3
An error occurred while installing writeexcel (1.0.6), and Bundler cannot
continue.
Make sure that `gem install writeexcel -v '1.0.6'` succeeds before bundling.
The command "eval bundle install --jobs=3 --retry=3 " failed. Retrying, 2 of 3.

Maybe there is some problem with bundler version 1.7.6?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant