groonga-client-model 0.9.6 → 0.9.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69aeb3216e670c96bb30d59565e4aab119267d6e
4
- data.tar.gz: c30ae60d4a6ae6dc644aa01b3db6079dc8bb257f
3
+ metadata.gz: e60d9e2cb2de188c358e68043eeb3a4885bc877e
4
+ data.tar.gz: 9888eb6b1f00d2e4b026dbaddcb8ff46aa965dcf
5
5
  SHA512:
6
- metadata.gz: 6849d586cfa69b14047ddccc392db40cb4545a232d69b8df7d59163549d3ac04948064aa6b07cf6b2333a851143f8c444b644e7fb17472c26a055913dd0bc02b
7
- data.tar.gz: f765054cdca37447290b1d5dfbd05a6406df40a4b30af4a7c187e406f99aec18b8a99239563ab9a578b342512e87f1789e4c4f81ada50ec438dd96babc5b722b
6
+ metadata.gz: 18fe31fcdfd77ffd3b79ba4eb7fe6806def2dcb20cdadc85e69fffcee425b418ef58564baeea9f0638e85a79a0f30155b6a4b4552f1b46bf351b9fa669a3e722
7
+ data.tar.gz: 196b5e01f266605bb165968475ac870c6cfd9ddc81b36a675dbab917dba75382562d94e4d82d68311345f5ecf6a4cc3d67fd596e01c2a8254a80d49669e26bc8
data/doc/text/news.md CHANGED
@@ -1,13 +1,17 @@
1
1
  # NEWS
2
2
 
3
- ## 0.9.6 - 2016-01-12
3
+ ## 0.9.7 - 2016-01-20
4
4
 
5
5
  ### Improvements
6
6
 
7
- * Supported logging.
7
+ * Supported Ruby 2.0.0 again.
8
+
9
+ ## 0.9.6 - 2016-01-12
8
10
 
9
11
  ### Improvements
10
12
 
13
+ * Supported logging.
14
+
11
15
  ## 0.9.5 - 2016-12-27
12
16
 
13
17
  ### Improvements
@@ -198,7 +198,7 @@ module GroongaClientModel
198
198
  end
199
199
 
200
200
  private
201
- def save_raw(validate:)
201
+ def save_raw(validate: true)
202
202
  if validate
203
203
  if valid?
204
204
  upsert(validate: true)
@@ -227,7 +227,7 @@ module GroongaClientModel
227
227
  freeze
228
228
  end
229
229
 
230
- def upsert(validate:)
230
+ def upsert(validate: true)
231
231
  if new_record?
232
232
  run_callbacks(:create) do
233
233
  upsert_raw(validate: validate)
@@ -239,7 +239,7 @@ module GroongaClientModel
239
239
  end
240
240
  end
241
241
 
242
- def upsert_raw(validate:)
242
+ def upsert_raw(validate: true)
243
243
  return false unless upsert_sub_records(validate: validate)
244
244
 
245
245
  Client.open do |client|
@@ -280,7 +280,7 @@ module GroongaClientModel
280
280
  end
281
281
  end
282
282
 
283
- def upsert_sub_records(validate:)
283
+ def upsert_sub_records(validate: true)
284
284
  attributes.each do |name, value|
285
285
  return false unless upsert_sub_record(value, validate)
286
286
  end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2016 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2016-2017 Kouhei Sutou <kou@clear-code.com>
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -15,5 +15,5 @@
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
  module GroongaClientModel
18
- VERSION = "0.9.6"
18
+ VERSION = "0.9.7"
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groonga-client-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-12 00:00:00.000000000 Z
11
+ date: 2017-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: groonga-client