freeman 0.0.3 → 0.0.4
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 +6 -5
- data/Rakefile +3 -1
- data/lib/freeman.rb +3 -3
- data/test/freeman_test.rb +10 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d28395e0c1cb9485260617f1055f4f26a4f0574
|
4
|
+
data.tar.gz: 833512eb7b97a6678069056bc8ce32705dac8b8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2302705cafda455b532aa2a7030ae3e353a5db96eeaf616926bd02e6f5f381428958f6028e68d2e1b858c285053191d66ecc55122eb1fa6087b5bc6e389d86b2
|
7
|
+
data.tar.gz: 6eefa6cd068c890fee24b573e09e15b15dad555873e095a3db0cf659595b48cc2706b380892bcd9f241dcd3b078f78d523a8ba44052902b36662dd73221ef622
|
data/README.md
CHANGED
@@ -23,7 +23,7 @@ require "freeman"
|
|
23
23
|
require "./core_exts"
|
24
24
|
|
25
25
|
test "A string is indeed a string" do
|
26
|
-
'This is a string'.class.is String
|
26
|
+
'This is a string'.class.is String
|
27
27
|
end
|
28
28
|
|
29
29
|
test "Numbers can be divisible by" do
|
@@ -58,7 +58,7 @@ 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:
|
61
|
+
Tests return true or false, and can be assigned to variables:
|
62
62
|
|
63
63
|
```ruby
|
64
64
|
|
@@ -77,6 +77,7 @@ I've been reading Metaprogramming Ruby and thought it'd be fun to try this. Turn
|
|
77
77
|
|
78
78
|
1. Fork it
|
79
79
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
80
|
-
3.
|
81
|
-
4.
|
82
|
-
5.
|
80
|
+
3. Run `rake` to make sure (simple) tests still pass
|
81
|
+
4. Commit your changes (`git commit -am 'Add some feature'`)
|
82
|
+
5. Push to the branch (`git push origin my-new-feature`)
|
83
|
+
6. Create new Pull Request
|
data/Rakefile
CHANGED
data/lib/freeman.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Freeman
|
2
|
-
VERSION = "0.0.
|
2
|
+
VERSION = "0.0.4"
|
3
3
|
end
|
4
4
|
|
5
5
|
module Kernel
|
@@ -20,8 +20,8 @@ end
|
|
20
20
|
|
21
21
|
KFTest = Struct.new(:description, :block) do
|
22
22
|
def run
|
23
|
-
status = block.call ?
|
24
|
-
puts "#{
|
23
|
+
status = block.call ? "✓" : "✗"
|
24
|
+
puts "#{ status } #{ description }"
|
25
25
|
if status.is false
|
26
26
|
line = block.source_location.join(": ")
|
27
27
|
puts " from #{ line }"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: freeman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kristian Freeman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,7 @@ files:
|
|
52
52
|
- Rakefile
|
53
53
|
- freeman.gemspec
|
54
54
|
- lib/freeman.rb
|
55
|
+
- test/freeman_test.rb
|
55
56
|
homepage: https://github.com/imkmf/freeman
|
56
57
|
licenses:
|
57
58
|
- MIT
|
@@ -76,4 +77,5 @@ rubygems_version: 2.0.3
|
|
76
77
|
signing_key:
|
77
78
|
specification_version: 4
|
78
79
|
summary: An experimental Ruby test gem for simple testing. Long live Ruby!
|
79
|
-
test_files:
|
80
|
+
test_files:
|
81
|
+
- test/freeman_test.rb
|