tableless 0.1.0 → 0.1.1

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: '0272059bac89e5d77f2b84e1d61e7f9d3ec194dd'
4
- data.tar.gz: 31b94b388335f132911dacc225cb31b742276f6c
3
+ metadata.gz: ac9d1cacf0d6b1a5c66d8463e959cff01bed9714
4
+ data.tar.gz: 3d8103d8994a3ad0c99f3f444ce165307cdbac98
5
5
  SHA512:
6
- metadata.gz: 472ef60952bc3b28f96b0b2f548a571bd9262392da8e14e1dcefba2add5040c9112656fc01f6178cabbccec800cb9b29a8e68242474efd5171ea7f8ce076d7f4
7
- data.tar.gz: 1deffe1d51b3e7c239bdca047be80b2d888c8d7c54b776e0a1b78469ccf44006c089861ff55f3a36895ce7b108d178cf416832d5f60dbe2e213fa1cd848e681a
6
+ metadata.gz: fbef2c16edfcae0f3ef0a9b4e5e026017f9c58b956f743eaa1134981e9c7de530a5e0eec633c204dd82bbcd974ef8d773577f759c11f03558d7c78ad4d24bd1e
7
+ data.tar.gz: 617c8eef9bb61076f033349ca726138692a205cb14f547f15062487d8ecde6cf17b10854573ef1c3c76a58366a83a4129657804dd519aec26cf6682d8dc77a6b
@@ -9,6 +9,10 @@ module Tableless
9
9
  def connection
10
10
  @connection ||= Tableless::DummyAdapter.new nil
11
11
  end
12
+
13
+ def attribute_names
14
+ @attributes ||= attribute_types.keys
15
+ end
12
16
  end
13
17
  end
14
18
  end
@@ -12,7 +12,7 @@ module Tableless
12
12
  end
13
13
  end
14
14
 
15
- def reload(options = nil)
15
+ def reload(*)
16
16
  @attributes = self.class.new.instance_variable_get("@attributes")
17
17
  @new_record = false
18
18
  self
@@ -26,7 +26,7 @@ module Tableless
26
26
  def destroy
27
27
  @_trigger_destroy_callback = true
28
28
  @destroyed = true
29
- freeze
29
+ reload and freeze
30
30
  end
31
31
 
32
32
  private
@@ -1,3 +1,3 @@
1
1
  module Tableless
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tableless
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonian Guveli
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-16 00:00:00.000000000 Z
11
+ date: 2017-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord