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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6628bfc5619be83a5f6849b5c3c21403a629cdaa
4
- data.tar.gz: 96a7cdbc03793809bd49909d2dbf1d2a01bb064a
3
+ metadata.gz: 8f7f04b55b21edd6ce266d0f9544c503f2919c5e
4
+ data.tar.gz: 71d3ce9b89d3bd665b6d3866b63d9bd68c60688f
5
5
  SHA512:
6
- metadata.gz: 9cc8047c8b017549ae8b25aca0809da22fd7c609fe3868100bb3d83df4100303c30b90c0a2f01d3eb8a9651d34072b223e0a3245cabb2eb57d2c98e4b3917659
7
- data.tar.gz: 3275152b7a3cb79dd6b329e1727678d06b02e6ef731d06e15cc9deca272cad462f498824d16e47a90271361a133c24666691663c916ea4a3c0f21e0f2c886241
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)
@@ -2,7 +2,7 @@ require_relative 'schema_file_updater'
2
2
  require_relative 'version'
3
3
 
4
4
  module ForestLiana
5
- class Bootstraper
5
+ class Bootstrapper
6
6
  SCHEMA_FILENAME = File.join(Dir.pwd, '.forestadmin-schema.json')
7
7
 
8
8
  def initialize
@@ -5,7 +5,7 @@ require 'net/http'
5
5
  require 'useragent'
6
6
  require 'jwt'
7
7
  require 'bcrypt'
8
- require_relative 'bootstraper'
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
- bootstraper = Bootstraper.new
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
- bootstraper.synchronize unless ENV['FOREST_DEACTIVATE_AUTOMATIC_APIMAP'] || ENV['FOREST_DISABLE_AUTO_SCHEMA_APPLY'] || Rails.env.test?
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
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "4.0.0"
2
+ VERSION = "4.0.1"
3
3
  end
@@ -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
- bootstraper = ForestLiana::Bootstraper.new
6
- bootstraper.display_apimap
5
+ bootstrapper = ForestLiana::Bootstrapper.new
6
+ bootstrapper.display_apimap
7
7
  end
8
8
  end
@@ -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
- bootstraper = ForestLiana::Bootstraper.new
7
- bootstraper.synchronize(true)
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.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-04 00:00:00.000000000 Z
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/bootstraper.rb
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