vandal_ui 0.4.4 → 0.4.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
  SHA256:
3
- metadata.gz: 7280d78f7ee8fb5706e0ed209832588e09e393cba36c04fb10826d52ea0ac3e1
4
- data.tar.gz: 003ed6bda37a3f59c839c5da2b240b10bf2e86a3dda2517736ce3d52a679f0da
3
+ metadata.gz: 9ee2538767d71c69143a3852d411d5771f7f0501f6bbdcd8dc4105a555bcbcf4
4
+ data.tar.gz: d9ede1fa80fb7e59ff07189cd0580ff45c9c0129147e47c4bd76f4d52c6dcfe7
5
5
  SHA512:
6
- metadata.gz: 1a411df76cd96c293b761bdef080818e19ad84d0bb16cc6aaf71a696d11a7acf4e596f8c049126142fd677f66f1fc6bc53707f4bd4de9566a93775e41fa524e8
7
- data.tar.gz: afd83f59cdbad6b76b57e8e1c33200a73d3211a4c9969441bf88db37dd0a2913a11daf9e6d0e2bd898bf3ccd41ee60cdb1e2f13cbe26ee3e79c39bbf1a16580f
6
+ metadata.gz: 9113c3d0c09e8fef11babfd2fa79545a40c2019b103910d733336803da15f8b35be8a7293455e0806a42150c2452292d18d8af9700fe031630399fd99f75501a
7
+ data.tar.gz: 342231e08f8ba0f68d6aff3838e80f952f48f6a23dbdc30e36d63c081da2bafd4a2e332f08edec279cde76692a2fab213fa899ef82bede2d03af5331bcc4e5c8
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vandal (0.1.0)
4
+ vandal_ui (0.4.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -29,7 +29,7 @@ DEPENDENCIES
29
29
  bundler (~> 1.16)
30
30
  rake (~> 10.0)
31
31
  rspec (~> 3.0)
32
- vandal!
32
+ vandal_ui!
33
33
 
34
34
  BUNDLED WITH
35
- 1.16.2
35
+ 1.17.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Lee Richmond
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -1,7 +1,7 @@
1
1
  class VandalUi::SchemasController < ActionController::API
2
2
  def show
3
3
  Rails.application.eager_load!
4
- Dir.glob("#{Rails.root}/app/resources/*").each do |f|
4
+ Dir.glob("#{Rails.root}/app/resources/**/*.rb").each do |f|
5
5
  require f
6
6
  end
7
7
  render json: Graphiti::Schema.generate
@@ -1,6 +1,12 @@
1
1
  namespace :vandal do
2
2
  task install: [:environment] do
3
- cfg = YAML.load_file("#{Rails.root}/.graphiticfg.yml")
3
+ graphiti_config_path = "#{Rails.root}/.graphiticfg.yml"
4
+ unless File.exist?(graphiti_config_path)
5
+ raise "Valid graphiti config file is required in the Rails root directory.\n" \
6
+ "More information: https://www.graphiti.dev/guides/getting-started/installation#graphiticfg"
7
+ end
8
+
9
+ cfg = YAML.load_file(graphiti_config_path)
4
10
  namespace = cfg['namespace']
5
11
 
6
12
  vandal_path = VandalUi::Engine.routes.find_script_name({})
@@ -1,3 +1,3 @@
1
1
  module VandalUi
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vandal_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-27 00:00:00.000000000 Z
11
+ date: 2020-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -64,6 +64,7 @@ files:
64
64
  - ".travis.yml"
65
65
  - Gemfile
66
66
  - Gemfile.lock
67
+ - LICENSE.txt
67
68
  - README.md
68
69
  - Rakefile
69
70
  - app/controllers/vandal_ui/schemas_controller.rb
@@ -105,8 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
106
  - !ruby/object:Gem::Version
106
107
  version: '0'
107
108
  requirements: []
108
- rubyforge_project:
109
- rubygems_version: 2.7.6
109
+ rubygems_version: 3.0.6
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: UI for Graphiti