Tupperware

1,451
-1

Published on

2012-07-2

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,451
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
20
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×