noticed 1.3.0 → 1.3.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
  SHA256:
3
- metadata.gz: 83635d722a21df622c90c4e8ded293206242be768b30b2139c41f13bc4d6712c
4
- data.tar.gz: 707ff4e0e8d09ed4c1fa1b0a7228353de637b070e849e7eb234b58b6fb491e40
3
+ metadata.gz: 723d5a6c315431cfda734c7aca5295724d41ba28c60bce56c0bc5e2c2d8c2aa4
4
+ data.tar.gz: dae18d01e3df0fb584379764adca818ad7891e6197856272da692d349e7de56f
5
5
  SHA512:
6
- metadata.gz: 85ddb6e11858df2b21b4dc098096c78465f7ac3dcb7a804037f3cf1855735b954cccb1cb0ad3227d1ebd89cb98e2e6e5d0138af27e73e52d2feeb35ac85ccdec
7
- data.tar.gz: 80d3485a086e8203397f83bf3269e057ec63c9da89b3016d29a8395499447419336d89e7d01daff911a838159b963423dd45f6161b80c0dfab608f2f4e11c662
6
+ metadata.gz: 060befb7e545c4ed8a9a240545c7618eb33bf259b9e14bcb8f2dca03dc158dcf94cbf95d14df67d722e34e749d49e13e914a720988dd8f7c73ffbb4d87eb717d
7
+ data.tar.gz: 006c05a55f2d158043f0b372f8fba9f7c8ac918551200102aaa6a12f918003905a530fda473b6bb30e9f70dea80a56ad870b5170099ebe8a6ddac8b40a520ad0
data/lib/noticed/model.rb CHANGED
@@ -24,12 +24,16 @@ module Noticed
24
24
  end
25
25
 
26
26
  def noticed_coder
27
+ return Noticed::TextCoder unless table_exists?
28
+
27
29
  case attribute_types["params"].type
28
30
  when :json, :jsonb
29
31
  Noticed::Coder
30
32
  else
31
33
  Noticed::TextCoder
32
34
  end
35
+ rescue ActiveRecord::NoDatabaseError
36
+ Noticed::TextCoder
33
37
  end
34
38
  end
35
39
 
@@ -1,3 +1,3 @@
1
1
  module Noticed
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noticed
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver