thanos 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/bin/thanos +97 -0
- data/lib/thanos/version.rb +1 -1
- data/thanos.gemspec +1 -2
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5be21c42cb13e252db4c57f176736f528e4cfdf452f3538a320467f5851d1dfc
|
4
|
+
data.tar.gz: 2b20a0491325ed7332e8b45272debccefe0c7ad7859ff0fea6b8498069b06931
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a84f7c995900fac4a7cc530752df4782acb16d3df9fcef6dbc5daeab0b16ee2f4a1f2e94dd70ab17d62fbbb64542971b2b751faa3aea54cbf8bc7493fe9c9d6
|
7
|
+
data.tar.gz: a56e718a48788e67d4242e4ce5338022e16de2c6922f1eda18f67959c7b2588c1166e94ed6bc9b30cc8a893143b70385b09fdeb914611b78b628f7f1ffd9c82c
|
data/bin/thanos
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
def hasGem(command)
|
4
|
+
exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
|
5
|
+
ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
|
6
|
+
exts.each { |ext|
|
7
|
+
exe = File.join(path, "#{command}#{ext}")
|
8
|
+
return true if File.executable?(exe) && !File.directory?(exe)
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
begin
|
13
|
+
require command
|
14
|
+
return true
|
15
|
+
rescue Exception => exception
|
16
|
+
return false
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
if ARGV[0] == '--help' || ARGV[0] == '-h'
|
21
|
+
puts "Look for other gems on https://rubygems.org/"
|
22
|
+
puts "For TL;DR version check https://thanosjs.org/"
|
23
|
+
puts ""
|
24
|
+
puts "Commands"
|
25
|
+
puts " snap-fingers Do the snap"
|
26
|
+
puts " -wg, --with-glove Put on the Infinity Gauntlet"
|
27
|
+
puts " -h, --help Show this message and quit"
|
28
|
+
return
|
29
|
+
end
|
30
|
+
|
31
|
+
if !(hasGem('power') && hasGem('reality') && hasGem('mind') && hasGem('space') && hasGem('time') && hasGem('soul'))
|
32
|
+
puts "I still need to look for other gems!?"
|
33
|
+
return
|
34
|
+
end
|
35
|
+
|
36
|
+
if ARGV[0] == 'snap-fingers' && (ARGV[1] == '-wg' || ARGV[1] == '--with-glove')
|
37
|
+
puts "
|
38
|
+
@@@@@@@@@@@@@@@@@@@@@@@@&@@@@@@@%@@@@&&%@(.%&,,/,,,@#&&&/.#..%@@#@@@&@@@@@@@@@@
|
39
|
+
@@@@@@@@&%#@/(&@@@@@@@@@@##/%@@@%@#%@&(((,.%&. #&@&%%@&/&&@@@@@@@@@@@@@@@@@%
|
40
|
+
@@@@@&********&##@@@@@@@@((&&&&&&@&* # &( #( #% ( *(&%&@@&&@#@@@@@@@@@@@@@@@@&@
|
41
|
+
&@@@%*********(#(*@@@@@@%*&#%%&@%#(#&&(@,%&@.%,&&&#&%,&&@&@&@@@@@@@@&/&&@@&&@@@
|
42
|
+
&@@@#**********%%**@@@@@@@@@@&@@@@@%.*@&%#* ,&@,* *@@@@@@@@@@@@@@@@@(,@@@@@@%#@
|
43
|
+
&@&@#**********&(/,%@@@@(@@@@@&&&@@@@@@&%&(&%@&(@#*@@@@@@&@&@@@@@@@@@@@@@@@&@@@
|
44
|
+
@@@@/***///****&(%,#@@@@@@@@@@@@@@@@@@#(%##@&/ %@@@@@*@@@@@@@@@@@@@@@@@@&.,@@@@
|
45
|
+
@@@%&@#/,,,,,,*%%*,/@@@@@@@@@@@@@@@@@@@@@@@@(%&@@&@@@@@@@@@@@@@@@@@@@@%&@@@@@@@
|
46
|
+
@@&*,,,,*////*,*,*&&@@@@@@@@@@@@@@@@@@@@. * /##& .@@@@@@@@@&&@@@@@@@@@##@@@@@@
|
47
|
+
@@(&%&/*(%&&&%#/,,,&@@@@@@@@@@@@@@@&@@. . *#& (@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
48
|
+
/&@%%#*********#/@#*@@@@@@@@@@@&@@@@@@@@@%#.,,*%@@& /@@@@@@@@@@@@@@@@@@@@@@@@@@
|
49
|
+
#*#************%(*(#@@@@@@@@@@@@@@@@@@@@@@@@*@@@/#@@@@@@@@@%*/@@@@@@@@@@@@@@@@@
|
50
|
+
/#*************#*,,@@@@@@@@@@@@@@@@@@@@@@@@& (@@*@&@@@@@@/,&(******/&@@@@@@@@@@
|
51
|
+
@#*****(&&#*****/(&@@@@@@@@@@@/,,,,,,/@#@@@&@@@@@&#(*,&#*%#**********#@@@@@@@@@
|
52
|
+
@%**%@/,,,,,*,,,*%@#&@@@@@@@%(*/&@#,,,,#%*,,,,,,*#&%&%,%%************&@@@@@@@@@
|
53
|
+
@@&#,,,,,*&(,*&%*/@&,&@@,,,,,,,,*(#@#,,,%&/(####***&//@(************/@@@@@@@@@@
|
54
|
+
@&*,,,,,/@&,,#(**#(,#@*,/%&*##%%/***(%,,,#%*******&*&%**************&@@@@@@@@@@
|
55
|
+
@*,,,,,,/@@,,%*****#,*@#,,,#&********#,,,/&******&(&%**************/@@@@@@@@@@@
|
56
|
+
@#,,,,,,,*&%,%******(%,(@*,,,&*********,,*@*****%#%&***************%@@@@@@@@@@@
|
57
|
+
@@&/,,,,,#@*,#********&/,&&,,,&/*****((,,(&****/&*%%**/#&%#//(%&&#/&@@@@@@@@@@@
|
58
|
+
@@@@@@(,,,&*,*#********((,*@/,/&*****%*,*&(****&(,*%#*,,,,,,,,,,,,#@@@@@@@@@@@@
|
59
|
+
@@@@&(@@*,,&*,#/*******/#,,(@*,%****/#,,&/*****@%@/*,,,,,,,,,,,,,,,/@@@@@@@@@@@
|
60
|
+
@@@@@@@@@*,*&/,(/********##,%&,%***&*,(@##%&#&@&%&*#(/*****&%*,,,,,,*@@@@@@@@@@
|
61
|
+
@@@@@@@&*&*,,##*/%********#,,#@&%@@&@@@@.%(.@@@%,,&@&&@%,,*&@%,,,,,,#@@&@@@@@@@
|
62
|
+
@@@@@@@/(*@*,,,,,,(@&(*****((,/(@@@@@@@@@@@&@#@@&(&%****%&,*&&,,,,,%@@@@(/&@@@@
|
63
|
+
@@@@@@%(,,/@*,,/%%%/,/&%*///*&,,*%@@@@@@@@@@@&&@@@(%******&*,*@*,,,@@@@@@@@@@@&
|
64
|
+
@@@@@@/(,,/@@/#,,,,,,(/,%%***&&*,,,/%,@@@@@@@@@@@@/#*******%(,/&,,,@@@@@@@@@/#@
|
65
|
+
@@@@@@*,,,/%/@/,,,,,,,,(**&******%(,,,,*/##,%@@&&(/(********##*&*,,@@@@@@@@@@@@
|
66
|
+
@&/%%&##&#,##/(,,,,,,,,,/(/#**********/////****#*********(/**%*#/,,#@@@@@@@@@@@
|
67
|
+
#,*&//////#(/#&,,,,,,,,,,%,&************/%&%#/#**********(#**/(/#,,*@@@@@@@@@@@
|
68
|
+
*,(#///////(%,&&*,,,,,,,,#*&********((#(//(*(#***********/#***#,&,,,%@@@@&&@@@@
|
69
|
+
*,(#/////////%*%#@#,,,,,%#/#***********//****************%/***&,&*,,,&@@@@@@@@@
|
70
|
+
*,*&//////////%//**//%@%/&%*****************************%%/***&,%,,,,,&@@@@@@@@
|
71
|
+
&&@@&/////////%,%*************************************#(#%****&*#,,*//**@@@@@@@
|
72
|
+
%%%%&@&(//////#,%*************************************#******/%&*/@%((#%@@@@@@@
|
73
|
+
%%%%%%%*&#@%(,*&/*************************************/******(@##%((//((((&@@@@
|
74
|
+
%%%%%%&#(#****************************************************@*&(/(((((/((&@@@
|
75
|
+
%%%%%%%&(#***/%***********************************************&,&((((((/((/(&@@
|
76
|
+
@&%%%%&*&******(**********************************************&*%((((((//(/(%@@
|
77
|
+
#%#@@%&#******************************************************#%*%(//(((((/(%@@
|
78
|
+
##%#&#%%/******************************************************/#,%(((/(/(((&@@
|
79
|
+
##&@**(&#&/******/%%%%&#****************************************(@/#%(/(/(#@(/@
|
80
|
+
//******//&/****(@####%%,%%***************************************(@&*(#%%@/*%@
|
81
|
+
*#*********&/***%%#######&*&******************************************(#/**/@/@
|
82
|
+
@%#%(/**********&%########%*#(*********************************************%*/@
|
83
|
+
,#&#(%(*********/@#########%*(********************************************//,#@
|
84
|
+
@#***(#(*********/@##########,#******************************************(&*,%@
|
85
|
+
@@&*****%**********&&#######%(/%*****************************************/(,,&&
|
86
|
+
@@@%*****/%**********#@%####&/#(****************************************##,,%*@
|
87
|
+
@@@@%******&************&@##,##****************************************/%,,##/(
|
88
|
+
@@@@@&******&&*******************************************************//&,,(.#@@
|
89
|
+
@@@@@@@/****//*********************/%@%@&%##//******************/(*%/(#*,/@@@%@
|
90
|
+
@@@@@@@@@(***(/***************/#@@#%#&&(*/***/**/#%@@@#****/&*#&(%/%(((,*@@@@@@
|
91
|
+
@@@@@@@@@@@&#*******/#%****#@&%%/#***/(#&&%(***********,,,,,*%@((&/&#/*,@@@,&@@
|
92
|
+
@@@@@@&@@@@@@/**(&%*****#%&&&%#//************************,,,,,,*@&/&&/,%@@@@@@@
|
93
|
+
Snap...
|
94
|
+
"
|
95
|
+
else
|
96
|
+
puts "Maybe try putting the gauntlet on. Use --help for more details."
|
97
|
+
end
|
data/lib/thanos/version.rb
CHANGED
data/thanos.gemspec
CHANGED
@@ -18,8 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.license = 'MIT'
|
19
19
|
|
20
20
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
-
spec.
|
22
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
|
+
spec.executables = [ 'thanos' ]
|
23
22
|
spec.require_paths = ['lib']
|
24
23
|
|
25
24
|
spec.required_ruby_version = '>= 2.0.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thanos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Nyman
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -129,7 +129,8 @@ description: |2-
|
|
129
129
|
universe.
|
130
130
|
email:
|
131
131
|
- jeffnyman@gmail.com
|
132
|
-
executables:
|
132
|
+
executables:
|
133
|
+
- thanos
|
133
134
|
extensions: []
|
134
135
|
extra_rdoc_files: []
|
135
136
|
files:
|
@@ -145,6 +146,7 @@ files:
|
|
145
146
|
- Rakefile
|
146
147
|
- bin/console
|
147
148
|
- bin/setup
|
149
|
+
- bin/thanos
|
148
150
|
- lib/thanos.rb
|
149
151
|
- lib/thanos/api/authentication.rb
|
150
152
|
- lib/thanos/api/client.rb
|
@@ -212,7 +214,7 @@ licenses:
|
|
212
214
|
- MIT
|
213
215
|
metadata: {}
|
214
216
|
post_install_message: "\n(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)\n\n
|
215
|
-
\ Thanos 0.
|
217
|
+
\ Thanos 0.6.0 has been installed.\n\n(::) (::) (::) (::) (::) (::) (::) (::) (::)
|
216
218
|
(::) (::) (::)\n "
|
217
219
|
rdoc_options: []
|
218
220
|
require_paths:
|
@@ -229,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
231
|
version: '0'
|
230
232
|
requirements: []
|
231
233
|
rubyforge_project:
|
232
|
-
rubygems_version: 2.
|
234
|
+
rubygems_version: 2.7.6
|
233
235
|
signing_key:
|
234
236
|
specification_version: 4
|
235
237
|
summary: Marvel Comics API Entity Wrapper
|