galerts 1.0.9 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/galerts/manager.rb +1 -1
- data/lib/galerts/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a3423e4f15c672b75602f410f569724053579d1
|
4
|
+
data.tar.gz: bd0adebd572afa123bce4c7a44bfb15d2832ee2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 080ce81106c1f21e39c1b48ec029bc7e5f25c290625b7d17a620f9ec3ae97a47378ce5d444cb3d5a811364521d475e4b02094ecdef90f545b706f354c4790b97
|
7
|
+
data.tar.gz: 64dc5609ed761b2fb7b4e554d3b6e71b0fbf1c4485ed59710c067bd55e297172d469ef9c10bbf3a9d2c9c9eb52634f22b044083fb457f474c8a72e566c6a1f44
|
data/lib/galerts/manager.rb
CHANGED
@@ -159,7 +159,7 @@ module Galerts
|
|
159
159
|
response = @agent.post("#{MODIFY_ALERT_URL}x=#{x}", build_params(alert, 1), {'Content-Type' => 'application/x-www-form-urlencoded'})
|
160
160
|
|
161
161
|
if response.body == ALERT_EXIST
|
162
|
-
find_by_query(query).first
|
162
|
+
find_by_query(alert.query).first
|
163
163
|
elsif response.body == ALERT_SOMETHING_WENT_WRONG
|
164
164
|
raise "Something went wrong!" # internal error, html changed maybe
|
165
165
|
else
|
data/lib/galerts/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: galerts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emre Can Yılmaz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mechanize
|