rubypitaya 2.25.0 → 2.25.1
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55bc3adc9c4e44304aceddc76204d67e147be13409f34116fd43fad42ec7a1ec
|
|
4
|
+
data.tar.gz: 003b0bf7ad5d1e3f2917327e0db98344b35f388e4f924da92be7f8861891c307
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b70ab8dad9c768b8d1cd6ba66472d539397db4898b83be9d2624f9af0df989f311cc91c28463d5d3ed4a3ee586c8b488232e89862e2d920a0912bf80c3d85e71
|
|
7
|
+
data.tar.gz: ccd0ec9c84bb26d06fd1f9394e38f3ec8be31097dafd2ba91d6370e323351398dc928b821b8d918af5ce78f6197b2e01b6881f2920bb966bc012ec90c9d30234
|
|
@@ -111,7 +111,7 @@ GEM
|
|
|
111
111
|
rspec-support (~> 3.10.0)
|
|
112
112
|
rspec-support (3.10.2)
|
|
113
113
|
ruby2_keywords (0.0.5)
|
|
114
|
-
rubypitaya (2.25.
|
|
114
|
+
rubypitaya (2.25.1)
|
|
115
115
|
activerecord (= 6.1.3)
|
|
116
116
|
etcdv3 (= 0.10.2)
|
|
117
117
|
mongo (= 2.15.0)
|
|
@@ -152,7 +152,7 @@ DEPENDENCIES
|
|
|
152
152
|
listen (= 3.4.1)
|
|
153
153
|
pry (= 0.14.0)
|
|
154
154
|
rspec (= 3.10.0)
|
|
155
|
-
rubypitaya (= 2.25.
|
|
155
|
+
rubypitaya (= 2.25.1)
|
|
156
156
|
|
|
157
157
|
BUNDLED WITH
|
|
158
158
|
2.1.4
|
|
@@ -51,7 +51,7 @@ create-migration:
|
|
|
51
51
|
|
|
52
52
|
## Add or update a plugin. GIT=[plugin-http-git-link] BRANCH=[branch-name:optional]
|
|
53
53
|
add-plugin:
|
|
54
|
-
@docker-compose run --service-ports --rm rubypitaya-commands bundle exec
|
|
54
|
+
@docker-compose run --service-ports --rm rubypitaya-commands bundle exec rubypitaya add-plugin $(GIT) $(BRANCH)
|
|
55
55
|
|
|
56
56
|
## + Database Commands
|
|
57
57
|
|
|
@@ -10,6 +10,10 @@ module RubyPitaya
|
|
|
10
10
|
register ::Sinatra::Reloader
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
configure do
|
|
14
|
+
set :show_exceptions, false
|
|
15
|
+
end
|
|
16
|
+
|
|
13
17
|
helpers do
|
|
14
18
|
def find_template(views, name, engine, &block)
|
|
15
19
|
views.each { |v| super(v, name, engine, &block) }
|
|
@@ -20,9 +24,13 @@ module RubyPitaya
|
|
|
20
24
|
content_type :json
|
|
21
25
|
|
|
22
26
|
@bll = settings.bll
|
|
27
|
+
@log = settings.log
|
|
23
28
|
@mongo = settings.mongo
|
|
24
29
|
@setup = settings.setup
|
|
30
|
+
@redis = settings.redis
|
|
25
31
|
@config = settings.config
|
|
32
|
+
@session = nil
|
|
33
|
+
@postman = nil
|
|
26
34
|
|
|
27
35
|
return error_unauthorized unless authorized?(request)
|
|
28
36
|
|
|
@@ -34,6 +42,11 @@ module RubyPitaya
|
|
|
34
42
|
end
|
|
35
43
|
|
|
36
44
|
@params = Parameters.new(@params)
|
|
45
|
+
@params.permit!
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
after do
|
|
49
|
+
ActiveRecord::Base.clear_active_connections!
|
|
37
50
|
end
|
|
38
51
|
|
|
39
52
|
private
|
data/lib/rubypitaya/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubypitaya
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.25.
|
|
4
|
+
version: 2.25.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Luciano Prestes Cavalcanti
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-08-
|
|
11
|
+
date: 2021-08-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pg
|