radar-app 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/radar/app.rb +8 -0
- data/lib/radar/app/server.rb +7 -0
- data/lib/radar/app/version.rb +1 -1
- data/radar-app.gemspec +4 -4
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66544b2182a12444260cbef80df6b9a5a0d63cb6
|
4
|
+
data.tar.gz: 765ed00ef6245ac5fffa8da96251899b056f32e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9964b34bb61c8e813dcffb311442f27a91490f265cb444d2751b549bba5ac77722f8ca2c6594f1235bd79501f1e43ba9da12c0383e66190402cee603f699f2d
|
7
|
+
data.tar.gz: cb77b9d5b3a0c074568843cc3f85d589f018341f09f8f693cba5a1fd9f3f87b5d94efdba02d947fb0e5bbe97e4bb87220e31fcd63f1606cae2c61d0d965ab4e4
|
data/lib/radar/app.rb
CHANGED
@@ -26,6 +26,14 @@ module Radar
|
|
26
26
|
@transaction_importer = ti
|
27
27
|
end
|
28
28
|
|
29
|
+
def self.transaction_file_importer
|
30
|
+
@transaction_file_importer
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.transaction_file_importer=(ti)
|
34
|
+
@transaction_file_importer = ti
|
35
|
+
end
|
36
|
+
|
29
37
|
def self.env
|
30
38
|
@env ||= ActiveSupport::StringInquirer.new(ENV['RADAR_ENV'] || 'development')
|
31
39
|
end
|
data/lib/radar/app/server.rb
CHANGED
@@ -21,6 +21,13 @@ module Radar
|
|
21
21
|
new(Radar::App.transaction_importer)
|
22
22
|
)
|
23
23
|
end
|
24
|
+
unless Radar::App.transaction_file_importer.nil?
|
25
|
+
multiplexer.register_processor(
|
26
|
+
'TransactionFileImporter',
|
27
|
+
ProcessorFactory.create_processor(Radar::API::TransactionFileImporter::Processor).
|
28
|
+
new(Radar::App.transaction_file_importer)
|
29
|
+
)
|
30
|
+
end
|
24
31
|
transport = Thrift::ServerSocket.new(port)
|
25
32
|
server = Thrift::NonblockingServer.new(multiplexer, transport, Thrift::FramedTransportFactory.new)
|
26
33
|
logger.info { "Starting app on port #{port}..." }
|
data/lib/radar/app/version.rb
CHANGED
data/radar-app.gemspec
CHANGED
@@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency "bundler"
|
22
|
-
spec.add_development_dependency "guard-rake"
|
23
|
-
spec.add_development_dependency "guard-rspec"
|
24
|
-
spec.add_development_dependency "rspec"
|
21
|
+
spec.add_development_dependency "bundler"
|
22
|
+
spec.add_development_dependency "guard-rake"
|
23
|
+
spec.add_development_dependency "guard-rspec"
|
24
|
+
spec.add_development_dependency "rspec"
|
25
25
|
|
26
26
|
spec.add_dependency "thor", "~> 0.19"
|
27
27
|
spec.add_dependency "radar-api", "~> 0.2"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radar-app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leonardo Mendonca
|
@@ -9,64 +9,64 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-10-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '0'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: guard-rake
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0
|
34
|
+
version: '0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0
|
41
|
+
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: guard-rspec
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
48
|
+
version: '0'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
55
|
+
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rspec
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - "
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
62
|
+
version: '0'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - "
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: thor
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|