tiny_dyno 0.1.13 → 0.1.14

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: f25a0b7a5a279763fa26f9086fb37804bb105e46
4
- data.tar.gz: 0cd3addc209d7de1782c736aee2334a9070ef785
3
+ metadata.gz: 34dfc8638dbb9417e82675a9b0dc8ecb2c636a60
4
+ data.tar.gz: 0cee943a4257ba28bc6ce1b365164b49e27a483d
5
5
  SHA512:
6
- metadata.gz: 9206f02ceb2088dd6d95c8a7539adbbd0541f668ccf4b40f06097aff3238cdb95e265efa4755d224f9cb19f0efbe63784f5e3c869958c0ea8fa846d8fd4f6471
7
- data.tar.gz: 595bb39ad21dbd37ac20e8e883320dfde768bb75443b889a0323a5dcbaa24f760a2c070a2cfab48093b0d23d1a265e5247287a103886823d7d802c7bb8562da6
6
+ metadata.gz: 8d7dd46739db49abe095e65e25f9100ccc37dec9025fc3e6a8e6b43d19f35675992126e1b6f7089c3f1390ab8f7352752513311457b92b8b6fd0a3eee2cccbdd
7
+ data.tar.gz: e1b549298a2c1bcbb7b5770dc85ade9ee92d9e11fd5ac188d4a08676132587415c04363aadb4000216810a661af0f91782a8106a98cb9b86a5846225c91cc011
data/.gitignore CHANGED
File without changes
data/.rspec CHANGED
File without changes
data/.ruby-version CHANGED
File without changes
data/.simplecov CHANGED
File without changes
data/.travis.yml CHANGED
File without changes
data/CHANGES.md CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/Guardfile CHANGED
File without changes
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
@@ -15,7 +15,7 @@ module TinyDyno
15
15
  if resp.respond_to?(:item)
16
16
  resp.item
17
17
  else
18
- false
18
+ nil
19
19
  end
20
20
  end
21
21
 
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,7 @@
1
+ module TinyDyno
2
+ module ConditionExpressions
3
+ extend ActiveSupport::Concern
4
+
5
+
6
+ end
7
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -96,7 +96,11 @@ module TinyDyno
96
96
 
97
97
  def create(attributes = nil, &block)
98
98
  doc = new(attributes, &block)
99
- doc.save
99
+ if doc.save
100
+ doc
101
+ else
102
+ nil
103
+ end
100
104
  end
101
105
 
102
106
  private
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module TinyDyno
2
- VERSION = '0.1.13'
2
+ VERSION = '0.1.14'
3
3
  end
data/lib/tiny_dyno.rb CHANGED
File without changes
data/tiny_dyno.gemspec CHANGED
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_dyno
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Gerschner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-06 00:00:00.000000000 Z
11
+ date: 2015-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -180,6 +180,7 @@ files:
180
180
  - lib/tiny_dyno/attributes.rb
181
181
  - lib/tiny_dyno/attributes/readonly.rb
182
182
  - lib/tiny_dyno/changeable.rb
183
+ - lib/tiny_dyno/condition_expressions.rb
183
184
  - lib/tiny_dyno/document.rb
184
185
  - lib/tiny_dyno/document_composition.rb
185
186
  - lib/tiny_dyno/errors.rb