xipai 0.0.1a → 0.0.1b

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
  SHA256:
3
- metadata.gz: d3897adf29572f68ed753e543f6a657c80e8d9f0aa9204c01431e548ab6f2d13
4
- data.tar.gz: fd2df5a5a0144900a2b641f045120da82ab6c030cf2097434f825755b2203f31
3
+ metadata.gz: 9e2c0ac127cdf00a75dbc2b9b084c7cc7ecf91e3393f9d4b012765dbf832a79b
4
+ data.tar.gz: 85c6bdb5c9d9bfea3b712487df70caa1a6ab1f47bd3828e5903f2ac892dfec00
5
5
  SHA512:
6
- metadata.gz: 20c3bcf1519f376c7c0597f8bb2bb852ceb5e641b870a46eecb0636bbcb383d20126088433aaf39fe72ebedd7d8921caab0842c2bb97877386cfcdbeee3002ec
7
- data.tar.gz: cc26e97198f66e15efc5c33e5dced3ff9114b5b95e3517a12cf2bb8aa0109d05ee03ecccf01b542785e3fbfd6ee5a21313af3633a0588f8352f68807264dd311
6
+ metadata.gz: 1093b0cc3ae1d08b41cd072d52e4d6b2976e5af7e180d3f45380229e5b1ba1029950a00e1fc3bfd5a46fd69495932387dcaf506586ac8715863de6827e0b57a8
7
+ data.tar.gz: ed65fd343756949b837a68eacf052bee4ccd4ab0d5baccaf904fac14b9ce1c06db4903ea9f3ed918fe8dbb0a9f3ff6b6ee1d5c448bc65807cd4116d7cb38707d
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [WIP] Xipai
1
+ # Xipai
2
2
 
3
3
  Reproducible based on seeds or random shuffling tool.
4
4
 
@@ -27,7 +27,7 @@ Commands:
27
27
  xipai lottery -A, --items=ITEMS -m, --number-of-winners=N # Reproducible based on seeds or random shuffling, then extruct lottery winner.
28
28
  xipai pair -K, --key-items=KEY_ITEMS -V, --value-items=VALUE_ITEMS # Reproducible based on seeds or random shuffling, then pairing key-items and value-items.
29
29
  xipai replay -c, --replay-yaml=REPLAY_YAML # Replay shuffling with xipai-replay yaml
30
- xipai order -A, --items=ITEMS # Reproducible based on seeds or random shuffling.
30
+ xipai order -A, --items=ITEMS # Reproducible based on seeds or random shuffling.
31
31
  xipai team -A, --items=ITEMS -m, --number-of-members=N # Reproducible based on seeds or random shuffling, then create teams
32
32
  xipai version # Show xipai version
33
33
  ```
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require File.expand_path("../../xipai", File.dirname(__FILE__))
4
3
  require "yaml"
5
4
  require "optional"
6
5
 
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require File.expand_path("../../xipai", File.dirname(__FILE__))
3
+ require File.expand_path("../../xipai/core", File.dirname(__FILE__))
4
+ require File.expand_path("../../xipai/result", File.dirname(__FILE__))
5
+ require File.expand_path("../../xipai/arrangement/base", File.dirname(__FILE__))
4
6
  require "optional"
5
7
 
6
8
  module Xipai
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require File.expand_path("../../xipai", File.dirname(__FILE__))
3
+ require File.expand_path("../../xipai/core", File.dirname(__FILE__))
4
+ require File.expand_path("../../xipai/result", File.dirname(__FILE__))
5
+ require File.expand_path("../../xipai/arrangement/base", File.dirname(__FILE__))
4
6
 
5
7
  module Xipai
6
8
  module Arrangement
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require File.expand_path("../../xipai", File.dirname(__FILE__))
3
+ require File.expand_path("../../xipai/core", File.dirname(__FILE__))
4
+ require File.expand_path("../../xipai/result", File.dirname(__FILE__))
5
+ require File.expand_path("../../xipai/arrangement/base", File.dirname(__FILE__))
4
6
  require "optional"
5
7
 
6
8
  module Xipai
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require File.expand_path("../../xipai", File.dirname(__FILE__))
3
+ require File.expand_path("../../xipai/core", File.dirname(__FILE__))
4
+ require File.expand_path("../../xipai/result", File.dirname(__FILE__))
5
+ require File.expand_path("../../xipai/arrangement/base", File.dirname(__FILE__))
4
6
 
5
7
  module Xipai
6
8
  module Arrangement
data/lib/xipai/core.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
- require File.expand_path("../xipai", File.dirname(__FILE__))
3
+ require File.expand_path("../xipai/hashcode_generator", File.dirname(__FILE__))
4
4
 
5
5
  module Xipai
6
6
  module Core
data/lib/xipai/result.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require File.expand_path("../xipai", File.dirname(__FILE__))
4
3
  require "json"
5
4
  require "time"
6
5
  require "optional"
@@ -1,6 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require File.expand_path("../xipai", File.dirname(__FILE__))
3
+ Dir.glob(
4
+ "arrangement/*.rb", base: File.dirname(__FILE__)
5
+ ).each do |mode_name|
6
+ require "#{File.dirname(__FILE__)}/#{mode_name}"
7
+ end
8
+
4
9
  require "yaml"
5
10
  require "optional"
6
11
 
data/lib/xipai/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Xipai
4
- VERSION = "0.0.1a"
4
+ VERSION = "0.0.1b"
5
5
  end
data/lib/xipai.rb CHANGED
@@ -3,10 +3,9 @@
3
3
  Dir.glob(
4
4
  File.expand_path("xipai/**/*.rb", File.dirname(__FILE__)
5
5
  )).each do |mod_name|
6
- require_relative "#{mod_name}"
6
+ require "#{mod_name}"
7
7
  end
8
8
 
9
- require "ostruct"
10
9
 
11
10
  module Xipai
12
11
  class << self
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xipai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1a
4
+ version: 0.0.1b
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi IKEGAMI
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-11 00:00:00.000000000 Z
11
+ date: 2021-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor