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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4233ad83e5671f5fdda79619898709274424d179
4
- data.tar.gz: 8b9ac3bb7cf279cefdc3c9e6f4c0932ebfa55832
3
+ metadata.gz: 61ca0e24783da0ef2f03dec8eba23063c4b7f0d6
4
+ data.tar.gz: 7383fb795afbab2be4aeea86d51d035849b5f5b5
5
5
  SHA512:
6
- metadata.gz: 6dc493c7cc647ed82b523d767e21382993ec363f832549f162db52cc6113972741ae0049481c288c3e135404000559b50e854d8ae3bc32976b7129386e84419e
7
- data.tar.gz: 8d83ed0137f861c1647df1997bfdd81bef41efae93ca64388ba4b086903f4ee3bededde812f16025d7f06f28174e8c6be5c9473e3a9d8b77893ef2f98788df7d
6
+ metadata.gz: bbae75c8e2d4dda127daab052dc872e93d1b146e4bfc9acd3b26d59db175203962ad90ce2ddb6768ed443aed8fa9ab1cd5eb1f41eaf7a2e938bb35118b473aff
7
+ data.tar.gz: c1431935ff4df5d738cb4c5367a86c4e8785b5128186bf912bd7575e3679975ff7494b005bc93cf452bcfc99c2e9bf04b2a97860a50ead1a3e0ca7c34341c0a8
@@ -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
- changed_attributes.keys.select { |attr| attribute_change(attr) }
19
- end
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
- @changed_attributes ||= {}
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
- @new_record = false
19
- @changed_attributes = {}
18
+ changes_applied
19
+ @new_record = nil
20
20
  return true
21
21
  else
22
22
  return false
@@ -1,3 +1,3 @@
1
1
  module TinyDyno
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
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
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-29 00:00:00.000000000 Z
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