backgem 0.3.1 → 0.3.2

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.
Files changed (2) hide show
  1. data/bin/backgem +3 -1
  2. metadata +1 -1
data/bin/backgem CHANGED
@@ -40,6 +40,8 @@ class Backgem
40
40
  puts "Undefined command #{name}. Availble commands: backup and restore"
41
41
  end
42
42
 
43
+ # the code beyond is 'borrowed' from http://github.com/defunkt/gist
44
+
43
45
  def write_to_gist(content)
44
46
  url = URI.parse('http://gist.github.com/gists')
45
47
  gist_name = "backgem-#{Time.new.strftime("%Y-%m-%d")}"
@@ -69,5 +71,5 @@ if ARGV[0]
69
71
  action = Backgem.new
70
72
  action.send(ARGV[0].to_sym)
71
73
  else
72
- puts "Usage: backgem backup or backgem restore"
74
+ puts "Usage: backgem backup/restore/make_gist"
73
75
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backgem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitko Kostov