hieraviz 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,16 @@
1
1
  ENV['HIERAVIZ_CONFIG_FILE'] = File.expand_path '../files/config.yml', __FILE__
2
2
 
3
+ require 'spec_helper'
4
+
3
5
  require File.expand_path '../../app/main.rb', __FILE__
4
6
 
7
+ require 'sinatra/base'
8
+
5
9
  module RSpecMixin
6
10
  include Rack::Test::Methods
7
- def app() described_class end
11
+ def app()
12
+ described_class
13
+ end
8
14
  end
9
15
 
10
16
  RSpec.configure do |config|
data/spec/spec_helper.rb CHANGED
@@ -25,8 +25,6 @@ require 'rspec'
25
25
  ENV['RACK_ENV'] = 'test'
26
26
  # ENV['HIERAVIZ_CONFIG_FILE'] = File.expand_path '../files/config.yml', __FILE__
27
27
 
28
- require 'hieraviz'
29
-
30
28
  RSpec.configure do |config|
31
29
  config.mock_with :rspec
32
30
  config.expect_with :rspec do |c|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hieraviz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-29 00:00:00.000000000 Z
11
+ date: 2016-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.3.1
103
+ version: 0.3.5
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.3.1
110
+ version: 0.3.5
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: bundler
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -252,12 +252,16 @@ files:
252
252
  - lib/hieraviz.rb
253
253
  - lib/hieraviz/auth_gitlab.rb
254
254
  - lib/hieraviz/config.rb
255
+ - lib/hieraviz/facts.rb
256
+ - lib/hieraviz/puppetdb.rb
255
257
  - lib/hieraviz/store.rb
256
258
  - lib/hieraviz/version.rb
257
259
  - spec/app/apiv1_spec.rb
258
260
  - spec/app/web_spec.rb
259
261
  - spec/files/config.yml
262
+ - spec/files/config_dummy.yml
260
263
  - spec/files/config_gitlab.yml
264
+ - spec/files/config_multi.yml
261
265
  - spec/files/hiera.yml
262
266
  - spec/files/puppet/enc/node1.example.com.yaml
263
267
  - spec/files/puppet/farm_modules/farm1/manifests/init.pp
@@ -265,8 +269,15 @@ files:
265
269
  - spec/files/puppet/modules/module1/init.pp
266
270
  - spec/files/puppet/params/common/common.yaml
267
271
  - spec/files/puppet/params/nodes/node1.example.com.yaml
272
+ - spec/files/puppet2/enc/node1.example.com.yaml
273
+ - spec/files/puppet2/farm_modules/farm1/manifests/init.pp
274
+ - spec/files/puppet2/hiera.yml
275
+ - spec/files/puppet2/modules/module1/init.pp
276
+ - spec/files/puppet2/params/common/common.yaml
277
+ - spec/files/puppet2/params/nodes/node1.example.com.yaml
268
278
  - spec/lib/auth_gitlab_spec.rb
269
279
  - spec/lib/config_spec.rb
280
+ - spec/lib/facts_spec.rb
270
281
  - spec/lib/store_spec.rb
271
282
  - spec/oauth2_helper.rb
272
283
  - spec/sinatra_helper.rb
@@ -302,7 +313,9 @@ test_files:
302
313
  - spec/app/apiv1_spec.rb
303
314
  - spec/app/web_spec.rb
304
315
  - spec/files/config_gitlab.yml
316
+ - spec/files/config_multi.yml
305
317
  - spec/files/hiera.yml
318
+ - spec/files/config_dummy.yml
306
319
  - spec/files/config.yml
307
320
  - spec/files/puppet/params/common/common.yaml
308
321
  - spec/files/puppet/params/nodes/node1.example.com.yaml
@@ -310,7 +323,14 @@ test_files:
310
323
  - spec/files/puppet/farm_modules/farm1/manifests/init.pp
311
324
  - spec/files/puppet/modules/module1/init.pp
312
325
  - spec/files/puppet/hiera.yml
326
+ - spec/files/puppet2/params/common/common.yaml
327
+ - spec/files/puppet2/params/nodes/node1.example.com.yaml
328
+ - spec/files/puppet2/enc/node1.example.com.yaml
329
+ - spec/files/puppet2/farm_modules/farm1/manifests/init.pp
330
+ - spec/files/puppet2/modules/module1/init.pp
331
+ - spec/files/puppet2/hiera.yml
313
332
  - spec/sinatra_helper.rb
314
333
  - spec/lib/auth_gitlab_spec.rb
315
334
  - spec/lib/config_spec.rb
335
+ - spec/lib/facts_spec.rb
316
336
  - spec/lib/store_spec.rb