lita-nexus 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c8a79d0b2356abe6e12efc085737f6a3e4a566a
4
- data.tar.gz: 4af234a72604fb1ad747ebd080350cf6a9a80541
3
+ metadata.gz: 70fd60aacf7139a550fe55469d878f1f756a5823
4
+ data.tar.gz: da3d02c969e153e80cb4dfcaae8ada70bb7342f0
5
5
  SHA512:
6
- metadata.gz: 3921ae3d9fc07d5d43b7c2908a7953088a916d9ca5565b2206b8fd3d4e8df531ca766f98b41102fc0d114eec7768e9fd3de3cfaf7a42f0535f8b3a3f62cf8f4b
7
- data.tar.gz: fa1436e5e9a61be7ae2f0552a1fb8321023106b59ff7914335fd186d176efde587cf8ff32410de0d08d5515365b378e4df547599b187002c7bfb88c2b56630e0
6
+ metadata.gz: 0d8996e1c701c9ab082b0592fdd746d2c1be32f1df5960f8e6cae2676e3bd948c499231bb601ce214056952fc4e22a0a5660c9ff54ebc5faf90944bd2de6eaee
7
+ data.tar.gz: 59ac2202ad916cbb1daa638f9f0939f130b75936c15bf297dab5f2a9c316aa3f6e1518f5ae74e05f909b8e0b7b7cf1bd29184a860ed4efed87de7901efc32b99
data/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ # lita-nexus change log
2
+
3
+ ## 0.1.1
4
+ Fix help message.
5
+ ## 0.1.0
6
+ Initial release.
data/README.md CHANGED
@@ -10,6 +10,8 @@ Add lita-nexus to your Lita instance's Gemfile:
10
10
  gem "lita-nexus"
11
11
  ```
12
12
 
13
+ Encrypted password can be generated use example rsa_encrypt script
14
+
13
15
  ## Configuration
14
16
  ```ruby
15
17
  Lita.configure do |config|
data/bin/rsa_encrypt ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env ruby
2
+ require 'io/console'
3
+ require 'openssl'
4
+ require 'base64'
5
+
6
+ def get_key filepath
7
+ OpenSSL::PKey::RSA.new File.read(filepath)
8
+ end
9
+
10
+ private_key_file = "#{ENV['HOME']}/.ssh/id_rsa";
11
+ puts "using private key file : #{private_key_file}"
12
+ private_key = get_key private_key_file
13
+ puts "acquiring public key from public key"
14
+ public_key = private_key.public_key
15
+ require 'io/console'
16
+ print "Password: "
17
+ password=STDIN.noecho(&:gets).chomp
18
+ encrypted_string = Base64.encode64(public_key.public_encrypt(password))
19
+ puts "encrypted password: \n#{encrypted_string}"
data/lita-nexus.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-nexus"
3
- spec.version = "0.1.0"
3
+ spec.version = "0.1.1"
4
4
  spec.authors = ["Wang, Dawei"]
5
5
  spec.email = ["dwang@entertainment.com"]
6
6
  spec.description = "Lita Nexus Operations"
data/locales/en.yml CHANGED
@@ -2,11 +2,12 @@ en:
2
2
  lita:
3
3
  handlers:
4
4
  nexus:
5
- cmd_artifact_info_key: 'nexus artifact info COORDICNATE'
6
- cmd_artifact_info_value: 'Show artifact info with coordinate'
7
- cmd_license_info_key: 'nexus license info'
8
- cmd_license_info_value: 'Show license info'
9
- cmd_search_artifact_key: 'nexus search artifact COORDICNATE'
10
- cmd_search_artifact_value: 'Search all versions artifact with coordinate'
11
- cmd_repo_info_key: 'nexus repo info REPONAME'
12
- cmd_repo_info_value: 'Show repository REPONAME info'
5
+ help:
6
+ cmd_artifact_info_key: 'nexus artifact info COORDICNATE'
7
+ cmd_artifact_info_value: 'Show artifact info with coordinate'
8
+ cmd_license_info_key: 'nexus license info'
9
+ cmd_license_info_value: 'Show license info'
10
+ cmd_search_artifact_key: 'nexus search artifact COORDICNATE'
11
+ cmd_search_artifact_value: 'Search all versions artifact with coordinate'
12
+ cmd_repo_info_key: 'nexus repo info REPONAME'
13
+ cmd_repo_info_value: 'Show repository REPONAME info'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-nexus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wang, Dawei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-07 00:00:00.000000000 Z
11
+ date: 2016-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -97,14 +97,17 @@ dependencies:
97
97
  description: Lita Nexus Operations
98
98
  email:
99
99
  - dwang@entertainment.com
100
- executables: []
100
+ executables:
101
+ - rsa_encrypt
101
102
  extensions: []
102
103
  extra_rdoc_files: []
103
104
  files:
104
105
  - ".gitignore"
106
+ - CHANGELOG.md
105
107
  - Gemfile
106
108
  - README.md
107
109
  - Rakefile
110
+ - bin/rsa_encrypt
108
111
  - lib/lita-nexus.rb
109
112
  - lib/lita/handlers/nexus.rb
110
113
  - lib/nexushelper/remote.rb