Changeset 105
- Timestamp:
- 05/15/08 21:49:52 (6 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 modified
-
CHANGELOG.txt (modified) (1 diff)
-
app/controllers/sessions_controller.rb (modified) (1 diff)
-
app/views/sessions/version.xml.builder (added)
-
config/routes.rb (modified) (1 diff)
-
test/functional/sessions_controller_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHANGELOG.txt
r101 r105 1 1 2 2 SVN 3 4 * Add version info XML action. Provided by Mathias Meyer 3 5 4 6 * Update Net::SSH to 1.1.3 -
trunk/app/controllers/sessions_controller.rb
r77 r105 30 30 redirect_back_or_default( home_path ) 31 31 end 32 33 def version 34 app = OpenStruct.new(:name => "Webistrano", :version => WEBISTRANO_VERSION) 35 respond_to do |format| 36 format.xml { render :layout => false } 37 end 38 end 32 39 end -
trunk/config/routes.rb
r87 r105 32 32 # RESTful auth 33 33 map.resources :users,:member => {:deployments => :get} 34 map.resources :sessions 34 map.resources :sessions, :collection => {:version => :get} 35 35 map.signup '/signup', :controller => 'users', :action => 'new' 36 36 map.login '/login', :controller => 'sessions', :action => 'new' -
trunk/test/functional/sessions_controller_test.rb
r1 r105 75 75 end 76 76 77 def test_should_render_the_version_xml 78 get :version 79 assert_select "application" do |element| 80 assert_select 'name', :text => "Webistrano" 81 assert_select 'version', :text => WEBISTRANO_VERSION 82 end 83 end 84 77 85 protected 78 86 def auth_token(token)
