tiny_dyno 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tiny_dyno/changeable.rb +7 -6
- data/lib/tiny_dyno/persistable.rb +2 -2
- data/lib/tiny_dyno/version.rb +1 -1
- metadata +2 -3
- data/bin/fastcheck +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61ca0e24783da0ef2f03dec8eba23063c4b7f0d6
|
4
|
+
data.tar.gz: 7383fb795afbab2be4aeea86d51d035849b5f5b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbae75c8e2d4dda127daab052dc872e93d1b146e4bfc9acd3b26d59db175203962ad90ce2ddb6768ed443aed8fa9ab1cd5eb1f41eaf7a2e938bb35118b473aff
|
7
|
+
data.tar.gz: c1431935ff4df5d738cb4c5367a86c4e8785b5128186bf912bd7575e3679975ff7494b005bc93cf452bcfc99c2e9bf04b2a97860a50ead1a3e0ca7c34341c0a8
|
data/lib/tiny_dyno/changeable.rb
CHANGED
@@ -14,9 +14,10 @@ module TinyDyno
|
|
14
14
|
# @return [ Array<String> ] The changed attributes.
|
15
15
|
#
|
16
16
|
# @since 2.4.0
|
17
|
-
def changed
|
18
|
-
|
19
|
-
|
17
|
+
# def changed
|
18
|
+
# binding.pry
|
19
|
+
# changed_attributes.keys.select { |attr| attribute_change(attr) }
|
20
|
+
# end
|
20
21
|
|
21
22
|
# Get the attribute changes.
|
22
23
|
#
|
@@ -26,9 +27,9 @@ module TinyDyno
|
|
26
27
|
# @return [ Hash<String, Object> ] The attribute changes.
|
27
28
|
#
|
28
29
|
# @since 2.4.0
|
29
|
-
def changed_attributes
|
30
|
-
|
31
|
-
end
|
30
|
+
# def changed_attributes
|
31
|
+
# @changed_attributes ||= {}
|
32
|
+
# end
|
32
33
|
|
33
34
|
# Get all the changes for the document.
|
34
35
|
#
|
@@ -15,8 +15,8 @@ module TinyDyno
|
|
15
15
|
def request_put_item(options)
|
16
16
|
request = build_put_item_request(options)
|
17
17
|
if TinyDyno::Adapter.put_item(put_item_request: request)
|
18
|
-
|
19
|
-
@
|
18
|
+
changes_applied
|
19
|
+
@new_record = nil
|
20
20
|
return true
|
21
21
|
else
|
22
22
|
return false
|
data/lib/tiny_dyno/version.rb
CHANGED
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.
|
4
|
+
version: 0.1.5
|
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-06-
|
11
|
+
date: 2015-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -168,7 +168,6 @@ files:
|
|
168
168
|
- README.md
|
169
169
|
- Rakefile
|
170
170
|
- bin/console
|
171
|
-
- bin/fastcheck
|
172
171
|
- bin/setup
|
173
172
|
- bin/tracer
|
174
173
|
- ci/tests.sh
|
data/bin/fastcheck
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'bundler/setup'
|
4
|
-
require 'tiny_dyno'
|
5
|
-
require 'faker'
|
6
|
-
require 'fabrication'
|
7
|
-
|
8
|
-
|
9
|
-
Dir.glob(File.join(ENV['PWD'], 'spec/models/*.rb')).each do |f|
|
10
|
-
p "loading #{ f }"
|
11
|
-
require f
|
12
|
-
end
|
13
|
-
|
14
|
-
Fabrication.configure do |config|
|
15
|
-
config.fabricator_path = 'spec/fabricators'
|
16
|
-
config.sequence_start = 10000
|
17
|
-
end
|
18
|
-
|
19
|
-
Fabrication.manager.load_definitions
|
20
|
-
|
21
|
-
require 'pry'
|
22
|
-
|
23
|
-
Aws.config[:endpoint] = 'http://172.17.42.1:8000'
|
24
|
-
|
25
|
-
Pry.start
|