Merge pull request #23 from github/v023

v0.2.3
This commit is contained in:
Miguel Fernández 2017-09-20 17:24:15 +02:00 коммит произвёл GitHub
Родитель 0bf11a5b56 8d5d22d352
Коммит 6781dd5272
4 изменённых файлов: 14 добавлений и 3 удалений

Просмотреть файл

@ -1,5 +1,15 @@
# Changelog
## 0.2.3
Additions
* github-ds does not use `blank?` anymore hence not depending on `active_support/core_ext/object/blank` https://github.com/github/github-ds/commit/a22c397eaaa00bb441fb4a0ecdf3e371daa9001a
Fixes
* `ActiveRecord::Base.default_timezone` is not unintentionally set to `nil` https://github.com/github/github-ds/pull/22
## 0.2.2
Additions

Просмотреть файл

@ -208,6 +208,7 @@ Nothing currently on our radar other than continued maintenance. Have a big idea
|---|---|
| ![@charliesome](https://avatars3.githubusercontent.com/u/179065?s=64) | [@charliesome](https://github.com/charliesome) |
| ![@jnunemaker](https://avatars3.githubusercontent.com/u/235?s=64) | [@jnunemaker](https://github.com/jnunemaker) |
| ![@miguelff](https://avatars3.githubusercontent.com/u/210307?s=64) | [@miguelff](https://github.com/miguelff) |
| ![@zerowidth](https://avatars3.githubusercontent.com/u/3999?s=64) | [@zerowidth](https://github.com/zerowidth) |
## License

Просмотреть файл

@ -1,5 +1,5 @@
module GitHub
module DS
VERSION = "0.2.2"
VERSION = "0.2.3"
end
end

Просмотреть файл

@ -149,7 +149,7 @@ module GitHub
@connection = @binds.delete :connection
@force_tz = @binds.delete :force_timezone
add query if !query.nil?
add query
end
# Public: Add a chunk of SQL to the query. Any ":keyword" tokens in the SQL
@ -163,7 +163,7 @@ module GitHub
# Returns self.
# Raises GitHub::SQL::BadBind for unknown keyword tokens.
def add(sql, extras = nil)
return self if sql.blank?
return self if sql.nil? || sql.empty?
query << " " unless query.empty?