gist_pull 0.2 → 0.3.1
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.
- data/bin/gist_pull +2 -3
- metadata +2 -2
data/bin/gist_pull
CHANGED
|
@@ -29,10 +29,10 @@ files = meta['files']
|
|
|
29
29
|
|
|
30
30
|
def download(uri, name)
|
|
31
31
|
gist = open(uri).read
|
|
32
|
-
File.open(name, 'w') do |f|
|
|
32
|
+
File.open(name, 'w+') do |f|
|
|
33
33
|
f.puts gist
|
|
34
34
|
end
|
|
35
|
-
puts "
|
|
35
|
+
puts " \e[32m√ #{name}\e[0m"
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
if files.length == 1
|
|
@@ -55,7 +55,6 @@ else
|
|
|
55
55
|
files.select!{ |f| files_desired.include? f}
|
|
56
56
|
puts "getting:"
|
|
57
57
|
files.each do |f|
|
|
58
|
-
puts " • #{f}"
|
|
59
58
|
download("https://gist.github.com/raw/#{ARGV[0]}/#{f}", f)
|
|
60
59
|
end
|
|
61
60
|
end
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: gist_pull
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version:
|
|
5
|
+
version: 0.3.1
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Artem Titoulenko
|
|
@@ -25,7 +25,7 @@ extra_rdoc_files: []
|
|
|
25
25
|
files:
|
|
26
26
|
- bin/gist_pull
|
|
27
27
|
has_rdoc: true
|
|
28
|
-
homepage: https://github.com/ArtemTitoulenko
|
|
28
|
+
homepage: https://github.com/ArtemTitoulenko/Gist-Pull
|
|
29
29
|
licenses: []
|
|
30
30
|
|
|
31
31
|
post_install_message:
|