trick_or_treat 0.1.1 → 0.1.2
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/README.md +0 -4
- data/lib/trick_or_treat.rb +3 -3
- data/lib/trick_or_treat/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1feb7a24e583dd9808dbd3103f7ccbea3e6b95b351498cf81d2cc070cc216439
|
4
|
+
data.tar.gz: be0300bc411319d8ea87156673518d666e0a884bea9927b46731a93f87c94cf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 893f4381d758a8ded4ac89143727b2265400088164c650d1f5149e7018ddf8ba27b31c58f00a65e62fd773db2bcf9ceea97e68953cf2e717f9251814931a123e
|
7
|
+
data.tar.gz: ca2c51b6070d4c79de732cb4f4af911cd03916250fb7f1335707042fabf3f278b3757469d7cb453b2939e642adebc50d612f80c525a119feda8deb32fe3ae843
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/trick_or_treat.rb
CHANGED
@@ -14,7 +14,7 @@ module TrickOrTreat
|
|
14
14
|
printf "\e[1;38;05;202mTrick or Treat? "
|
15
15
|
return trick if args.delete('trick')
|
16
16
|
return treat if args.delete('treat')
|
17
|
-
|
17
|
+
print "\e[1;38;05;165mNo candy for you\e[0m"
|
18
18
|
end
|
19
19
|
|
20
20
|
# ensure returned object to be a Tempfile
|
@@ -37,7 +37,7 @@ module TrickOrTreat
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def trick
|
40
|
-
printf "\e[1;38;05;
|
40
|
+
printf "\e[1;38;05;165mTrick\e[0m\n"
|
41
41
|
links=get_links
|
42
42
|
link=links.sample
|
43
43
|
f=open([@uri,link].join('/'))
|
@@ -47,7 +47,7 @@ module TrickOrTreat
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def treat
|
50
|
-
printf "\e[1;38;05;
|
50
|
+
printf "\e[1;38;05;165mTreat\e[0m\n"
|
51
51
|
@treat='quotes.yml'
|
52
52
|
headers={}
|
53
53
|
headers={'user-agent' => 'treat'}
|