proxes 0.3.3 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Rakefile +2 -1
- data/config.ru +3 -0
- data/lib/proxes/proxes.rb +6 -5
- data/lib/proxes/rake_tasks.rb +9 -1
- data/lib/proxes/version.rb +1 -1
- 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: b75db292ccba3287742672927f228a2bd4300b5c
|
4
|
+
data.tar.gz: 130a8c4cee3f14a79fb52a96e97fd08f00bae383
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5af0b16dfa99043350bb6cac773493a21c5d4819d2884fc282164f723c80fbea0ccd037a34851dc343c16d2f3e4cae381e99ee538a7c0ee8fff734f47f0bfe61
|
7
|
+
data.tar.gz: 910c24347f4abee41eda9719537b320f61177d6bbae8207337e3c53975e0a53042f11f8431e43ceed4fd4f6cb930539830714ce2f49c6092249cb26c800b30e3
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.4
|
data/Rakefile
CHANGED
data/config.ru
CHANGED
data/lib/proxes/proxes.rb
CHANGED
@@ -1,9 +1,4 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
require 'proxes/app'
|
3
|
-
require 'proxes/controllers/users'
|
4
|
-
require 'proxes/controllers/roles'
|
5
|
-
require 'proxes/controllers/permissions'
|
6
|
-
require 'proxes/controllers/audit_logs'
|
7
2
|
|
8
3
|
module ProxES
|
9
4
|
class ProxES
|
@@ -12,6 +7,12 @@ module ProxES
|
|
12
7
|
end
|
13
8
|
|
14
9
|
def self.route_mappings
|
10
|
+
require 'proxes/app'
|
11
|
+
require 'proxes/controllers/users'
|
12
|
+
require 'proxes/controllers/roles'
|
13
|
+
require 'proxes/controllers/permissions'
|
14
|
+
require 'proxes/controllers/audit_logs'
|
15
|
+
|
15
16
|
{
|
16
17
|
'/' => ::ProxES::App,
|
17
18
|
'/users' => ::ProxES::Users,
|
data/lib/proxes/rake_tasks.rb
CHANGED
@@ -15,11 +15,19 @@ module ProxES
|
|
15
15
|
File.write('.token_secret', SecureRandom.random_bytes(40))
|
16
16
|
end
|
17
17
|
|
18
|
-
desc 'Seed the database'
|
18
|
+
desc 'Seed the ProxES database'
|
19
19
|
task :seed do
|
20
20
|
require 'proxes/seed'
|
21
21
|
end
|
22
22
|
|
23
|
+
desc 'Prepare ProxES migrations'
|
24
|
+
task :prep do
|
25
|
+
Dir.mkdir 'migrations' unless File.exists?('migrations')
|
26
|
+
::ProxES::Container.migrations.each do |path|
|
27
|
+
FileUtils.cp_r "#{path}/.", 'migrations'
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
23
31
|
desc 'Migrate ProxES database to latest version'
|
24
32
|
task :migrate do
|
25
33
|
Rake::Task['proxes:migrate:up'].invoke
|
data/lib/proxes/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proxes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jurgens du Toit
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -439,7 +439,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
439
439
|
version: '0'
|
440
440
|
requirements: []
|
441
441
|
rubyforge_project:
|
442
|
-
rubygems_version: 2.6.
|
442
|
+
rubygems_version: 2.6.8
|
443
443
|
signing_key:
|
444
444
|
specification_version: 4
|
445
445
|
summary: Rack wrapper around Elasticsearch to provide security and management features
|