Your SlideShare is downloading. ×
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Tupperware
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Tupperware

1,197

Published on

2012-07-2

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,197
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
18
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Tupper wareTupper, Rubygems, and Social Coding 2012-07-26 dwango mobile @kwappa / SHIOYA, Hiromu
  • 2. 塩谷Hiromu SHIOYA, 啓kwappa http://www.kwappa.net/
  • 3. 提供Born in the net, Connected by the net.
  • 4. http://networkingstar.com/news/tupperware-named-one-of-most-admired-companies-in-the-world/
  • 5. TupperTupper is a helper for processing uploaded file via web form.
  • 6. https://rubygems.org/gems/tupperhttps://github.com/kwappa/tupper
  • 7. usage RTFM
  • 8. view<form method="POST" action="/upload" enctype="multipart/form-data"> <input type="file" name="dummy_file"> <input type="submit" value="upload"></form>
  • 9. controllerpost /upload do tupper = Tupper.new session tupper.upload params[:dummy_file] redirect /, 302end
  • 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. https://rubygems.org/gems/tupperhttps://github.com/kwappa/tupper
  • 12. Rubygems An easy wayto publish your code to rubygems.org
  • 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. rake build% rake buildtupper 1.0.3 built to pkg/tupper-1.0.3.gem
  • 15. rake install% rake installtupper 1.0.3 built to pkg/tupper-1.0.3.gemtupper (1.0.3) installed
  • 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. http://randd.kwappa.net/2012/07/09/450
  • 18. Opensource Social codingmakes your code more clean and readable
  • 19. https://rubygems.org/gems/tupperhttps://github.com/kwappa/tupper
  • 20. Conclusion Create libraries. Bundler is nice.Publish your code. Thank you for listening.
  • 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

×