meiou 0.2.2 → 0.2.3
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 +4 -4
- data/README.md +38 -0
- data/lib/meiou/astronomy.rb +1 -1
- data/lib/meiou/dictionary.rb +1 -1
- data/lib/meiou/version.rb +1 -1
- data/meiou.gemspec +1 -0
- metadata +4 -4
- /data/books/{astronomy.txt → astronomy_fortune-tellers.txt} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 900db46715e9b0f68dcf7b5bcc7bcb18e7c03ce6a0f79dd4c151a187ae390ef1
|
4
|
+
data.tar.gz: ef1395218d79c4dec9eb966673b593459acefa26ce4ce14724e47ec037acf669
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e24b1ef5aef8218e2cedb284f7f8305af1ada5e9f536ce362497e23e1df42fb37d1b0b53a57ece3b3c6f2ddc466708cf0b381112724b1224c81772de923950e
|
7
|
+
data.tar.gz: 4f322c8d2801e6d9a272238353f6e8b77e4166c91fec3fb9bd5bd35959b397b38e0343b5e92ac4acb7287b006ce9948fb5aed43e9cc6f83bb291d0ad8a6a8aa1
|
data/README.md
CHANGED
@@ -24,3 +24,41 @@ Finally you can do the following:
|
|
24
24
|
Meiou.compile!
|
25
25
|
```
|
26
26
|
Then you can use as normal, but also giving references to given text snippets.
|
27
|
+
|
28
|
+
|
29
|
+
## Utilities
|
30
|
+
|
31
|
+
### Toki Pona
|
32
|
+
Toki Pona is a constructed language with only 125 words.
|
33
|
+
|
34
|
+
```
|
35
|
+
s = Meiou.to_toki "I Love toki pona"
|
36
|
+
Meiou.from_toki s
|
37
|
+
```
|
38
|
+
|
39
|
+
### dictionary
|
40
|
+
```
|
41
|
+
Meiou.extract("A string of input.") # extract keywords.
|
42
|
+
Meiou.extract("A string of input.") { |word| } # extract keywords and process.
|
43
|
+
Meiou.define("A string of input.") # define keywords of input.
|
44
|
+
Meiou.example("A string of input.") # find example from books.
|
45
|
+
Meiou.cite("A string of input.") # Cite example from books.
|
46
|
+
```
|
47
|
+
|
48
|
+
### mood
|
49
|
+
```
|
50
|
+
Meiou.mood["A string of input."]
|
51
|
+
```
|
52
|
+
|
53
|
+
### emoji-fy
|
54
|
+
```
|
55
|
+
Meiou.simplify("A string of input.")
|
56
|
+
```
|
57
|
+
|
58
|
+
### astronomy
|
59
|
+
```
|
60
|
+
Meiou.astronomy # astronomy object reference
|
61
|
+
Meiou.zodiac["year/month/day hour:minute"] # zodiac lookup by date
|
62
|
+
```
|
63
|
+
|
64
|
+
|
data/lib/meiou/astronomy.rb
CHANGED
@@ -57,7 +57,7 @@ module ASTRO
|
|
57
57
|
[:mercury,:venus,:mars,:vesta,:ceres,:jupiter,:saturn,:uranus,:neptune,:pluto]
|
58
58
|
end
|
59
59
|
def self.init!
|
60
|
-
File.open("books/
|
60
|
+
File.open("books/astronomy_fortune-tellers.txt",'w') { |f| f.write(ASTRO.to_s) }
|
61
61
|
end
|
62
62
|
|
63
63
|
end
|
data/lib/meiou/dictionary.rb
CHANGED
data/lib/meiou/version.rb
CHANGED
data/meiou.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meiou
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Olson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: wikipedia-client
|
@@ -141,7 +141,7 @@ files:
|
|
141
141
|
- books/Doctor_and_Patient.txt
|
142
142
|
- books/Roman_Farm_Management.txt
|
143
143
|
- books/Social_Organization.txt
|
144
|
-
- books/
|
144
|
+
- books/astronomy_fortune-tellers.txt
|
145
145
|
- books/interpretation_of_dreams.txt
|
146
146
|
- books/the_prince.txt
|
147
147
|
- lang/tokipona.yaml
|
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
|
-
rubygems_version: 3.
|
182
|
+
rubygems_version: 3.4.20
|
183
183
|
signing_key:
|
184
184
|
specification_version: 4
|
185
185
|
summary: A way of gathering knowledge.
|
File without changes
|