From 25273ac823c1a2110a688663a25450650099ead9 Mon Sep 17 00:00:00 2001 From: Clint Shryock Date: Thu, 27 Jan 2011 21:07:46 -0600 Subject: [PATCH 1/8] Regenerate gemspec for version 0.0.1 --- growl-down.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/growl-down.gemspec b/growl-down.gemspec index 9392593..8690e8b 100644 --- a/growl-down.gemspec +++ b/growl-down.gemspec @@ -29,6 +29,7 @@ Gem::Specification.new do |s| "features/gd_scp_file.feature", "features/step_definitions/gd_scp_steps.rb", "features/support/env.rb", + "growl-down.gemspec", "lib/growl-down.rb", "lib/growl-down/gd_scp.rb", "test/helper.rb", From f64158b90ddb8345a48b2dede6d32a9521231e4d Mon Sep 17 00:00:00 2001 From: Clint Shryock Date: Thu, 27 Jan 2011 21:14:11 -0600 Subject: [PATCH 2/8] Version bump to 0.0.2 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 8a9ecc2..7bcd0e3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.1 \ No newline at end of file +0.0.2 \ No newline at end of file From 76dbe5a18058cd7ce7a647c3d2dfb096c5772fab Mon Sep 17 00:00:00 2001 From: Clint Shryock Date: Thu, 27 Jan 2011 21:14:24 -0600 Subject: [PATCH 3/8] Regenerate gemspec for version 0.0.2 --- growl-transfer.gemspec | 82 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 growl-transfer.gemspec diff --git a/growl-transfer.gemspec b/growl-transfer.gemspec new file mode 100644 index 0000000..3e3112a --- /dev/null +++ b/growl-transfer.gemspec @@ -0,0 +1,82 @@ +# Generated by jeweler +# DO NOT EDIT THIS FILE DIRECTLY +# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' +# -*- encoding: utf-8 -*- + +Gem::Specification.new do |s| + s.name = %q{growl-transfer} + s.version = "0.0.2" + + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.authors = ["Clint Shryock"] + s.date = %q{2011-01-27} + s.default_executable = %q{gt} + s.description = %q{A ruby gem wrapper around scp / curl / wget (and the like) that notifies you via Growl when the transfer is complete} + s.email = %q{clint+growl-transfer@ctshryock.com} + s.executables = ["gt"] + s.extra_rdoc_files = [ + "LICENSE.txt", + "README.rdoc" + ] + s.files = [ + "Gemfile", + "Gemfile.lock", + "LICENSE.txt", + "README.rdoc", + "Rakefile", + "VERSION", + "bin/gt", + "features/gt_scp_file.feature", + "features/step_definitions/gt_scp_steps.rb", + "features/support/env.rb", + "growl-down.gemspec", + "lib/growl-transfer.rb", + "lib/growl-transfer/gt_scp.rb", + "test/helper.rb", + "test/test_gd.rb" + ] + s.homepage = %q{https://github.com/ctshryock/growl-transfer} + s.licenses = ["MIT"] + s.require_paths = ["lib"] + s.rubygems_version = %q{1.3.7} + s.summary = %q{Transfer big files, get Growl notice when it's done} + s.test_files = [ + "test/helper.rb", + "test/test_gd.rb" + ] + + if s.respond_to? :specification_version then + current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION + s.specification_version = 3 + + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then + s.add_development_dependency(%q, [">= 0"]) + s.add_development_dependency(%q, ["~> 1.0.0"]) + s.add_development_dependency(%q, ["~> 1.5.1"]) + s.add_development_dependency(%q, [">= 0"]) + s.add_development_dependency(%q, [">= 3.0"]) + s.add_development_dependency(%q, [">= 1.0.4"]) + s.add_runtime_dependency(%q, [">= 3.0"]) + s.add_runtime_dependency(%q, [">= 1.0.4"]) + else + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, ["~> 1.0.0"]) + s.add_dependency(%q, ["~> 1.5.1"]) + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 3.0"]) + s.add_dependency(%q, [">= 1.0.4"]) + s.add_dependency(%q, [">= 3.0"]) + s.add_dependency(%q, [">= 1.0.4"]) + end + else + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, ["~> 1.0.0"]) + s.add_dependency(%q, ["~> 1.5.1"]) + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 3.0"]) + s.add_dependency(%q, [">= 1.0.4"]) + s.add_dependency(%q, [">= 3.0"]) + s.add_dependency(%q, [">= 1.0.4"]) + end +end + From 2a71d1ee8e2729c7f04a4abc324fadfec7e7b729 Mon Sep 17 00:00:00 2001 From: Clint Shryock Date: Thu, 27 Jan 2011 21:21:09 -0600 Subject: [PATCH 4/8] Remove references for 'growl-down' since rename --- growl-down.gemspec | 82 ---------------------------------------------- 1 file changed, 82 deletions(-) delete mode 100644 growl-down.gemspec diff --git a/growl-down.gemspec b/growl-down.gemspec deleted file mode 100644 index 8690e8b..0000000 --- a/growl-down.gemspec +++ /dev/null @@ -1,82 +0,0 @@ -# Generated by jeweler -# DO NOT EDIT THIS FILE DIRECTLY -# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{growl-down} - s.version = "0.0.1" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Clint Shryock"] - s.date = %q{2011-01-27} - s.default_executable = %q{gd} - s.description = %q{A ruby gem wrapper around scp / curl / wget (and the like) that notifies you via Growl when the transfer is complete} - s.email = %q{clint+growl-down@ctshryock.com} - s.executables = ["gd"] - s.extra_rdoc_files = [ - "LICENSE.txt", - "README.rdoc" - ] - s.files = [ - "Gemfile", - "Gemfile.lock", - "LICENSE.txt", - "README.rdoc", - "Rakefile", - "VERSION", - "bin/gd", - "features/gd_scp_file.feature", - "features/step_definitions/gd_scp_steps.rb", - "features/support/env.rb", - "growl-down.gemspec", - "lib/growl-down.rb", - "lib/growl-down/gd_scp.rb", - "test/helper.rb", - "test/test_gd.rb" - ] - s.homepage = %q{http://github.com/ctshryock/gd} - s.licenses = ["MIT"] - s.require_paths = ["lib"] - s.rubygems_version = %q{1.3.7} - s.summary = %q{Download big files, get Growl notice when it's done} - s.test_files = [ - "test/helper.rb", - "test/test_gd.rb" - ] - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then - s.add_development_dependency(%q, [">= 0"]) - s.add_development_dependency(%q, ["~> 1.0.0"]) - s.add_development_dependency(%q, ["~> 1.5.1"]) - s.add_development_dependency(%q, [">= 0"]) - s.add_development_dependency(%q, [">= 3.0"]) - s.add_development_dependency(%q, [">= 1.0.4"]) - s.add_runtime_dependency(%q, [">= 3.0"]) - s.add_runtime_dependency(%q, [">= 1.0.4"]) - else - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, ["~> 1.0.0"]) - s.add_dependency(%q, ["~> 1.5.1"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 3.0"]) - s.add_dependency(%q, [">= 1.0.4"]) - s.add_dependency(%q, [">= 3.0"]) - s.add_dependency(%q, [">= 1.0.4"]) - end - else - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, ["~> 1.0.0"]) - s.add_dependency(%q, ["~> 1.5.1"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 3.0"]) - s.add_dependency(%q, [">= 1.0.4"]) - s.add_dependency(%q, [">= 3.0"]) - s.add_dependency(%q, [">= 1.0.4"]) - end -end - From 9caa91b7b2c13f960155cece23009bf7abcc68a9 Mon Sep 17 00:00:00 2001 From: Clint Shryock Date: Thu, 27 Jan 2011 21:39:39 -0600 Subject: [PATCH 5/8] Update README --- README.md | 30 ++++++++++++++++++++++++++++++ README.rdoc | 19 ------------------- 2 files changed, 30 insertions(+), 19 deletions(-) create mode 100644 README.md delete mode 100644 README.rdoc diff --git a/README.md b/README.md new file mode 100644 index 0000000..3fbd1dc --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +#Growl-Transfer + +Growl-Transfer is a little gem that wraps around a file transfer protocol (scp/curl) and notifies you via growl when the transfer is complete. + +##Installation +Growl-Transfer requires [Growl][1] to be installed first. + + gem install growl-transfer + +Then, in Growl's preferences, enable "Listen for incoming notifications" and "Allow remote application registration". +Growl-Transfer sends growl notifications to "localhost" and needs these options enabled to function. (Password support coming...'soon') + +!["Growl Preferences"](http://ctshryock.com/static/images/growl-transfer-prefs.png) + +##Contributing to Growl-Transfer + +* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet +* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it +* Fork the project +* Start a feature/bugfix branch +* Commit and push until you are happy with your contribution +* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally. +* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it. + +##Copyright + +Copyright (c) 2011 Clint Shryock. See LICENSE.txt for +further details. + +[1]: http://growl.info/ \ No newline at end of file diff --git a/README.rdoc b/README.rdoc deleted file mode 100644 index ab88275..0000000 --- a/README.rdoc +++ /dev/null @@ -1,19 +0,0 @@ -= growl-down - -Growl-Down is a little gem that wraps around a file transfer protocol (scp/curl) and notifies you via growl when the transfer is complete. - -== Contributing to growl-down - -* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet -* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it -* Fork the project -* Start a feature/bugfix branch -* Commit and push until you are happy with your contribution -* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally. -* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it. - -== Copyright - -Copyright (c) 2010 Clint Shryock. See LICENSE.txt for -further details. - From c70d6cafc8ae72421b23f6af8d083160a2a014c7 Mon Sep 17 00:00:00 2001 From: Clint Shryock Date: Thu, 27 Jan 2011 21:42:21 -0600 Subject: [PATCH 6/8] Add limited feature desc --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 3fbd1dc..e2ee887 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Growl-Transfer is a little gem that wraps around a file transfer protocol (scp/curl) and notifies you via growl when the transfer is complete. +This is an early release, so there's not a ton here. + ##Installation Growl-Transfer requires [Growl][1] to be installed first. @@ -12,6 +14,11 @@ Growl-Transfer sends growl notifications to "localhost" and needs these options !["Growl Preferences"](http://ctshryock.com/static/images/growl-transfer-prefs.png) +##Features + +- Download files using scp and ssh keyless authentication +- Much more coming soon... + ##Contributing to Growl-Transfer * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet From 0e6368976cd3c4b8d354e190f1b5bc507f57e9b6 Mon Sep 17 00:00:00 2001 From: Clint Shryock Date: Fri, 28 Jan 2011 13:11:31 -0600 Subject: [PATCH 7/8] Version bump to 0.0.3 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 7bcd0e3..6812f81 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.2 \ No newline at end of file +0.0.3 \ No newline at end of file From 816935cbdd4f3ebc29208b13914e7139f7340ac1 Mon Sep 17 00:00:00 2001 From: Clint Shryock Date: Fri, 28 Jan 2011 13:13:14 -0600 Subject: [PATCH 8/8] Use current UNIX user, incase your name isn't Clint --- lib/growl-transfer/gt_scp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/growl-transfer/gt_scp.rb b/lib/growl-transfer/gt_scp.rb index 048149a..6973d1d 100644 --- a/lib/growl-transfer/gt_scp.rb +++ b/lib/growl-transfer/gt_scp.rb @@ -8,7 +8,7 @@ def download(remote, local_path) @output.puts "Downloading #{remote}" params = remote.split(":") file = params.last.split("/").last - Net::SCP.start(params[0], "clint") do |scp| + Net::SCP.start(params[0], ENV['USER']) do |scp| scp.download!(params[1], local_path, {:recursive => true, :verbose => true}) do |ch, name, sent, total| # => progress? end