Skip to content

Commit

Permalink
Bumped version and fixed Set issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
nalanj committed Sep 6, 2009
1 parent ef30e37 commit cf4bd18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion google-spreadsheet-ruby.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = %q{google-spreadsheet-ruby}
s.version = "0.0.7"
s.version = "0.0.8"
s.authors = ["Hiroshi Ichikawa"]
s.date = %q{2009-07-13}
s.description = %q{This is a library to read/write Google Spreadsheet.}
Expand Down
6 changes: 3 additions & 3 deletions lib/google_spreadsheet.rb
Expand Up @@ -483,6 +483,7 @@ def save()
# Updates cell values using batch operation.
cells = @modified.size
current_cell = 0
modified_cells = @modified.to_a

while current_cell < cells
batch_count = 0
Expand All @@ -493,8 +494,8 @@ def save()
<id>#{h(@cells_feed_url)}</id>
EOS

until batch_count >= 250
row,col = @modified[current_cell]
until batch_count > 250
row,col = modified_cells[current_cell]
value = @cells[[row, col]]
entry = cell_entries[[row, col]]
id = entry.search("id").text
Expand All @@ -510,7 +511,6 @@ def save()
</entry>
EOS

# close each batch out at 500 cells
current_cell +=1
batch_count += 1
end
Expand Down

0 comments on commit cf4bd18

Please sign in to comment.