larva 0.7.3 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/CHANGELOG.md +4 -0
- data/lib/larva/configurator.rb +1 -1
- data/lib/larva/mocker.rb +1 -1
- data/lib/larva/version.rb +1 -1
- data/template/test/daemon_test.rb +2 -1
- data/test/configurator_test.rb +1 -1
- data/test/mocker_test.rb +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MGRmM2IyNzkwMmU1ZWY3M2E0ZmMxODkwYzlhMzBjMWE1MDhlZGU4ZQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b434606ab541849d8c77317259bc45c81967bbc2
|
4
|
+
data.tar.gz: 2eb2f60b9ee0bc6b7251f6811d54fd8fca1186d3
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
OTI1ZDE3MWVmMGU3ZTcwY2M1NjczMjMzNGFkZjUxZjQyY2UwMGNkZTMxN2Zm
|
11
|
-
ZGVhYTA3Y2NlODI5ZTdmMmZkODExM2FjNmUyMjJhYjVlNmNkMWM=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
OWI4Y2EwNjVjOWM4MGI3NTAyMDVmNGIyNjY4Y2FlM2VhMTYwY2ZkM2E4MWE4
|
14
|
-
YTFiMmQwYzllOGFiYjBjMDBiM2YxNjNlYzE1N2YwNzA1MzAwMGRlYmY1NDJh
|
15
|
-
ZGIxMGI2ODI1Y2VhNmNhYWM5NjJhYmViNmI4MzRiYTBlODU1MzI=
|
6
|
+
metadata.gz: cb1ff84dd92a49c919b785f7bf4161f034d38569528357405a888cdab28ac1ba415b8799a1cbc847e59ac4947c5b8c504850d0292c5ed6e0b489fef3f92bfc41
|
7
|
+
data.tar.gz: 8bbac84932701d7e489ebcfd5a791ede10d72d45bfb134de370b6b1a62439eeec88d9a0ae474c1941d2d18e52e1d54b4aabdaa5cdf0faee1c6a9ec7d7188183f
|
data/CHANGELOG.md
CHANGED
data/lib/larva/configurator.rb
CHANGED
@@ -24,7 +24,7 @@ module Larva
|
|
24
24
|
|
25
25
|
# Don't use fetch for these as nil values might be deliberately passed it
|
26
26
|
config.secret_key = @options[:meducation_sdk_secret_key] || meducation_sdk_config[:secret_key]
|
27
|
-
config.endpoint = @options[:meducation_sdk_endpoint ] || "http://localhost:3000/
|
27
|
+
config.endpoint = @options[:meducation_sdk_endpoint ] || "http://localhost:3000/spi" if @env == 'development'
|
28
28
|
config.logger = Filum.logger
|
29
29
|
end
|
30
30
|
end
|
data/lib/larva/mocker.rb
CHANGED
@@ -6,7 +6,7 @@ module Larva
|
|
6
6
|
|
7
7
|
if const_defined?("MeducationSDK")
|
8
8
|
MeducationSDK.config do |config|
|
9
|
-
config.endpoint = "http://localhost:3000/
|
9
|
+
config.endpoint = "http://localhost:3000/spi"
|
10
10
|
config.access_id = "Daemon"
|
11
11
|
config.secret_key = "foobar"
|
12
12
|
config.logger = Filum.logger
|
data/lib/larva/version.rb
CHANGED
@@ -3,8 +3,9 @@ require File.expand_path('../test_helper', __FILE__)
|
|
3
3
|
module LarvaSpawn
|
4
4
|
class DaemonTest < Minitest::Test
|
5
5
|
def test_the_daemon_starts
|
6
|
-
config_dir = File.expand_path('', __FILE__)
|
6
|
+
config_dir = File.expand_path('../../config', __FILE__)
|
7
7
|
logfile = "log/test.log"
|
8
|
+
Larva::WorkerPool.any_instance.stubs(keep_workers_alive: true)
|
8
9
|
LarvaSpawn::Daemon.start(config_dir: config_dir, logfile: logfile)
|
9
10
|
end
|
10
11
|
end
|
data/test/configurator_test.rb
CHANGED
@@ -49,7 +49,7 @@ module Larva
|
|
49
49
|
assert_equal "LarvaSpawn", MeducationSDK.config.access_id
|
50
50
|
assert_equal "foobar", MeducationSDK.config.secret_key
|
51
51
|
assert_equal Filum.logger, MeducationSDK.config.logger
|
52
|
-
assert_equal "http://localhost:3000/
|
52
|
+
assert_equal "http://localhost:3000/spi", MeducationSDK.config.endpoint
|
53
53
|
ensure
|
54
54
|
`rm #{sdk_yaml_path}`
|
55
55
|
end
|
data/test/mocker_test.rb
CHANGED
@@ -16,7 +16,7 @@ module Larva
|
|
16
16
|
|
17
17
|
def test_loquor_is_setup
|
18
18
|
Mocker.mock!
|
19
|
-
assert_equal "http://localhost:3000/
|
19
|
+
assert_equal "http://localhost:3000/spi", MeducationSDK.config.endpoint
|
20
20
|
assert_equal "Daemon", MeducationSDK.config.access_id
|
21
21
|
assert_equal "foobar", MeducationSDK.config.secret_key
|
22
22
|
assert_equal Filum.logger, MeducationSDK.config.logger
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: larva
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- iHiD
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: propono
|
@@ -70,28 +70,28 @@ dependencies:
|
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: mocha
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
@@ -173,12 +173,12 @@ require_paths:
|
|
173
173
|
- lib
|
174
174
|
required_ruby_version: !ruby/object:Gem::Requirement
|
175
175
|
requirements:
|
176
|
-
- -
|
176
|
+
- - '>='
|
177
177
|
- !ruby/object:Gem::Version
|
178
178
|
version: '0'
|
179
179
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
180
|
requirements:
|
181
|
-
- -
|
181
|
+
- - '>='
|
182
182
|
- !ruby/object:Gem::Version
|
183
183
|
version: '0'
|
184
184
|
requirements: []
|
@@ -198,3 +198,4 @@ test_files:
|
|
198
198
|
- test/processor_test.rb
|
199
199
|
- test/test_helper.rb
|
200
200
|
- test/worker_pool_test.rb
|
201
|
+
has_rdoc:
|