• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Tupperware
 

Tupperware

on

  • 1,138 views

2012-07-2

2012-07-2

Statistics

Views

Total Views
1,138
Views on SlideShare
1,134
Embed Views
4

Actions

Likes
0
Downloads
13
Comments
0

3 Embeds 4

http://www.linkedin.com 2
http://coderwall.com 1
https://twitter.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Tupperware Tupperware Presentation Transcript

    • Tupper wareTupper, Rubygems, and Social Coding 2012-07-26 dwango mobile @kwappa / SHIOYA, Hiromu
    • 塩谷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"> <input type="submit" value="upload"></form>
    • 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 "uploaded file is [#{tupper.uploaded_file}] (size:#{File.size(tupper.uploaded_file)})"end
    • 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 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
    • 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 tupper 1.0.3 to rubygems.org
    • 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/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