factis 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. data/README.md +19 -2
  2. data/Rakefile +4 -0
  3. data/lib/factis/version.rb +1 -1
  4. metadata +2 -1
data/README.md CHANGED
@@ -54,14 +54,18 @@ remember_fact("What does Joe love?", "Joe loves pie.")
54
54
 
55
55
  # Hey Factis, what does Joe love?
56
56
  recall_fact("What does Joe love?")
57
+ => "Joe loves pie."
57
58
 
58
59
  # That's not very interesting. Let's forget about it.
59
60
  forget_fact("What does Joe love?")
60
61
 
61
62
  # Wait, what does Joe love again?
62
63
  recall_fact("What does Joe love?")
63
- => Trying to recall an unkown fact: 'What does Joe love?' (RuntimeError)
64
+ => Trying to recall an unknown fact: 'What does Joe love?' (RuntimeError)
64
65
 
66
+ # Just to make sure it's really forgotten ...
67
+ forget_fact("What does Joe love?")
68
+ => Trying to forget an unknown fact: 'What does Joe love?' (RuntimeError)
65
69
  # Let's just forget everything.
66
70
  clear_all_facts!
67
71
 
@@ -80,12 +84,21 @@ recall_fact(:some_foo)
80
84
  => #<Foo:0x007ffd84394728>
81
85
  ```
82
86
 
87
+ ## Contributing ##
88
+
89
+ Do you use git-flow? I sure do. Please base anything you do off of
90
+ [the develop branch](https://github.com/ess/factis/tree/develop).
91
+
92
+ 1. Fork it.
93
+ 2. Perform some BDD magic. Seriously. Be testing.
94
+ 3. Submit a pull request.
95
+
83
96
  ## So, Uh, Why? ##
84
97
 
85
98
  There are two sides of this story, really:
86
99
 
87
100
  * It's generally accepted that being able to track things over the course of an
88
- indempotent test (a user's email address, the number of stars in the known
101
+ idempotent test (a user's email address, the number of stars in the known
89
102
  galaxy, etc) makes it easier to write tests. Rather than thinking "my email
90
103
  address is user@example.com" repeatedly, you can just accept that you have
91
104
  an email address.
@@ -105,3 +118,7 @@ you tell it to remember and recalls them at your request. There is a generator
105
118
  to get you up and running with Cucumber, but you should be able to use it with
106
119
  just about any test framework that allows you to extend the global namespace
107
120
  (a-la `World(Factis)`).
121
+
122
+ ## License ##
123
+
124
+ MIT License. Copyright 2013 Ess
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ Bundler::GemHelper.install_tasks
4
+ require "bundler/gem_tasks"
@@ -1,3 +1,3 @@
1
1
  module Factis
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -42,6 +42,7 @@ files:
42
42
  - Gemfile.lock
43
43
  - LICENSE
44
44
  - README.md
45
+ - Rakefile
45
46
  - factis.gemspec
46
47
  - lib/factis.rb
47
48
  - lib/factis/cucumber.rb