trick_or_treat 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/trick_or_treat/version.rb +1 -1
- data/lib/trick_or_treat.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6b2244ce4de2147a8080dd06244109cb9e2ddd90ae736c903df570884c3f0ec
|
4
|
+
data.tar.gz: b669c79c7db828c49f2400468e41484ea9bfa2c0ea82cecebff3cee37b0bcb20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1edc22a6a94860bf8d05f02006918ea640be31cca225f5bc62a7683d468dab4066bb7bba0f0fa5e7e69871fba2f3377740088f474f504560c098a420c6c170d4
|
7
|
+
data.tar.gz: 57f28cdbd0b16f5c22641367b27956c1b5d130f1b8038a65776befddeeedb58b0c7cfd994ad8a788f6125f752358d3261889e6f6b4186961fac27f60e15e5d58
|
data/Gemfile.lock
CHANGED
data/lib/trick_or_treat.rb
CHANGED
@@ -32,9 +32,8 @@ module TrickOrTreat
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def get_links
|
35
|
-
@types=['bash', 'vim', 'ruby']
|
36
35
|
nodes=Nokogiri::HTML(open(@uri)).css('a')
|
37
|
-
nodes.collect{|n| n['href'] if n.child.to_s.match
|
36
|
+
nodes.collect{|n| n['href'] if n.child.to_s.match /trick/i}.compact
|
38
37
|
end
|
39
38
|
|
40
39
|
def trick
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trick_or_treat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Romero
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|