hiera-browser 1.1.0.pre → 1.2.0.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjgzNTg0MzE2ZjQzNTNhMjgxMWVlZjA3NTU4NDhkMzgyMmJmMWRhZA==
4
+ ODUxOTM1ZjgxNDc1NTJhYjUyMTU5YjI3M2E0NTM1NGY1Yzc3YTg0MQ==
5
5
  data.tar.gz: !binary |-
6
- NDUwNjA5ZDZmYzY5NTBlNjljNWQ1MTU5ZjZmMDJiYjRjODc5YzQ1OA==
6
+ NmVjOTI1YzBmNTUxZDM4MTkzZjQ3NDhiOWNhMGI2ODE0YTY4YTdmMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTAxZTJmYWM1ODgxZGNjM2E2NjA4MDI3ODRmNTQ3NTJiNjhmNmM0OGFmMTk3
10
- ZGQ4YTk1ZDhmM2Q2M2E3OTBhY2E0MmExMWVhNzRkMGEwOGU3MjMyNzc5YTU1
11
- OTg2MmE4N2UxODI1YzNiOTBlMDdkZjcwN2Y0OTcyNjdhOGUxOWI=
9
+ YWI5OWIxNjRlMzJiZDExMjAyZTYwNmEyNzE3YzZjMjk0MDgyZWM1YmRjMTlh
10
+ YzNiODA4NWI3NDVkNDI2NDU2NGIyMTg3ZmZkMmFhZjRkZmQ2OGNlZDExOWFh
11
+ YWU2ZmY5YmIzZjZhYTRlZmZlZjQ4NmYxMWMzNTViODNjZDUwMDM=
12
12
  data.tar.gz: !binary |-
13
- NTI1MTNkMzdhZjJkNjY5MmQxODllOGE2OGQwY2IyMWFiY2FjZDAyYzg1MWQy
14
- MTNjYzlmZmM4YTI4NTFhMzdkNWRiMjY4OTM3Mjc3ZmI3MmE4NjMyMzRlMGFl
15
- NzIzNTA5MTQ5YjBiNmQ4ZmY1ZDI5MmU1MmMwM2YxYjA4MDQwMWY=
13
+ MzU4NmEyNjE4MTlmN2YwNGIwZWYxYjA0MzZkNjA4YTBkMTNhYTg1NjQ4OWVh
14
+ NzgzNzY4YjIyMzNmMDhhNmE3OGU2MjJiMmQ4ZTA0MTdhNmUyM2M4NDQ3OWFh
15
+ ZTBhNzMwOTM2NmJkYmM0YWNmZjc0ZmU2NmQwYjBiM2I4NDI4OWY=
data/bin/hiera-browser CHANGED
@@ -7,7 +7,10 @@ require 'rack/server'
7
7
  require 'app/ui'
8
8
 
9
9
  if ENV['HIERA_YAML'] && File.exist?(ENV['HIERA_YAML'])
10
- Rack::Server.start :app => HieraBrowserUI
10
+ Rack::Server.start :app => HieraBrowserUI,
11
+ :server => 'puma',
12
+ :Port => '5215'
13
+
11
14
  else
12
15
  puts "Must provide the location of your hiera.yaml as ENV['HIERA_YAML']"
13
16
  end
@@ -48,9 +48,8 @@ class HieraController
48
48
  scope.inject({}){|a,fact|
49
49
  if fix_keys.include?("::#{fact.first}")
50
50
  a["::#{fact.first}"] = fact.last
51
- else
52
- a[fact.first] = fact.last
53
51
  end
52
+ a[fact.first] = fact.last
54
53
  a
55
54
  }
56
55
  end
@@ -63,7 +62,7 @@ class HieraController
63
62
  end
64
63
 
65
64
  def get_all(args)
66
- scope = args[:scope]
65
+ scope = top_scopify(:scope => args[:scope])
67
66
  values = keys.inject({}){|a, k|
68
67
  a.merge({k => lookup(:key => k, :scope => scope)}) }
69
68
  if args[:additive_keys]
@@ -76,7 +75,7 @@ class HieraController
76
75
 
77
76
  def lookup_additive(args)
78
77
  key = args[:key]
79
- scope = args[:scope]
78
+ scope = top_scopify(:scope => args[:scope])
80
79
  value = lookup(:key => key, :scope => scope)
81
80
  lookup_type =
82
81
  case value.values.pop
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiera-browser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.pre
4
+ version: 1.2.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Gwilliam
@@ -101,7 +101,7 @@ dependencies:
101
101
  - - ~>
102
102
  - !ruby/object:Gem::Version
103
103
  version: 2.8.2
104
- type: :development
104
+ type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements: