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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3484db5c221c8285bb12ce3c9e00fa6b2e7c7f00
4
- data.tar.gz: 19f880298f81d54aad60fbb0ee72499fcb9bcde9
3
+ metadata.gz: 66544b2182a12444260cbef80df6b9a5a0d63cb6
4
+ data.tar.gz: 765ed00ef6245ac5fffa8da96251899b056f32e3
5
5
  SHA512:
6
- metadata.gz: 1cd24a255395c69fe8edc194b5d43609163e027ad0f91490e164d7cf38cc033e3b2d60e3ccf7dd510a7901868ad95d9a3a8e1e829070a010cd1ea5670b03a6e4
7
- data.tar.gz: def4397f9f198d0d453d874a37c68075f7334f734b71e82b32a68a6e85510c1a6ffb980515666959bf372a6562d3eebd67cd24f06a08137e768a86060c97524a
6
+ metadata.gz: f9964b34bb61c8e813dcffb311442f27a91490f265cb444d2751b549bba5ac77722f8ca2c6594f1235bd79501f1e43ba9da12c0383e66190402cee603f699f2d
7
+ data.tar.gz: cb77b9d5b3a0c074568843cc3f85d589f018341f09f8f693cba5a1fd9f3f87b5d94efdba02d947fb0e5bbe97e4bb87220e31fcd63f1606cae2c61d0d965ab4e4
@@ -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
@@ -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}..." }
@@ -1,5 +1,5 @@
1
1
  module Radar
2
2
  module App
3
- VERSION = "0.5.0"
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  end
@@ -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", "~> 1.5"
22
- spec.add_development_dependency "guard-rake", "0.0.9"
23
- spec.add_development_dependency "guard-rspec", "4.2"
24
- spec.add_development_dependency "rspec", "~> 2.14"
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.5.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-02-13 00:00:00.000000000 Z
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: '1.5'
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: '1.5'
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.0.9
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.0.9
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: '4.2'
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: '4.2'
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: '2.14'
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: '2.14'
69
+ version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: thor
72
72
  requirement: !ruby/object:Gem::Requirement