asagi2 0.2.1 → 0.2.2

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: c7508172f75dd7472b50b3b5e6cdbd84bac017cc33f18a1343a4f0b4d87b5f1f
4
- data.tar.gz: c15956572ffe034b6ce9482f79e783b13e86b9dab495e63e35ad9c047c98ad34
3
+ metadata.gz: 00fddfab346841d2d6098e897dc65a9a3970724de9172160b8b624d581d12b92
4
+ data.tar.gz: 97aaaf7e6c0c357baeede6e8d8e94a32668dedefe489d6c23ebae132123bc431
5
5
  SHA512:
6
- metadata.gz: 3c48ac3b316b3a6a7cd9a2a6a1a9c43466d080e9407785c702e6ecf522bfbf456bcffd8b1fc089d968de04aa0d57205b7270fe0733863e68c314d02892bf1c97
7
- data.tar.gz: 46f9989d28abb7e6790785b6e84347fc5dd96b5e2821d730c0e20320c6598652709b233b79e7786cd909f86fd0b66a102681b852199a7d54ef2f162f5e93a756
6
+ metadata.gz: d97f20dd1a0b15788dc2f8dcae3860fb7e3f135cbb72f41e4d210e1323325e1b38c8636ed2b3f1079539d694a9d0c8f6f43f6e66465e888a7774bf74559107dc
7
+ data.tar.gz: 9d7f265beb188c5c53d10ec0c9bf5e3b9dfda05741603c2ed30e0545486c0bc16578cf7fdff76d006cd3c93ce8942be8ac9e30e8d240d7db4937877de3567da2
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.summary = %q{Second version of Asagi.}
12
12
  spec.description = %q{A experience interpreter, motivation, and action script generator.}
13
- spec.homepage = "https://github.com/LWFlouisa/Asagi2"
13
+ spec.homepage = "https://lwflouisa-asagi2.glitch.me/README.md"
14
14
  spec.license = "MIT"
15
15
 
16
16
  # Specify which files should be added to the gem when it is released.
@@ -26,6 +26,8 @@ module Asagi2
26
26
  f.puts " }"
27
27
  f.puts " "
28
28
  f.puts " sleep(3)"
29
+ f.puts " "
30
+ f.puts " #{method_name[0]} = #{method_name}#{ratio}"
29
31
  f.puts "end"
30
32
  f.puts " "
31
33
  f.puts "def #{method_name}#{ratio}"
@@ -36,10 +38,10 @@ module Asagi2
36
38
  f.puts " end"
37
39
  f.puts " "
38
40
  f.puts " def confirm_deny"
39
- f.puts " print ': Robot is increasingly restless, #{action} or stay? >> '"
41
+ f.puts " print 'Robot is increasingly restless, #{action} or stay? >> '"
40
42
  f.puts " input = gets.chomp"
41
43
  f.puts " "
42
- f.puts " if input == 'fight'"
44
+ f.puts " if input == '#{action}'"
43
45
  f.puts " a = ai_#{action}"
44
46
  f.puts " elsif input == 'stay'"
45
47
  f.puts " require 'espeak'"
@@ -71,6 +73,7 @@ module Asagi2
71
73
  f.puts " true_decision = test.last"
72
74
  f.puts " "
73
75
  f.puts " print '#{method_name.upcase}: '; print decision"
76
+ f.puts " puts '\n'"
74
77
  f.puts " "
75
78
  f.puts " if decision == 'Very Low' or 13.75; c = confirm_deny"
76
79
  f.puts " elsif decision == 'Somewhat Low' or 20.625; c = confirm_deny"
@@ -80,7 +83,7 @@ module Asagi2
80
83
  f.puts " elsif decision == 'Urgent' or 67.5; c = confirm_deny"
81
84
  f.puts " elsif decision == 'Danger' or 81.0; c = confirm_deny"
82
85
  f.puts " elsif decision == 'Critical' or 94.5; c = confirm_deny"
83
- f.puts " elsif decision == 'Automatic' or 108.0; r = robot_flight"
86
+ f.puts " elsif decision == 'Automatic' or 108.0; r = robot_#{method_name}"
84
87
  f.puts " end"
85
88
  f.puts " "
86
89
  f.puts "end"
@@ -90,7 +93,10 @@ module Asagi2
90
93
  f.puts " "
91
94
  f.puts " speech = ESpeak::Speech.new('#{robot_dialogue_automatic}')"
92
95
  f.puts " speech.speak"
96
+ f.puts "\n # Fill in action script below here."
93
97
  f.puts "end"
98
+ f.puts "\n# Don't edit below here."
99
+ f.puts "e = experience_#{method_name}"
94
100
  }
95
101
 
96
102
  record_backup = File.read("tree_#{action}.rb")
@@ -1,3 +1,3 @@
1
1
  module Asagi2
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asagi2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - LWFlouisa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-15 00:00:00.000000000 Z
11
+ date: 2019-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,7 +72,7 @@ files:
72
72
  - bin/setup
73
73
  - lib/asagi2.rb
74
74
  - lib/asagi2/version.rb
75
- homepage: https://github.com/LWFlouisa/Asagi2
75
+ homepage: https://lwflouisa-asagi2.glitch.me/README.md
76
76
  licenses:
77
77
  - MIT
78
78
  metadata: {}