vandal_ui 0.1.0 → 0.2.0
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 +4 -4
- data/lib/vandal_ui/tasks.rb +5 -11
- data/lib/vandal_ui/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6c42d21b3b31c19c5186a5a424e275d2234f44a
|
4
|
+
data.tar.gz: f61e276efa66c1214dfc43ad709f95947c8797eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48fc13c764fd91275c6c17aa1e320d83327e4c3279c98a0cad21bd556ae50a811ea0fc8cd8d4df363b7c53ca15d073efb4f38067dc3562ce4228e9071da2d2e3
|
7
|
+
data.tar.gz: 15a88bbcf00d16a40cf407ea5bb655e1d397728c923d1c97289796772d18debdd791b04bbe7440aec3aeac4a5a48179e8158fa54c1b7bf984eb78531a2fb6b05
|
data/lib/vandal_ui/tasks.rb
CHANGED
@@ -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
|
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__')
|
data/lib/vandal_ui/version.rb
CHANGED