rubymotion 3.8中的BubbleWrap中缺少常量

时间:2015-04-14 05:30:33

标签: rubymotion

我得到#<NameError: uninitialized constant BubbleWrap::HTTP>

我不知道它有什么问题

BW 对象中没有 HTTP 方法。

    BW.constants.grep(/htt/mi)
    => [:MCHTTPRequestor, :NSHTTPURLResponseInternal, :NSHTTPURLResponse, :MCGlobalHTTPProxyPayload, :NSHTTPURLRequestParameters, :NSHTTPCookieStorage, :MCHTTPTransaction, :NSHTTPCookieStorageInternal, :NSHTTPCookie, :CILightTunnel]

(main)> BW::HTTP
2015-04-14 13:27:51.673 hello[80662:629086] uninitialized constant BubbleWrap::HTTP (NameError)
=> #<NameError: uninitialized constant BubbleWrap::HTTP>

% motion --version
3.8

-  bubble-wrap (1.8.0)

1 个答案:

答案 0 :(得分:2)

不推荐使用HTTP库,但您可以在github.com/rubymotion/BubbleWrap-HTTP(gem "bubble-wrap-http")找到它