dougsko-pastebin 0.0.3 → 0.0.4
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.
- data/VERSION +1 -1
- data/bin/pastebin +5 -1
- data/pastebin.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.4
|
data/bin/pastebin
CHANGED
|
@@ -40,6 +40,10 @@ opts = OptionParser.new do |opts|
|
|
|
40
40
|
options["description"] = d
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
opts.on("-t", "--tags", String, "Tags for your paste") do |t|
|
|
44
|
+
options["tags"] = t
|
|
45
|
+
end
|
|
46
|
+
|
|
43
47
|
expire_array = [ "never",
|
|
44
48
|
"5 minutes",
|
|
45
49
|
"10 minutes",
|
|
@@ -102,7 +106,7 @@ opts = OptionParser.new do |opts|
|
|
|
102
106
|
"mirc " => "13"
|
|
103
107
|
}
|
|
104
108
|
code_list = syntax_hash.keys.sort.join(", ")
|
|
105
|
-
opts.on("-
|
|
109
|
+
opts.on("-l", "--language <syntax>", syntax_hash, "Syntax types can be abbriviated, as long as they are unambigous. Defaults to 'raw'", " #{code_list}") do |encoding|
|
|
106
110
|
options["type"] = encoding
|
|
107
111
|
end
|
|
108
112
|
|
data/pastebin.gemspec
CHANGED