freeman 0.0.2 → 0.0.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 +11 -0
- data/lib/freeman.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e92aa207914bb1ea34845064dc18e60102cc2cf
|
4
|
+
data.tar.gz: 8315651efcfd3ec1b07a54120b3eb7819b2355d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56162a898292c7df955d972f6540a23db86c20ca37b550eb10a8d3ef6320eb09e9eb4ac8474c69c916f71c5b0d88f7e7d81549fe4b85bd55ffa33c279c8ab1db
|
7
|
+
data.tar.gz: dc3d337b9eb1f174bcb91e098a9220ea2cc56fed930f1b2c65d20df9d12ce0eea35e9b202d55a7e997a7a1e1b9faaaef60c6172bc5701f090abb2c7959bbcafd
|
data/README.md
CHANGED
@@ -58,6 +58,17 @@ True is false: false
|
|
58
58
|
True isn't false: true
|
59
59
|
```
|
60
60
|
|
61
|
+
Tests return true or false, and can be assigned to variables:
|
62
|
+
|
63
|
+
```ruby
|
64
|
+
|
65
|
+
please_work = test "it's true!" do
|
66
|
+
true.is true
|
67
|
+
end
|
68
|
+
|
69
|
+
puts "YAY" if please_work
|
70
|
+
```
|
71
|
+
|
61
72
|
## Misc
|
62
73
|
|
63
74
|
I've been reading Metaprogramming Ruby and thought it'd be fun to try this. Turns out it only took a couple minutes to write, and it's fast, to boot! Normally I would just drop the single library file into a project to avoid running through Bundler as a dependency, but it only adds .1ms to my run-time as a gem. I can live with that.
|
data/lib/freeman.rb
CHANGED