thin-attach_socket 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 25979b2de7bf74c14e662037ee35daf00a435206
4
+ data.tar.gz: f1e03b9ae70fc9f035a7f0b8c83b262e96f9e6e7
5
+ SHA512:
6
+ metadata.gz: 3d19f7c626c7614e1e002181b4086f0bd01cc4640b5c13e07ebb3ff7b82d2e8e53d06d7e351129c298ca4ebd76550f8a6cc1d85525d45eebcc53552ff87e66dc
7
+ data.tar.gz: cadece0f39fdf98f17349fa27c6f38228baf9c2986f90e7efac77f812dbeefdd6e1be45eea3c8a3b3fd0e36444cd424a025ec39569bbc8a9785eb19d0efa7658
data/README.md CHANGED
@@ -2,13 +2,15 @@ Provides `Thin::Backends::AttachSocket` for booting a thin server on an already
2
2
  Socket.
3
3
 
4
4
  This is useful when running thin inside [einhorn](https://github.com/stripe/einhorn), and
5
- it requires [eventmachine-le](https://github.com/ibc/EventMachine-LE).
5
+ it requires either a recent [eventmachine](https://github.com/eventmachine/eventmachine) gem
6
+ (1.0.4 and up implement the required functions), or
7
+ [eventmachine-le](https://github.com/ibc/EventMachine-LE).
6
8
 
7
9
  Installation
8
10
  ============
9
11
 
10
12
  Either `gem install thin-attach_socket`, or add `gem 'thin-attach_socket'` to your
11
- `Gemfile` and run `bundle`.
13
+ `Gemfile`, and run `bundle`.
12
14
 
13
15
  Usage
14
16
  =====
@@ -46,4 +48,3 @@ thin-attach_socket is released under the Ruby License, http://www.ruby-lang.org/
46
48
 
47
49
  It was heavily based on the [work](https://github.com/stripe/thin/commit/42e29ba23a136a30dc11a1c9dff1fe1187dc9eee) of
48
50
  Patrick Collison at Stripe.
49
-
@@ -1,3 +1,10 @@
1
+ require 'eventmachine'
2
+
3
+ # Sanity-check that our EventMachine has the required methods:
4
+ unless EventMachine.respond_to?(:attach_server)
5
+ raise "You need an EventMachine that supports .attach_server. That can be EventMachine-LE or EventMachine 1.0.4 and above."
6
+ end
7
+
1
8
  # Based on Patrick Collison's commit to stripe/thin:
2
9
  # https://github.com/stripe/thin/commit/42e29ba23a136a30dc11a1c9dff1fe1187dc9eee
3
10
  #
@@ -1,14 +1,15 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "thin-attach_socket"
3
- s.version = "0.1"
3
+ s.version = "0.2"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.author = "Conrad Irwin"
6
6
  s.email = "conrad.irwin@gmail.com"
7
7
  s.homepage = "http://github.com/ConradIrwin/thin-attach_socket"
8
8
  s.summary = "Provides Thin::Backends::AttachServer for booting thin on an existing socket."
9
- s.description = "This is useful for running thin behind einhorn, and requires eventmachine-le"
9
+ s.description = "This is useful for running thin behind einhorn, and requires a recent eventmachine"
10
10
  s.files = `git ls-files`.split("\n")
11
11
  s.require_path = "lib"
12
12
  s.add_dependency 'thin'
13
- s.add_dependency 'eventmachine-le'
13
+
14
+ s.requirements << 'eventmachine >= 1.0.4 or eventmachine-le'
14
15
  end
metadata CHANGED
@@ -1,49 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thin-attach_socket
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: '0.1'
4
+ version: '0.2'
6
5
  platform: ruby
7
6
  authors:
8
7
  - Conrad Irwin
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-12-11 00:00:00.000000000 Z
11
+ date: 2015-08-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- type: :runtime
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ! '>='
27
- - !ruby/object:Gem::Version
28
- version: '0'
29
14
  name: thin
30
- - !ruby/object:Gem::Dependency
31
- type: :runtime
32
15
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
16
  requirements:
35
- - - ! '>='
17
+ - - ">="
36
18
  - !ruby/object:Gem::Version
37
19
  version: '0'
20
+ type: :runtime
38
21
  prerelease: false
39
22
  version_requirements: !ruby/object:Gem::Requirement
40
- none: false
41
23
  requirements:
42
- - - ! '>='
24
+ - - ">="
43
25
  - !ruby/object:Gem::Version
44
26
  version: '0'
45
- name: eventmachine-le
46
- description: This is useful for running thin behind einhorn, and requires eventmachine-le
27
+ description: This is useful for running thin behind einhorn, and requires a recent
28
+ eventmachine
47
29
  email: conrad.irwin@gmail.com
48
30
  executables: []
49
31
  extensions: []
@@ -54,27 +36,26 @@ files:
54
36
  - thin-attach_socket.gemspec
55
37
  homepage: http://github.com/ConradIrwin/thin-attach_socket
56
38
  licenses: []
39
+ metadata: {}
57
40
  post_install_message:
58
41
  rdoc_options: []
59
42
  require_paths:
60
43
  - lib
61
44
  required_ruby_version: !ruby/object:Gem::Requirement
62
- none: false
63
45
  requirements:
64
- - - ! '>='
46
+ - - ">="
65
47
  - !ruby/object:Gem::Version
66
48
  version: '0'
67
49
  required_rubygems_version: !ruby/object:Gem::Requirement
68
- none: false
69
50
  requirements:
70
- - - ! '>='
51
+ - - ">="
71
52
  - !ruby/object:Gem::Version
72
53
  version: '0'
73
- requirements: []
54
+ requirements:
55
+ - eventmachine >= 1.0.4 or eventmachine-le
74
56
  rubyforge_project:
75
- rubygems_version: 1.8.24
57
+ rubygems_version: 2.4.5
76
58
  signing_key:
77
- specification_version: 3
59
+ specification_version: 4
78
60
  summary: Provides Thin::Backends::AttachServer for booting thin on an existing socket.
79
61
  test_files: []
80
- has_rdoc: