interferon 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,5 +1,7 @@
1
1
  config.json
2
2
  config.yaml
3
+ config.yml
4
+ Gemfile.lock
3
5
 
4
6
  .*sw?
5
7
  .DS_Store
@@ -31,8 +31,8 @@ module Interferon::HostSources
31
31
  :source => 'optica_services',
32
32
  :service => service,
33
33
 
34
- :owners => [],
35
- :owner_groups => [],
34
+ :owners => Set.new,
35
+ :owner_groups => Set.new,
36
36
  :consumer_roles => Set.new,
37
37
  :consumer_machine_count => 0,
38
38
  :provider_machine_count => 0,
@@ -50,8 +50,8 @@ module Interferon::HostSources
50
50
  host['nerve_services'].each do |service|
51
51
  services[service][:provider_machine_count] += 1
52
52
 
53
- services[service][:owners].concat(host['ownership']['people'] || [])
54
- services[service][:owner_groups].concat(host['ownership']['groups'] || [])
53
+ services[service][:owners].merge(host['ownership']['people'] || [])
54
+ services[service][:owner_groups].merge(host['ownership']['groups'] || [])
55
55
  end
56
56
 
57
57
  # consumer info
@@ -63,6 +63,8 @@ module Interferon::HostSources
63
63
 
64
64
  # convert all sets to arrays
65
65
  services.each do |k,v|
66
+ services[k][:owners] = v[:owners].to_a
67
+ services[k][:owner_groups] = v[:owner_groups].to_a
66
68
  services[k][:consumer_roles] = v[:consumer_roles].to_a
67
69
  end
68
70
 
@@ -1,3 +1,3 @@
1
1
  module Interferon
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interferon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -120,7 +120,6 @@ files:
120
120
  - .gitignore
121
121
  - .travis.yml
122
122
  - Gemfile
123
- - Gemfile.lock
124
123
  - LICENSE
125
124
  - README.md
126
125
  - bin/interferon
data/Gemfile.lock DELETED
@@ -1,52 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- interferon (0.0.1)
5
- aws-sdk (~> 1.35, >= 1.35.1)
6
- dogapi (~> 1.11, >= 1.11.1)
7
- dogstatsd-ruby (~> 1.4, >= 1.4.1)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- aws-sdk (1.63.0)
13
- aws-sdk-v1 (= 1.63.0)
14
- aws-sdk-v1 (1.63.0)
15
- json (~> 1.4)
16
- nokogiri (>= 1.4.4)
17
- coderay (1.1.0)
18
- diff-lcs (1.2.5)
19
- dogapi (1.16.0)
20
- json (>= 1.5.1)
21
- dogstatsd-ruby (1.4.1)
22
- json (1.8.2)
23
- method_source (0.8.2)
24
- mini_portile (0.6.2)
25
- nokogiri (1.6.6.2)
26
- mini_portile (~> 0.6.0)
27
- pry (0.10.1)
28
- coderay (~> 1.1.0)
29
- method_source (~> 0.8.1)
30
- slop (~> 3.4)
31
- rspec (3.2.0)
32
- rspec-core (~> 3.2.0)
33
- rspec-expectations (~> 3.2.0)
34
- rspec-mocks (~> 3.2.0)
35
- rspec-core (3.2.1)
36
- rspec-support (~> 3.2.0)
37
- rspec-expectations (3.2.0)
38
- diff-lcs (>= 1.2.0, < 2.0)
39
- rspec-support (~> 3.2.0)
40
- rspec-mocks (3.2.1)
41
- diff-lcs (>= 1.2.0, < 2.0)
42
- rspec-support (~> 3.2.0)
43
- rspec-support (3.2.2)
44
- slop (3.6.0)
45
-
46
- PLATFORMS
47
- ruby
48
-
49
- DEPENDENCIES
50
- interferon!
51
- pry (~> 0.10)
52
- rspec (~> 3.2)