alchemy-flux 0.0.1 → 0.0.2

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: 9e0b6e71da840d69a7c637a0cb924df1c63fcf53
4
- data.tar.gz: cb5572b0ce8972212d500e7f53e3234f9f7659f0
3
+ metadata.gz: 5a1f5663035d6eeb1184e6c736d58e69f21bc27d
4
+ data.tar.gz: 74406464c62fcb305b4e249be9aebb3602dbf46a
5
5
  SHA512:
6
- metadata.gz: eb865f0288c6b2c3de1f4947b4440b35727bc48d1bb7d8f3029cbcebf5b70784384f487924fd66ff7a7e25723528ef59c88d77c8078c89c5f05cf16dd8c6930e
7
- data.tar.gz: 725f8ee5b7ce199d5ea70fdc913c60aff118f085f7d76085a175e16f42161c7d126eceb10b550ac1f08245bbf83f90bc0868cb81c2dd47972eb5ab9287112907
6
+ metadata.gz: a00d810e108ef345f9585b10334cd6a8103beefe8c0d8673e9ec8ebb4201b41e8ada43d077b0e40871089b4c40c8fa3fd7e5580b4966a68ed567cf68bd81ca78
7
+ data.tar.gz: 620a1d74d5a34a1efa0ca670889e2f9c670598195b06f1c501056ad818dcdf869ca499977fb6849541cf9a153319649733d7abb820a3df6d33850a1602c80d89
@@ -35,15 +35,15 @@ module Rack
35
35
 
36
36
  # start the service for rack
37
37
  def self.start(app)
38
- service_name = ENV['SERVICE_NAME']
39
- raise RuntimeError.new("Require SERVICE_NAME environment variable") if !service_name
38
+ service_name = ENV['ALCHEMY_SERVICE_NAME']
39
+ raise RuntimeError.new("Require ALCHEMY_SERVICE_NAME environment variable") if !service_name
40
40
 
41
41
  options = {
42
42
  ampq_uri: ENV['AMQ_URI'] || 'amqp://localhost',
43
43
  prefetch: ENV['PREFETCH'] || 20,
44
44
  timeout: ENV['TIMEOUT'] || 30000,
45
45
  threadpool_size: ENV['THREADPOOL_SIZE'] || 500,
46
- resource_paths: (ENV['RESOURCE_PATHS'] || '').split(',')
46
+ resource_paths: (ENV['ALCHEMY_RESOURCE_PATHS'] || '').split(',')
47
47
  }
48
48
 
49
49
  if options[:prefetch] > options[:threadpool_size]
@@ -10,7 +10,7 @@ describe Rack::Handler::AlchemyFlux do
10
10
  describe "#start" do
11
11
 
12
12
  it 'should be able to start with a simple rack app' do
13
- ENV['SERVICE_NAME'] = 'rack.service'
13
+ ENV['ALCHEMY_SERVICE_NAME'] = 'rack.service'
14
14
  app = Proc.new do |env|
15
15
  ['200', {}, ['hi Bob']]
16
16
  end
@@ -25,9 +25,9 @@ describe Rack::Handler::AlchemyFlux do
25
25
  Rack::Handler::AlchemyFlux.stop
26
26
  end
27
27
 
28
- it 'should register resources with RESOURCE_PATHS env variable' do
29
- ENV['SERVICE_NAME'] = 'rack.service'
30
- ENV['RESOURCE_PATHS'] = '/alice,/bob'
28
+ it 'should register resources with ALCHEMY_RESOURCE_PATHS env variable' do
29
+ ENV['ALCHEMY_SERVICE_NAME'] = 'rack.service'
30
+ ENV['ALCHEMY_RESOURCE_PATHS'] = '/alice,/bob'
31
31
  app = Proc.new do |env|
32
32
  ['200', {}, ["hi #{env['PATH_INFO']}"]]
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy-flux
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loyalty New Zealand
@@ -14,44 +14,44 @@ dependencies:
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.4.0
19
+ version: '3.4'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 3.4.0
26
+ version: '3.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec-mocks
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 3.4.0
33
+ version: '3.4'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '='
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 3.4.0
40
+ version: '3.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 10.3.2
47
+ version: '10.4'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 10.3.2
54
+ version: '10.4'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: yard
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -84,58 +84,58 @@ dependencies:
84
84
  name: eventmachine
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '='
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.0.8
89
+ version: '1.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '='
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.0.8
96
+ version: '1.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: amqp
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '='
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.5.1
103
+ version: '1.5'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '='
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.5.1
110
+ version: '1.5'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: uuidtools
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '='
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 2.1.5
117
+ version: '2.1'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '='
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 2.1.5
124
+ version: '2.1'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: msgpack
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '='
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 0.7.1
131
+ version: '0.7'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '='
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 0.7.1
138
+ version: '0.7'
139
139
  description: Ruby implementation of the Alchemy micro-service framework
140
140
  email:
141
141
  - graham.jenson@loyalty.co.nz
@@ -162,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
162
162
  requirements:
163
163
  - - ">="
164
164
  - !ruby/object:Gem::Version
165
- version: 2.2.0
165
+ version: 2.1.8
166
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  requirements:
168
168
  - - ">="
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  requirements: []
172
172
  rubyforge_project:
173
- rubygems_version: 2.4.3
173
+ rubygems_version: 2.4.5.1
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: Ruby implementation of the Alchemy micro-service framework