reyes 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/reyes/ipset.rb CHANGED
@@ -50,7 +50,7 @@ module Reyes
50
50
  end
51
51
  end
52
52
 
53
- class IPSet < Struct.new(:name, :type, :header, :size, :references, :members)
53
+ class IPSet < Struct.new(:name, :type, :revision, :header, :size, :references, :members)
54
54
  # An immutable view into an existing IPSet
55
55
 
56
56
  # @param [Name] name of the set to load
@@ -89,9 +89,9 @@ module Reyes
89
89
  return parse(entries.first)
90
90
  end
91
91
 
92
- KEYS = ["Name", "Header", "Size in memory", "References", "Members", "Type"]
92
+ KEYS = ["Name", "Header", "Size in memory", "References", "Members", "Type", "Revision"]
93
93
  def self.parse(entry)
94
- out = {:members => []}
94
+ out = {:members => [], "Revision" => 0}
95
95
  entry.split(?\n).each do |line|
96
96
  k, v = line.split(":", 2)
97
97
  if KEYS.include?(k)
@@ -105,6 +105,7 @@ module Reyes
105
105
  return [
106
106
  out["Name"],
107
107
  out["Type"],
108
+ Integer(out["Revision"]),
108
109
  out["Header"],
109
110
  Integer(out["Size in memory"]),
110
111
  Integer(out["References"]),
data/lib/reyes/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Reyes
2
- VERSION = '0.2.2' unless defined?(self::VERSION)
2
+ VERSION = '0.2.3' unless defined?(self::VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reyes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Andy Brody
@@ -14,6 +15,7 @@ dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: aws-sdk
16
17
  requirement: !ruby/object:Gem::Requirement
18
+ none: false
17
19
  requirements:
18
20
  - - ~>
19
21
  - !ruby/object:Gem::Version
@@ -21,6 +23,7 @@ dependencies:
21
23
  type: :runtime
22
24
  prerelease: false
23
25
  version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
24
27
  requirements:
25
28
  - - ~>
26
29
  - !ruby/object:Gem::Version
@@ -28,6 +31,7 @@ dependencies:
28
31
  - !ruby/object:Gem::Dependency
29
32
  name: chalk-log
30
33
  requirement: !ruby/object:Gem::Requirement
34
+ none: false
31
35
  requirements:
32
36
  - - ! '>='
33
37
  - !ruby/object:Gem::Version
@@ -35,6 +39,7 @@ dependencies:
35
39
  type: :runtime
36
40
  prerelease: false
37
41
  version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
38
43
  requirements:
39
44
  - - ! '>='
40
45
  - !ruby/object:Gem::Version
@@ -42,6 +47,7 @@ dependencies:
42
47
  - !ruby/object:Gem::Dependency
43
48
  name: subprocess
44
49
  requirement: !ruby/object:Gem::Requirement
50
+ none: false
45
51
  requirements:
46
52
  - - ! '>='
47
53
  - !ruby/object:Gem::Version
@@ -49,6 +55,7 @@ dependencies:
49
55
  type: :runtime
50
56
  prerelease: false
51
57
  version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
52
59
  requirements:
53
60
  - - ! '>='
54
61
  - !ruby/object:Gem::Version
@@ -56,6 +63,7 @@ dependencies:
56
63
  - !ruby/object:Gem::Dependency
57
64
  name: pry
58
65
  requirement: !ruby/object:Gem::Requirement
66
+ none: false
59
67
  requirements:
60
68
  - - ! '>='
61
69
  - !ruby/object:Gem::Version
@@ -63,6 +71,7 @@ dependencies:
63
71
  type: :development
64
72
  prerelease: false
65
73
  version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
66
75
  requirements:
67
76
  - - ! '>='
68
77
  - !ruby/object:Gem::Version
@@ -70,6 +79,7 @@ dependencies:
70
79
  - !ruby/object:Gem::Dependency
71
80
  name: rake
72
81
  requirement: !ruby/object:Gem::Requirement
82
+ none: false
73
83
  requirements:
74
84
  - - ! '>='
75
85
  - !ruby/object:Gem::Version
@@ -77,6 +87,7 @@ dependencies:
77
87
  type: :development
78
88
  prerelease: false
79
89
  version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
80
91
  requirements:
81
92
  - - ! '>='
82
93
  - !ruby/object:Gem::Version
@@ -84,6 +95,7 @@ dependencies:
84
95
  - !ruby/object:Gem::Dependency
85
96
  name: rubocop
86
97
  requirement: !ruby/object:Gem::Requirement
98
+ none: false
87
99
  requirements:
88
100
  - - ! '>='
89
101
  - !ruby/object:Gem::Version
@@ -91,6 +103,7 @@ dependencies:
91
103
  type: :development
92
104
  prerelease: false
93
105
  version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
94
107
  requirements:
95
108
  - - ! '>='
96
109
  - !ruby/object:Gem::Version
@@ -133,25 +146,32 @@ files:
133
146
  - reyes.gemspec
134
147
  homepage: https://github.com/stripe/reyes/
135
148
  licenses: []
136
- metadata: {}
137
149
  post_install_message:
138
150
  rdoc_options: []
139
151
  require_paths:
140
152
  - lib
141
153
  required_ruby_version: !ruby/object:Gem::Requirement
154
+ none: false
142
155
  requirements:
143
156
  - - ! '>='
144
157
  - !ruby/object:Gem::Version
145
158
  version: '0'
159
+ segments:
160
+ - 0
161
+ hash: -4518448750686684047
146
162
  required_rubygems_version: !ruby/object:Gem::Requirement
163
+ none: false
147
164
  requirements:
148
165
  - - ! '>='
149
166
  - !ruby/object:Gem::Version
150
167
  version: '0'
168
+ segments:
169
+ - 0
170
+ hash: -4518448750686684047
151
171
  requirements: []
152
172
  rubyforge_project:
153
- rubygems_version: 2.3.0
173
+ rubygems_version: 1.8.23.2
154
174
  signing_key:
155
- specification_version: 4
175
+ specification_version: 3
156
176
  summary: Reyes manages IPTables rules based on EC2 security groups.
157
177
  test_files: []
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZTM1YmZiYjM5MzMyNWQ4N2MyZGFiZGQyMmFmNjBlYzA5ZWY0ZTUxOA==
5
- data.tar.gz: !binary |-
6
- NDk5ZmZlNTExMThjZDk3NDc0YTc3MWJiNzRkMTRkMDQ3YTk0NTczZA==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- MzhiNzk5NTI2NDE3MGE4Y2ZkMTY2ZDRhZDNjMDY5ZGYxZDAzMzFlMGRiNmJj
10
- ZDEzZmU5ZDhkMjk5MTdlNDc3NDhjYmYxMWQzMmQ5ZGJkNDc2ZTUzMzJiYmE4
11
- MGRmYjZhYmU2MmIzYWE2MGJjYzNhZWVkYTc5ZmUyZjExNTU5ZTY=
12
- data.tar.gz: !binary |-
13
- NmM0NjJiMmNjY2JhMWQwZmNhYmMzZTRkZDlmNjcwMjAzNDQ0NDlkMzQwMDJm
14
- MTMzMGI1MDY5MzkyYThmNWNhMDlmNmJmNzBhOTNlMzFlOGI5NTM4MTQ5NjZk
15
- MzM0NTQ2MzMzM2QyOGFmNzI1Yzk1NzgzYjAyYTVjNDRhZWZmYjU=