lex-node 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +26 -5
- data/.rubocop.yml +1 -7
- data/Gemfile.lock +102 -16
- data/README.md +10 -26
- data/bitbucket-pipelines.yml +17 -0
- data/legion-extensions-node.gemspec +4 -1
- data/lib/legion/extensions/node/actors/push_key.rb +1 -1
- data/lib/legion/extensions/node/runners/crypt.rb +8 -9
- data/lib/legion/extensions/node/runners/node.rb +20 -6
- data/lib/legion/extensions/node/transport.rb +1 -1
- data/lib/legion/extensions/node/transport/messages/public_key.rb +4 -0
- data/lib/legion/extensions/node/transport/messages/push_cluster_secret.rb +5 -5
- data/lib/legion/extensions/node/transport/messages/request_cluster_secret.rb +4 -0
- data/lib/legion/extensions/node/transport/messages/request_public_keys.rb +4 -0
- data/lib/legion/extensions/node/transport/queues/crypt.rb +7 -0
- data/lib/legion/extensions/node/transport/queues/node.rb +1 -1
- data/lib/legion/extensions/node/version.rb +1 -1
- data/sonar-project.properties +12 -0
- metadata +51 -13
- data/.idea/.rakeTasks +0 -7
- data/.idea/lex-node.iml +0 -35
- data/.idea/misc.xml +0 -7
- data/.idea/modules.xml +0 -8
- data/.idea/vagrant.xml +0 -7
- data/.idea/workspace.xml +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1abe0099e27d4acc209b120a6ec4210a63364edbc1d0daa26d3144c8c12297ab
|
4
|
+
data.tar.gz: 819b97faa7e063cc668bced918a1337da5d0d2f5048b22ed2966d352eb114fc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b82aa5374867e114891c781d43c5f3e7240542f18735fdbcbf36fd191b39b3e6f9eb48845dcd8027b32e6b93c67eb45fa4f164954be625f4266e4275a32140b7
|
7
|
+
data.tar.gz: 47da6876adffa2ffff9f56753c92810f33091826b5216d981306db9670b966b01d43037e2721f40916417bda5b4c361e0b9340a22fdb567ccd4d808eece72cd5
|
data/.circleci/config.yml
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
version: 2.1
|
2
2
|
orbs:
|
3
3
|
ruby: circleci/ruby@0.2.1
|
4
|
+
sonarcloud: sonarsource/sonarcloud@1.0.1
|
4
5
|
|
5
6
|
jobs:
|
6
7
|
"rubocop":
|
7
8
|
docker:
|
8
|
-
- image: circleci/ruby:2.
|
9
|
+
- image: circleci/ruby:2.7-node
|
9
10
|
steps:
|
10
11
|
- checkout
|
11
12
|
- ruby/load-cache
|
@@ -17,33 +18,49 @@ jobs:
|
|
17
18
|
"ruby-two-five":
|
18
19
|
docker:
|
19
20
|
- image: circleci/ruby:2.5
|
20
|
-
- image: memcached:1.5-alpine
|
21
21
|
steps:
|
22
22
|
- checkout
|
23
23
|
- ruby/load-cache
|
24
|
+
- run:
|
25
|
+
name: update bundler
|
26
|
+
command: gem update bundler
|
24
27
|
- ruby/install-deps
|
25
28
|
- ruby/run-tests
|
26
29
|
- ruby/save-cache
|
27
30
|
"ruby-two-six":
|
28
31
|
docker:
|
29
32
|
- image: circleci/ruby:2.6
|
30
|
-
- image: memcached:1.5-alpine
|
31
33
|
steps:
|
32
34
|
- checkout
|
33
35
|
- ruby/load-cache
|
36
|
+
- run:
|
37
|
+
name: update bundler
|
38
|
+
command: gem update bundler
|
34
39
|
- ruby/install-deps
|
35
40
|
- ruby/run-tests
|
36
41
|
- ruby/save-cache
|
37
42
|
"ruby-two-seven":
|
38
43
|
docker:
|
39
44
|
- image: circleci/ruby:2.7
|
40
|
-
- image: memcached:1.5-alpine
|
41
45
|
steps:
|
42
46
|
- checkout
|
43
47
|
- ruby/load-cache
|
44
48
|
- ruby/install-deps
|
45
49
|
- ruby/run-tests
|
46
50
|
- ruby/save-cache
|
51
|
+
"sonarcloud":
|
52
|
+
docker:
|
53
|
+
- image: circleci/ruby:2.7
|
54
|
+
steps:
|
55
|
+
- checkout
|
56
|
+
- ruby/load-cache
|
57
|
+
- ruby/install-deps
|
58
|
+
- ruby/run-tests
|
59
|
+
- run:
|
60
|
+
name: Run Rubocop
|
61
|
+
command: bundle exec rubocop --format=json --out=rubocop-result.json
|
62
|
+
- sonarcloud/scan
|
63
|
+
- ruby/save-cache
|
47
64
|
|
48
65
|
workflows:
|
49
66
|
version: 2
|
@@ -58,4 +75,8 @@ workflows:
|
|
58
75
|
- ruby-two-five
|
59
76
|
- ruby-two-seven:
|
60
77
|
requires:
|
61
|
-
- ruby-two-five
|
78
|
+
- ruby-two-five
|
79
|
+
- sonarcloud:
|
80
|
+
requires:
|
81
|
+
- ruby-two-seven
|
82
|
+
- ruby-two-six
|
data/.rubocop.yml
CHANGED
@@ -6,17 +6,11 @@ Metrics/ClassLength:
|
|
6
6
|
Max: 1500
|
7
7
|
Metrics/BlockLength:
|
8
8
|
Max: 50
|
9
|
-
Layout/SpaceAroundEqualsInParameterDefault:
|
10
|
-
EnforcedStyle: space
|
11
|
-
Style/SymbolArray:
|
12
|
-
Enabled: true
|
13
|
-
Layout/HashAlignment:
|
14
|
-
EnforcedHashRocketStyle: table
|
15
|
-
EnforcedColonStyle: table
|
16
9
|
Style/Documentation:
|
17
10
|
Enabled: false
|
18
11
|
AllCops:
|
19
12
|
TargetRubyVersion: 2.5
|
13
|
+
NewCops: enable
|
20
14
|
Style/FrozenStringLiteralComment:
|
21
15
|
Enabled: false
|
22
16
|
Naming/FileName:
|
data/Gemfile.lock
CHANGED
@@ -1,52 +1,138 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lex-node (0.1.
|
4
|
+
lex-node (0.1.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
9
|
+
amq-protocol (2.3.2)
|
10
|
+
ast (2.4.1)
|
11
|
+
aws-eventstream (1.1.0)
|
12
|
+
aws-sigv4 (1.2.2)
|
13
|
+
aws-eventstream (~> 1, >= 1.0.2)
|
14
|
+
bunny (2.16.1)
|
15
|
+
amq-protocol (~> 2.3, >= 2.3.1)
|
16
|
+
concurrent-ruby (1.1.7)
|
17
|
+
concurrent-ruby-ext (1.1.7)
|
18
|
+
concurrent-ruby (= 1.1.7)
|
19
|
+
connection_pool (2.2.3)
|
20
|
+
daemons (1.3.1)
|
21
|
+
dalli (2.7.10)
|
22
|
+
diff-lcs (1.4.4)
|
23
|
+
docile (1.3.2)
|
24
|
+
faraday (1.0.1)
|
25
|
+
multipart-post (>= 1.2, < 3)
|
26
|
+
faraday_middleware (1.0.0)
|
27
|
+
faraday (~> 1.0)
|
28
|
+
ffi (1.13.1)
|
29
|
+
hashdiff (1.0.1)
|
30
|
+
json (2.3.1)
|
31
|
+
legion-cache (1.0.0)
|
32
|
+
connection_pool
|
33
|
+
dalli
|
34
|
+
redis
|
35
|
+
legion-crypt (0.2.0)
|
36
|
+
rbnacl
|
37
|
+
vault
|
38
|
+
legion-data (0.2.0)
|
39
|
+
legion-logging
|
40
|
+
legion-settings
|
41
|
+
mysql2
|
42
|
+
sequel
|
43
|
+
legion-exceptions (1.1.0)
|
44
|
+
legion-json (1.1.0)
|
45
|
+
multi_json
|
46
|
+
legion-logging (1.1.0)
|
47
|
+
rainbow (~> 3)
|
48
|
+
legion-settings (1.1.1)
|
49
|
+
legion-json
|
50
|
+
legion-logging
|
51
|
+
legion-transport (1.1.1)
|
52
|
+
bunny
|
53
|
+
concurrent-ruby
|
54
|
+
legionio (0.2.0)
|
55
|
+
concurrent-ruby
|
56
|
+
concurrent-ruby-ext
|
57
|
+
daemons
|
58
|
+
hashdiff
|
59
|
+
legion-cache
|
60
|
+
legion-crypt
|
61
|
+
legion-data
|
62
|
+
legion-exceptions
|
63
|
+
legion-json
|
64
|
+
legion-logging
|
65
|
+
legion-settings
|
66
|
+
legion-transport
|
67
|
+
sleepiq
|
68
|
+
vault
|
69
|
+
multi_json (1.15.0)
|
70
|
+
multipart-post (2.1.1)
|
71
|
+
mysql2 (0.5.3)
|
72
|
+
parallel (1.19.2)
|
73
|
+
parser (2.7.1.4)
|
74
|
+
ast (~> 2.4.1)
|
15
75
|
rainbow (3.0.0)
|
16
76
|
rake (13.0.1)
|
77
|
+
rbnacl (7.1.1)
|
78
|
+
ffi
|
79
|
+
redis (4.2.1)
|
80
|
+
regexp_parser (1.7.1)
|
17
81
|
rexml (3.2.4)
|
18
82
|
rspec (3.9.0)
|
19
83
|
rspec-core (~> 3.9.0)
|
20
84
|
rspec-expectations (~> 3.9.0)
|
21
85
|
rspec-mocks (~> 3.9.0)
|
22
|
-
rspec-core (3.9.
|
23
|
-
rspec-support (~> 3.9.
|
24
|
-
rspec-expectations (3.9.
|
86
|
+
rspec-core (3.9.2)
|
87
|
+
rspec-support (~> 3.9.3)
|
88
|
+
rspec-expectations (3.9.2)
|
25
89
|
diff-lcs (>= 1.2.0, < 2.0)
|
26
90
|
rspec-support (~> 3.9.0)
|
27
91
|
rspec-mocks (3.9.1)
|
28
92
|
diff-lcs (>= 1.2.0, < 2.0)
|
29
93
|
rspec-support (~> 3.9.0)
|
30
|
-
rspec-support (3.9.
|
31
|
-
|
32
|
-
|
94
|
+
rspec-support (3.9.3)
|
95
|
+
rspec_junit_formatter (0.4.1)
|
96
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
97
|
+
rubocop (0.89.1)
|
33
98
|
parallel (~> 1.10)
|
34
|
-
parser (>= 2.7.
|
99
|
+
parser (>= 2.7.1.1)
|
35
100
|
rainbow (>= 2.2.2, < 4.0)
|
101
|
+
regexp_parser (>= 1.7)
|
36
102
|
rexml
|
103
|
+
rubocop-ast (>= 0.3.0, < 1.0)
|
37
104
|
ruby-progressbar (~> 1.7)
|
38
|
-
unicode-display_width (>= 1.4.0, <
|
105
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
106
|
+
rubocop-ast (0.3.0)
|
107
|
+
parser (>= 2.7.1.4)
|
39
108
|
ruby-progressbar (1.10.1)
|
40
|
-
|
109
|
+
sequel (5.35.0)
|
110
|
+
simplecov (0.17.1)
|
111
|
+
docile (~> 1.1)
|
112
|
+
json (>= 1.8, < 3)
|
113
|
+
simplecov-html (~> 0.10.0)
|
114
|
+
simplecov-html (0.10.2)
|
115
|
+
sleepiq (0.2.2)
|
116
|
+
dalli
|
117
|
+
faraday
|
118
|
+
faraday_middleware
|
119
|
+
thor
|
120
|
+
thor (1.0.1)
|
121
|
+
unicode-display_width (1.7.0)
|
122
|
+
vault (0.15.0)
|
123
|
+
aws-sigv4
|
41
124
|
|
42
125
|
PLATFORMS
|
43
126
|
ruby
|
44
127
|
|
45
128
|
DEPENDENCIES
|
129
|
+
legionio
|
46
130
|
lex-node!
|
47
131
|
rake
|
48
132
|
rspec
|
133
|
+
rspec_junit_formatter
|
49
134
|
rubocop
|
135
|
+
simplecov (< 0.18.0)
|
50
136
|
|
51
137
|
BUNDLED WITH
|
52
138
|
2.1.4
|
data/README.md
CHANGED
@@ -1,39 +1,23 @@
|
|
1
1
|
# Legion::Extensions::Node
|
2
2
|
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/legion/extensions/node`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
3
|
|
7
4
|
## Installation
|
8
5
|
|
9
|
-
|
6
|
+
This LEX is installed into LegionIO by default. You can disable it with the following setting
|
10
7
|
|
11
|
-
```
|
12
|
-
|
8
|
+
```json
|
9
|
+
{
|
10
|
+
"extensions": {
|
11
|
+
"node": {
|
12
|
+
"enabled": false
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
13
16
|
```
|
14
17
|
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle install
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install legion-extensions-node
|
22
|
-
|
23
18
|
## Usage
|
24
19
|
|
25
|
-
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/legion-extensions-node.
|
36
|
-
|
20
|
+
This is used by default and you shouldn't have to do anything special to use it
|
37
21
|
|
38
22
|
## License
|
39
23
|
|
data/bitbucket-pipelines.yml
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
image: ruby:2.7.0
|
2
|
+
|
3
|
+
pipelines:
|
4
|
+
tags:
|
5
|
+
"v*":
|
6
|
+
- step:
|
7
|
+
name: Push to RubyGems
|
8
|
+
deployment: RubyGems
|
9
|
+
script:
|
10
|
+
- gem install bundler gem-release rake rspec
|
11
|
+
- bundle install
|
12
|
+
- rake build
|
13
|
+
- mkdir .gem
|
14
|
+
- (umask 077 ; echo $gem_creds | base64 --decode > .gem/credentials)
|
15
|
+
- gem release
|
16
|
+
artifacts:
|
17
|
+
- pkg/**
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.description = 'This lex is responsible for sending heartbeats, and allowing for dynamic confgs'
|
11
11
|
spec.homepage = 'https://bitbucket.org/legion-io/lex-node/CHANGELOG.md'
|
12
12
|
spec.license = 'MIT'
|
13
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 2.
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
|
14
14
|
|
15
15
|
spec.metadata['homepage_uri'] = spec.homepage
|
16
16
|
spec.metadata['source_code_uri'] = 'https://bitbucket.org/legion-io/lex-node/src/'
|
@@ -21,7 +21,10 @@ Gem::Specification.new do |spec|
|
|
21
21
|
end
|
22
22
|
spec.require_paths = ['lib']
|
23
23
|
|
24
|
+
spec.add_development_dependency 'legionio'
|
24
25
|
spec.add_development_dependency 'rake'
|
25
26
|
spec.add_development_dependency 'rspec'
|
27
|
+
spec.add_development_dependency 'rspec_junit_formatter'
|
26
28
|
spec.add_development_dependency 'rubocop'
|
29
|
+
spec.add_development_dependency 'simplecov', '< 0.18.0'
|
27
30
|
end
|
@@ -4,7 +4,7 @@ module Legion::Extensions::Node::Runners
|
|
4
4
|
|
5
5
|
def self.push_public_key(**_opts)
|
6
6
|
log.debug 'push_public_key'
|
7
|
-
message_hash = { function:
|
7
|
+
message_hash = { function: 'update_public_key',
|
8
8
|
public_key: Base64.encode64(Legion::Crypt.public_key),
|
9
9
|
**Legion::Settings[:client] }
|
10
10
|
Legion::Extensions::Node::Transport::Messages::PublicKey.new(message_hash).publish
|
@@ -40,20 +40,19 @@ module Legion::Extensions::Node::Runners
|
|
40
40
|
log.debug 'push_cluster_secret'
|
41
41
|
return {} unless Legion::Settings[:crypt][:cs_encrypt_ready]
|
42
42
|
|
43
|
-
encrypted = Legion::Crypt.encrypt_from_keypair(
|
44
|
-
message:
|
43
|
+
encrypted = Legion::Crypt.encrypt_from_keypair(pub_key: public_key,
|
44
|
+
message: Legion::Settings[:crypt][:cluster_secret].to_s)
|
45
45
|
legion = Legion::Crypt.encrypt('legion')
|
46
|
-
Legion::Extensions::Node::Transport::Messages::PushClusterSecret.new(message:
|
47
|
-
queue_name:
|
46
|
+
Legion::Extensions::Node::Transport::Messages::PushClusterSecret.new(message: encrypted,
|
47
|
+
queue_name: queue_name,
|
48
48
|
validation_string: 'legion',
|
49
|
-
encrypted_string:
|
49
|
+
encrypted_string: legion).publish
|
50
50
|
{}
|
51
51
|
end
|
52
52
|
|
53
|
-
def self.receive_cluster_secret(
|
53
|
+
def self.receive_cluster_secret(message:, **opts)
|
54
54
|
log.debug 'receive_cluster_secret'
|
55
|
-
|
56
|
-
Legion::Settings[:crypt][:cluster_secret] = Legion::Crypt.decrypt_from_keypair(public_key, message)
|
55
|
+
Legion::Settings[:crypt][:cluster_secret] = Legion::Crypt.decrypt_from_keypair(message)
|
57
56
|
Legion::Settings[:crypt][:encrypted_string] = opts[:encrypted_string]
|
58
57
|
Legion::Settings[:crypt][:validation_string] = opts[:validation_string]
|
59
58
|
{}
|
@@ -7,9 +7,10 @@ module Legion::Extensions::Node::Runners
|
|
7
7
|
hash.each do |k, v|
|
8
8
|
raise 'Cannot override base setting that doesn\'t exist' if Legion::Settings[k].nil?
|
9
9
|
|
10
|
-
|
10
|
+
case v
|
11
|
+
when String
|
11
12
|
Legion::Settings[k] = v
|
12
|
-
|
13
|
+
when Hash
|
13
14
|
v.each do |key, value|
|
14
15
|
Legion::Settings[k][key] = value
|
15
16
|
end
|
@@ -19,7 +20,7 @@ module Legion::Extensions::Node::Runners
|
|
19
20
|
|
20
21
|
def self.push_public_key(**_opts)
|
21
22
|
log.debug 'push_public_key'
|
22
|
-
message_hash = { function:
|
23
|
+
message_hash = { function: 'update_public_key',
|
23
24
|
public_key: Legion::Crypt.public_key.to_s,
|
24
25
|
**Legion::Settings[:client] }
|
25
26
|
Legion::Extensions::Node::Transport::Messages::PublicKey.new(message_hash).publish
|
@@ -32,10 +33,23 @@ module Legion::Extensions::Node::Runners
|
|
32
33
|
{}
|
33
34
|
end
|
34
35
|
|
35
|
-
def self.
|
36
|
+
def self.push_cluster_secret(public_key:, queue_name:, **_opts)
|
37
|
+
log.debug 'push_cluster_secret'
|
38
|
+
return {} unless Legion::Settings[:crypt][:cs_encrypt_ready]
|
39
|
+
|
40
|
+
encrypted = Legion::Crypt.encrypt_from_keypair(pub_key: public_key,
|
41
|
+
message: Legion::Settings[:crypt][:cluster_secret].to_s)
|
42
|
+
legion = Legion::Crypt.encrypt('legion')
|
43
|
+
Legion::Extensions::Node::Transport::Messages::PushClusterSecret.new(message: encrypted,
|
44
|
+
queue_name: queue_name,
|
45
|
+
validation_string: 'legion',
|
46
|
+
encrypted_string: legion).publish
|
47
|
+
{}
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.receive_cluster_secret(message:, **_opts)
|
36
51
|
log.debug 'receive_cluster_secret'
|
37
|
-
Legion::Settings[:crypt][:cluster_secret] = Legion::Crypt.decrypt_from_keypair(
|
38
|
-
message: message)
|
52
|
+
Legion::Settings[:crypt][:cluster_secret] = Legion::Crypt.decrypt_from_keypair(message: message)
|
39
53
|
{}
|
40
54
|
end
|
41
55
|
end
|
@@ -3,7 +3,7 @@ require 'legion/extensions/transport'
|
|
3
3
|
module Legion::Extensions::Node::Transport
|
4
4
|
extend Legion::Extensions::Transport
|
5
5
|
def self.additional_e_to_q
|
6
|
-
array = [{ from: 'node', to: 'node', routing_key: "node.#{Legion::Settings[
|
6
|
+
array = [{ from: 'node', to: 'node', routing_key: "node.#{Legion::Settings[:client][:name]}" }]
|
7
7
|
array.push(from: 'node', to: 'node', routing_key: 'node.data.#') if Legion::Settings[:data][:connected]
|
8
8
|
array.push(from: 'node', to: 'node', routing_key: 'node.cache.#') if Legion::Settings[:cache][:connected]
|
9
9
|
array.push(from: 'node', to: 'node', routing_key: 'node.crypt.#')
|
@@ -9,12 +9,12 @@ module Legion::Extensions::Node::Transport::Messages
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def message
|
12
|
-
{ function:
|
13
|
-
runner_class:
|
14
|
-
message:
|
12
|
+
{ function: 'receive_cluster_secret',
|
13
|
+
runner_class: 'Legion::Extensions::Node::Runners::Crypt',
|
14
|
+
message: @options[:message],
|
15
15
|
validation_string: @options[:validation_string] || nil,
|
16
|
-
encrypted_string:
|
17
|
-
public_key:
|
16
|
+
encrypted_string: @options[:encrypted_string] || nil,
|
17
|
+
public_key: Base64.encode64(Legion::Crypt.public_key) }
|
18
18
|
end
|
19
19
|
|
20
20
|
def type
|
@@ -0,0 +1,12 @@
|
|
1
|
+
sonar.projectKey=legion-io_lex-node
|
2
|
+
sonar.organization=legion-io
|
3
|
+
sonar.projectName=Legion::Extensions::Node
|
4
|
+
sonar.sources=.
|
5
|
+
sonar.exclusions=vendor/**
|
6
|
+
sonar.coverage.exclusions=spec/**
|
7
|
+
sonar.ruby.coverage.reportPath=coverage/.resultset.json
|
8
|
+
sonar.ruby.file.suffixes=rb,ruby
|
9
|
+
sonar.ruby.coverage.framework=RSpec
|
10
|
+
sonar.ruby.rubocopConfig=.rubocop.yml
|
11
|
+
sonar.ruby.rubocop.reportPath=rubocop-result.json
|
12
|
+
sonar.ruby.rubocop.filePath=.
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lex-node
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esity
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: legionio
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rake
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +52,20 @@ dependencies:
|
|
38
52
|
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec_junit_formatter
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
70
|
name: rubocop
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +80,20 @@ dependencies:
|
|
52
80
|
- - ">="
|
53
81
|
- !ruby/object:Gem::Version
|
54
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: simplecov
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "<"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.18.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "<"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.18.0
|
55
97
|
description: This lex is responsible for sending heartbeats, and allowing for dynamic
|
56
98
|
confgs
|
57
99
|
email:
|
@@ -62,12 +104,6 @@ extra_rdoc_files: []
|
|
62
104
|
files:
|
63
105
|
- ".circleci/config.yml"
|
64
106
|
- ".gitignore"
|
65
|
-
- ".idea/.rakeTasks"
|
66
|
-
- ".idea/lex-node.iml"
|
67
|
-
- ".idea/misc.xml"
|
68
|
-
- ".idea/modules.xml"
|
69
|
-
- ".idea/vagrant.xml"
|
70
|
-
- ".idea/workspace.xml"
|
71
107
|
- ".rspec"
|
72
108
|
- ".rubocop.yml"
|
73
109
|
- Gemfile
|
@@ -93,9 +129,11 @@ files:
|
|
93
129
|
- lib/legion/extensions/node/transport/messages/push_cluster_secret.rb
|
94
130
|
- lib/legion/extensions/node/transport/messages/request_cluster_secret.rb
|
95
131
|
- lib/legion/extensions/node/transport/messages/request_public_keys.rb
|
132
|
+
- lib/legion/extensions/node/transport/queues/crypt.rb
|
96
133
|
- lib/legion/extensions/node/transport/queues/health.rb
|
97
134
|
- lib/legion/extensions/node/transport/queues/node.rb
|
98
135
|
- lib/legion/extensions/node/version.rb
|
136
|
+
- sonar-project.properties
|
99
137
|
homepage: https://bitbucket.org/legion-io/lex-node/CHANGELOG.md
|
100
138
|
licenses:
|
101
139
|
- MIT
|
@@ -103,7 +141,7 @@ metadata:
|
|
103
141
|
homepage_uri: https://bitbucket.org/legion-io/lex-node/CHANGELOG.md
|
104
142
|
source_code_uri: https://bitbucket.org/legion-io/lex-node/src/
|
105
143
|
changelog_uri: https://bitbucket.org/legion-io/lex-node/CHANGELOG.md
|
106
|
-
post_install_message:
|
144
|
+
post_install_message:
|
107
145
|
rdoc_options: []
|
108
146
|
require_paths:
|
109
147
|
- lib
|
@@ -111,15 +149,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
149
|
requirements:
|
112
150
|
- - ">="
|
113
151
|
- !ruby/object:Gem::Version
|
114
|
-
version: 2.
|
152
|
+
version: 2.5.0
|
115
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
154
|
requirements:
|
117
155
|
- - ">="
|
118
156
|
- !ruby/object:Gem::Version
|
119
157
|
version: '0'
|
120
158
|
requirements: []
|
121
|
-
rubygems_version: 3.
|
122
|
-
signing_key:
|
159
|
+
rubygems_version: 3.1.2
|
160
|
+
signing_key:
|
123
161
|
specification_version: 4
|
124
162
|
summary: Does Legion Node things
|
125
163
|
test_files: []
|
data/.idea/.rakeTasks
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
-
You are allowed to:
|
4
|
-
1. Remove rake task
|
5
|
-
2. Add existing rake tasks
|
6
|
-
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
-
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build lex-node-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install lex-node-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install lex-node-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push lex-node-0.1.0.gem to rubygems.org" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
|
data/.idea/lex-node.iml
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<module type="RUBY_MODULE" version="4">
|
3
|
-
<component name="ModuleRunConfigurationManager">
|
4
|
-
<shared />
|
5
|
-
</component>
|
6
|
-
<component name="NewModuleRootManager">
|
7
|
-
<content url="file://$MODULE_DIR$">
|
8
|
-
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
|
9
|
-
</content>
|
10
|
-
<orderEntry type="inheritedJdk" />
|
11
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
12
|
-
<orderEntry type="library" scope="PROVIDED" name="ast (v2.4.0, RVM: ruby-2.6.3) [gem]" level="application" />
|
13
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.1.4, RVM: ruby-2.6.3) [gem]" level="application" />
|
14
|
-
<orderEntry type="library" scope="PROVIDED" name="chef (v15.8.23, RVM: ruby-2.6.3) [gem]" level="application" />
|
15
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.6.3) [gem]" level="application" />
|
16
|
-
<orderEntry type="library" scope="PROVIDED" name="jaro_winkler (v1.5.4, RVM: ruby-2.6.3) [gem]" level="application" />
|
17
|
-
<orderEntry type="library" scope="PROVIDED" name="parallel (v1.19.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
18
|
-
<orderEntry type="library" scope="PROVIDED" name="parser (v2.7.0.4, RVM: ruby-2.6.3) [gem]" level="application" />
|
19
|
-
<orderEntry type="library" scope="PROVIDED" name="rainbow (v3.0.0, RVM: ruby-2.6.3) [gem]" level="application" />
|
20
|
-
<orderEntry type="library" scope="PROVIDED" name="rake (v13.0.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
21
|
-
<orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.4, RVM: ruby-2.6.3) [gem]" level="application" />
|
22
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.9.0, RVM: ruby-2.6.3) [gem]" level="application" />
|
23
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.9.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
24
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.9.0, RVM: ruby-2.6.3) [gem]" level="application" />
|
25
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.9.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
26
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.9.2, RVM: ruby-2.6.3) [gem]" level="application" />
|
27
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop (v0.80.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
28
|
-
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.10.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
29
|
-
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v1.6.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
30
|
-
</component>
|
31
|
-
<component name="RModuleSettingsStorage">
|
32
|
-
<LOAD_PATH number="1" string0="$MODULE_DIR$/lib/legion" />
|
33
|
-
<I18N_FOLDERS number="0" />
|
34
|
-
</component>
|
35
|
-
</module>
|
data/.idea/misc.xml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project version="4">
|
3
|
-
<component name="JavaScriptSettings">
|
4
|
-
<option name="languageLevel" value="ES6" />
|
5
|
-
</component>
|
6
|
-
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.6.3" project-jdk-type="RUBY_SDK" />
|
7
|
-
</project>
|
data/.idea/modules.xml
DELETED
data/.idea/vagrant.xml
DELETED
data/.idea/workspace.xml
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project version="4">
|
3
|
-
<component name="CoverageOptionsProvider">
|
4
|
-
<option name="myAddOrReplace" value="0" />
|
5
|
-
</component>
|
6
|
-
<component name="Git.Settings">
|
7
|
-
<option name="PUSH_AUTO_UPDATE" value="true" />
|
8
|
-
<option name="ROOT_SYNC" value="DONT_SYNC" />
|
9
|
-
</component>
|
10
|
-
<component name="PropertiesComponent">
|
11
|
-
<property name="settings.editor.selected.configurable" value="reference.settingsdialog.project.vagrant" />
|
12
|
-
</component>
|
13
|
-
</project>
|