public
Description: Ridiculously minimalist blogware - write your posts in $EDITOR, then `git-push blog master`. Boom, new posts published.
Clone URL: git://github.com/elliottcable/git-blog.git
Screw that, using a constant.
elliottcable (author)
Thu Jun 26 01:17:38 -0700 2008
commit  97ad7c68902d136da034c539fe5d43d68ad38285
tree    cf188893de360eb536ace9496c1a087e4d23ff3d
parent  7404e6c75508fa48894ddc2289745bed42cb9f3e
...
12
13
14
15
 
16
17
18
...
12
13
14
 
15
16
17
18
0
@@ -12,7 +12,7 @@ task :create, :destination do |_, params|
0
   
0
   mkdir destination rescue nil
0
   File.open destination/:Rakefile.rb, File::RDWR|File::TRUNC|File::CREAT do |rakefile|
0
- rakefile.puts "$:.unshift File.expand_path('#{GitBlog::Scope :lib}')"
0
+ rakefile.puts "$:.unshift File.expand_path('#{GitBlog::Scope / :lib}')"
0
     rakefile.puts "require 'git-blog'"
0
     rakefile.print "\n"; rakefile.close
0
   end
...
15
16
17
18
 
19
20
 
21
22
23
 
24
25
26
...
63
64
65
66
 
67
68
69
...
15
16
17
 
18
19
 
20
21
22
 
23
24
25
26
...
63
64
65
 
66
67
68
69
0
@@ -15,12 +15,12 @@ task :initialize do
0
   cd path
0
   mkdir 'posts'
0
   mkdir 'design'
0
- cp GitBlog::Scope :prepped / '.gitignore', '.'
0
+ cp GitBlog::Scope / :prepped / '.gitignore', '.'
0
   %w(welcome_to_your_git_blog.markdown .gitignore).each do |file|
0
- cp GitBlog::Scope :prepped / :posts / file, 'posts'
0
+ cp GitBlog::Scope / :prepped / :posts / file, 'posts'
0
   end
0
   %w(main.css post.haml index.haml).each do |file|
0
- cp GitBlog::Scope :prepped / :design / file, 'design'
0
+ cp GitBlog::Scope / :prepped / :design / file, 'design'
0
   end
0
   
0
   Dir['**/**'].each do |file|
0
@@ -63,7 +63,7 @@ task :servable do
0
   should_be_initialized File.expand_path('.')
0
   
0
   mv '.git' / :hooks / 'post-receive', '.git' / :hooks / 'post-receive.old'
0
- cp GitBlog::Scope :prepped / 'post-receive.hook', '.git' / :hooks / 'post-receive'
0
+ cp GitBlog::Scope / :prepped / 'post-receive.hook', '.git' / :hooks / 'post-receive'
0
   chmod 0775, '.git' / :hooks / 'post-receive'
0
   
0
   puts '** git-blog is prepared for serving (git post-recieve hook prepared)'
...
12
13
14
15
16
17
 
 
 
 
 
18
19
20
21
...
12
13
14
 
 
 
15
16
17
18
19
20
21
22
23
0
@@ -12,9 +12,11 @@ module GitBlog
0
   
0
   # Returns the path of file relative to the git-blog root.
0
   # 'Borrowed' mostly wholesale from Haml 2.0.0 d-:
0
- def self.Scope path
0
- File.join(File.expand_path( File.dirname(__FILE__) / '..' / '..' ), path.to_s)
0
- end
0
+ # def self.Scope path
0
+ # File.join(File.expand_path( File.dirname(__FILE__) / '..' / '..' ), path.to_s)
0
+ # end
0
+ # Fuck that, using a constant. LAWL.
0
+ Scope = File.expand_path( File.dirname(__FILE__) / '..' / '..' )
0
 end
0
 
0
 require 'git-blog/parsers'
0
\ No newline at end of file

Comments

    No one has commented yet.