my_precious 0.2.7 → 0.2.8
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 +31 -31
- data/lib/my_precious/version.rb +1 -1
- data/middle_earth.precious +21 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa05771275522907ec5f618edd1add59b051d92cfaaaede2743d9ec42e62c478
|
4
|
+
data.tar.gz: 8e6d5e43cfa4502d74fff57f6e72cf11d9e35a97a54e1cea7f609486737d97c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de5d1b41185cacd947453b3c1f7c4a16107cc94d3e8ce62a0c28dbf9d8682a0fc3232f63305238ddcf9bd2c50ad7ce5716bdc671d307efee2bb959c9d958daa0
|
7
|
+
data.tar.gz: b2904395841c63908fb239a08a02fc09829a3c5c3d049e66f57c5744909fad6bb5a285bd4abf57211a8c552706ada2462e5d582fee200ef476201b4ae7a48085
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ Precious uses lore keywords and english to create simple programming functionali
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem '
|
12
|
+
gem 'my_precious'
|
13
13
|
```
|
14
14
|
|
15
15
|
And then execute:
|
@@ -18,7 +18,7 @@ And then execute:
|
|
18
18
|
|
19
19
|
Or install it yourself as:
|
20
20
|
|
21
|
-
$ gem install
|
21
|
+
$ gem install my_precious
|
22
22
|
|
23
23
|
## Syntax:
|
24
24
|
Welcome to the Fellowship!
|
@@ -68,24 +68,24 @@ valinor.rb
|
|
68
68
|
# known bugs
|
69
69
|
version 0.2.3 - the last character of the function name will be removed.
|
70
70
|
|
71
|
-
|
72
|
-
|
73
|
-
|
71
|
+
```transcribe the book about Mordor with Nazgul, Frodo
|
72
|
+
def mordo( nazgul, frodo )
|
73
|
+
```
|
74
74
|
|
75
75
|
# variables
|
76
76
|
use capitols
|
77
77
|
|
78
|
-
Frodo is 8 years old
|
78
|
+
`Frodo is 8 years old`
|
79
79
|
|
80
80
|
# strings
|
81
81
|
use double quotes
|
82
82
|
|
83
|
-
Frodo is "a hobbit"
|
83
|
+
`Frodo is "a hobbit"`
|
84
84
|
|
85
85
|
# integers
|
86
86
|
write normally
|
87
87
|
|
88
|
-
Orcs are 2 big
|
88
|
+
`Orcs are 2 big`
|
89
89
|
|
90
90
|
# commenting
|
91
91
|
use the keywords: 'second breakfast', 'wear the ring'
|
@@ -122,81 +122,81 @@ use the keywords: 'runs out of lembas bread', 'lost' or 'hunted by orcs'
|
|
122
122
|
# addition
|
123
123
|
use the keywords: 'joins', 'and' or 'accompanies'
|
124
124
|
|
125
|
-
Frodo joins the fellowship with a Nazgul
|
126
|
-
Gollum and Frodo went inside mordor
|
125
|
+
`Frodo joins the fellowship with a Nazgul`
|
126
|
+
`Gollum and Frodo went inside mordor`
|
127
127
|
|
128
128
|
# subtraction
|
129
129
|
use the keywords: 'leaves the fellowship', 'stabs', 'banishes' or 'steals'
|
130
130
|
|
131
|
-
Sam leaves the fellowship without telling Sam
|
132
|
-
a Wraith accidentally stabs Sauron in the face at a really important business meeting
|
131
|
+
`Sam leaves the fellowship without telling Sam`
|
132
|
+
`a Wraith accidentally stabs Sauron in the face at a really important business meeting`
|
133
133
|
|
134
134
|
# multiplication
|
135
135
|
use the keywords: 'gives aid to', 'procreates' or 'bolsters'
|
136
136
|
|
137
|
-
Arigorn bolsters Helmsdeep
|
137
|
+
`Arigorn bolsters Helmsdeep`
|
138
138
|
|
139
139
|
# division
|
140
140
|
use the keywords: 'decapitates' or 'dismembers'
|
141
141
|
|
142
|
-
Gimly dismembers Legolas
|
142
|
+
`Gimly dismembers Legolas`
|
143
143
|
|
144
144
|
# true
|
145
145
|
use the keywords: 'precious'
|
146
146
|
|
147
|
-
Legolas is precious
|
147
|
+
`Legolas is precious`
|
148
148
|
|
149
|
-
#negation
|
149
|
+
# negation
|
150
150
|
use keywords: 'not'
|
151
151
|
|
152
|
-
the Balrog is not precious
|
152
|
+
`the Balrog is not precious`
|
153
153
|
|
154
154
|
# loops
|
155
155
|
use the keywords: 'whilst' or 'during the journey'
|
156
156
|
|
157
|
-
whilst Frodo climed as strong as he could, Saruman cried, nooo
|
157
|
+
`whilst Frodo climed as strong as he could, Saruman cried, nooo!!`
|
158
158
|
|
159
159
|
# comparisons
|
160
160
|
use keywords: 'equal', 'same' or 'similar'
|
161
161
|
|
162
|
-
Gollum can be the same as Smeagol
|
162
|
+
`Gollum can be the same as Smeagol`
|
163
163
|
|
164
164
|
# greater/less than
|
165
165
|
use keywords: 'stronger than' or 'more' and 'weaker than' or 'less'
|
166
166
|
|
167
|
-
Bilbo ate more tree food than Treebeard
|
167
|
+
`Bilbo ate more tree food than Treebeard`
|
168
168
|
|
169
169
|
# conditionals
|
170
170
|
use keywords: 'does', 'if' or 'will'
|
171
171
|
|
172
|
-
will Mary equal Pippin
|
172
|
+
`will Mary equal Pippin?`
|
173
173
|
|
174
174
|
# end
|
175
175
|
use keywords: 'you shall not pass'
|
176
176
|
|
177
|
-
you shall not pass
|
177
|
+
`you shall not pass`
|
178
178
|
|
179
|
-
#defining a function
|
179
|
+
# defining a function
|
180
180
|
use keywords: 'transcribe' or 'tell a story'
|
181
181
|
|
182
|
-
transcribe the book about Mordor
|
182
|
+
`transcribe the book about Mordor`
|
183
183
|
|
184
|
-
#calling a function
|
184
|
+
# calling a function
|
185
185
|
use keywords: "theyre taking the hobbits to"
|
186
186
|
|
187
|
-
they are taking the hobbits to Mordor
|
187
|
+
`they are taking the hobbits to Mordor`
|
188
188
|
|
189
|
-
#establishing parameters
|
189
|
+
# establishing parameters
|
190
190
|
use keywords: 'with'
|
191
191
|
|
192
|
-
they are taking the hobbits to Mordor with Nazgul, Frodo
|
192
|
+
`they are taking the hobbits to Mordor with Nazgul, Frodo`
|
193
193
|
|
194
194
|
everything after the keyword 'with' is a parameter. use a ',' or ' ' to separate parameters
|
195
195
|
|
196
|
-
#class words
|
196
|
+
# class words
|
197
197
|
use keywords: 'chapter :'
|
198
198
|
|
199
|
-
chapter : TheMines
|
199
|
+
`chapter : TheMines`
|
200
200
|
|
201
201
|
the format here is important. everything after the ':' will be considered a classname.
|
202
202
|
classnames must be capitalized
|
@@ -217,4 +217,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
217
217
|
|
218
218
|
## Code of Conduct
|
219
219
|
|
220
|
-
Everyone interacting in the Precious project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/<github username>/precious/blob/master/CODE_OF_CONDUCT.md).
|
220
|
+
Everyone interacting in the Precious project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/<github username>/precious/blob/master/CODE_OF_CONDUCT.md).
|
data/lib/my_precious/version.rb
CHANGED
data/middle_earth.precious
CHANGED
@@ -2,8 +2,9 @@ gandalf says "they are taking the hobbits to Isengard"
|
|
2
2
|
Frodo has 398 pieces of gold.
|
3
3
|
Saruman was worried when he saw 7 hobbits approaching his lair.
|
4
4
|
Frodo eats lembas bread
|
5
|
-
Despair is
|
5
|
+
Despair is when Frodo leaves the fellowship to become Saruman.
|
6
6
|
Ruin is Frodo.
|
7
|
+
wear the ring everything is actually ruined
|
7
8
|
|
8
9
|
bring forth the ring Despair and Ruin
|
9
10
|
Frodo joins the fellowship with Saruman.
|
@@ -15,22 +16,32 @@ Sam decapitates Saruman
|
|
15
16
|
Saruman gives aid to Saruman
|
16
17
|
Gollum is "a good boy"
|
17
18
|
|
18
|
-
will Gollum
|
19
|
+
will Gollum look the same as Gollum?
|
19
20
|
Sam is Sam and Frodo
|
20
|
-
gandalf
|
21
|
+
gandalf whispers you shall not pass
|
21
22
|
gimly says Sam
|
22
23
|
|
23
|
-
|
24
|
+
Middleearth is precious!!!!
|
24
25
|
|
25
|
-
but the Balrog is not precious
|
26
|
+
but the Balrog is not precious
|
27
|
+
coughs Balrog
|
26
28
|
|
27
|
-
|
28
|
-
you shall not pass
|
29
|
+
chapter : TheMines
|
29
30
|
|
30
|
-
|
31
|
+
Frodo has 2 shoes
|
32
|
+
whilst Frodo wore less armor than Saruman they both cried
|
33
|
+
the dwarf screams "put more armor on"
|
34
|
+
Frodo eats lembas bread
|
35
|
+
you shall not pass
|
31
36
|
|
32
|
-
|
37
|
+
a Nazgul has 10 horsepower
|
38
|
+
transcribe the book about Mordor with Nazgul, Frodo
|
39
|
+
coughs Nazgul
|
40
|
+
does a Nazgul eat more hobbits than Frodo?
|
41
|
+
the dwarf screams "toss me"
|
33
42
|
you shall not pass
|
43
|
+
you shall not pass ever!
|
44
|
+
|
45
|
+
theyre taking the hobbits to Mordor with Nazgul, Frodo
|
34
46
|
|
35
|
-
does a Nazgul eat less hobbits than Saruman?
|
36
47
|
you shall not pass
|