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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fcec32e3b8383a1aa6771821c6332a7880a0c968
4
- data.tar.gz: 4ad04df3667af46fa3da7e5fd8ee11a913aa268d
3
+ metadata.gz: 3a3423e4f15c672b75602f410f569724053579d1
4
+ data.tar.gz: bd0adebd572afa123bce4c7a44bfb15d2832ee2c
5
5
  SHA512:
6
- metadata.gz: a33bdb5177e1ed786f3c8cd7b5b5471257d6bee8f59aa5655d6ae6e80d39d2c8291ac206cd5c89f78c9b5fdd90651203b3ba1b0e688b2ed017aa0b3f9483f69a
7
- data.tar.gz: dd314ed9515f10f312febdcfb6180dec6b1ccabdcb5cfe368657bc33f37f55347aca49045f62c81bf51bc8eaba74812c40ce27a18116268a9f8c5d1786c4b2d0
6
+ metadata.gz: 080ce81106c1f21e39c1b48ec029bc7e5f25c290625b7d17a620f9ec3ae97a47378ce5d444cb3d5a811364521d475e4b02094ecdef90f545b706f354c4790b97
7
+ data.tar.gz: 64dc5609ed761b2fb7b4e554d3b6e71b0fbf1c4485ed59710c067bd55e297172d469ef9c10bbf3a9d2c9c9eb52634f22b044083fb457f474c8a72e566c6a1f44
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Galerts
2
- VERSION = '1.0.9'.freeze unless defined?(::Galerts::VERSION)
2
+ VERSION = '1.1.0'.freeze unless defined?(::Galerts::VERSION)
3
3
  end
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.9
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-08-26 00:00:00.000000000 Z
11
+ date: 2015-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize