galerts 1.0.4 → 1.0.5

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: 7c455653dd703ffc1d60a50b97e9303fc122bf72
4
- data.tar.gz: 60c18abf59c81649d8ea21b234ad6628976f4e52
3
+ metadata.gz: 877b4d65b38edf96bc4da168d3501ad6af933738
4
+ data.tar.gz: ca6a0faa18b190b28592fe67a19d18538e281bfc
5
5
  SHA512:
6
- metadata.gz: d51f6f0962f66e0ce8cc4fed2cbe72b409999d5420e86e3988f54e9cbe6e0a83b46fbe59467c52ceff26c55d7926f875b35657adfa89b087038df92db577723d
7
- data.tar.gz: 7de10b5c541dd19361695dac98b5611180bc2299ae696e7fd78fd5c6c67a0073be92fe31d7672902aef1e19917ae98afc7da8a46bffe4f510b804918a4629099
6
+ metadata.gz: 61c62948e20d35c47f14e021439a5a876447c22f3dba86a4503b1f7fe2c4cb0861d83030065f86eba8501134ae6054690a18cac0abd3cb1a14bc182c7aef284a
7
+ data.tar.gz: fd516486d76b32515e6a0e5f26d6fe953d49d7cc22a6d6efa709a2439f4e41ab971ebc31a07bc756b93be3387e834b654c0e520d9d31da32bdd53e1daa4a7911
@@ -183,6 +183,10 @@ module Galerts
183
183
  alerts.select{|a| attrs.keys.inject(true) {|memo,k| memo = memo && attrs[k] == a.send(k) }}
184
184
  end
185
185
 
186
+ def read(url)
187
+ @agent.get(url).body rescue raise "An error occurred while feed reading!"
188
+ end
189
+
186
190
  # Metaprogramming for find_by commands
187
191
  variables = Galerts::Alert.new("").instance_variables.map {|m| m.to_s.delete('@')}
188
192
  variables.each do |variable|
@@ -1,3 +1,3 @@
1
1
  module Galerts
2
- VERSION = '1.0.4'.freeze unless defined?(::Galerts::VERSION)
2
+ VERSION = '1.0.5'.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.4
4
+ version: 1.0.5
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-11-04 00:00:00.000000000 Z
11
+ date: 2015-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  version: '0'
62
62
  requirements: []
63
63
  rubyforge_project:
64
- rubygems_version: 2.2.2
64
+ rubygems_version: 2.4.2
65
65
  signing_key:
66
66
  specification_version: 4
67
67
  summary: Ruby library to manage google alerts