etcdist 0.0.5 → 0.0.6

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: cea5b99a816170770f2fa9e8028fc80494cbcd45
4
- data.tar.gz: 439f797ba033ba839e4e92707a0a8179697c1ef5
3
+ metadata.gz: 7a580dea440da658265dfe8df8b0ef76279b396a
4
+ data.tar.gz: d1849a2743d6ef4619ea50b9c53ee6e5b0b797a9
5
5
  SHA512:
6
- metadata.gz: 1ee8acb3536ea464667501d123107341290148c4ecec423cbc5ae375a7e5a4f2ce8322328fc4b0b1738d8d549dfc2ea3e3b2969e23e907d520b8d7550e40c8d1
7
- data.tar.gz: 327c52e29f27efdb91f75578a3a6d425281e809345210625e530f68513f317a564a33885b2339bf4eafdf29dd1486abcca4fa1c817c16616de70dd590ef64694
6
+ metadata.gz: 9c3ccd1069755f49c8a3bd6939ecaecb86792d45c560366f33df6156a7f615359800e373721942f3019263c345046a5a20b93d5b6bb56b29d6a4ff79954d6160
7
+ data.tar.gz: 11c1bd5a0682da315cfa09077cad21c3f1d0eafd81f4b768798c865f44893aecdb6b1df5597ccf76c553ed8bd9231e9806c21dd89bcb19769e994053f1579a6a
data/.rubocop.yml CHANGED
@@ -13,3 +13,6 @@ Style/EachWithObject:
13
13
 
14
14
  LineLength:
15
15
  Max: 120
16
+
17
+ Metrics/AbcSize:
18
+ Enabled: false
@@ -16,7 +16,7 @@ module Etcdist
16
16
 
17
17
  files.reduce(Hash.new { |h, k| h[k] = {} }) do |h, f|
18
18
  directory = File.dirname(f).gsub(@dir, '')
19
- entries = Hash[IO.readlines(f).map { |e| e.chomp.split('=', 2) }.select { |k, _| valid_key?(k) }]
19
+ entries = Hash[read_non_blank_lines(f).map { |e| e.chomp.split('=', 2) }.select { |k, _| valid_key?(k) }]
20
20
  Log.debug("found #{entries.length} entries in #{f.gsub(@dir, '')}: #{entries}")
21
21
  h[directory].merge!(entries)
22
22
  h
@@ -25,6 +25,12 @@ module Etcdist
25
25
 
26
26
  private
27
27
 
28
+ def read_non_blank_lines(f)
29
+ lines = IO.readlines(f)
30
+ lines.delete_if { |line| line !~ /\S/ }
31
+ lines
32
+ end
33
+
28
34
  def valid_key?(key)
29
35
  is_valid = !(key.include? '/')
30
36
  Log.warn("ignoring invalid key #{key}") unless is_valid
@@ -1,3 +1,3 @@
1
1
  module Etcdist
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
@@ -1,3 +1,4 @@
1
1
  dogs=bones
2
2
  no/slashes=allowed
3
+
3
4
  equation=e=mc^2
metadata CHANGED
@@ -1,125 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etcdist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Springer, Part of Springer Science+Business Media
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-08 00:00:00.000000000 Z
11
+ date: 2014-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: etcd
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.2.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.2.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mixlib-log
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '3.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec-mocks
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '3.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '3.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: guard-rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rubocop
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  description:
@@ -128,9 +128,9 @@ executables: []
128
128
  extensions: []
129
129
  extra_rdoc_files: []
130
130
  files:
131
- - .gitignore
132
- - .rubocop.yml
133
- - .travis.yml
131
+ - ".gitignore"
132
+ - ".rubocop.yml"
133
+ - ".travis.yml"
134
134
  - Gemfile
135
135
  - Guardfile
136
136
  - LICENSE.txt
@@ -158,17 +158,17 @@ require_paths:
158
158
  - lib
159
159
  required_ruby_version: !ruby/object:Gem::Requirement
160
160
  requirements:
161
- - - '>='
161
+ - - ">="
162
162
  - !ruby/object:Gem::Version
163
163
  version: 1.9.3
164
164
  required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  requirements:
166
- - - '>='
166
+ - - ">="
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.0.3
171
+ rubygems_version: 2.2.2
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Populate etcd in a reproducable way.