Skip to content
This repository
Browse code

Rakefile: tweaks to get vimscriptuploader.rb working

Through experimentation, I've found that the way to get
vimscriptuploader.rb working is to:

  - pass upload credentials in via a config file found at
    ~/.vim_org.yml
  - pass the release notes in via a file pointed at by the
    --message-file option
  - pass all other options in via arguments
  - pass in an empty YAML file to keep it from barfing

Signed-off-by: Wincent Colaiuta <win@wincent.com>
  • Loading branch information...
commit b47221fb41922260b95d50303ccf5ddd7180895f 1 parent c0eda02
Greg Hurrell authored March 26, 2011
1  .gitignore
... ...
@@ -1,3 +1,2 @@
1 1
 .release-notes.txt
2  
-.vim_org.yml
3 2
 command-t.recipe
2  .vim_org.yml
... ...
@@ -0,0 +1,2 @@
  1
+--- {}
  2
+
14  Rakefile
@@ -146,13 +146,13 @@ namespace :upload do
146 146
   desc 'Upload current vimball to www.vim.org'
147 147
   task :vim => [:check_bundler, :vimball] do
148 148
     prepare_release_notes
149  
-    conf = {
150  
-      :file     => "command-t-#{version}.vba",
151  
-      :message  => read_release_notes.chomp,
152  
-      :version  => version
153  
-    }
154  
-    File.open('.vim_org.yml', 'w') { |f| f.print conf.to_yaml }
155  
-    sh "vendor/vimscriptuploader/vimscriptuploader.rb --id 3025 --config ~/.vim_org.yml .vim_org.yml"
  149
+    sh "vendor/vimscriptuploader/vimscriptuploader.rb \
  150
+            --id 3025 \
  151
+            --file command-t-#{version}.vba \
  152
+            --message-file .release-notes.txt \
  153
+            --version #{version} \
  154
+            --config ~/.vim_org.yml \
  155
+            .vim_org.yml"
156 156
   end
157 157
 
158 158
   desc 'Upload current vimball everywhere'

0 notes on commit b47221f

Please sign in to comment.
Something went wrong with that request. Please try again.