This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

More than 1 year has passed since last update.

d4_rake_dsl 10/19 :: Rakefile, Thor, DSL

Posted at

動画

講義内容

  • DSL(RSpecもその一つ,describe, it …)
  • Rakefile
    • rake git_auto
  • gem ranking
> bundle gem hello_rudy --exe --git --mit --test=rspec
> bundle exec exe/hello_rudy 
bundler: not executable: exe/hello_rudy
> chmod a+x exe/hello_rudy
> bundle exec exe/hello_rudy
bundler: failed to load command: exe/hello_rudy (exe/hello_rudy)
> edit hello_rudy.gemspecでイランlineを消す,修正する
> edit lib/hello_rudy.rbにputs "hello rudy"を追加
  • Thor
> gem install thor
> edit lib/hello_rudy.rb
> spec.add_runtime_dependency 'thor'
> bundle install
>  edit lib/hello_rudy.rb
> edit exe/hello_rudy
> bundle exec exe/hello_rudy
> rake install:local

課題

  • my_help , my_halo ??

研究室内課題

  • Thor ??

  • source ~/Desktop/lecture_22f/multi_scale_22_text/d4_rake_dsl/README.org
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up