facon 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.txt CHANGED
@@ -30,7 +30,8 @@ You can now write Bacon specs like this (in RSpec-like style):
30
30
  end
31
31
  end
32
32
 
33
- For now, more examples can be found in the specs included with the Facon gem. I promise to get better examples into the documentation!
33
+ For now, more examples can be found in the specs included with the Facon gem. I promise to get better examples into the
34
+ documentation!
34
35
 
35
36
  See Facon::Baconize for more documentation on using Facon with Bacon[http://rubyforge.org/projects/test-spec/].
36
37
 
@@ -39,6 +40,15 @@ See Facon::Baconize for more documentation on using Facon with Bacon[http://ruby
39
40
  * Ruby 1.8
40
41
  * Bacon (optional, required for running specs)
41
42
 
43
+ == Compatibility with Bacon
44
+
45
+ When used with Bacon, Facon uses some Bacon hooks, which unfortunately causes some compatibility issues with new
46
+ versions of Bacon. Use this compatibility chart to find out which versions of Facon to install when running with Bacon.
47
+
48
+ Facon version -- Bacon version
49
+ <= 0.3.x -- 0.9 (only tested with 0.9 but might work with earlier versions of Bacon)
50
+ 0.4 -- 1.0, 1.1
51
+
42
52
  == Installation
43
53
 
44
54
  Simply install the gem:
@@ -46,13 +56,13 @@ Simply install the gem:
46
56
 
47
57
  == The Source Code
48
58
 
49
- You can get the latest trunk from the Subversion repository at:
50
- svn://svn.codefront.net/facon/trunk
59
+ You can get the latest trunk from the Git repository on Github:
60
+ git://github.com/chuyeow/facon.git
51
61
 
52
62
  == Links
53
63
 
64
+ * Github page - http://github.com/chuyeow/facon/
54
65
  * Facon website - http://facon.rubyforge.org/
55
- * Facon Rubyforge project - http://rubyforge.org/projects/facon/
56
66
  * Bacon - http://rubyforge.org/projects/test-spec/
57
67
  * RSpec - http://rspec.info/
58
68
 
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ Hoe.new('facon', Facon::VERSION) do |p|
8
8
  p.author = 'Cheah Chu Yeow'
9
9
  p.email = 'chuyeow@gmail.com'
10
10
  p.summary = 'Tiny mocking library.'
11
- p.url = 'http://facon.rubyforge.org/'
11
+ p.url = 'http://github.com/chuyeow/facon/'
12
12
  p.description = 'A mocking library in the spirit of the Bacon spec library. Small, compact, and works with Bacon.'
13
13
  p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
14
14
  p.remote_rdoc_dir = 'rdocs'
@@ -12,5 +12,5 @@ require 'facon/core_ext/object'
12
12
  # Facon is a mocking library in the spirit of the Bacon spec library. Small,
13
13
  # compact, and works with Bacon.
14
14
  module Facon
15
- VERSION = '0.3.1'
15
+ VERSION = '0.4.0'
16
16
  end
@@ -73,6 +73,7 @@ module Facon
73
73
  end
74
74
 
75
75
  def receive(method, &block)
76
+ Bacon::Counter[:requirements] += 1 # A should.receive expectation is also a Bacon requirement.
76
77
  if @negated
77
78
  @object.mock_proxy.add_negative_expectation(caller(1)[0], method, &block)
78
79
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cheah Chu Yeow
@@ -9,17 +9,18 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-19 00:00:00 +08:00
12
+ date: 2008-12-05 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hoe
17
+ type: :development
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
20
21
  - - ">="
21
22
  - !ruby/object:Gem::Version
22
- version: 1.5.0
23
+ version: 1.8.2
23
24
  version:
24
25
  description: A mocking library in the spirit of the Bacon spec library. Small, compact, and works with Bacon.
25
26
  email: chuyeow@gmail.com
@@ -50,7 +51,7 @@ files:
50
51
  - spec/spec_helper.rb
51
52
  - spec/stub_spec.rb
52
53
  has_rdoc: true
53
- homepage: http://facon.rubyforge.org/
54
+ homepage: http://github.com/chuyeow/facon/
54
55
  post_install_message:
55
56
  rdoc_options:
56
57
  - --main
@@ -72,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
73
  requirements: []
73
74
 
74
75
  rubyforge_project: facon
75
- rubygems_version: 1.0.1
76
+ rubygems_version: 1.3.1
76
77
  signing_key:
77
78
  specification_version: 2
78
79
  summary: Tiny mocking library.