SM MS basic api wip. able to get a users public profile

This commit is contained in:
Maxwell Salzberg 2011-10-15 18:57:13 -07:00
parent a7c0888ad2
commit 8029cb0784
5 changed files with 16 additions and 1 deletions

View file

@ -117,6 +117,7 @@ end
group :test do
gem 'capybara', '~> 0.3.9'
gem 'cucumber-rails', '0.3.2'
gem 'cucumber-api-steps', :require => false
gem 'database_cleaner', '0.6.0'
gem 'diaspora-client', :git => 'git://github.com/diaspora/diaspora-client.git'
#"0.1.0", #:path => '~/workspace/diaspora-client'

View file

@ -150,6 +150,9 @@ GEM
gherkin (~> 2.5.0)
json (>= 1.4.6)
term-ansicolor (>= 1.0.6)
cucumber-api-steps (0.6)
cucumber (>= 0.8.3)
jsonpath (>= 0.1.2)
cucumber-rails (0.3.2)
cucumber (>= 0.8.0)
culerity (0.2.15)
@ -235,6 +238,8 @@ GEM
jasmine-core (1.2.0.rc1)
json (1.4.6)
json_pure (1.6.1)
jsonpath (0.4.2)
multi_json
jwt (0.1.3)
json (>= 1.2.4)
linecache (0.43)
@ -481,6 +486,7 @@ DEPENDENCIES
carrierwave (= 0.5.2)
chef (= 0.9.12)
cloudfiles (= 1.4.10)
cucumber-api-steps
cucumber-rails (= 0.3.2)
database_cleaner (= 0.6.0)
devise (~> 1.3.1)

View file

@ -165,6 +165,12 @@ Diaspora::Application.routes.draw do
get :me
end
namespace :api do
namespace :v0 do
get "/users/:username" => 'users#show', :as => 'user'
end
end
# Mobile site

View file

@ -16,6 +16,8 @@ require 'capybara/rails'
require 'capybara/cucumber'
require 'capybara/session'
require 'cucumber/rails/capybara_javascript_emulation' # Lets you click links with onclick javascript handlers without using @culerity or @javascript
require 'cucumber/api_steps'
# Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In
# order to ease the transition to Capybara we set the default here. If you'd
# prefer to use XPath just remove this line and adjust any selectors in your