mdbm_dist_support 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: 1421db08fc4ce11b197a65c2cd4e85fcc01e1605
4
- data.tar.gz: 67679c9dafe493da63b35f6bb3c7d0a87bed8518
3
+ metadata.gz: 4e97eceb65350f7f9f098639d75d4393e8246e2a
4
+ data.tar.gz: 4c7090c4986fb88f59ab8439291c7b50a3d6ec25
5
5
  SHA512:
6
- metadata.gz: 1b6cab9bfadc7a527ac06601e76bf52e2c8e3670fb6b14f6c2f6125c8717cbf08410256c19b91a1fa34b60594d2a8467ad91daa51043819e02f22c6c9b550b72
7
- data.tar.gz: 16bbee1104fdef6fe9ad9d7a356934bc1c41e78b210337ad29a6d24635e90479b0dd96e685b4d33f06ffe6dcd3c371e3d9046443560e20629e52eab24509bec7
6
+ metadata.gz: 7e82393d8a75a70aaf472cf7a140918eb80a4323e1bb554c5a62ce43a24af2adb25bb5c994f9df7351f9f007f945735d6a411bb822df11e8e925202587bc2dd1
7
+ data.tar.gz: 5a6212b55ac7f991058afecc9e9d308e7d56294a0e94f97b72d9040ec41ab18016014dcd42ba92f14cead39194e330dcc86ff0052286ee5afea7f45ff240f9aa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mdbm_dist_support (0.1.2)
4
+ mdbm_dist_support (0.1.3)
5
5
  ruby-mdbm (>= 0.0.2)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -5,6 +5,8 @@ mdbm distribution support gem
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
6
 
7
7
  ## Usage
8
+
9
+ update.rb
8
10
  ```
9
11
  #!/usr/bin/env ruby
10
12
 
@@ -20,7 +22,7 @@ mds = MdbmDistSupport::Distributer.new do |m|
20
22
  m.cmd_rep = 'replace mdbm command path'
21
23
  m.full_mode = true/false ( full or increment update )
22
24
  m.dist_server_hosts = ['distribution target server hosts array']
23
- m.meta_incr_key = 'incrementmode key in local meta mdbm'
25
+ m.meta_incr_key = 'increment key in local meta mdbm'
24
26
  end
25
27
 
26
28
  mds.run_dist
@@ -30,6 +32,22 @@ mds.run_dist
30
32
  |cmd_gen|_i64_str_gen_ / _i32_str_gen_ / _i32_i64_gen_ / _i32_i32_gen_ etc|
31
33
  |cmd_rep|_/usr/local/bin/mdbm_replace_|
32
34
 
35
+ print.rb
36
+ ```
37
+ #!/usr/bin/env ruby
38
+
39
+ require 'mdbm_dist_support'
40
+
41
+ puts "hoge\tfuga"
42
+
43
+ mds = MdbmDistSupport::Distributer.new do |m|
44
+ m.meta_path = 'local meta mdbm file path'
45
+ m.meta_incr_key = 'increment key in local meta mdbm'
46
+ end
47
+
48
+ mds.run_print_after('increment val in local meta mdbm')
49
+ ```
50
+
33
51
  ## Requires
34
52
  * ruby
35
53
  * ruby-mdbm
@@ -25,7 +25,7 @@ module MdbmDistSupport
25
25
  def run_print_after(meta_val)
26
26
  MdbmDistSupport::Validator::check_run_print_after(instance_variables)
27
27
  @meta = MdbmDistSupport::Meta.new(@meta_path)
28
- @meta.store(@meta_incr_key, metaval)
28
+ @meta.store(@meta_incr_key, meta_val)
29
29
  end
30
30
 
31
31
  private
@@ -1,3 +1,3 @@
1
1
  module MdbmDistSupport
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdbm_dist_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MichinaoShimizu