pastebin 0.2.0 → 0.2.1
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/Rakefile +2 -2
- data/VERSION +1 -1
- data/lib/pastebin.rb +2 -0
- metadata +18 -9
data/Rakefile
CHANGED
@@ -37,7 +37,7 @@ end
|
|
37
37
|
task :default => :spec
|
38
38
|
|
39
39
|
require 'rake/rdoctask'
|
40
|
-
require 'darkfish-rdoc'
|
40
|
+
#require 'darkfish-rdoc'
|
41
41
|
Rake::RDocTask.new do |rdoc|
|
42
42
|
if File.exist?('VERSION.yml')
|
43
43
|
config = YAML.load(File.read('VERSION.yml'))
|
@@ -52,7 +52,7 @@ Rake::RDocTask.new do |rdoc|
|
|
52
52
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
53
53
|
rdoc.options += [
|
54
54
|
'-N',
|
55
|
-
|
55
|
+
# '-f', 'darkfish',
|
56
56
|
]
|
57
57
|
end
|
58
58
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/pastebin.rb
CHANGED
@@ -7,6 +7,7 @@ require 'rubygems'
|
|
7
7
|
require 'yaml'
|
8
8
|
require 'hpricot'
|
9
9
|
require 'httpclient'
|
10
|
+
require 'fileutils'
|
10
11
|
|
11
12
|
class Pastebin
|
12
13
|
# If you intend to make a paste with this object, give it a hash as
|
@@ -40,6 +41,7 @@ class Pastebin
|
|
40
41
|
if File.exists? @config
|
41
42
|
config = YAML.load(File.open(@config))
|
42
43
|
else
|
44
|
+
FileUtils.touch @config
|
43
45
|
config = {}
|
44
46
|
puts "Please enter your API key. You'll only have to do this once."
|
45
47
|
print "You can get a key here: http://pastebin.ca/apikey.php \n "
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pastebin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 2
|
8
|
+
- 1
|
9
|
+
version: 0.2.1
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- dougsko
|
@@ -9,19 +14,21 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
17
|
+
date: 2010-05-18 00:00:00 -04:00
|
13
18
|
default_executable: pastebin
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: httpclient
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
23
29
|
version: "0"
|
24
|
-
|
30
|
+
type: :runtime
|
31
|
+
version_requirements: *id001
|
25
32
|
description: Command line interface to http://pastebin.ca
|
26
33
|
email: dougtko@gmail.com
|
27
34
|
executables:
|
@@ -56,18 +63,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
56
63
|
requirements:
|
57
64
|
- - ">="
|
58
65
|
- !ruby/object:Gem::Version
|
66
|
+
segments:
|
67
|
+
- 0
|
59
68
|
version: "0"
|
60
|
-
version:
|
61
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
70
|
requirements:
|
63
71
|
- - ">="
|
64
72
|
- !ruby/object:Gem::Version
|
73
|
+
segments:
|
74
|
+
- 0
|
65
75
|
version: "0"
|
66
|
-
version:
|
67
76
|
requirements: []
|
68
77
|
|
69
78
|
rubyforge_project:
|
70
|
-
rubygems_version: 1.3.
|
79
|
+
rubygems_version: 1.3.6
|
71
80
|
signing_key:
|
72
81
|
specification_version: 3
|
73
82
|
summary: Command line interface to http://pastebin.ca
|