galerts 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c6fc31d3e2abe58ef6cc1481ec06d1f9f73bd7f
4
- data.tar.gz: 1fdca1a4dcb02b9c1b250a59e98f2bf1f85eeef5
3
+ metadata.gz: 7c455653dd703ffc1d60a50b97e9303fc122bf72
4
+ data.tar.gz: 60c18abf59c81649d8ea21b234ad6628976f4e52
5
5
  SHA512:
6
- metadata.gz: fc1f5bd2f86a840e6b05818e6e9d95806d2945cfc42fdf3a532afecfb9777598c3d06a5bd34d8516719893f17156b0f5b6b761da1aff10323f4824bc4c616802
7
- data.tar.gz: 78066106154bf53a736f72dadda90c1b6adae2cc83e56216446aee0192ef4742809c9a8a042f67905248f66815d816991d590998bfdb0aa987d7c1eae9988e2e
6
+ metadata.gz: d51f6f0962f66e0ce8cc4fed2cbe72b409999d5420e86e3988f54e9cbe6e0a83b46fbe59467c52ceff26c55d7926f875b35657adfa89b087038df92db577723d
7
+ data.tar.gz: 7de10b5c541dd19361695dac98b5611180bc2299ae696e7fd78fd5c6c67a0073be92fe31d7672902aef1e19917ae98afc7da8a46bffe4f510b804918a4629099
@@ -126,7 +126,7 @@ module Galerts
126
126
  def create(query, options = {})
127
127
  alert = Alert.new(query, options)
128
128
 
129
- x = alerts_page.css('div#gb-main div.main-page script').text.split(',').last(12).first.tr('"/\"','')
129
+ x = alerts_page.css('div#gb-main div.main-page script').text.split(',').grep(/AMJH/).first.tr('"/\"','')
130
130
  response = @agent.post("#{CREATE_ALERT_URL}x=#{x}", build_params(alert, 0), {'Content-Type' => 'application/x-www-form-urlencoded'})
131
131
 
132
132
  if response.body == ALERT_EXIST
@@ -1,3 +1,3 @@
1
1
  module Galerts
2
- VERSION = '1.0.3'.freeze unless defined?(::Galerts::VERSION)
2
+ VERSION = '1.0.4'.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.3
4
+ version: 1.0.4
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: 2014-10-20 00:00:00.000000000 Z
11
+ date: 2014-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize