Shinosaka.rb #3

Shinosaka.rb #3

D8cd979e90361eb5ca5414dd15b35d0f?s=128

murajun1978

May 13, 2014
Tweet

Transcript

  1. Shinosaka.rb #3

  2. RubyGems ύοέʔδ؅ཧγεςϜ

  3. gem install … ͍ͭ΋ͷ͜Ε

  4. https://github.com/rails/rails

  5. gemͬͯ࡞Δͷ೉͍͠ʁ

  6. ࡞ͬͯΈΑ͏ϔ(^o^)ϊ

  7. http://bundler.io/ https://www.ruby-lang.org http://git-scm.com/

  8. % bundle gem ΩϥΩϥωʔϜˑϛ ͻͳܗ࡞੒

  9. gemspecͷฤू name: ΩϥΩϥωʔϜˑϛ authors: [“murajun1978”, “murajun”](഑ྻͰෳ਺ࢦఆՄ) email: [“murajun1978@example.com”](഑ྻͰෳ਺ࢦఆՄ) summary: gemύοέʔδͷઆ໌ͷཁ໿(gem

    list -d Ͱදࣔ͞ΕΔ) description: gemύοέʔδͷৄࡉઆ໌(RubyGemsʹදࣔ͞ΕΔ) homepage: gemύοέʔδͷؔ࿈αΠτ(GitHub PagesͳͲ) license: gemύοέʔδͷϥΠηϯε required_ruby_version: gemύοέʔδʹඞཁͳRubyόʔδϣϯ post_install_message: gemΠϯετʔϧޙʹදࣔ͢Δϝοηʔδ http://guides.rubygems.org/
  10. % bundle gem ΩϥΩϥωʔϜˑϛ -t % mkdir spec % vim

    spec/spec_helper.rb $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require ΩϥΩϥωʔϜˑϛ spec_helper.rb ςετ؀ڥ( Ŗ`дŖ´)ŝžŕ or
  11. % rake build ͼΔͲ

  12. % gem install pkg/ΩϥΩϥωʔϜˑϛ ͍Μ͢ͱʔΔ

  13. % rake install ͼΔͲ & ͍Μ͢ͱʔΔ

  14. ࢖ͬͯΈΑ͏ϔ(^o^)ϊ

  15. GemͷΓΓʔ͢४උ RubyGemsͷΞΧ΢ϯτ࡞੒ API KEYͷొ࿥ % curl -u [account_name] https://rubygems.org/api/v1/api_key.yaml >

    \ ~/.gem/credentials % chmod 0600 ~/.gem/credentials
  16. % rake release GemͷΓΓʔ͢

  17. ٳܜ͠Αʔͥ(ʆɾωɾ´)

  18. LT΍Ζʔͥ(ʆɾωɾ´)

  19. Ʊ"-ʓ Ʊ"-ʓƱ"-ʓ Ʊ"-ʓ