forest_liana 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/serializers/forest_liana/serializer_factory.rb +2 -0
- data/lib/forest_liana/{bootstraper.rb → bootstrapper.rb} +1 -1
- data/lib/forest_liana/engine.rb +3 -3
- data/lib/forest_liana/version.rb +1 -1
- data/lib/tasks/display_apimap.rake +2 -2
- data/lib/tasks/send_apimap.rake +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f7f04b55b21edd6ce266d0f9544c503f2919c5e
|
4
|
+
data.tar.gz: 71d3ce9b89d3bd665b6d3866b63d9bd68c60688f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6441e31e56bf720e0eaec5bc02d7456f7d6a85286ed58c2adf462bd90d4d4b6b35dae8405f2069e4b5537eadee1ab49079ec0d6cace57d2a493dc11f3547740
|
7
|
+
data.tar.gz: 3366a8454f3961f4f7c4bb8ba675b3c20f0a337967401e4fedc2a1b3ec88f0697011567c814d2f492e172fad2cd9513e3f0c0fdf3b24327dcceec0f0162956d1
|
@@ -6,6 +6,8 @@ module ForestLiana
|
|
6
6
|
def self.define_serializer(active_record_class, serializer)
|
7
7
|
serializer_name = self.build_serializer_name(active_record_class)
|
8
8
|
|
9
|
+
return if ForestLiana::UserSpace.const_defined?(serializer_name)
|
10
|
+
|
9
11
|
# NOTICE: Create the serializer in the UserSpace to avoid conflicts with
|
10
12
|
# serializer created from integrations, actions, segments, etc.
|
11
13
|
ForestLiana::UserSpace.const_set(serializer_name, serializer)
|
data/lib/forest_liana/engine.rb
CHANGED
@@ -5,7 +5,7 @@ require 'net/http'
|
|
5
5
|
require 'useragent'
|
6
6
|
require 'jwt'
|
7
7
|
require 'bcrypt'
|
8
|
-
require_relative '
|
8
|
+
require_relative 'bootstrapper'
|
9
9
|
require_relative 'collection'
|
10
10
|
|
11
11
|
module ForestLiana
|
@@ -72,11 +72,11 @@ module ForestLiana
|
|
72
72
|
# NOTICE: Do not run the code below on rails g forest_liana:install.
|
73
73
|
if ForestLiana.env_secret || ForestLiana.secret_key
|
74
74
|
unless rake?
|
75
|
-
|
75
|
+
bootstrapper = Bootstrapper.new
|
76
76
|
if ENV['FOREST_DEACTIVATE_AUTOMATIC_APIMAP']
|
77
77
|
FOREST_LOGGER.warn "DEPRECATION WARNING: FOREST_DEACTIVATE_AUTOMATIC_APIMAP option has been renamed. Please use FOREST_DISABLE_AUTO_SCHEMA_APPLY instead."
|
78
78
|
end
|
79
|
-
|
79
|
+
bootstrapper.synchronize unless ENV['FOREST_DEACTIVATE_AUTOMATIC_APIMAP'] || ENV['FOREST_DISABLE_AUTO_SCHEMA_APPLY'] || Rails.env.test?
|
80
80
|
end
|
81
81
|
end
|
82
82
|
end
|
data/lib/forest_liana/version.rb
CHANGED
@@ -2,7 +2,7 @@ namespace :forest do
|
|
2
2
|
desc "Display the current Forest Apimap version"
|
3
3
|
task(:display_apimap).clear
|
4
4
|
task display_apimap: :environment do
|
5
|
-
|
6
|
-
|
5
|
+
bootstrapper = ForestLiana::Bootstrapper.new
|
6
|
+
bootstrapper.display_apimap
|
7
7
|
end
|
8
8
|
end
|
data/lib/tasks/send_apimap.rake
CHANGED
@@ -3,8 +3,8 @@ namespace :forest do
|
|
3
3
|
task(:send_apimap).clear
|
4
4
|
task send_apimap: :environment do
|
5
5
|
if ForestLiana.env_secret
|
6
|
-
|
7
|
-
|
6
|
+
bootstrapper = ForestLiana::Bootstrapper.new
|
7
|
+
bootstrapper.synchronize(true)
|
8
8
|
else
|
9
9
|
puts 'Cannot send the Apimap, Forest cannot find your env_secret'
|
10
10
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_liana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Munda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -284,7 +284,7 @@ files:
|
|
284
284
|
- config/routes.rb
|
285
285
|
- lib/forest_liana.rb
|
286
286
|
- lib/forest_liana/base64_string_io.rb
|
287
|
-
- lib/forest_liana/
|
287
|
+
- lib/forest_liana/bootstrapper.rb
|
288
288
|
- lib/forest_liana/collection.rb
|
289
289
|
- lib/forest_liana/engine.rb
|
290
290
|
- lib/forest_liana/json_printer.rb
|