File tree Expand file tree Collapse file tree 3 files changed +37
-0
lines changed
Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ Gemfile *
2+ .bundle
3+ .rbenv-version
4+ .DS_Store
5+ * ~
6+ /msgpack-ruby
7+ /vendor
Original file line number Diff line number Diff line change 1+ source :rubygems
2+
3+ gem 'rake' , '~> 0.9.2'
4+ gem 'rake-compiler' , '~> 0.8.1'
5+ gem 'rspec' , '~> 2.11'
6+ gem 'yard' , '~> 0.8.2'
7+
Original file line number Diff line number Diff line change 1+ require 'fileutils'
2+
3+ task :update do
4+ if File . directory? ( "msgpack-ruby" )
5+ Dir . glob ( "msgpack-ruby/*" , &FileUtils . method ( :rm_rf ) )
6+ Dir . chdir ( "msgpack-ruby" ) do
7+ sh "git checkout ."
8+ end
9+ else
10+ sh "git clone git://github.com/msgpack/msgpack-ruby.git"
11+ end
12+
13+ Dir . chdir ( "msgpack-ruby" ) do
14+ sh "git checkout master"
15+ sh "git pull"
16+ sh "rake doc"
17+ end
18+
19+ FileUtils . cp_r Dir . glob ( "msgpack-ruby/doc/*" ) , '.'
20+ end
21+
22+ task :default => :update
23+
You can’t perform that action at this time.
0 commit comments