public
Description: Pack a folder (or selection) of files into a pastie; and then unpack it back into raw files
Homepage: http://pastiepacker.rubyforge.org
Clone URL: git://github.com/drnic/pastie-packer.git
Search Repo:
updated gem description; added google analytics code to template
drnic (author)
Sat Apr 05 15:58:17 -0700 2008
commit  5e5a72209004b832ee1d39f125f6836a578c368f
tree    5e7a3f72e36e8cf9e215f92f365f6fdd7b8f4d9d
parent  7a66cc8081215168f5a99249ce30a98e477f66f4
...
5
6
7
8
9
 
 
10
11
12
13
14
 
 
15
16
17
...
5
6
7
 
 
8
9
10
11
12
 
 
13
14
15
16
17
0
@@ -5,13 +5,13 @@ EMAIL = "drnicwilliams@gmail.com"
0
 DESCRIPTION = <<-EOS
0
 Prepare to pack or unpack piles of files with the pastiepacker.
0
 
0
-To pack a folder: #{File.basename($0)}
0
-To pack some files ending with "txt": find * | grep "txt$" | #{File.basename($0)}
0
+To pack a folder: pastiepacker
0
+To pack some files ending with "txt": find * | grep "txt$" | pastiepacker
0
 - It outputs the url of the prepared pastie, so you can pipe it to xargs:
0
 - pastiepacker | xargs open
0
 
0
-To unpack a packed pastie: #{File.basename($0)} http://pastie.caboo.se/175183
0
-- This unpacks the files into a subfolder 175138/
0
+To unpack a packed pastie: pastiepacker http://pastie.caboo.se/175886
0
+- This unpacks the files into a subfolder 175886/
0
 EOS
0
 GEM_NAME = 'pastiepacker' # what ppl will type to install your gem
0
 RUBYFORGE_PROJECT = 'pastiepacker' # The unix name for your project
...
164
165
166
167
 
 
 
 
 
 
 
 
 
168
169
170
...
164
165
166
 
167
168
169
170
171
172
173
174
175
176
177
178
0
@@ -164,7 +164,15 @@ rake install_gem</code></pre>
0
     </p>
0
 </div>
0
 
0
-<!-- insert site tracking codes here, like Google Urchin -->
0
+<script type="text/javascript">
0
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
0
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
0
+</script>
0
+<script type="text/javascript">
0
+var pageTracker = _gat._getTracker("UA-567811-11");
0
+pageTracker._initData();
0
+pageTracker._trackPageview();
0
+</script>
0
 
0
 </body>
0
 </html>
...
42
43
44
45
 
 
 
 
 
 
 
 
 
46
47
48
...
42
43
44
 
45
46
47
48
49
50
51
52
53
54
55
56
0
@@ -42,7 +42,15 @@
0
     </p>
0
 </div>
0
 
0
-<!-- insert site tracking codes here, like Google Urchin -->
0
+<script type="text/javascript">
0
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
0
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
0
+</script>
0
+<script type="text/javascript">
0
+var pageTracker = _gat._getTracker("UA-567811-11");
0
+pageTracker._initData();
0
+pageTracker._trackPageview();
0
+</script>
0
 
0
 </body>
0
 </html>

Comments

    No one has commented yet.