How to package your
    Ruby code
      Dr Nic Williams
        mocra.com
     drnicwilliams.com



    Mocra
What we need
Packaging by developer
Easy unpacking by users
Dependencies
Executables
Platform agnostic/neutral
Solution: RubyGems
Workflow
Packaging
Public install host
SCM
Public repo
Continuous integration
Workflow
Packaging: RubyGems
Public install host: rubyforge.org
SCM: Git
Public repo: github.com or rubyforge.org
Continuou...
Start a new gem
Your gem Just Works
Bunch of options
~/.newgem.yml
Then use more generators
Create executable
Create executable
test/test_osdc_cli.rb
lib/osdc/cli.rb
Build and Go
Workflow
Packaging: RubyGems
Public install host: rubyforge.org
SCM: Git
Public repo: github.com or rubyforge.org
Continuou...
Describe your gem
Release to RubyForge
Workflow
Packaging: RubyGems
Public install host: rubyforge.org
SCM: Git
Public repo: github.com or rubyforge.org
Continuou...
Local git repo
Remote hosting on github
Instructions
for
free
http://github.com/drnic/osdc
http://github.com/drnic/osdc
Example
network
graph
http://github.com/drnic/osdc
Workflow
Packaging: RubyGems
Public install host: rubyforge.org
SCM: Git
Public repo: github.com or rubyforge.org
Continuou...
github
→
runcoderun
runcoderun
runs
tests
on
commits
http://runcoderun.com/drnic/osdc
happy
green
when
its
fixed
Workflow
Packaging: RubyGems
Public install host: rubyforge.org
SCM: Git
Public repo: github.com or rubyforge.org
Continuou...
How to package your
    Ruby code
      Dr Nic Williams
        mocra.com
     drnicwilliams.com



    Mocra
Upcoming SlideShare
Loading in...5
×

Rubygem Dev And Workflow

9,796

Published on

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

No Downloads
Views
Total Views
9,796
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
93
Comments
0
Likes
9
Embeds 0
No embeds

No notes for slide

Transcript of "Rubygem Dev And Workflow"

  1. 1. How to package your Ruby code Dr Nic Williams mocra.com drnicwilliams.com Mocra
  2. 2. What we need Packaging by developer Easy unpacking by users Dependencies Executables Platform agnostic/neutral
  3. 3. Solution: RubyGems
  4. 4. Workflow Packaging Public install host SCM Public repo Continuous integration
  5. 5. Workflow Packaging: RubyGems Public install host: rubyforge.org SCM: Git Public repo: github.com or rubyforge.org Continuous integration: runcoderun.com
  6. 6. Start a new gem
  7. 7. Your gem Just Works
  8. 8. Bunch of options
  9. 9. ~/.newgem.yml
  10. 10. Then use more generators
  11. 11. Create executable
  12. 12. Create executable
  13. 13. test/test_osdc_cli.rb
  14. 14. lib/osdc/cli.rb
  15. 15. Build and Go
  16. 16. Workflow Packaging: RubyGems Public install host: rubyforge.org SCM: Git Public repo: github.com or rubyforge.org Continuous integration: runcoderun.com
  17. 17. Describe your gem
  18. 18. Release to RubyForge
  19. 19. Workflow Packaging: RubyGems Public install host: rubyforge.org SCM: Git Public repo: github.com or rubyforge.org Continuous integration: runcoderun.com
  20. 20. Local git repo
  21. 21. Remote hosting on github
  22. 22. Instructions
for
free
  23. 23. http://github.com/drnic/osdc
  24. 24. http://github.com/drnic/osdc
  25. 25. Example
network
graph
  26. 26. http://github.com/drnic/osdc
  27. 27. Workflow Packaging: RubyGems Public install host: rubyforge.org SCM: Git Public repo: github.com or rubyforge.org Continuous integration: runcoderun.com
  28. 28. github
→
runcoderun
  29. 29. runcoderun
runs
tests
on
commits
  30. 30. http://runcoderun.com/drnic/osdc
  31. 31. happy
green
when
its
fixed
  32. 32. Workflow Packaging: RubyGems Public install host: rubyforge.org SCM: Git Public repo: github.com or rubyforge.org Continuous integration: runcoderun.com
  33. 33. How to package your Ruby code Dr Nic Williams mocra.com drnicwilliams.com Mocra
  1. A particular slide catching your eye?

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

×