ravensat 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
  SHA256:
3
- metadata.gz: 4096e2cf92f90de177d68da91023a52126e1c585ecb4adb4bebd03f98d4d7eb2
4
- data.tar.gz: ed1650dda444677d788404feb1a08af0c95d11adcc9ed50863fdd4148784da63
3
+ metadata.gz: a47d909acb01362653613bd0a4df6da1d426303a5e0919987b587fe3adcb77fd
4
+ data.tar.gz: 46f323addbd8e5f183eeb8bd81c28ffd0994553bc63a2e99689b991a43d1e508
5
5
  SHA512:
6
- metadata.gz: ec26889a68bf4114d3bf0ed6c56c2e8368b31e09ac1865f31272f70bdc1415f319b291f677bfdf730f71b1ed9bcc1e56ffabddbcdbcba1a11c6441e64d888bd1
7
- data.tar.gz: b174cd6db0867ab511a558a19a23a372cab7d293429ed434c4892817505f6a6d12cc1e15f2a67431bfa52c7376575b8a057ba536c7315fe14fc452d7a71fcd25
6
+ metadata.gz: 31ebd03521bce3df1d2447d9bddba7eef23deced640285f9bbfb79cf790bdc2a4af45b6c299e4ed5c6aa8000a43e4114b4d7045f1e963305175de85728a01cee
7
+ data.tar.gz: '097189b8c4d177f9cd8658fa4ff16481616dfb9ca72c65fbe80fbcbb63eaa453db55067312ff152c4fff01e613f4f82c745e7594b6a00861ee2b266c7ea740d1'
@@ -1,5 +1,15 @@
1
- def amo(proposal_values)
2
- end
1
+ module Ravensat
2
+ class RavenClaw
3
+ def initialize; end
4
+
5
+ def self.alo(prop_vars)
6
+ prop_vars.reduce(:|)
7
+ end
3
8
 
4
- def alo(proposal_values)
9
+ def self.amo(prop_vars)
10
+ prop_vars.combination(2).map do |e|
11
+ e.map(&:~@).reduce(:|)
12
+ end.reduce(:&)
13
+ end
14
+ end
5
15
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ravensat
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/lib/ravensat.rb CHANGED
@@ -9,6 +9,7 @@ module Ravensat
9
9
  autoload :Solver, ravensat + '/solver.rb'
10
10
  autoload :PropVar, ravensat + '/prop_var.rb'
11
11
  autoload :PropLogic, ravensat + '/prop_logic.rb'
12
+ autoload :RavenClaw, ravensat + '/ravenclaw.rb'
12
13
 
13
14
  autoload :Arcteryx, arcteryx + '/arcteryx.rb'
14
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ravensat
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
  - rikuto matsuda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-03 00:00:00.000000000 Z
11
+ date: 2021-12-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: