opener-opinion-detector 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04c5af868b17a2e60d8a4ce8f5bfbd32842129fa
4
- data.tar.gz: 0348514671da532342f41d71011b226705cadb14
3
+ metadata.gz: 2cf56bc682d32934b84ecd24ee9be6c31c5ecd04
4
+ data.tar.gz: e1b81554c5348b4a3fd9ea638cdf2d1bb2740244
5
5
  SHA512:
6
- metadata.gz: 633377edd6cf4606e8e24841a8de9ca654008b8c8e6eda5a97c0b564d08969e916e9370c73d25e045ac2baff415021a37534b1c7c81933d05bfa21599e18b49d
7
- data.tar.gz: d58166aa6337bc845cb0d542cd7810829e26a2d874542978c39cb7efe8889bd41c6e31428bb7392dfd6ea3a8d603d128d7babe95c5440f38464a79329acf9c2a
6
+ metadata.gz: a659778886fc9810402e1ef19bc96b18b30bef97fee0ad3a7ffaf804064e6f53643a1923c15de9dfd8a6da70953d72f99fe7470ad68c6b117c484f7cc4c4c75e
7
+ data.tar.gz: 17b31ba09285d1c59ebeb26603847ada91e5ddcb2f2cd3e578b5f2d04a81a344746ae886847b304ca2f4ca4c2ad7e3f4da71684deeb5713f0b3a779d75d081a1
@@ -1,10 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'rack'
3
+ require 'puma/cli'
4
4
 
5
- # Without calling `Rack::Server#options` manually the CLI arguments will never
6
- # be passed, thus the application can't be specified as a constructor argument.
7
- server = Rack::Server.new
8
- server.options[:config] = File.expand_path('../../config.ru', __FILE__)
5
+ rack_config = File.expand_path('../../config.ru', __FILE__)
9
6
 
10
- server.start
7
+ cli = Puma::CLI.new([rack_config] + ARGV)
8
+ cli.run
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  class OpinionDetector
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -23,6 +23,7 @@ Gem::Specification.new do |gem|
23
23
  gem.add_dependency 'nokogiri'
24
24
  gem.add_dependency 'sinatra', '~>1.4.2'
25
25
  gem.add_dependency 'httpclient'
26
+ gem.add_dependency 'puma'
26
27
  gem.add_dependency 'opener-webservice'
27
28
 
28
29
  gem.add_development_dependency 'rspec'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-opinion-detector
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - development@olery.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-19 00:00:00.000000000 Z
11
+ date: 2014-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opener-opinion-detector-base
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: puma
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: opener-webservice
71
85
  requirement: !ruby/object:Gem::Requirement