加上pry支持
This commit is contained in:
parent
db9eebbac7
commit
c7c25edf17
6
Gemfile
6
Gemfile
|
@ -49,9 +49,9 @@ group :development, :test do
|
||||||
gem 'guard-spork', '~> 1.5.1'
|
gem 'guard-spork', '~> 1.5.1'
|
||||||
gem 'guard-test', '~> 1.0.0'
|
gem 'guard-test', '~> 1.0.0'
|
||||||
gem 'ruby-prof', '~> 0.15.1' unless RUBY_PLATFORM =~ /w32/
|
gem 'ruby-prof', '~> 0.15.1' unless RUBY_PLATFORM =~ /w32/
|
||||||
gem 'pry'
|
gem 'pry-rails'
|
||||||
gem 'pry-nav'
|
gem 'pry-byebug'
|
||||||
|
gem 'pry-remote'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
20
Gemfile.lock
20
Gemfile.lock
|
@ -57,6 +57,9 @@ GEM
|
||||||
ice_nine (~> 0.11.0)
|
ice_nine (~> 0.11.0)
|
||||||
thread_safe (~> 0.3, >= 0.3.1)
|
thread_safe (~> 0.3, >= 0.3.1)
|
||||||
builder (3.0.0)
|
builder (3.0.0)
|
||||||
|
byebug (2.7.0)
|
||||||
|
columnize (~> 0.3)
|
||||||
|
debugger-linecache (~> 1.2)
|
||||||
capybara (2.4.1)
|
capybara (2.4.1)
|
||||||
mime-types (>= 1.16)
|
mime-types (>= 1.16)
|
||||||
nokogiri (>= 1.3.3)
|
nokogiri (>= 1.3.3)
|
||||||
|
@ -81,6 +84,8 @@ GEM
|
||||||
coffee-script-source
|
coffee-script-source
|
||||||
execjs
|
execjs
|
||||||
coffee-script-source (1.7.1)
|
coffee-script-source (1.7.1)
|
||||||
|
columnize (0.9.0)
|
||||||
|
debugger-linecache (1.2.0)
|
||||||
descendants_tracker (0.0.4)
|
descendants_tracker (0.0.4)
|
||||||
thread_safe (~> 0.3, >= 0.3.1)
|
thread_safe (~> 0.3, >= 0.3.1)
|
||||||
equalizer (0.0.9)
|
equalizer (0.0.9)
|
||||||
|
@ -170,8 +175,14 @@ GEM
|
||||||
method_source (~> 0.8)
|
method_source (~> 0.8)
|
||||||
slop (~> 3.4)
|
slop (~> 3.4)
|
||||||
win32console (~> 1.3)
|
win32console (~> 1.3)
|
||||||
pry-nav (0.2.3)
|
pry-byebug (1.3.2)
|
||||||
pry (~> 0.9.10)
|
byebug (~> 2.7)
|
||||||
|
pry (~> 0.9.12)
|
||||||
|
pry-rails (0.3.2)
|
||||||
|
pry (>= 0.9.10)
|
||||||
|
pry-remote (0.1.8)
|
||||||
|
pry (~> 0.9)
|
||||||
|
slop (~> 3.0)
|
||||||
puma (2.10.1)
|
puma (2.10.1)
|
||||||
rack (>= 1.1, < 2.0)
|
rack (>= 1.1, < 2.0)
|
||||||
rack (1.4.5)
|
rack (1.4.5)
|
||||||
|
@ -305,8 +316,9 @@ DEPENDENCIES
|
||||||
net-ldap (~> 0.3.1)
|
net-ldap (~> 0.3.1)
|
||||||
nokogiri (~> 1.6.3)
|
nokogiri (~> 1.6.3)
|
||||||
paperclip (~> 3.5.4)
|
paperclip (~> 3.5.4)
|
||||||
pry
|
pry-byebug
|
||||||
pry-nav
|
pry-rails
|
||||||
|
pry-remote
|
||||||
puma
|
puma
|
||||||
rack-mini-profiler!
|
rack-mini-profiler!
|
||||||
rack-openid
|
rack-openid
|
||||||
|
|
|
@ -17,7 +17,7 @@ module Mobile
|
||||||
begin
|
begin
|
||||||
user = us.register params.merge(:password_confirmation => params[:password],
|
user = us.register params.merge(:password_confirmation => params[:password],
|
||||||
:should_confirmation_password => true)
|
:should_confirmation_password => true)
|
||||||
raise "register failed." if user.new_record?
|
raise "register failed #{user.errors.full_messages}" if user.new_record?
|
||||||
{status: 0, data: user}
|
{status: 0, data: user}
|
||||||
rescue => e
|
rescue => e
|
||||||
{status: 1, message: e.message}
|
{status: 1, message: e.message}
|
||||||
|
|
Loading…
Reference in New Issue