conexa 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/console DELETED
@@ -1,61 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "irb"
5
- require "irb/completion"
6
- require "bundler/setup"
7
- require "conexa"
8
- require "factory_bot"
9
- require "faker"
10
-
11
-
12
- # You can add fixtures and/or initialization code here to make experimenting
13
- # with your gem easier. You can also use a different console, if you like.
14
-
15
- # (If you use this, don't forget to add pry to your Gemfile!)
16
- # require "pry"
17
- # Pry.start
18
-
19
- # Config IRB to enable --simple-prompt and auto indent
20
- IRB.conf[:PROMPT_MODE] = :SIMPLE
21
- IRB.conf[:AUTO_INDENT] = true
22
- include FactoryBot::Syntax::Methods
23
-
24
-
25
- FactoryBot.find_definitions
26
- FactoryBot.reload
27
- Faker::Config.locale = 'pt-BR'
28
-
29
-
30
- def reload!(print = true)
31
- puts 'Reloading ...' if print
32
- # Main project directory.
33
- root_dir = File.expand_path('..', __dir__)
34
- # Directories within the project that should be reloaded.
35
- reload_dirs = %w{lib}
36
- # Loop through and reload every file in all relevant project directories.
37
- reload_dirs.each do |dir|
38
- Dir.glob("#{root_dir}/#{dir}/**/*.rb").each { |f| load(f) }
39
- end
40
-
41
- FactoryBot.reload
42
-
43
- # Return true when complete.
44
- true
45
- end
46
-
47
- def initialize_conexa
48
- pp "Initilizing..."
49
-
50
- Conexa.configure do |config|
51
- config.api_token = ENV['API_TOKEN']
52
- config.api_host = ENV['API_HOST']
53
- end
54
-
55
- pp Conexa.configuration
56
-
57
-
58
- end
59
-
60
- initialize_conexa
61
- IRB.start
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here