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 +4 -4
- data/lib/json_parse_patch.rb +14 -0
- data/lib/reactive-record.rb +2 -0
- data/lib/reactive_record/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a387b62ab09b46142a61fb54ed54cebac1795e33
|
4
|
+
data.tar.gz: 090cb05c395d9d9f9526dc68fba218d09b21b21d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/reactive-record.rb
CHANGED
@@ -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"
|
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.
|
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-
|
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
|