freeman 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -0
  3. data/lib/freeman.rb +2 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 821d64fc1bb0846fd1c6f63cf8d540aad84e4594
4
- data.tar.gz: bef39006e31f3402f63f090d036bde5a420818f9
3
+ metadata.gz: 3e92aa207914bb1ea34845064dc18e60102cc2cf
4
+ data.tar.gz: 8315651efcfd3ec1b07a54120b3eb7819b2355d1
5
5
  SHA512:
6
- metadata.gz: 71ce899f7348d0d790df5d731675062c5115b535689e215c1b1ceb8e808c8b3a1197ea026638983116cb5b0cac8eec24577b27b40387304e6c070091538bc79a
7
- data.tar.gz: 649a877506a56dd74fe1b3b95d5302b950ccd3dbebd7f20b0d93edaf4f68e2c8d3099a12987af1e2a0e51fe69b33923c461fe4e4304e0680d05fd2c1e6425f97
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
@@ -1,5 +1,5 @@
1
1
  module Freeman
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
4
4
 
5
5
  module Kernel
@@ -26,5 +26,6 @@ KFTest = Struct.new(:description, :block) do
26
26
  line = block.source_location.join(": ")
27
27
  puts " from #{ line }"
28
28
  end
29
+ return status
29
30
  end
30
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freeman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristian Freeman