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 +4 -4
- data/lib/galerts/manager.rb +4 -0
- data/lib/galerts/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 877b4d65b38edf96bc4da168d3501ad6af933738
|
4
|
+
data.tar.gz: ca6a0faa18b190b28592fe67a19d18538e281bfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61c62948e20d35c47f14e021439a5a876447c22f3dba86a4503b1f7fe2c4cb0861d83030065f86eba8501134ae6054690a18cac0abd3cb1a14bc182c7aef284a
|
7
|
+
data.tar.gz: fd516486d76b32515e6a0e5f26d6fe953d49d7cc22a6d6efa709a2439f4e41ab971ebc31a07bc756b93be3387e834b654c0e520d9d31da32bdd53e1daa4a7911
|
data/lib/galerts/manager.rb
CHANGED
@@ -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|
|
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.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:
|
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.
|
64
|
+
rubygems_version: 2.4.2
|
65
65
|
signing_key:
|
66
66
|
specification_version: 4
|
67
67
|
summary: Ruby library to manage google alerts
|