pastebin 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/Gemfile.lock +2 -0
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/bin/pastebin +1 -1
- data/spec/isgd_spec.rb +11 -0
- metadata +37 -15
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -3,6 +3,7 @@ GEM
|
|
3
3
|
specs:
|
4
4
|
diff-lcs (1.1.2)
|
5
5
|
git (1.2.5)
|
6
|
+
httpclient (2.1.5.2)
|
6
7
|
jeweler (1.5.1)
|
7
8
|
bundler (~> 1.0.0)
|
8
9
|
git (>= 1.2.5)
|
@@ -23,6 +24,7 @@ PLATFORMS
|
|
23
24
|
|
24
25
|
DEPENDENCIES
|
25
26
|
bundler (~> 1.0.0)
|
27
|
+
httpclient
|
26
28
|
jeweler (~> 1.5.1)
|
27
29
|
rcov
|
28
30
|
rspec (~> 2.1.0)
|
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/bin/pastebin
CHANGED
@@ -13,7 +13,7 @@ require 'pastebin'
|
|
13
13
|
# set up all the options stuff
|
14
14
|
options = {}
|
15
15
|
opts = OptionParser.new do |opts|
|
16
|
-
opts.banner = "pastebin is a CLI to http://pastebin.
|
16
|
+
opts.banner = "pastebin is a CLI to http://pastebin.com
|
17
17
|
Usage: pastebin [options]
|
18
18
|
Examples: pastebin -f foo.rb -t ruby -e '10 Minutes'
|
19
19
|
cat foo.pl | pastebin -f - -t perl"
|
data/spec/isgd_spec.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
describe "Shortlink" do
|
4
|
+
it "creates a Shortlink object" do
|
5
|
+
Shortlink.new.class.to_s.should == "Shortlink"
|
6
|
+
end
|
7
|
+
|
8
|
+
it "Shorten a link" do
|
9
|
+
Shortlink.new.isgd("http://google.com").should match(/http:.*\/[\d|\w]+/)
|
10
|
+
end
|
11
|
+
end
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pastebin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 19
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 1
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- dougsko
|
@@ -14,67 +15,85 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date:
|
18
|
+
date: 2011-01-31 00:00:00 -05:00
|
18
19
|
default_executable: pastebin
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
22
|
+
name: httpclient
|
23
|
+
prerelease: false
|
22
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: rspec
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
23
39
|
none: false
|
24
40
|
requirements:
|
25
41
|
- - ~>
|
26
42
|
- !ruby/object:Gem::Version
|
43
|
+
hash: 11
|
27
44
|
segments:
|
28
45
|
- 2
|
29
46
|
- 1
|
30
47
|
- 0
|
31
48
|
version: 2.1.0
|
32
49
|
type: :development
|
33
|
-
version_requirements: *
|
34
|
-
prerelease: false
|
50
|
+
version_requirements: *id002
|
35
51
|
- !ruby/object:Gem::Dependency
|
36
52
|
name: bundler
|
37
|
-
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
38
55
|
none: false
|
39
56
|
requirements:
|
40
57
|
- - ~>
|
41
58
|
- !ruby/object:Gem::Version
|
59
|
+
hash: 23
|
42
60
|
segments:
|
43
61
|
- 1
|
44
62
|
- 0
|
45
63
|
- 0
|
46
64
|
version: 1.0.0
|
47
65
|
type: :development
|
48
|
-
version_requirements: *
|
49
|
-
prerelease: false
|
66
|
+
version_requirements: *id003
|
50
67
|
- !ruby/object:Gem::Dependency
|
51
68
|
name: jeweler
|
52
|
-
|
69
|
+
prerelease: false
|
70
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
53
71
|
none: false
|
54
72
|
requirements:
|
55
73
|
- - ~>
|
56
74
|
- !ruby/object:Gem::Version
|
75
|
+
hash: 1
|
57
76
|
segments:
|
58
77
|
- 1
|
59
78
|
- 5
|
60
79
|
- 1
|
61
80
|
version: 1.5.1
|
62
81
|
type: :development
|
63
|
-
version_requirements: *
|
64
|
-
prerelease: false
|
82
|
+
version_requirements: *id004
|
65
83
|
- !ruby/object:Gem::Dependency
|
66
84
|
name: rcov
|
67
|
-
|
85
|
+
prerelease: false
|
86
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
68
87
|
none: false
|
69
88
|
requirements:
|
70
89
|
- - ">="
|
71
90
|
- !ruby/object:Gem::Version
|
91
|
+
hash: 3
|
72
92
|
segments:
|
73
93
|
- 0
|
74
94
|
version: "0"
|
75
95
|
type: :development
|
76
|
-
version_requirements: *
|
77
|
-
prerelease: false
|
96
|
+
version_requirements: *id005
|
78
97
|
description: CLI tool and library to work with pastebin.com
|
79
98
|
email: dougtko@gmail.com
|
80
99
|
executables:
|
@@ -94,6 +113,7 @@ files:
|
|
94
113
|
- VERSION
|
95
114
|
- bin/pastebin
|
96
115
|
- lib/pastebin.rb
|
116
|
+
- spec/isgd_spec.rb
|
97
117
|
- spec/pastebin_spec.rb
|
98
118
|
- spec/spec_helper.rb
|
99
119
|
has_rdoc: true
|
@@ -119,6 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
139
|
requirements:
|
120
140
|
- - ">="
|
121
141
|
- !ruby/object:Gem::Version
|
142
|
+
hash: 3
|
122
143
|
segments:
|
123
144
|
- 0
|
124
145
|
version: "0"
|
@@ -130,5 +151,6 @@ signing_key:
|
|
130
151
|
specification_version: 3
|
131
152
|
summary: CLI tool and library to work with pastebin.com
|
132
153
|
test_files:
|
154
|
+
- spec/isgd_spec.rb
|
133
155
|
- spec/pastebin_spec.rb
|
134
156
|
- spec/spec_helper.rb
|