rules_ai 0.3.0 → 0.4.0

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: 82b6efea2a8e4ddbe8bf904580c8bfc8c6fa7719fdcd0b195f3616ab5e5211a4
4
- data.tar.gz: 057076d3cc3ee83a91c5ab4921128397148267580d294b0bc6cf85c063f575bc
3
+ metadata.gz: 0d69baa8ead78bd0f17829d2f31af63c0558cabec1aead453a62277f156c243b
4
+ data.tar.gz: f518fd1590da24506f3a899f363740ab2c008d9137611271bc87afe7c7b88eaa
5
5
  SHA512:
6
- metadata.gz: d33696a4d1585a8cf3d6a658110152129b216ce6a79dc55897643d84adc6a9abaabe9856f93f70418dc22bb49d6dfec20b160de6b9fa1ef04479a054852fba4e
7
- data.tar.gz: 72f603f10991754d0b474e92a8ef0a49f4a246cf5c6e937bcb9fdeb1be6a04e791cb69c285c1a424f1731e90929860b93adedf1012a211472893020fa808b4c1
6
+ metadata.gz: f1094d88002d1f6411097324294ca9edc67e5e1d3d73dea746198fecb1fb1156a8c38aa9adf2d03ef8dc2f697b469d9b4db25795ca8c89161419a3a26376bbbc
7
+ data.tar.gz: b8202431c4e09cc6cbf7a36ea2b1aff9edb78e492f10727219d06481f9f6ef1298bdd8cc13b5badf106527c3c414c99b81c2f1df895b4918f2f1793d2a7a0f20
@@ -6,8 +6,8 @@ module RulesAi
6
6
  # Your code goes here...
7
7
  class Rules_Set
8
8
  def self.hours_passed
9
- a = File.read("data/hours_passed/number/a_input.txt").strip.to_i
10
- b = File.read("data/hours_passed/number/b_input.txt").strip.to_i
9
+ a = File.read("evo_data/hours_passed/number/a_input.txt").strip.to_i
10
+ b = File.read("evo_data/hours_passed/number/b_input.txt").strip.to_i
11
11
 
12
12
  starting_time = a
13
13
  ending_time = b
@@ -22,8 +22,8 @@ module RulesAi
22
22
  end
23
23
 
24
24
  def self.tesla_multiplication
25
- input = File.read("data/tesla_multiplication/number/input.txt").strip.to_f
26
- rounds = File.read("data/tesla_multiplication/number/input.txt").strip.to_i
25
+ input = File.read("evo_data/tesla_multiplication/number/input.txt").strip.to_f
26
+ rounds = File.read("evo_data/tesla_multiplication/number/input.txt").strip.to_i
27
27
 
28
28
  if input > 100
29
29
  input = 0
@@ -47,7 +47,7 @@ module RulesAi
47
47
  end
48
48
 
49
49
  def self.autonomous_prompting
50
- number = File.read("data/autonomous_prompting/input/number.txt").strip.to_i
50
+ number = File.read("evo_data/autonomous_prompting/input/number.txt").strip.to_i
51
51
 
52
52
  if number > 3
53
53
  number = 0
@@ -81,14 +81,14 @@ module RulesAi
81
81
 
82
82
  ## Simple reciprocal cipher with randomized key.
83
83
  def self.mixed_13
84
- alph = File.read("keyset/alph.txt").strip
85
- beta = File.read("keyset/beta.txt").strip
84
+ alph = File.read("evo_data/keyset/alph.txt").strip
85
+ beta = File.read("evo_data/keyset/beta.txt").strip
86
86
 
87
- input = File.read("documents/plaintext.txt").to_s.downcase
87
+ input = File.read("evo_data/documents/plaintext.txt").to_s.downcase
88
88
 
89
89
  ciphertext = input.tr alph, beta
90
90
 
91
- open("documents/ciphertext.txt", "w") { |f|
91
+ open("evo_data/documents/ciphertext.txt", "w") { |f|
92
92
  f.puts ciphertext
93
93
  }
94
94
  end
@@ -1,3 +1,3 @@
1
1
  module RulesAi
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rules_ai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gitea