saasagi 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/saasagi.rb +307 -0
- data/lib/saasagi/version.rb +3 -0
- data/saasagi.gemspec +28 -0
- metadata +104 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bc6ffb149c55b781ac41eec4090d726f6b77d371079570f56db9b45a9d2bcede
|
4
|
+
data.tar.gz: 350ff25105f0ee6f16428376ca2312bf4cf8cce2c8f59450c358ffdca301e4e7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 11e035ca5424b88a8019901408fb8c875fbb35916a124289b232a22aa4b683c868ea40e11224d6de8964770230ff0069ec1ad05478ec8dde186c5add129a9a2e
|
7
|
+
data.tar.gz: 205c1aa3422d4258c404c305eadadb65ce42cf57b3009121c5b7a48d1537db85c719e7741dd14abccbd65d1ce0a4268e154b20dacc2aba04a3eb5f4741c763ca
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at gitea@fake.local. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Gitea
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Saasagi
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/saasagi`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'saasagi'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install saasagi
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/saasagi. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
+
|
41
|
+
## Code of Conduct
|
42
|
+
|
43
|
+
Everyone interacting in the Saasagi project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/saasagi/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "saasagi"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/lib/saasagi.rb
ADDED
@@ -0,0 +1,307 @@
|
|
1
|
+
require "saasagi/version"
|
2
|
+
|
3
|
+
module Saasagi
|
4
|
+
class Error < StandardError; end
|
5
|
+
|
6
|
+
class BaseCode
|
7
|
+
|
8
|
+
def self.assemble_timer
|
9
|
+
prewrite = File.read(".prewrite/tree_timer.txt")
|
10
|
+
|
11
|
+
open("data/input/timer_ratio.txt", "w") { |f|
|
12
|
+
f.puts "0"
|
13
|
+
}
|
14
|
+
|
15
|
+
open("tree_time.rb", "w") { |f|
|
16
|
+
f.puts prewrite
|
17
|
+
}
|
18
|
+
|
19
|
+
open(".backup/tree_time.rb", "w") { |f|
|
20
|
+
f.puts prewrite
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.assemble_duck_search
|
25
|
+
prewrite = File.read(".prewrite/tree_ducksearch.txt")
|
26
|
+
|
27
|
+
open("data/input/duck_ratio.txt", "w") { |f|
|
28
|
+
f.puts "0"
|
29
|
+
}
|
30
|
+
|
31
|
+
open("tree_ducksearch.rb", "w") { |f|
|
32
|
+
f.puts prewrite
|
33
|
+
}
|
34
|
+
|
35
|
+
open(".backup/tree_ducksearch.rb", "w") { |f|
|
36
|
+
f.puts prewrite
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.assemble_duck_sum
|
41
|
+
prewrite = File.read(".prewrite/tree_sum.txt")
|
42
|
+
|
43
|
+
open("data/input/sum_ratio.rb", "w") { |f|
|
44
|
+
f.puts "0"
|
45
|
+
}
|
46
|
+
|
47
|
+
open("tree_sum.rb", "w") { |f|
|
48
|
+
f.puts prewrite
|
49
|
+
}
|
50
|
+
|
51
|
+
open(".backup/tree_sum.rb", "w") { |f|
|
52
|
+
f.puts prewrite
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
def self.assemble_define_goal
|
57
|
+
prewrite = File.read(".prewrite/tree_dGoal.txt")
|
58
|
+
|
59
|
+
open("data/input/data_and_goal_ratio.txt", "w") { |f|
|
60
|
+
f.puts "0"
|
61
|
+
}
|
62
|
+
|
63
|
+
open("tree_dGoal.rb", "w") { |f|
|
64
|
+
f.puts prewrite
|
65
|
+
}
|
66
|
+
|
67
|
+
open(".backup/tree_dGoal.rb", "w") { |f|
|
68
|
+
f.puts prewrite
|
69
|
+
}
|
70
|
+
end
|
71
|
+
|
72
|
+
def self.assemble_encryptor
|
73
|
+
prewrite = File.read(".prewrite/tree_encrypt.txt")
|
74
|
+
|
75
|
+
open("data/input/encrypt_ratio.txt", "w") { |f|
|
76
|
+
f.puts "0"
|
77
|
+
}
|
78
|
+
|
79
|
+
open("tree_encrypt.rb", "w") { |f|
|
80
|
+
f.puts prewrite
|
81
|
+
}
|
82
|
+
|
83
|
+
open(".backup/tree_encrypt.rb", "w") { |f|
|
84
|
+
f.puts prewrite
|
85
|
+
}
|
86
|
+
end
|
87
|
+
|
88
|
+
def self.assemble_cloner
|
89
|
+
prewrite = File.read(".prewrite/tree_clone_engine.txt")
|
90
|
+
|
91
|
+
open("data/input/clone_ratio.txt", "w") { |f|
|
92
|
+
f.puts "0"
|
93
|
+
}
|
94
|
+
|
95
|
+
open("tree_clone_engine.rb", "w") { |f|
|
96
|
+
f.puts prewrite
|
97
|
+
}
|
98
|
+
|
99
|
+
open(".backup/tree_clone_engine.rb", "w") { |f|
|
100
|
+
f.puts prewrite
|
101
|
+
}
|
102
|
+
end
|
103
|
+
|
104
|
+
end
|
105
|
+
|
106
|
+
class SelfRepair
|
107
|
+
|
108
|
+
def self.repair_timer
|
109
|
+
if File.exist?("tree_time.rb")
|
110
|
+
puts "Timer is all taken care of."
|
111
|
+
else
|
112
|
+
backup = File.read(".backup/tree_timer.rb")
|
113
|
+
|
114
|
+
open("tree_time.rb", "w") { |f|
|
115
|
+
f.puts backup
|
116
|
+
}
|
117
|
+
|
118
|
+
puts "Next time let me decide if it needs amputation."
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
def self.repair_encryptor
|
123
|
+
if File.exist?("tree_encrypt.rb")
|
124
|
+
puts "Encryptor is all taken care of."
|
125
|
+
else
|
126
|
+
backup = File.read(".backup/tree_encrypt.rb")
|
127
|
+
|
128
|
+
open("tree_encrypt.rb", "w") { |f|
|
129
|
+
f.puts backup
|
130
|
+
}
|
131
|
+
|
132
|
+
puts "Next time let me decide if it needs amputation."
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
def self.repair_ducksearch
|
137
|
+
if File.exist?("tree_ducksearch.rb")
|
138
|
+
puts "Encryptor is all taken care of."
|
139
|
+
else
|
140
|
+
backup = File.read(".backup/tree_ducksearch.rb")
|
141
|
+
|
142
|
+
open("tree_ducksearch.rb", "w") { |f|
|
143
|
+
f.puts backup
|
144
|
+
}
|
145
|
+
|
146
|
+
puts "Next time let me decide if it needs amputation."
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
def self.repair_connectwords
|
151
|
+
if File.exist?("tree_sum.rb")
|
152
|
+
puts "Encryptor is all taken care of."
|
153
|
+
else
|
154
|
+
backup = File.read(".backup/tree_sum.rb")
|
155
|
+
|
156
|
+
open("tree_sum.rb", "w") { |f|
|
157
|
+
f.puts backup
|
158
|
+
}
|
159
|
+
|
160
|
+
puts "Next time let me decide if it needs amputation."
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
def self.repair_define_goal
|
165
|
+
if File.exist?("tree_dGoal.rb")
|
166
|
+
puts "Encryptor is all taken care of."
|
167
|
+
else
|
168
|
+
backup = File.read(".backup/tree_dGoal.rb")
|
169
|
+
|
170
|
+
open("tree_dGoal.rb", "w") { |f|
|
171
|
+
f.puts backup
|
172
|
+
}
|
173
|
+
|
174
|
+
puts "Next time let me decide if it needs amputation."
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
end
|
179
|
+
|
180
|
+
class NewFunctions
|
181
|
+
|
182
|
+
def self.sequence
|
183
|
+
print "Give a method name >> "; method_name = gets.chomp; ratio = "_ratio"
|
184
|
+
print "Create a meter attribute >> "; attribute = gets.chomp;
|
185
|
+
print "Name a robot action >> "; action = gets.chomp;
|
186
|
+
print "Write automamtic robot dialogue >> "; robot_dialogue_automatic = gets.chomp;
|
187
|
+
|
188
|
+
open("data/input/#{method_name}#{ratio}.txt", "w") { |f|
|
189
|
+
starting_value = 0.5
|
190
|
+
|
191
|
+
f.puts starting_value
|
192
|
+
}
|
193
|
+
|
194
|
+
open("tree_#{action}.rb", "w") { |f|
|
195
|
+
f.puts "# Auto training, motivation, and action."
|
196
|
+
f.puts "def experience_#{method_name}"
|
197
|
+
f.puts " current_value = File.read('data/input/#{method_name}_ratio.txt')"
|
198
|
+
f.puts " current_value = current_value.to_i"
|
199
|
+
f.puts " current_value = current_value + 10"
|
200
|
+
f.puts " "
|
201
|
+
f.puts " # Writes current value to file."
|
202
|
+
f.puts " open('data/input/#{method_name}_ratio.txt', 'w') { |f|"
|
203
|
+
f.puts " puts 'Training AI to self learn.'"
|
204
|
+
f.puts " "
|
205
|
+
f.puts " f.puts current_value"
|
206
|
+
f.puts " }"
|
207
|
+
f.puts " "
|
208
|
+
f.puts " sleep(3)"
|
209
|
+
f.puts " "
|
210
|
+
f.puts " #{method_name[0]} = #{method_name}#{ratio}"
|
211
|
+
f.puts "end"
|
212
|
+
f.puts " "
|
213
|
+
f.puts "def #{method_name}#{ratio}"
|
214
|
+
f.puts " require 'decisiontree'"
|
215
|
+
f.puts " "
|
216
|
+
f.puts " def confirm_deny"
|
217
|
+
f.puts " decision = $decision"
|
218
|
+
f.puts " "
|
219
|
+
f.puts " if decision == 'Automatic'"
|
220
|
+
f.puts " ai = ai_#{action}"
|
221
|
+
f.puts " else"
|
222
|
+
f.puts " print 'Robot is increasingly restless, #{action} or stay? >> '"
|
223
|
+
f.puts " input = gets.chomp"
|
224
|
+
f.puts " "
|
225
|
+
f.puts " if input == '#{action}'"
|
226
|
+
f.puts " a = ai_#{action}"
|
227
|
+
f.puts " elsif input == 'stay'"
|
228
|
+
f.puts " require 'espeak'"
|
229
|
+
f.puts " "
|
230
|
+
f.puts " speech = ESpeak::Speech.new('I chose to stay.')"
|
231
|
+
f.puts " speech.speak"
|
232
|
+
f.puts " else"
|
233
|
+
f.puts " require 'espeak'"
|
234
|
+
f.puts " "
|
235
|
+
f.puts " speech = ESpeak::Speech.new('Command not understood.')"
|
236
|
+
f.puts " speech.speak"
|
237
|
+
f.puts " end"
|
238
|
+
f.puts " end"
|
239
|
+
f.puts " end"
|
240
|
+
f.puts " "
|
241
|
+
f.puts " input = File.read('data/input/#{method_name}#{ratio}.txt').strip.to_i"
|
242
|
+
f.puts " "
|
243
|
+
f.puts " attributes = ['#{attribute}']"
|
244
|
+
f.puts " "
|
245
|
+
f.puts " training = ["
|
246
|
+
f.puts " [13.75, 'Very Low'], [20.625, 'Somewhat Low'], [27.5, 'Normal Low'],"
|
247
|
+
f.puts " [37.3125, 'Medium'], [54.0, 'High'], [67.5, 'Urgent'],"
|
248
|
+
f.puts " [81.0, 'Danger'], [94.5, 'Critical'], [108.0, 'Automatic'],"
|
249
|
+
f.puts " ]"
|
250
|
+
f.puts " "
|
251
|
+
f.puts " dec_tree = DecisionTree::ID3Tree.new(attributes, training, 1, :continuous); dec_tree.train"
|
252
|
+
f.puts " test = [input]"
|
253
|
+
f.puts " "
|
254
|
+
f.puts " $decision = dec_tree.predict(test)"
|
255
|
+
f.puts " $true_decision = test.last"
|
256
|
+
f.puts " "
|
257
|
+
f.puts " print '#{method_name.upcase}: '; print $decision"
|
258
|
+
f.puts " puts '\n\N'"
|
259
|
+
f.puts " "
|
260
|
+
f.puts " if $decision == 'Very Low' or 13.75; c = confirm_deny"
|
261
|
+
f.puts " elsif $decision == 'Somewhat Low' or 20.625; c = confirm_deny"
|
262
|
+
f.puts " elsif $decision == 'Normal Low' or 67.5; c = confirm_deny"
|
263
|
+
f.puts " elsif $decision == 'Medium' or 37.3125; c = confirm_deny"
|
264
|
+
f.puts " elsif $decision == 'High' or 54.0; c = confirm_deny"
|
265
|
+
f.puts " elsif $decision == 'Urgent' or 67.5; c = confirm_deny"
|
266
|
+
f.puts " elsif $decision == 'Danger' or 81.0; c = confirm_deny"
|
267
|
+
f.puts " elsif $decision == 'Critical' or 94.5; c = confirm_deny"
|
268
|
+
f.puts " elsif $decision == 'Automatic' or 108.0; r = robot_#{method_name}"
|
269
|
+
f.puts " end"
|
270
|
+
f.puts " "
|
271
|
+
f.puts "end"
|
272
|
+
f.puts " "
|
273
|
+
f.puts "def ai_#{action}"
|
274
|
+
f.puts " require 'espeak'"
|
275
|
+
f.puts " "
|
276
|
+
f.puts " speech = ESpeak::Speech.new('#{action}')"
|
277
|
+
f.puts " speech.speak"
|
278
|
+
f.puts "end"
|
279
|
+
f.puts " "
|
280
|
+
f.puts "\n e = experience_#{method_name}"
|
281
|
+
}
|
282
|
+
end
|
283
|
+
|
284
|
+
def self.self_repair
|
285
|
+
print "Which file is missing? >> "
|
286
|
+
input = gets.chomp
|
287
|
+
|
288
|
+
if File.exists?("#{input}.rb")
|
289
|
+
puts "I'm still here in your folder."
|
290
|
+
else
|
291
|
+
back_up = File.read(".backup/#{input}.rb").strip
|
292
|
+
|
293
|
+
open("#{input}.rb", "w") { |f|
|
294
|
+
f.puts back_up
|
295
|
+
}
|
296
|
+
|
297
|
+
puts "You should be more careful how you treat your files."; sleep(3)
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
301
|
+
def self.operate_tree
|
302
|
+
print "Operate which tree? >> "; input = gets.chomp
|
303
|
+
|
304
|
+
system("#{input}.rb"); sleep(3)
|
305
|
+
end
|
306
|
+
end
|
307
|
+
end
|
data/saasagi.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "saasagi/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "saasagi"
|
7
|
+
spec.version = Saasagi::VERSION
|
8
|
+
spec.authors = ["LWFlouisa"]
|
9
|
+
spec.email = ["gitea@fake.local"]
|
10
|
+
|
11
|
+
spec.summary = %q{Saasagi Single Cell is a reproductive version of Saasagi, and behaves similarly to a single-celled organism.}
|
12
|
+
spec.description = %q{The eventual goal for this project, is the ability to have certain cellular processes automated; assembling core subroutines, restoring missing subroutines from backup, and the ability for the machine to program itself, with a few simple instructions. Clone a group of them together, and you can eventually build more complex systems at the artificial cellular level.}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
# Specify which files should be added to the gem when it is released.
|
17
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
18
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
19
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
end
|
21
|
+
spec.bindir = "exe"
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ["lib"]
|
24
|
+
|
25
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
27
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: saasagi
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.7
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- LWFlouisa
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-01-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
description: The eventual goal for this project, is the ability to have certain cellular
|
56
|
+
processes automated; assembling core subroutines, restoring missing subroutines
|
57
|
+
from backup, and the ability for the machine to program itself, with a few simple
|
58
|
+
instructions. Clone a group of them together, and you can eventually build more
|
59
|
+
complex systems at the artificial cellular level.
|
60
|
+
email:
|
61
|
+
- gitea@fake.local
|
62
|
+
executables: []
|
63
|
+
extensions: []
|
64
|
+
extra_rdoc_files: []
|
65
|
+
files:
|
66
|
+
- ".gitignore"
|
67
|
+
- ".rspec"
|
68
|
+
- ".travis.yml"
|
69
|
+
- CODE_OF_CONDUCT.md
|
70
|
+
- Gemfile
|
71
|
+
- LICENSE.txt
|
72
|
+
- README.md
|
73
|
+
- Rakefile
|
74
|
+
- bin/console
|
75
|
+
- bin/setup
|
76
|
+
- lib/saasagi.rb
|
77
|
+
- lib/saasagi/version.rb
|
78
|
+
- saasagi.gemspec
|
79
|
+
homepage: ''
|
80
|
+
licenses:
|
81
|
+
- MIT
|
82
|
+
metadata: {}
|
83
|
+
post_install_message:
|
84
|
+
rdoc_options: []
|
85
|
+
require_paths:
|
86
|
+
- lib
|
87
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
requirements: []
|
98
|
+
rubyforge_project:
|
99
|
+
rubygems_version: 2.7.6
|
100
|
+
signing_key:
|
101
|
+
specification_version: 4
|
102
|
+
summary: Saasagi Single Cell is a reproductive version of Saasagi, and behaves similarly
|
103
|
+
to a single-celled organism.
|
104
|
+
test_files: []
|