文件名称:hypernova-ruby:Hypernova的Ruby客户端
文件大小:32KB
文件格式:ZIP
更新时间:2024-05-28 01:58:02
Ruby
超新星Ruby Hypernova服务的Ruby客户端 入门 将此行添加到您的应用程序的Gemfile中: gem 'hypernova' 然后执行: $ bundle 或将其自己安装为: $ gem install hypernova 在Rails中,在config/initializers/hypernova.rb创建一个初始化config/initializers/hypernova.rb 。 # Really basic configuration only consists of the host and the port Hypernova . configure do | config | config . host = "localhost" config . port = 80 end 在您的控制器中添加:around_filter ,以便您可以选择
【文件预览】:
hypernova-ruby-master
----.gitignore(626B)
----hypernova.gemspec(2KB)
----bin()
--------setup(115B)
--------console(334B)
----.travis.yml(170B)
----LICENSE(1KB)
----CHANGELOG.md(1KB)
----spec()
--------http_client_request_spec.rb(1KB)
--------request_service_spec.rb(3KB)
--------batch_url_builder_spec.rb(988B)
--------parsed_response_spec.rb(1KB)
--------mystique_ruby_spec.rb(2KB)
--------batch_spec.rb(2KB)
--------faraday_request_spec.rb(853B)
--------response_spec.rb(451B)
--------request_spec.rb(1KB)
--------faraday_connection_spec.rb(722B)
--------blank_renderer_spec.rb(1KB)
--------spec_helper.rb(3KB)
--------controller_helpers_spec.rb(11KB)
--------configuration_spec.rb(1KB)
--------batch_renderer_spec.rb(2KB)
--------plugins()
--------plugin_helper_spec.rb(1KB)
----README.md(6KB)
----lib()
--------hypernova()
--------hypernova.rb(2KB)
----Gemfile(94B)
----Rakefile(124B)