reactive-record 0.8.2 → 0.8.3

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: 32c824a576a794dbab1d8726018b1aae835d8d70
4
- data.tar.gz: 15d0d3851ad5ed3bc6fc391b6b425c37d8e455cf
3
+ metadata.gz: a387b62ab09b46142a61fb54ed54cebac1795e33
4
+ data.tar.gz: 090cb05c395d9d9f9526dc68fba218d09b21b21d
5
5
  SHA512:
6
- metadata.gz: dee4ae8c6ee53a0edbbe993d1ef86b2c2eb60b27829b67bda50cacf4d074981e7dbae93004812ca75c9a44a9d8ada3c8436d0a526cc96069edf2607e49060c90
7
- data.tar.gz: dadcfc8afaa837a7e88a94818f748917ec472ab4e4919cab095b0b11615a7a9304b25b514a95f962b0920c1da8e6c64f498a5fd5a8675fd3ca308c1e98f65bc8
6
+ metadata.gz: fab90c0c1a4a58f0ad207ba948ab7422986cd947203458683f0631d841a69fb0776806fdca49c2d3c00e76103fe9b038f9e3aab0f366d3592c0b5792780a32fd
7
+ data.tar.gz: 8eea557948acbe6fe39ee4cdb4142cbca23388b51a8901a13e052e8421f057f28e6af035ac01a8032ef720a7bbe6a49161d2c01885ef664ccda311cbceaee20a
@@ -0,0 +1,14 @@
1
+ begin
2
+ JSON.parse("test")
3
+ rescue Exception => e
4
+ JSON.class_eval do
5
+ class << self
6
+ alias old_parse parse
7
+ end
8
+ def self.parse(*args, &block)
9
+ old_parse *args, &block
10
+ rescue Exception => e
11
+ raise StandardError.new e.message
12
+ end
13
+ end unless e.is_a? StandardError
14
+ end
@@ -1,6 +1,7 @@
1
1
  if RUBY_ENGINE == 'opal'
2
2
 
3
3
  require "reactrb"
4
+ require "json_parse_patch"
4
5
  require "reactive_record/active_record/error"
5
6
  require "reactive_record/server_data_cache"
6
7
  require "reactive_record/active_record/reactive_record/while_loading"
@@ -18,6 +19,7 @@ if RUBY_ENGINE == 'opal'
18
19
  else
19
20
 
20
21
  require "opal"
22
+ require "reactrb"
21
23
  require "reactive_record/version"
22
24
  require "reactive_record/permissions"
23
25
  require "reactive_record/engine"
@@ -1,3 +1,3 @@
1
1
  module ReactiveRecord
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reactive-record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitch VanDuyn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-10 00:00:00.000000000 Z
11
+ date: 2016-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -151,6 +151,7 @@ files:
151
151
  - app/controllers/reactive_record/reactive_record_controller.rb
152
152
  - config/routes.rb
153
153
  - lib/Gemfile
154
+ - lib/json_parse_patch.rb
154
155
  - lib/reactive-record.rb
155
156
  - lib/reactive_record/active_record/aggregations.rb
156
157
  - lib/reactive_record/active_record/associations.rb