share_cli 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/share +2 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4bd65c7125e9e00304807bf0d5c7dc4910c8e842
4
- data.tar.gz: 169b3c2e01d0d164554220978dd6456d8797b3b3
3
+ metadata.gz: d920aabe08dc24d09834a312e601fe8dbb2f9a01
4
+ data.tar.gz: 1782c931daab32bb8bf7f3ab16d9f580df1f91e7
5
5
  SHA512:
6
- metadata.gz: a107df1ae68acc071ac60ae83c01989dd5e49d66260298064219d7e5e000f43df69d701f7f5e1a0aa886a7a002acbd76d31a28f2197de1dd7d7040d8612f1534
7
- data.tar.gz: 1afebaf4facf065c62f25cee5f31242dda91b81bdf0a028058a964b58c4ddff377caec71a2986903c9214a236925607257800f00beff329b203b28e8b58792f5
6
+ metadata.gz: d81f06bb8344cc461f61f99b71628ef1d85e492bf3e2ea560521e161cf84397f8c214729f35d9f90fdd1f0e548aa5842c1e99b1ef67bc31e2b0915b51366d532
7
+ data.tar.gz: d74342d0cf22c2183578907e193476290cae5cb277c44d90b7ae044539dfeef8e5289e911addd2d6f8f79a41b58cbf7637a84314ebddbc58c021734695942da9
data/bin/share CHANGED
@@ -9,14 +9,14 @@ class Share < Thor
9
9
 
10
10
  desc "get FILE", "Download file from S3"
11
11
  def get(file)
12
- sha = Digest::SHA1.hexdigest(file)
12
+ sha = Digest::SHA1.hexdigest(file+"037605")
13
13
  command = "aws s3 cp s3://xnh/public/#{sha}/#{file} #{file} && echo '#{file}'"
14
14
  exec(command)
15
15
  end
16
16
 
17
17
  desc "post FILE", "Post file to S3"
18
18
  def post(file = nil)
19
- unless File.exists? file
19
+ unless File.exists? file.split!
20
20
  puts "Error! Can't find \"#{file}\""
21
21
  end
22
22
  location = "#{Dir.pwd}/#{file}"
@@ -40,7 +40,6 @@ class Share < Thor
40
40
  end
41
41
 
42
42
 
43
- # Start Thor as usual
44
43
  Share.start
45
44
 
46
45
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: share_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick McConlogue