Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.21 KB

HACKING.textile

File metadata and controls

45 lines (30 loc) · 1.21 KB

Hacking on the OAuth2 Provider

This plugin is tested with:

  • Rails v2.3.4
  • MRI 1.8.7 and JRuby 1.5.1

Dependencies:

Getting up and running

$ git clone git://github.com/ThoughtWorksStudios/oauth2_provider.git

For MRI:

$ [sudo] gem install rcov saikuro_treemap validatable —no-rdoc —no-ri

For JRuby, nothing more is needed, JRuby 1.5.1 and all necessary gems
are bundled in the /tools directory

Structure of the code

/tools – contains JRuby + dependency gems /provider – a sample rails app containing the plugin /provider/test – contains the unit+functional tests /provider/vendor/plugins/oauth2_provider – the actual plugin

Hacking on code

$ cd provider $ # muck around with code $ rake #using MRI $ script/jruby -S rake #using the bundled JRuby

Metrics

$ cd provider $ rake test:coverage $ rake metrics:saikuro_treemap

Pushing out gems

$ cd provider $ script/jruby -S rake release:push # follow the instructions printed by the task $ script/jruby -S gem push pkg/oauth2_provider-VERSION.gem