share_cli 0.0.2 → 0.0.3

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 +3 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4aba7beb080d377ab4adef41a0e501f36b931060
4
- data.tar.gz: 8837eb57162ba04c2ca58cbc61b4bfa55bb2acec
3
+ metadata.gz: 4bd65c7125e9e00304807bf0d5c7dc4910c8e842
4
+ data.tar.gz: 169b3c2e01d0d164554220978dd6456d8797b3b3
5
5
  SHA512:
6
- metadata.gz: d264791fca1cbeb1a8805280c599ae93097fa13b8b635a1c42ff2ea2ef30ea8d33771c0369d05a2e817bf288fdbba3d82e2232fb77c9af23aec036aa72974c50
7
- data.tar.gz: eb6d01bc5cbc7732ebaf30806535fc7d57e2c66659df41fc4dc81e665621bf645bf899ba271c9dcd63aa06049a7f2feb4488bc796d913533d5cee60ca6628fde
6
+ metadata.gz: a107df1ae68acc071ac60ae83c01989dd5e49d66260298064219d7e5e000f43df69d701f7f5e1a0aa886a7a002acbd76d31a28f2197de1dd7d7040d8612f1534
7
+ data.tar.gz: 1afebaf4facf065c62f25cee5f31242dda91b81bdf0a028058a964b58c4ddff377caec71a2986903c9214a236925607257800f00beff329b203b28e8b58792f5
data/bin/share CHANGED
@@ -20,7 +20,7 @@ class Share < Thor
20
20
  puts "Error! Can't find \"#{file}\""
21
21
  end
22
22
  location = "#{Dir.pwd}/#{file}"
23
- sha = Digest::SHA1.hexdigest(file)
23
+ sha = Digest::SHA1.hexdigest(file+"037605")
24
24
  command = "aws s3 cp #{location} s3://xnh/public/#{sha}/#{file} --acl public-read && echo 'https://s3.amazonaws.com/xnh/public/#{sha}/#{file}' | pbcopy && echo 'https://s3.amazonaws.com/xnh/public/#{sha}/#{file}'"
25
25
  exec(command)
26
26
  end
@@ -32,16 +32,15 @@ class Share < Thor
32
32
  puts "Error! Can't find \"#{file}\""
33
33
  end
34
34
  location = "#{Dir.pwd}/#{file}"
35
- sha = Digest::SHA1.hexdigest(file)
35
+ sha = Digest::SHA1.hexdigest(file+"037605")
36
36
  command = "aws s3 rm s3://xnh/public/#{sha}/#{file} && echo 'DELETED: https://s3.amazonaws.com/xnh/public/#{sha}/#{file}'"
37
37
  exec(command)
38
38
  end
39
-
40
39
 
41
40
  end
42
41
 
43
42
 
44
- # Start Thor as usual
43
+ # Start Thor as usual
45
44
  Share.start
46
45
 
47
46
 
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick McConlogue