Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Tupper wareTupper, Rubygems, and Social Coding                          2012-07-26 dwango mobile                         @...
塩谷Hiromu           SHIOYA,                   啓kwappa   http://www.kwappa.net/
提供Born in the net, Connected by the net.
http://networkingstar.com/news/tupperware-named-one-of-most-admired-companies-in-the-world/
TupperTupper is a helper for processing uploaded  file via web form.
https://rubygems.org/gems/tupperhttps://github.com/kwappa/tupper
usage RTFM
view<form method="POST" action="/upload"      enctype="multipart/form-data">  <input type="file" name="dummy_file">  <inpu...
controllerpost /upload do  tupper = Tupper.new session  tupper.upload params[:dummy_file]  redirect /, 302end
controllerget /show_size do  tupper = Tupper.new session  unless tupper.has_uploaded_file?     redirect /, 302  end  "uplo...
https://rubygems.org/gems/tupperhttps://github.com/kwappa/tupper
Rubygems    An easy wayto publish your code  to rubygems.org
bundle gem% bundle gem tupper      create tupper/Gemfile      create tupper/Rakefile      create tupper/LICENSE      creat...
rake build% rake buildtupper 1.0.3 built to pkg/tupper-1.0.3.gem
rake install% rake installtupper 1.0.3 built to pkg/tupper-1.0.3.gemtupper (1.0.3) installed
rake release% rake   releasetupper   1.0.3 built to pkg/tupper-1.0.3.gemTagged   v1.0.3Pushed   git commits and tagsPushed...
http://randd.kwappa.net/2012/07/09/450
Opensource    Social codingmakes your code more clean and readable
https://rubygems.org/gems/tupperhttps://github.com/kwappa/tupper
Conclusion Create libraries. Bundler is nice.Publish your code.            Thank you for listening.
Linkstupper ¦ RubyGems.org ¦ your community gem host  https://rubygems.org/gems/tupperkwappa/tupper  https://github.com/kw...
Upcoming SlideShare
Loading in …5
×

Tupperware

1,849 views

Published on

2012-07-2

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Tupperware

  1. 1. Tupper wareTupper, Rubygems, and Social Coding 2012-07-26 dwango mobile @kwappa / SHIOYA, Hiromu
  2. 2. 塩谷Hiromu SHIOYA, 啓kwappa http://www.kwappa.net/
  3. 3. 提供Born in the net, Connected by the net.
  4. 4. http://networkingstar.com/news/tupperware-named-one-of-most-admired-companies-in-the-world/
  5. 5. TupperTupper is a helper for processing uploaded file via web form.
  6. 6. https://rubygems.org/gems/tupperhttps://github.com/kwappa/tupper
  7. 7. usage RTFM
  8. 8. view<form method="POST" action="/upload" enctype="multipart/form-data"> <input type="file" name="dummy_file"> <input type="submit" value="upload"></form>
  9. 9. controllerpost /upload do tupper = Tupper.new session tupper.upload params[:dummy_file] redirect /, 302end
  10. 10. controllerget /show_size do tupper = Tupper.new session unless tupper.has_uploaded_file? redirect /, 302 end "uploaded file is [#{tupper.uploaded_file}] (size:#{File.size(tupper.uploaded_file)})"end
  11. 11. https://rubygems.org/gems/tupperhttps://github.com/kwappa/tupper
  12. 12. Rubygems An easy wayto publish your code to rubygems.org
  13. 13. bundle gem% bundle gem tupper create tupper/Gemfile create tupper/Rakefile create tupper/LICENSE create tupper/README.md create tupper/.gitignore create tupper/tupper.gemspec create tupper/lib/tupper.rb create tupper/lib/tupper/version.rbInitializating git repo in /path/to/current_dir/tupper
  14. 14. rake build% rake buildtupper 1.0.3 built to pkg/tupper-1.0.3.gem
  15. 15. rake install% rake installtupper 1.0.3 built to pkg/tupper-1.0.3.gemtupper (1.0.3) installed
  16. 16. rake release% rake releasetupper 1.0.3 built to pkg/tupper-1.0.3.gemTagged v1.0.3Pushed git commits and tagsPushed tupper 1.0.3 to rubygems.org
  17. 17. http://randd.kwappa.net/2012/07/09/450
  18. 18. Opensource Social codingmakes your code more clean and readable
  19. 19. https://rubygems.org/gems/tupperhttps://github.com/kwappa/tupper
  20. 20. Conclusion Create libraries. Bundler is nice.Publish your code. Thank you for listening.
  21. 21. Linkstupper ¦ RubyGems.org ¦ your community gem host https://rubygems.org/gems/tupperkwappa/tupper https://github.com/kwappa/tupperbundlerを使ってrubygem「Tupper」を作る ¦ Kwappa研究開発室 http://randd.kwappa.net/2012/07/09/450僕が社内ライブラリを OSS 化すべきだと思う3つの理由 - 宇宙線 http://rosylilly.hatenablog.com/entry/2012/06/20/002022Rubyのライブラリをrubygemsとして公開するには? - QA@IT http://qa.atmarkit.co.jp/q/54

×