pastiepacker 1.0.0 → 1.1.0

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/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.1.0 2008-06-25
2
+
3
+ * Added objective-c++, java and actionscript formats
4
+
1
5
  == 1.0.0 2008-04-03
2
6
 
3
7
  * 1 major enhancement:
data/README.txt CHANGED
@@ -53,6 +53,20 @@ To test if you have these, the following should work:
53
53
 
54
54
  * sudo gem install pastiepacker
55
55
 
56
+ == CONTRIBUTIONS
57
+
58
+ The source for the Pastie Packer is available via git: http://github.com/drnic/pastie-packer/tree/master
59
+
60
+ git clone git://github.com/drnic/pastie-packer.git pastiepacker
61
+ cd pastiepacker
62
+ rake install_gem
63
+
64
+ It is also available via rubyforge.org:
65
+
66
+ git clone git://rubyforge.org/pastiepacker.git
67
+ cd pastiepacker
68
+ rake install_gem
69
+
56
70
  == LICENSE:
57
71
 
58
72
  (The MIT License)
data/config/hoe.rb CHANGED
@@ -5,13 +5,13 @@ EMAIL = "drnicwilliams@gmail.com"
5
5
  DESCRIPTION = <<-EOS
6
6
  Prepare to pack or unpack piles of files with the pastiepacker.
7
7
 
8
- To pack a folder: #{File.basename($0)}
9
- To pack some files ending with "txt": find * | grep "txt$" | #{File.basename($0)}
8
+ To pack a folder: pastiepacker
9
+ To pack some files ending with "txt": find * | grep "txt$" | pastiepacker
10
10
  - It outputs the url of the prepared pastie, so you can pipe it to xargs:
11
11
  - pastiepacker | xargs open
12
12
 
13
- To unpack a packed pastie: #{File.basename($0)} http://pastie.caboo.se/175183
14
- - This unpacks the files into a subfolder 175138/
13
+ To unpack a packed pastie: pastiepacker http://pastie.caboo.se/175886
14
+ - This unpacks the files into a subfolder 175886/
15
15
  EOS
16
16
  GEM_NAME = 'pastiepacker' # what ppl will type to install your gem
17
17
  RUBYFORGE_PROJECT = 'pastiepacker' # The unix name for your project
@@ -1,7 +1,9 @@
1
1
  class PastiePacker
2
2
  AVAILABLE_PARSERS = %w(
3
- c++ css diff html_rails html javascript
3
+ actionscript c++ css diff html_rails html
4
+ java javascript
4
5
  php plain_text python
6
+ objective-c++
5
7
  ruby ruby_on_rails sql
6
8
  shell-unix-generic
7
9
  )
@@ -22,7 +24,7 @@ class PastiePacker
22
24
  http = Net::HTTP.new(PASTIE_URI)
23
25
  query_string = { :paste => {
24
26
  :body => CGI.escape(body),
25
- :parser => format,
27
+ :parser => CGI.escape(format),
26
28
  :restricted => is_private,
27
29
  :authorization => 'burger'
28
30
  }}.to_query_string
@@ -1,7 +1,7 @@
1
1
  module PastiePacker #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
- MINOR = 0
4
+ MINOR = 1
5
5
  TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
data/website/index.html CHANGED
@@ -33,27 +33,18 @@
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.0.0</a>
36
+ <a href="http://rubyforge.org/projects/pastiepacker" class="numbers">1.1.0</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;pastiepacker&#8217;</h1>
39
39
 
40
40
 
41
- <p><span class="caps">TODO</span>: put this into pastie + use screenshot instead (raw text as alt=&#8221;...&#8221;)</p>
42
-
43
-
44
- <p><span class="caps">TODO</span>: create google group</p>
45
-
46
-
47
- <p><span class="caps">TODO</span>: set git url for contributions</p>
48
-
49
-
50
- <p>Prepare to <em>pack</em> or <em>unpack</em> piles of files with <strong>pastiepacker</strong>. The easiest, best distributing, viewable archiving tool since pencil and paper.</p>
41
+ <p><img src="images/pastiepacker pasted into own pastie.jpg" width="549" height="329" alt="Prepare to pack or unpack piles of files with pastiepacker. The easiest, best distributing, viewable archiving tool since pencil and paper."></p>
51
42
 
52
43
 
53
44
  <h2>What</h2>
54
45
 
55
46
 
56
- <p>A <a href="http://pastie.caboo.se">pastie</a> is a snippet of text/code stored on a single webpage. This makes it very easy to share the text over IM or <span class="caps">IRC</span> &#8211; you just copy+paste the url. As a bonus, pasties are syntax highlighted making them easier to read than if shared as plain text.</p>
47
+ <p>A <a href="http://pastie.caboo.se">pastie</a> is a snippet of text/code stored on a single webpage. This makes it very easy to share the text over IM or <span class="caps">IRC </span>- you just copy+paste the url. As a bonus, pasties are syntax highlighted making them easier to read than if shared as plain text.</p>
57
48
 
58
49
 
59
50
  <p>The <strong>pastiepacker</strong> is a command-line tool to &#8220;pack&#8221; a selection of files (or by default, a whole recursive folder of files) into a single pastie. So a whole/part of a project can be quickly shared.</p>
@@ -62,10 +53,10 @@
62
53
  <p>It can also &#8220;unpack&#8221; a packed pastie back into files. The pastiepacker is therefore a simple, useful distributed archiving tool, using pasties for storage.</p>
63
54
 
64
55
 
65
- <p>For example, this pastie <a href="http://xxx"><span class="caps">XXX</span></a> shows a selection of files packed into a pastie. It just happens to be the source for pastiepacker itself!</p>
56
+ <p>For example, this pastie <a href="http://pastie.caboo.se/175886">http://pastie.caboo.se/175886</a> shows a selection of files packed into a pastie. It just happens to be the source for pastiepacker itself! (release 1.0.0)</p>
66
57
 
67
58
 
68
- <p>You can pack a whole folder or a selection of files. Any <span class="caps">README</span>/readme.* files are placed at the front of the pastie, because that seems helpful. The packed pasties include information on how to unpack the pastie back into raw files.</p>
59
+ <p>You can pack a whole folder or a selection of files. Any <span class="caps">README</span>/readme.<strong> files are placed at the front of the pastie, because that seems helpful. The packed pasties include information on how to unpack the pastie back into raw files.</p>
69
60
 
70
61
 
71
62
  <p>Only ascii files are packed.</p>
@@ -102,12 +93,12 @@
102
93
  -h, --help Show this help message.
103
94
  </pre>
104
95
 
105
- <p>To only pack a selection of files ending with <strong>txt</strong> you can pass a list of file names via <span class="caps">STDIN</span>:</p>
96
+ <p>To only pack a selection of files ending with </strong>txt<strong> you can pass a list of file names via <span class="caps">STDIN</span>:</p>
106
97
 
107
98
 
108
99
  <pre> find * | grep "txt$" | pastiepacker</pre>
109
100
 
110
- <p><strong>pastiepacker</strong> outputs the url of the prepared pastie, so you can pipe it to xargs:</p>
101
+ <p></strong>pastiepacker* outputs the url of the prepared pastie, so you can pipe it to xargs:</p>
111
102
 
112
103
 
113
104
  <pre> pastiepacker | xargs open</pre>
@@ -137,10 +128,7 @@
137
128
  <h2>Forum</h2>
138
129
 
139
130
 
140
- <p><a href="http://groups.google.com/group/pastiepacker">http://groups.google.com/group/pastiepacker</a></p>
141
-
142
-
143
- <p><span class="caps">TODO</span> &#8211; create Google Group &#8211; pastiepacker</p>
131
+ <p><a href="http://groups.google.com/group/drnicutilities">http://groups.google.com/group/drnicutilities</a></p>
144
132
 
145
133
 
146
134
  <h2>How to submit patches</h2>
@@ -149,7 +137,23 @@
149
137
  <p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people&#8217;s code</a> and for section <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups">8b: Submit patch to Google Groups</a>, use the Google Group above.</p>
150
138
 
151
139
 
152
- <p>The trunk repository is <code>svn://rubyforge.org/var/svn/pastiepacker/trunk</code> for anonymous access.</p>
140
+ <p>The source for the Pastie Packer is <a href="http://github.com/drnic/pastie-packer/tree/master">available via git</a>.</p>
141
+
142
+
143
+ <pre><code>git clone git://github.com/drnic/pastie-packer.git pastiepacker
144
+ cd pastiepacker
145
+ rake install_gem</code></pre>
146
+
147
+
148
+ <p>It is also available via rubyforge.org:</p>
149
+
150
+
151
+ <pre><code>git clone git://rubyforge.org/pastiepacker.git
152
+ cd pastiepacker
153
+ rake install_gem</code></pre>
154
+
155
+
156
+ <p>Or, you can unpack the 1.0.0 release of the pastiepacker from its <a href="http://pastie.caboo.se/175886">own pastie</a>!</p>
153
157
 
154
158
 
155
159
  <h2>License</h2>
@@ -163,12 +167,20 @@
163
167
 
164
168
  <p>Comments are welcome. Send an email to <a href="mailto:drnicwilliams@gmail.com">Dr Nic Williams</a> via the <a href="http://groups.google.com/group/pastiepacker">forum</a></p>
165
169
  <p class="coda">
166
- <a href="drnicwilliams@gmail.com">Dr Nic Williams</a>, 5th April 2008<br>
170
+ <a href="drnicwilliams@gmail.com">Dr Nic Williams</a>, 25th June 2008<br>
167
171
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
168
172
  </p>
169
173
  </div>
170
174
 
171
- <!-- insert site tracking codes here, like Google Urchin -->
175
+ <script type="text/javascript">
176
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
177
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
178
+ </script>
179
+ <script type="text/javascript">
180
+ var pageTracker = _gat._getTracker("UA-567811-11");
181
+ pageTracker._initData();
182
+ pageTracker._trackPageview();
183
+ </script>
172
184
 
173
185
  </body>
174
186
  </html>
data/website/index.txt CHANGED
@@ -2,13 +2,7 @@ h1. Pastie Packer
2
2
 
3
3
  h1. &#x2192; 'pastiepacker'
4
4
 
5
- TODO: put this into pastie + use screenshot instead (raw text as alt="...")
6
-
7
- TODO: create google group
8
-
9
- TODO: set git url for contributions
10
-
11
- Prepare to _pack_ or _unpack_ piles of files with *pastiepacker*. The easiest, best distributing, viewable archiving tool since pencil and paper.
5
+ <img src="images/pastiepacker pasted into own pastie.jpg" width="549" height="329" alt="Prepare to pack or unpack piles of files with pastiepacker. The easiest, best distributing, viewable archiving tool since pencil and paper.">
12
6
 
13
7
  h2. What
14
8
 
@@ -18,7 +12,7 @@ The *pastiepacker* is a command-line tool to "pack" a selection of files (or by
18
12
 
19
13
  It can also "unpack" a packed pastie back into files. The pastiepacker is therefore a simple, useful distributed archiving tool, using pasties for storage.
20
14
 
21
- For example, this pastie "XXX":http://xxx shows a selection of files packed into a pastie. It just happens to be the source for pastiepacker itself!
15
+ For example, this pastie "http://pastie.caboo.se/175886":http://pastie.caboo.se/175886 shows a selection of files packed into a pastie. It just happens to be the source for pastiepacker itself! (release 1.0.0)
22
16
 
23
17
  You can pack a whole folder or a selection of files. Any README/readme.* files are placed at the front of the pastie, because that seems helpful. The packed pasties include information on how to unpack the pastie back into raw files.
24
18
 
@@ -77,15 +71,25 @@ This unpacks the files into a subfolder 5hwfheniddqmyasmfcxaw/
77
71
 
78
72
  h2. Forum
79
73
 
80
- "http://groups.google.com/group/pastiepacker":http://groups.google.com/group/pastiepacker
81
-
82
- TODO - create Google Group - pastiepacker
74
+ "http://groups.google.com/group/drnicutilities":http://groups.google.com/group/drnicutilities
83
75
 
84
76
  h2. How to submit patches
85
77
 
86
78
  Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/ and for section "8b: Submit patch to Google Groups":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups, use the Google Group above.
87
79
 
88
- The trunk repository is <code>svn://rubyforge.org/var/svn/pastiepacker/trunk</code> for anonymous access.
80
+ The source for the Pastie Packer is "available via git":http://github.com/drnic/pastie-packer/tree/master.
81
+
82
+ git clone git://github.com/drnic/pastie-packer.git pastiepacker
83
+ cd pastiepacker
84
+ rake install_gem
85
+
86
+ It is also available via rubyforge.org:
87
+
88
+ git clone git://rubyforge.org/pastiepacker.git
89
+ cd pastiepacker
90
+ rake install_gem
91
+
92
+ Or, you can unpack the 1.0.0 release of the pastiepacker from its "own pastie":http://pastie.caboo.se/175886!
89
93
 
90
94
  h2. License
91
95
 
@@ -42,7 +42,15 @@
42
42
  </p>
43
43
  </div>
44
44
 
45
- <!-- insert site tracking codes here, like Google Urchin -->
45
+ <script type="text/javascript">
46
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
47
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
48
+ </script>
49
+ <script type="text/javascript">
50
+ var pageTracker = _gat._getTracker("UA-567811-11");
51
+ pageTracker._initData();
52
+ pageTracker._trackPageview();
53
+ </script>
46
54
 
47
55
  </body>
48
56
  </html>
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.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-04-06 00:00:00 +08:00
12
+ date: 2008-06-25 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: shared-mime-info
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -23,6 +24,7 @@ dependencies:
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: hpricot
27
+ type: :runtime
26
28
  version_requirement:
27
29
  version_requirements: !ruby/object:Gem::Requirement
28
30
  requirements:
@@ -30,7 +32,7 @@ dependencies:
30
32
  - !ruby/object:Gem::Version
31
33
  version: "0.6"
32
34
  version:
33
- description: "Prepare to pack or unpack piles of files with the pastiepacker. To pack a folder: rake To pack some files ending with \"txt\": find * | grep \"txt$\" | rake - It outputs the url of the prepared pastie, so you can pipe it to xargs: - pastiepacker | xargs open To unpack a packed pastie: rake http://pastie.caboo.se/175183 - This unpacks the files into a subfolder 175138/"
35
+ 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/"
34
36
  email:
35
37
  - drnicwilliams@gmail.com
36
38
  executables:
@@ -107,10 +109,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
109
  requirements: []
108
110
 
109
111
  rubyforge_project: pastiepacker
110
- rubygems_version: 1.1.0
112
+ rubygems_version: 1.2.0
111
113
  signing_key:
112
114
  specification_version: 2
113
- summary: "Prepare to pack or unpack piles of files with the pastiepacker. To pack a folder: rake To pack some files ending with \"txt\": find * | grep \"txt$\" | rake - It outputs the url of the prepared pastie, so you can pipe it to xargs: - pastiepacker | xargs open To unpack a packed pastie: rake http://pastie.caboo.se/175183 - This unpacks the files into a subfolder 175138/"
115
+ summary: "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/"
114
116
  test_files:
115
117
  - test/test_app.rb
116
118
  - test/test_conversion.rb