当我在配置完 yml 后 bundle exec rackup
development:
api_key: '256930401'
api_secret: '516eed86fdeb61017323c0cb9ae07ec7'
test:
api_key:
api_secret:
production:
api_key:
api_secret:
出现了一下错误 是我 yml 配置错误了么?
/Users/teresa/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:203:in `parse': (config/weibo.yml): found character that cannot start any token while scanning for the next token at line 2 column 1 (Psych::SyntaxError)
from /Users/teresa/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
from /Users/teresa/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:151:in `parse'
from /Users/teresa/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:127:in `load'
from /Users/teresa/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:297:in `block in load_file'
from /Users/teresa/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:297:in `open'
from /Users/teresa/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:297:in `load_file'
from /Users/teresa/.rvm/gems/ruby-1.9.3-p194@global/gems/weibo-0.0.14/lib/weibo.rb:60:in `<top (required)>'
from /Applications/MAMP/htdocs/teresa/threewords/config.ru:8:in `require'
from /Applications/MAMP/htdocs/teresa/threewords/config.ru:8:in `block in <main>'
from /Users/teresa/.rvm/gems/ruby-1.9.3-p194@global/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /Users/teresa/.rvm/gems/ruby-1.9.3-p194@global/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from /Applications/MAMP/htdocs/teresa/threewords/config.ru:1:in `new'
from /Applications/MAMP/htdocs/teresa/threewords/config.ru:1:in `<main>'
from /Users/teresa/.rvm/gems/ruby-1.9.3-p194@global/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
from /Users/teresa/.rvm/gems/ruby-1.9.3-p194@global/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
from /Users/teresa/.rvm/gems/ruby-1.9.3-p194@global/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
from /Users/teresa/.rvm/gems/ruby-1.9.3-p194@global/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
from /Users/teresa/.rvm/gems/ruby-1.9.3-p194@global/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
from /Users/teresa/.rvm/gems/ruby-1.9.3-p194@global/gems/rack-1.4.1/lib/rack/server.rb:137:in `start'
from /Users/teresa/.rvm/gems/ruby-1.9.3-p194@global/gems/rack-1.4.1/bin/rackup:4:in `<top (required)>'
from /Users/teresa/.rvm/gems/ruby-1.9.3-p194@global/bin/rackup:23:in `load'
from /Users/teresa/.rvm/gems/ruby-1.9.3-p194@global/bin/rackup:23:in `<main>'
我用的 gem
Using rake (0.9.2.2) Using backports (2.6.2) Using crack (0.3.1) Using diff-lcs (1.1.3) Using eventmachine (0.12.10) Using git (1.2.5) Using hashie (1.2.0) Using multi_json (1.3.6) Using multi_xml (0.5.1) Using httparty (0.8.3) Using bundler (1.1.5) Using json (1.7.4) Using rdoc (3.12) Using jeweler (1.8.4) Using oauth (0.4.6) Using rack (1.4.1) Using rack-protection (1.2.0) Using rack-test (0.6.1) Using rspec-core (2.11.1) Using rspec-expectations (2.11.2) Using rspec-mocks (2.11.1) Using rspec (2.11.0) Using tilt (1.3.3) Using sinatra (1.3.2) Using sinatra-contrib (1.3.1) Using weibo (0.0.14)