pastiepacker 1.1.0 → 1.1.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.
@@ -1,3 +1,7 @@
1
+ == 1.1.1 2008-08-06
2
+
3
+ * Fixed fetching of pastie urls
4
+
1
5
  == 1.1.0 2008-06-25
2
6
 
3
7
  * Added objective-c++, java and actionscript formats
@@ -34,6 +34,7 @@ class PastiePacker
34
34
  url = process_url(raw_url)
35
35
  unique_subfolder = url.match(/[\/=]([^\/=]*)$/)[1]
36
36
  self.contents = fetch_pastie(url)
37
+ self.contents = self.contents.read if self.contents.respond_to?(:read)
37
38
  unpack(File.join(FileUtils.pwd, unique_subfolder))
38
39
  end
39
40
  nil # so nothing is printed as a result
@@ -1,7 +1,6 @@
1
1
  class PastiePacker
2
2
  def fetch_pastie(url)
3
3
  txt_url = "#{url}.txt"
4
- # REMOVE: Net::HTTP.get(URI.parse(txt_url))
5
4
  open(txt_url)
6
5
  end
7
6
  end
@@ -2,7 +2,7 @@ module PastiePacker #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -33,7 +33,7 @@
33
33
  <h1>Pastie Packer</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/pastiepacker"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/pastiepacker" class="numbers">1.1.0</a>
36
+ <a href="http://rubyforge.org/projects/pastiepacker" class="numbers">1.1.1</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;pastiepacker&#8217;</h1>
39
39
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pastiepacker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-25 00:00:00 +10:00
12
+ date: 2008-08-06 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -32,6 +32,16 @@ dependencies:
32
32
  - !ruby/object:Gem::Version
33
33
  version: "0.6"
34
34
  version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: hoe
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 1.7.0
44
+ version:
35
45
  description: "Prepare to pack or unpack piles of files with the pastiepacker. To pack a folder: pastiepacker To pack some files ending with \"txt\": find * | grep \"txt$\" | pastiepacker - It outputs the url of the prepared pastie, so you can pipe it to xargs: - pastiepacker | xargs open To unpack a packed pastie: pastiepacker http://pastie.caboo.se/175886 - This unpacks the files into a subfolder 175886/"
36
46
  email:
37
47
  - drnicwilliams@gmail.com