rtiss_acts_as_versioned 0.9.1 → 0.9.2

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: d61d281b782f32c19f2d2d8320397df1c77fcee5
4
- data.tar.gz: eddf855f5f3745e383fda5951b1a35d7b909ece3
3
+ metadata.gz: aa58c29bc182ff4d9c7c28aff6f7406e646db23a
4
+ data.tar.gz: 457cd94cb009f45f01d953bba5b1b6ae155e785e
5
5
  SHA512:
6
- metadata.gz: 166c0b23761ac795d5a553fceea218d6a5da8babce39aec8b5ff82c6912715050b6f8d4fa4cd64920da93b3e3009139e84f947fd608473c0428556fc120f8e42
7
- data.tar.gz: 73a2284345a5a0ed47f96aa3f1b91d66254d81d55e56a693cb74f2ae02378cf03d47dd70993d2c6394637ace2f58bf6b824e8776cdfa72f069e22c6792a98150
6
+ metadata.gz: 87fd7d36c67f766c7b47eb3a5467ece59665002942f5fd711a7ddeaf96231479cbfa1c4a14af2f3db76cfaf583e22421547167f62c4f06b1096d8c96670d58ab
7
+ data.tar.gz: 5f2fe84016f43dff43e8d8472b4431b942aa8f5afaa8839c4e306e0a02e0ce1ff3167c304cdbb9853d34e756e94df53d1be66a31565be351156d2d865b8c6986
@@ -20,7 +20,7 @@
20
20
  # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
21
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
 
23
- VERSION = '0.9.1'
23
+ VERSION = '0.9.2'
24
24
 
25
25
  module ActiveRecord #:nodoc:
26
26
  module Acts #:nodoc:
@@ -550,10 +550,10 @@ module ActiveRecord #:nodoc:
550
550
  t.column record_restored_column, :integer, :default => nil
551
551
  end
552
552
 
553
- self.versioned_columns.each do |col|
553
+ self.versioned_columns.each do |col|
554
554
  self.connection.add_column versioned_table_name, col.name, col.type,
555
555
  :limit => col.limit,
556
- :default => col.cast_type.type_cast_from_database(col.default), # convert strings to ruby types
556
+ :default => col.default,
557
557
  :scale => col.scale,
558
558
  :precision => col.precision
559
559
  end
@@ -561,7 +561,7 @@ module ActiveRecord #:nodoc:
561
561
  if type_col = self.columns_hash[inheritance_column]
562
562
  self.connection.add_column versioned_table_name, versioned_inheritance_column, type_col.type,
563
563
  :limit => type_col.limit,
564
- :default => type_col.cast_type.type_cast_from_database(type_col.default), # convert strings to ruby types
564
+ :default => type_col.default,
565
565
  :scale => type_col.scale,
566
566
  :precision => type_col.precision
567
567
  end
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
12
12
  ## If your rubyforge_project name is different, then edit it and comment out
13
13
  ## the sub! line in the Rakefile
14
14
  s.name = 'rtiss_acts_as_versioned'
15
- s.version = '0.9.1'
16
- s.date = '2020-04-23'
15
+ s.version = '0.9.2'
16
+ s.date = '2020-04-27'
17
17
  s.rubyforge_project = 'rtiss_acts_as_versioned'
18
18
  s.summary = "Add simple versioning to ActiveRecord models (TISS version)."
19
19
  s.description = "Add simple versioning to ActiveRecord models (TISS version).
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtiss_acts_as_versioned
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Olson
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-04-23 00:00:00.000000000 Z
13
+ date: 2020-04-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord