pastebin 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/bin/pastebin +1 -1
  3. data/lib/pastebin.rb +1 -3
  4. data/pastebin.gemspec +1 -1
  5. metadata +10 -10
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.1
1
+ 2.0.2
@@ -15,7 +15,7 @@ opts = OptionParser.new do |opts|
15
15
  opts.banner = "pastebin is a CLI to http://pastebin.com
16
16
  Usage: pastebin [options]
17
17
  Examples: pastebin -f foo.rb -t ruby -e '10 Minutes'
18
- cat foo.pl | pastebin -f - -t perl"
18
+ cat foo.pl | pastebin -f - -l perl"
19
19
 
20
20
  opts.separator ""
21
21
  opts.separator "Options:"
@@ -46,8 +46,6 @@ class Pastebin
46
46
  # pbin.get_raw("http://pastebin.com/xxxxxxx") #=> "some text"
47
47
  #
48
48
  def get_raw(link)
49
- paste = Net::HTTP.get_response(URI.parse("http://pastebin.com/raw.php?i=#{link[/[\w\d]+$/]}")).body
50
- doc = Document.new(paste)
51
- doc.elements.to_a("//pre")[0].text
49
+ Net::HTTP.get_response(URI.parse("http://pastebin.com/raw.php?i=#{link[/[\w\d]+$/]}")).body
52
50
  end
53
51
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "pastebin"
8
- s.version = "2.0.1"
8
+ s.version = "2.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["dougsko"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pastebin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &81435750 !ruby/object:Gem::Requirement
16
+ requirement: &74429600 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *81435750
24
+ version_requirements: *74429600
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &81435490 !ruby/object:Gem::Requirement
27
+ requirement: &74429330 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *81435490
35
+ version_requirements: *74429330
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &81599050 !ruby/object:Gem::Requirement
38
+ requirement: &74429070 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *81599050
46
+ version_requirements: *74429070
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rcov
49
- requirement: &81598810 !ruby/object:Gem::Requirement
49
+ requirement: &75102810 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *81598810
57
+ version_requirements: *75102810
58
58
  description: CLI tool and library to work with pastebin.com
59
59
  email: dougtko@gmail.com
60
60
  executables:
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  segments:
93
93
  - 0
94
- hash: 805395795
94
+ hash: -12768269
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements: