rubypitaya 3.9.1 → 3.10.0

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
  SHA256:
3
- metadata.gz: ab294041796e0582cbaf00b126cd94640367f9efa9936951bb4d15e62189bc9d
4
- data.tar.gz: 35717958fa3945457d8cf7cc1dd948d77c49fdbae65c1bef8b3ab314ae00e3f8
3
+ metadata.gz: c504da4f358b8b73e07c17883c293bf185c6ca2328d4a13bba0a88523b85e9cf
4
+ data.tar.gz: f850e834117933afd8db27dc771dc3326c8953083db06facdec0a839872c7a00
5
5
  SHA512:
6
- metadata.gz: 575b508d8dee1160823a8694dfb4efa9ffc3f26a8d989e46519f6e26a14ed2a4ec7e75dbea0c13be84c33819f37a86beff67c28e48b6f302a1f80e2e1a9f91d2
7
- data.tar.gz: df30b0b4f45cfbee21afca815a0c9b066324810475971e89022fe95a898f68b84a4dae8b868764ecc97986e88305bb0cb772324ff326c760229b5482d1ca4810
6
+ metadata.gz: d5f8c32268f3e0a943b65601483f30f560f3e2ae0bac19efcd65705215e84d6f61b10355096d606a804c0f9967654806b105ea195dc05dc4878e534d2e0245b0
7
+ data.tar.gz: f9ee5fcefa9e332e015ac228e5dcdaa09b1ad66b20222942660df14f72d6cd09cbc2c1b1c8c6c4a749b143331b68c3bf50d8513aecfd86ac7c611265cd472794
@@ -1,6 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'rubypitaya', '3.9.1'
3
+ gem 'rubypitaya', '3.10.0'
4
4
 
5
5
  group :development do
6
6
  gem 'pry', '0.14.1'
@@ -99,7 +99,7 @@ GEM
99
99
  rspec-support (~> 3.11.0)
100
100
  rspec-support (3.11.0)
101
101
  ruby2_keywords (0.0.5)
102
- rubypitaya (3.9.1)
102
+ rubypitaya (3.10.0)
103
103
  activerecord (= 7.0.2)
104
104
  etcdv3 (= 0.11.5)
105
105
  google-protobuf (= 3.19.4)
@@ -138,7 +138,7 @@ DEPENDENCIES
138
138
  listen (= 3.7.1)
139
139
  pry (= 0.14.1)
140
140
  rspec (= 3.11.0)
141
- rubypitaya (= 3.9.1)
141
+ rubypitaya (= 3.10.0)
142
142
  sinatra-contrib (= 2.1.0)
143
143
 
144
144
  BUNDLED WITH
@@ -7,7 +7,7 @@ require 'rubypitaya'
7
7
  require 'rubypitaya/core/database_config'
8
8
 
9
9
  # Database connection
10
- database_config = RubyPitaya::DatabaseConfig.new
10
+ database_config = RubyPitaya::DatabaseConfig.new(RubyPitaya::Setup.new)
11
11
  ActiveRecord::Base.establish_connection(database_config.connection_data)
12
12
  ActiveRecord::Base.logger = ActiveSupport::Logger.new(STDOUT)
13
13
  ActiveSupport::LogSubscriber.colorize_logging = true
@@ -15,6 +15,10 @@ module RubyPitaya
15
15
  @services[key].client
16
16
  end
17
17
 
18
+ def has?(key)
19
+ @services.has_key?(key)
20
+ end
21
+
18
22
  def all_services
19
23
  @services.values
20
24
  end
@@ -1,3 +1,3 @@
1
1
  module RubyPitaya
2
- VERSION = '3.9.1'
2
+ VERSION = '3.10.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubypitaya
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.9.1
4
+ version: 3.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luciano Prestes Cavalcanti