record_on_chain 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a055bd220e515642030d9ead2e3b1eea3f0d14269f1cdb4618f1471742cae0d1
4
- data.tar.gz: 6dd31036fb75b2bafebddacabf95c7b325d9e589fb3ef9020fc2cf4bff13408b
3
+ metadata.gz: edc82a9e35db9c62167a97b615c782add1250a25a9a5b563317c8f49d5bc1c14
4
+ data.tar.gz: bce1560e00a767d47d7622297b77e6dcc5b6206bda89aeb2b58cfc8958b876d7
5
5
  SHA512:
6
- metadata.gz: 34c114a61d4aeab9c56694626d76d7b1633a59be22e82fe9d72af012f5cbe08b0f1d4f69014474116c0dff53bba62226d30dfff2f49767060fb25fb18a23aa87
7
- data.tar.gz: 17d196217781e6849c6ad9ac6771afab1227cde1300bac97dcd77a506d08f9aee391c1e1af47421ba253719897261ecec0d442c75b68e8fd01558bbbb166ffa5
6
+ metadata.gz: 802f92410878364b8543211fdb0b736d10a0e6047be564fa0cf6481d7cefad6e643337c26d1d1fffb4d477655978d78d4d9a061edebf3c7c0e006a2101453946
7
+ data.tar.gz: 7dd6f058b0376fcbb21afad38ceedf83d3b8e3db9b89eb810160039bbee98c2c6f30a0b76e1db633e6eda756a697506c4d45c8c6c9f89f77d1d0a3fd795d6de8
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- record_on_chain (0.1.0)
4
+ record_on_chain (0.1.1)
5
5
  highline (= 2.0.0)
6
- nem-ruby (~> 0.0.12)
6
+ nem-ruby (~> 0.0.13)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -14,17 +14,17 @@ GEM
14
14
  crack (0.4.3)
15
15
  safe_yaml (~> 1.0.0)
16
16
  diff-lcs (1.3)
17
- digest-sha3 (1.1.0)
17
+ digest-sha3-patched (1.1.1)
18
18
  faraday (0.15.4)
19
19
  multipart-post (>= 1.2, < 3)
20
- faraday_middleware (0.13.0)
20
+ faraday_middleware (0.13.1)
21
21
  faraday (>= 0.7.4, < 1.0)
22
22
  hashdiff (0.3.8)
23
23
  highline (2.0.0)
24
24
  multipart-post (2.0.0)
25
- nem-ruby (0.0.12)
25
+ nem-ruby (0.0.13)
26
26
  base32 (~> 0.3)
27
- digest-sha3 (~> 1.1)
27
+ digest-sha3-patched (~> 1.1.1)
28
28
  faraday (~> 0.11)
29
29
  faraday_middleware (~> 0.11)
30
30
  public_suffix (3.0.3)
@@ -42,7 +42,7 @@ GEM
42
42
  diff-lcs (>= 1.2.0, < 2.0)
43
43
  rspec-support (~> 3.8.0)
44
44
  rspec-support (3.8.0)
45
- safe_yaml (1.0.4)
45
+ safe_yaml (1.0.5)
46
46
  webmock (3.5.1)
47
47
  addressable (>= 2.3.6)
48
48
  crack (>= 0.3.2)
data/README.md CHANGED
@@ -20,7 +20,7 @@ To use this gem you need xem to be consumed as a fee.
20
20
  And you can use `help` command.
21
21
 
22
22
  ```
23
- $ bundle exec rochain help
23
+ $ rochain help
24
24
 
25
25
  == Record on Chain HELP ==
26
26
 
@@ -36,7 +36,7 @@ descriptions
36
36
  #### init
37
37
 
38
38
  ```
39
- $ bundle exec rochain init
39
+ $ rochain init
40
40
  ```
41
41
 
42
42
  This command generates `keyfile` and `configfile`. By default, these files are generated in the `$HOME/.ro_chain` directory.
@@ -65,7 +65,7 @@ root
65
65
  ```
66
66
 
67
67
  `keyfile`
68
- Information such as encrypted secret key is written in the key file. **Please note that the private key is not encrypted if the password is empty.**
68
+ Information such as encrypted secret key is written in the key file. **Please note that if the password is empty, the private key is protected only by salt. This is not secure.**
69
69
 
70
70
  `configfile`
71
71
  Information such as the destination of the data is written in the config file.
@@ -92,7 +92,7 @@ The meaning of each item of the config file is as follows.
92
92
  #### record
93
93
 
94
94
  ```
95
- $ bundle exec rochain record -m good_luck!
95
+ $ rochain record -m good_luck!
96
96
 
97
97
  - Please enter your password
98
98
  **************
@@ -114,7 +114,7 @@ If you want to use the specified file, you need to use the option.
114
114
 
115
115
  e.g. `$HOME/user_dir/my_dir/.ro_chain/my_config.yml`
116
116
  ```
117
- $ bundle exec rochain record -p $HOME/user_dir/my_dir -c my_config.yml -m good_luck!
117
+ $ rochain record -p $HOME/user_dir/my_dir -c my_config.yml -m good_luck!
118
118
  ```
119
119
 
120
120
  #### secret
@@ -122,7 +122,7 @@ $ bundle exec rochain record -p $HOME/user_dir/my_dir -c my_config.yml -m good_l
122
122
  Restore the private key from the key file. You will need a password to restore.
123
123
 
124
124
  ```
125
- $ bundle exec rochain secret
125
+ $ rochain secret
126
126
 
127
127
  - Please enter your password
128
128
  **************
@@ -147,6 +147,14 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
147
147
 
148
148
  ## Dependencies
149
149
 
150
+ #### [ CryptoCurrency ]
151
+
152
+ **nem**
153
+
154
+ https://nem.io/
155
+
156
+ #### [ gems ]
157
+
150
158
  **highline**
151
159
 
152
160
  https://github.com/JEG2/highline
@@ -157,7 +165,7 @@ https://github.com/44uk/nem-ruby
157
165
 
158
166
  I also use the source code of the above repository for testing.
159
167
 
160
- ___Thank you your development!___
168
+ ___Thank you for your development!___
161
169
 
162
170
  ## Contributing
163
171
 
@@ -4,6 +4,8 @@ require_relative "./constants"
4
4
  module RecordOnChain
5
5
  class CommandLoader
6
6
  def self.load( name, dirpath= COMMANDS_DIRPATH, argv= ARGV, cli= Cli.new )
7
+ # command name not found
8
+ raise "Command name not found. See 'rochain help'" if name.nil?
7
9
  # except abstract sourcefile
8
10
  return nil if name.start_with?("abstract","mod")
9
11
  # expand command file path
@@ -1,3 +1,3 @@
1
1
  module RecordOnChain
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -42,5 +42,5 @@ Gem::Specification.new do |spec|
42
42
  spec.add_development_dependency "webmock", "~> 3.5.1"
43
43
 
44
44
  spec.add_dependency 'highline', '2.0.0'
45
- spec.add_dependency 'nem-ruby', '~> 0.0.12'
45
+ spec.add_dependency 'nem-ruby', '~> 0.0.13'
46
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: record_on_chain
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
  - MIJ
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-10 00:00:00.000000000 Z
11
+ date: 2019-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.0.12
89
+ version: 0.0.13
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.0.12
96
+ version: 0.0.13
97
97
  description: record some data on nem chain
98
98
  email:
99
99
  - mijinco1024+git@gmail.com