preflex 0.3.0 → 0.4.0

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
  SHA256:
3
- metadata.gz: bf7c9c62b41893aef4bc30cfa8ac326da81d6145cefe087c5a78257d5d30626d
4
- data.tar.gz: 35fd69c178b4d77519713c6be5512fe9d222ab79e6f4e0730d7053ae344b8fac
3
+ metadata.gz: 67d3667d77a7d0425f91af0a9ce6fe20c7d43e575c86252ef771c4ab334cf507
4
+ data.tar.gz: 6b388da6b8e195476a0d3bd96959705a7860a7ae490e1a7adb63d3da9a6b1a83
5
5
  SHA512:
6
- metadata.gz: fd4a0feda0d7bde91e950994ee183db91a055d727974b8173da52469e69a1aaeae456cbb926730744f9a0a4e7ac6d989b79e697fa628dd33e8a5fbc16ed32df9
7
- data.tar.gz: 0b9dd44abdc4e679034d8931a6f6a033d2665e3239d1e1a0289b9d508cde89ce36e66cb959d6e1a76a42fc4a4333a5cb50af189a5f865697343e8601af2cc520
6
+ metadata.gz: 1c0d73156f6dd65beb0e57a09cf8f98c1551999f2aab7f107d6f59f22585eba51f434ecf4e16c50ceb32676e261de25476837698dca37a6cb002ea1da62cd37e
7
+ data.tar.gz: 14682868598d2e979abafda7f0e53fd252a93d57ed3d57ccefb99c9c121d03b4205f1d627b786ac5a57256ccac4a117212257dcdccbf9a344db64f858f4bff5d
@@ -31,7 +31,7 @@ module Preflex
31
31
  @preferences.add(name)
32
32
 
33
33
  store_attribute(:data, name, type, default: default)
34
- store_attribute(:data, "#{name}_updated_at_epoch".to_sym, :integer, default: 0)
34
+ store_attribute(:data, "#{name}_updated_at_epoch".to_sym, :big_integer, default: 0)
35
35
  end
36
36
 
37
37
  def self.current_owner(controller_instance)
@@ -67,7 +67,7 @@ module Preflex
67
67
  end
68
68
 
69
69
  def self.ensure_preference_exists(name)
70
- raise "Preference #{name} was not defined. Make sure you define it (e.g. `preference :#{name}, :integer, default: 10`)" unless @preferences&.include?(name)
70
+ raise "Preference #{name} was not defined. Make sure you define it (e.g. `preference :#{name}, :big_integer, default: 10`)" unless @preferences&.include?(name)
71
71
  end
72
72
  end
73
73
  end
@@ -1,3 +1,3 @@
1
1
  module Preflex
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: preflex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owais