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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f4732dcb5ba42e14f1714924517d97c85602a83
4
- data.tar.gz: 5f552c71c48f38bb238c2f3c164a96e9dba11c09
3
+ metadata.gz: b75db292ccba3287742672927f228a2bd4300b5c
4
+ data.tar.gz: 130a8c4cee3f14a79fb52a96e97fd08f00bae383
5
5
  SHA512:
6
- metadata.gz: 1c633652f90f40b3bc771b272ebfabca53a638f523ad01c9802a34e5e8c85f6616eae51dff3605ddf8789697a5a6c40a59356306632d21561d9205c8f3fb1b24
7
- data.tar.gz: b214774108063f086660d1679a0705905ea8fd40106d8d41471b2c58908c8e9068afed696a7262e9edb9b6cf40768a2d3a2d9d179d3132d2ee8c9a9d40e1ed45
6
+ metadata.gz: 5af0b16dfa99043350bb6cac773493a21c5d4819d2884fc282164f723c80fbea0ccd037a34851dc343c16d2f3e4cae381e99ee538a7c0ee8fff734f47f0bfe61
7
+ data.tar.gz: 910c24347f4abee41eda9719537b320f61177d6bbae8207337e3c53975e0a53042f11f8431e43ceed4fd4f6cb930539830714ce2f49c6092249cb26c800b30e3
@@ -1 +1 @@
1
- 2.3.3
1
+ 2.4
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems'
2
+
3
+ require 'rake'
3
4
  require 'bundler/gem_tasks'
4
5
  require 'rspec/core/rake_task'
5
6
  require 'proxes/rake_tasks'
data/config.ru CHANGED
@@ -24,6 +24,9 @@ end
24
24
  OmniAuth.config.on_failure = ProxES::AuthIdentity
25
25
 
26
26
  # Management App
27
+ require 'proxes/proxes'
28
+ ProxES::Container.plugin(:proxes)
29
+
27
30
  map '/_proxes' do
28
31
  run Rack::URLMap.new ProxES::Container.routes
29
32
  end
@@ -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,
@@ -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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ProxES
3
- VERSION = '0.3.3'
3
+ VERSION = '0.3.5'
4
4
  end
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.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-03-25 00:00:00.000000000 Z
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.10
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