vandal_ui 0.1.0 → 0.2.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
  SHA1:
3
- metadata.gz: 62dc9d007a7be91be2fffaea083e70bccc956270
4
- data.tar.gz: 220551d89f13a1ac17e864da156ba59af4443335
3
+ metadata.gz: a6c42d21b3b31c19c5186a5a424e275d2234f44a
4
+ data.tar.gz: f61e276efa66c1214dfc43ad709f95947c8797eb
5
5
  SHA512:
6
- metadata.gz: 4e48e4cbbe0b2ef4cba62505b5a9600c62c27b42042560a731c8518f5b2ec37f77fcbd334a08ed34f08dee7b060d84939b8dcba1d23a987d08d7241e8a14246a
7
- data.tar.gz: 14be09940f8c40fe7df4199fb8eb077bbdb275b09577e6b621412d0af23bda4f7302b0473ff3166b9bc2b5a1a469d016eb970e26bab8dce532523bb452f39247
6
+ metadata.gz: 48fc13c764fd91275c6c17aa1e320d83327e4c3279c98a0cad21bd556ae50a811ea0fc8cd8d4df363b7c53ca15d073efb4f38067dc3562ce4228e9071da2d2e3
7
+ data.tar.gz: 15a88bbcf00d16a40cf407ea5bb655e1d397728c923d1c97289796772d18debdd791b04bbe7440aec3aeac4a5a48179e8158fa54c1b7bf984eb78531a2fb6b05
@@ -1,21 +1,15 @@
1
1
  namespace :vandal do
2
2
  task :install do
3
+ cfg = YAML.load_file("#{Rails.root}/.graphiticfg.yml")
4
+ namespace = cfg['namespace']
5
+ schema_path = "#{namespace}/schema.json"
6
+
3
7
  source = File.join(File.dirname(__FILE__), 'static')
4
- destination = "#{Rails.root}/public/api/v1"
8
+ destination = "#{Rails.root}/public/#{namespace}"
5
9
  FileUtils.rm_rf "#{destination}/vandal"
6
10
  FileUtils.mkdir_p destination
7
11
  FileUtils.copy_entry(source, "#{destination}/vandal")
8
12
 
9
- # Document schema path and override
10
- # Commit graphiti incorporating api namespace to schema path. Document the old.
11
- # Maybe even do this in script?
12
- #
13
- # Vandal in isolation
14
- # Remove demo path from vandal
15
- # Ensure "open in new tab" works
16
- # Ensure curl works
17
- cfg = YAML.load_file("#{Rails.root}/.graphiticfg.yml")
18
- schema_path = "#{cfg['namespace']}/schema.json"
19
13
  path = "#{destination}/vandal/index.html"
20
14
  lines = IO.readlines(path).map do |line|
21
15
  if line.include?('__SCHEMA_PATH__')
@@ -1,3 +1,3 @@
1
1
  module VandalUi
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vandal_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond