dumpy 1.1 → 1.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c9ac8abb6c7f4d5cdbb3955a850bc5ba089f3e2
4
- data.tar.gz: 223edbbc0a6d6b74be7af282e88b48b915963573
3
+ metadata.gz: 371eff57c1ecb3bb5770dca0bd1eb4942adf23aa
4
+ data.tar.gz: ff01e647a39136562ee4c6e43857852821ca3323
5
5
  SHA512:
6
- metadata.gz: bd42e445e4b61b4e59eab389305778406dcec045e95fbb0c5fad56d793c3822ca02f1271d15f1c23233e9327959b5baf729eb34f1786e4d3b350048725e7e688
7
- data.tar.gz: 257484cd1b054329a631eb8b0688ed20d4b0860b7329e133d0b592f51cd9d0f7a947874743a0891c40c5a0ad6efa6dbddc6e545bb825aede8c3973c42e874719
6
+ metadata.gz: 0863cdf7f8fb1bdea15821ab78648033a8091f5094819d25dd35106d415f3e5fc0e4c54587dbc1f4cb37ef3bac3c04b950bd549a37e6c0f50f128b0ab39b75f0
7
+ data.tar.gz: 3c0146a0ee7e638937719a690e855d2a6236975b02414e75af01f6f68502dd70dc8f1f33cc9e49f192725501e727cfab280433fa07f28b3938faf9feea952e4c
data/README.md CHANGED
@@ -23,3 +23,5 @@ Install it yourself using:
23
23
  3. Commit your changes (`git commit -am 'Add some feature'`)
24
24
  4. Push to the branch (`git push origin my-new-feature`)
25
25
  5. Create a new Pull Request
26
+
27
+ ![dumpy demo](/Users/adrian/Desktop/dumpy.gif "dumpy demo")
data/dumpy.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Adrian Bordinc"]
10
10
  spec.email = ["adrian.bordinc@gmail.com"]
11
11
  spec.summary = %q{Share a file from the terminal}
12
- spec.homepage = "http://github.com/ellimist/dumpy"
12
+ spec.homepage = "http://dumpy.io"
13
13
  spec.license = "MIT"
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0")
data/lib/dumpy.rb CHANGED
@@ -8,23 +8,22 @@ module Dumpy
8
8
 
9
9
  def self.upload(filename)
10
10
  url = "http://dumpy.io/upload.php"
11
- download_link = "http://dumpy.io/download.php?q="
12
- begin
13
- current_dir = `pwd`
14
- file = current_dir.strip + "/" + filename
15
-
16
- begin
17
- data = RestClient.post(url, :file => File.new(file))
18
- rescue => e
19
- e.response
20
- end
21
-
11
+ download_link = "http://dumpy.io/download.php?q="
12
+ begin
13
+ current_dir = `pwd`
14
+ file = current_dir.strip + "/" + filename
15
+
16
+ begin
17
+ data = RestClient.post(url, :file => File.new(file))
18
+ rescue => e
19
+ puts "Upsss... Something went wrong"
20
+ end
22
21
  data = JSON.parse(data)
23
22
  Clipboard.copy download_link+data[0]
24
23
  puts "Your link was copied to your clipboard. Just paste it! \nThe download link will be valid for 3 days. \n:-) \n"
25
- rescue => e
26
- puts "Something's wrong."
27
- end
24
+ rescue => er
25
+ puts "Upssss... Something went wrong"
26
+ end
28
27
  end
29
28
  end
30
29
  end
data/lib/dumpy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dumpy
2
- VERSION = "1.1"
2
+ VERSION = "1.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dumpy
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.1'
4
+ version: '1.11'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Bordinc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-01 00:00:00.000000000 Z
11
+ date: 2014-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -115,7 +115,7 @@ files:
115
115
  - dumpy.gemspec
116
116
  - lib/dumpy.rb
117
117
  - lib/dumpy/version.rb
118
- homepage: http://github.com/ellimist/dumpy
118
+ homepage: http://dumpy.io
119
119
  licenses:
120
120
  - MIT
121
121
  metadata: {}