d2e 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -0
  3. data/lib/d2e.rb +1 -1
  4. data/lib/d2e/version.rb +1 -1
  5. metadata +11 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db5e19dcaada1ee97b3d8b8b946da212d55f4205
4
- data.tar.gz: accd01fc39e29419877ea3c960b73629d5bf39d3
3
+ metadata.gz: ca7f6cd4c58f62cf47142cb0b658af1499140010
4
+ data.tar.gz: 220e88a5281f69f58aa054d6ae5ee18bd3572c45
5
5
  SHA512:
6
- metadata.gz: 6fcd3df8538f7cff766ba4c4e27ed40c0abb844f8e49166a9f75c33f8d9903a19876ba7ca41b6e7579c9f492ac214102e5a303c27e014431b3908c05b9abff0c
7
- data.tar.gz: 4004690f7443b32516399c2e4a91abd3a62812840fe083cfebe20f2645868f1213b18f5726984e824d50f83bd3ba01f58e4aeae80a48613fb9ccc9f7b1a84620
6
+ metadata.gz: d6da9328a21494c4d77cbf13fa7eb381d474cda59c38ddbe04344912cd22897405eb3c695371592e0b318d0b3be9851995f61253ace26b047b01fc1b1e9ab352
7
+ data.tar.gz: c128c9b67da18bc2621f59c4dccc0413a370fac0348c2faa7766bc7ddb591261498ab8e1b484bb4a8c3aece055d46c669c5e697dab996daed805f4dd5b9ebaed
data/README.md CHANGED
@@ -74,6 +74,16 @@ output:
74
74
  "Bass",
75
75
  "Bass/BeatMaking"
76
76
  ]
77
+ },
78
+ "prev": {
79
+ "id": 2,
80
+ "name": "Paul",
81
+ "description": "Bass"
82
+ },
83
+ "curr": {
84
+ "id": 2,
85
+ "name": "Paul",
86
+ "description": "Bass/BeatMaking"
77
87
  }
78
88
  }
79
89
  ]
@@ -140,6 +150,19 @@ output:
140
150
  null,
141
151
  "for ping monitoring"
142
152
  ]
153
+ },
154
+ "prev": {
155
+ "groupName": "mon",
156
+ "ipProtocol": "ICMP",
157
+ "inOut": "OUT",
158
+ "group": "web"
159
+ },
160
+ "curr": {
161
+ "groupName": "mon",
162
+ "ipProtocol": "ICMP",
163
+ "inOut": "OUT",
164
+ "group": "web",
165
+ "description": "for ping monitoring"
143
166
  }
144
167
  }
145
168
  ]
@@ -178,6 +201,20 @@ output:
178
201
  "DB Instances",
179
202
  "Description changed"
180
203
  ]
204
+ },
205
+ "prev": {
206
+ "groupName": "db",
207
+ "groupDescription": "DB Instances",
208
+ "ipPermissions": null
209
+ },
210
+ "curr": {
211
+ "groupName": "db",
212
+ "groupDescription": "Description changed",
213
+ "ipPermissions": {
214
+ "item": [
215
+ "blah blah"
216
+ ]
217
+ }
181
218
  }
182
219
  }
183
220
  ]
data/lib/d2e.rb CHANGED
@@ -38,7 +38,7 @@ class D2E
38
38
  end
39
39
  if !diff.empty?
40
40
  id = Hash[@id.map {|id| [id, prev_item[id]] }]
41
- events << {'type' => 'update', 'id' => id, 'diff' => diff}
41
+ events << {'type' => 'update', 'id' => id, 'diff' => diff, 'prev' => prev_item, 'curr' => curr_item}
42
42
  end
43
43
  end
44
44
 
@@ -1,3 +1,3 @@
1
1
  class D2E
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: d2e
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - tily
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-29 00:00:00.000000000 Z
11
+ date: 2015-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.6'
20
20
  type: :development
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: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
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: :development
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
  description: diff to events
@@ -45,7 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - .gitignore
48
+ - ".gitignore"
49
49
  - Gemfile
50
50
  - LICENSE.txt
51
51
  - README.md
@@ -63,18 +63,19 @@ require_paths:
63
63
  - lib
64
64
  required_ruby_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - '>='
71
+ - - ">="
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.3.0
76
+ rubygems_version: 2.2.2
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: diff to events
80
80
  test_files: []
81
+ has_rdoc: