freeman 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e92aa207914bb1ea34845064dc18e60102cc2cf
4
- data.tar.gz: 8315651efcfd3ec1b07a54120b3eb7819b2355d1
3
+ metadata.gz: 1d28395e0c1cb9485260617f1055f4f26a4f0574
4
+ data.tar.gz: 833512eb7b97a6678069056bc8ce32705dac8b8b
5
5
  SHA512:
6
- metadata.gz: 56162a898292c7df955d972f6540a23db86c20ca37b550eb10a8d3ef6320eb09e9eb4ac8474c69c916f71c5b0d88f7e7d81549fe4b85bd55ffa33c279c8ab1db
7
- data.tar.gz: dc3d337b9eb1f174bcb91e098a9220ea2cc56fed930f1b2c65d20df9d12ce0eea35e9b202d55a7e997a7a1e1b9faaaef60c6172bc5701f090abb2c7959bbcafd
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. Commit your changes (`git commit -am 'Add some feature'`)
81
- 4. Push to the branch (`git push origin my-new-feature`)
82
- 5. Create new Pull Request
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
@@ -1 +1,3 @@
1
- require "bundler/gem_tasks"
1
+ task :default do
2
+ exec("ruby test/freeman_test.rb")
3
+ end
data/lib/freeman.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Freeman
2
- VERSION = "0.0.3"
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 ? true : false
24
- puts "#{ description }: #{ status }"
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 }"
@@ -0,0 +1,10 @@
1
+ require_relative "../lib/freeman"
2
+
3
+ test "a passing test" do
4
+ true.is true
5
+ end
6
+
7
+ test "a failing test" do
8
+ true.is false
9
+ end
10
+
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.3
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-23 00:00:00.000000000 Z
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