returning 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +13 -0
- data/CHANGELOG.md +4 -0
- data/lib/returning/active_record/returning.rb +2 -2
- data/lib/returning/version.rb +1 -1
- data/spec/returning_spec.rb +9 -0
- data/spec/support/ar.rb +5 -0
- metadata +4 -3
data/.travis.yml
ADDED
data/CHANGELOG.md
CHANGED
data/lib/returning/version.rb
CHANGED
data/spec/returning_spec.rb
CHANGED
@@ -28,6 +28,15 @@ describe Returning do
|
|
28
28
|
PostQueryCache.first.update_attributes :name => 'cached'
|
29
29
|
end
|
30
30
|
end
|
31
|
+
|
32
|
+
context 'when validate => false specified' do
|
33
|
+
it 'passes it further' do
|
34
|
+
post = PostWithValidation.first
|
35
|
+
post.name = 'validated name'
|
36
|
+
post.author = nil
|
37
|
+
post.save(:returning => "name", :validate => false).should be_true
|
38
|
+
end
|
39
|
+
end
|
31
40
|
end
|
32
41
|
|
33
42
|
describe '#destroy' do
|
data/spec/support/ar.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: returning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Eugene Pimenov
|
@@ -58,6 +58,7 @@ extra_rdoc_files: []
|
|
58
58
|
|
59
59
|
files:
|
60
60
|
- .gitignore
|
61
|
+
- .travis.yml
|
61
62
|
- CHANGELOG.md
|
62
63
|
- Gemfile
|
63
64
|
- Gemfile3.1
|