Skip to content

Commit

Permalink
prepare release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
godfat committed Dec 8, 2014
1 parent a5b5575 commit e0e29c6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
4 changes: 3 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# CHANGES

## rest-firebase 1.0.0 -- ?
## rest-firebase 1.0.0 -- 2014-12-09

### Enhancement

* Encode query in JSON to make using [Firebase queries][] easy.
* Introduced `max_retries`, `retry_exceptions`, and `error_callback` from
latest rest-core (3.5.0+). See README.md for detail.

[Firebase queries]: https://www.firebase.com/docs/rest/guide/retrieving-data.html#section-rest-queries

Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,15 @@ f = RestFirebase.new :site => 'https://SampleChat.firebaseIO-demo.com/',
:log_method => method(:puts),
# `timeout` in seconds
:timeout => 10,
# `max_retries` upon failures
# `max_retries` upon failures. Default is: `0`
:max_retries => 3,
# `retry_exceptions` for which exceptions should retry
# Default is: `[IOError, SystemCallError]`
:retry_exceptions =>
[IOError, SystemCallError, Timeout::Error],
# `error_callback` would get called each time there's
# an exception. Useful for monitoring and logging.
:error_callback => method(:p),
# `auth_ttl` describes when we should refresh the auth
# token. Set it to `false` to disable auto-refreshing.
# The default is 23 hours.
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gemgem.init(dir) do |s|
s.authors = ['Codementor', 'Lin Jen-Shin (godfat)']
s.email = ['help@codementor.io']

%w[rest-core].each{ |g| s.add_runtime_dependency(g, '>=3.3.0') }
%w[rest-core].each{ |g| s.add_runtime_dependency(g, '>=3.5.0') }

# exclude rest-core
s.files.reject!{ |f| f.start_with?('rest-core/') }
Expand Down
10 changes: 5 additions & 5 deletions rest-firebase.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Gem::Specification.new do |s|
s.authors = [
"Codementor",
"Lin Jen-Shin (godfat)"]
s.date = "2014-11-29"
s.date = "2014-12-09"
s.description = "Ruby Firebase REST API client built on top of [rest-core][].\n\n[rest-core]: https://github.com/godfat/rest-core"
s.email = ["help@codementor.io"]
s.files = [
Expand All @@ -31,19 +31,19 @@ Gem::Specification.new do |s|
"test/test_api.rb"]
s.homepage = "https://github.com/CodementorIO/rest-firebase"
s.licenses = ["Apache License 2.0"]
s.rubygems_version = "2.4.4"
s.rubygems_version = "2.4.5"
s.summary = "Ruby Firebase REST API client built on top of [rest-core][]."
s.test_files = ["test/test_api.rb"]

if s.respond_to? :specification_version then
s.specification_version = 4

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<rest-core>, [">= 3.3.0"])
s.add_runtime_dependency(%q<rest-core>, [">= 3.5.0"])
else
s.add_dependency(%q<rest-core>, [">= 3.3.0"])
s.add_dependency(%q<rest-core>, [">= 3.5.0"])
end
else
s.add_dependency(%q<rest-core>, [">= 3.3.0"])
s.add_dependency(%q<rest-core>, [">= 3.5.0"])
end
end

0 comments on commit e0e29c6

Please sign in to comment.