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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a288ace5217445a124d872f46861add207fda8c47747646d39bab80796a6d70d
4
- data.tar.gz: ef8fcceb06a3b6a10cce959147f6c99f8683f582d2c9546003aa3e20a96c395a
3
+ metadata.gz: f6b2244ce4de2147a8080dd06244109cb9e2ddd90ae736c903df570884c3f0ec
4
+ data.tar.gz: b669c79c7db828c49f2400468e41484ea9bfa2c0ea82cecebff3cee37b0bcb20
5
5
  SHA512:
6
- metadata.gz: c7603403356de519f2c0f361fa60d71cc3f9aeae82c7f86733af4f698764121d2b8ec328c89050b73f0dfd5400a37c19717c53b4ef3e1ffcfe1544a81dbd9997
7
- data.tar.gz: 28bc158c65abf6e266350b434380de940020b79bba1b7e9b7120b62151603a206a256ca3082bc58222d18745c95b7c0bda4616afa47151e342826edf5c7ca250
6
+ metadata.gz: 1edc22a6a94860bf8d05f02006918ea640be31cca225f5bc62a7683d468dab4066bb7bba0f0fa5e7e69871fba2f3377740088f474f504560c098a420c6c170d4
7
+ data.tar.gz: 57f28cdbd0b16f5c22641367b27956c1b5d130f1b8038a65776befddeeedb58b0c7cfd994ad8a788f6125f752358d3261889e6f6b4186961fac27f60e15e5d58
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trick_or_treat (0.1.3)
4
+ trick_or_treat (0.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module TrickOrTreat
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -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 /#{@types.join('|')}/i}.compact
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.0
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-01 00:00:00.000000000 Z
11
+ date: 2019-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler