cross-stub 0.1.2 → 0.1.3

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.
data/HISTORY.txt ADDED
@@ -0,0 +1,20 @@
1
+ === 0.1.3 2009-12-17
2
+
3
+ = Bugfixes
4
+ * fixed broken support for stubbing a module's class methods [#liangzan]
5
+
6
+ === 0.1.2 2009-12-16
7
+
8
+ = Bugfixes
9
+ * fixed failure in stubbing & unstubbing methods not implemented in ruby [#ngty]
10
+
11
+ === 0.1.1 2009-12-07
12
+
13
+ = Bugfixes
14
+ * fixed rails generator by adding a matching 'After' block for clearing cache
15
+ in current process [#ngty]
16
+
17
+ === 0.1.0 2009-12-05
18
+
19
+ First gem release! [#ngty]
20
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/cross-stub.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cross-stub}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["NgTzeYang"]
12
- s.date = %q{2009-12-16}
12
+ s.date = %q{2010-02-04}
13
13
  s.description = %q{}
14
14
  s.email = %q{ngty77@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.files = [
20
20
  ".document",
21
21
  ".gitignore",
22
+ "HISTORY.txt",
22
23
  "LICENSE",
23
24
  "README.rdoc",
24
25
  "Rakefile",
@@ -46,12 +47,11 @@ Gem::Specification.new do |s|
46
47
  s.rubygems_version = %q{1.3.5}
47
48
  s.summary = %q{Simple cross process stubbing}
48
49
  s.test_files = [
49
- "spec/spec_helper.rb",
50
- "spec/cross-stub/getting_along_with_mocha_spec.rb",
51
- "spec/cross-stub/clearing_stubs_spec.rb",
50
+ "spec/helpers.rb",
52
51
  "spec/cross-stub/stubbing_error_spec.rb",
52
+ "spec/cross-stub/clearing_stubs_spec.rb",
53
53
  "spec/cross-stub/creating_stubs_spec.rb",
54
- "spec/helpers.rb"
54
+ "spec/spec_helper.rb"
55
55
  ]
56
56
 
57
57
  if s.respond_to? :specification_version then
data/lib/cross-stub.rb CHANGED
@@ -55,3 +55,4 @@ end
55
55
 
56
56
  Object.send(:extend, CrossStub::ClassMethods)
57
57
  Object.send(:include, CrossStub::InstanceMethods)
58
+ Module.send(:include, CrossStub::ClassMethods)
@@ -4,7 +4,7 @@ class CrossStubGenerator < Rails::Generator::Base
4
4
  record do |m|
5
5
  m.file 'config/initializers/cross-stub.rb', 'config/initializers/cross-stub.rb'
6
6
  m.file 'features/support/cross-stub.rb', 'features/support/cross-stub.rb'
7
- m.gsub_file 'config/environments/cucumber.rb', /\z/, "config.gem 'cross-stub', :version => '>=0.1.2'\n"
7
+ m.gsub_file 'config/environments/cucumber.rb', /\z/, "config.gem 'cross-stub', :version => '>=0.1.3'\n"
8
8
  end
9
9
  end
10
10
 
data/spec/helpers.rb CHANGED
@@ -14,7 +14,7 @@ class AnyClass
14
14
  end
15
15
  end
16
16
 
17
- class AnyModule
17
+ module AnyModule
18
18
  def self.say_world
19
19
  'u say world'
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cross-stub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - NgTzeYang
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-16 00:00:00 +08:00
12
+ date: 2010-02-04 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -64,6 +64,7 @@ extra_rdoc_files:
64
64
  files:
65
65
  - .document
66
66
  - .gitignore
67
+ - HISTORY.txt
67
68
  - LICENSE
68
69
  - README.rdoc
69
70
  - Rakefile
@@ -113,9 +114,8 @@ signing_key:
113
114
  specification_version: 3
114
115
  summary: Simple cross process stubbing
115
116
  test_files:
116
- - spec/spec_helper.rb
117
- - spec/cross-stub/getting_along_with_mocha_spec.rb
118
- - spec/cross-stub/clearing_stubs_spec.rb
117
+ - spec/helpers.rb
119
118
  - spec/cross-stub/stubbing_error_spec.rb
119
+ - spec/cross-stub/clearing_stubs_spec.rb
120
120
  - spec/cross-stub/creating_stubs_spec.rb
121
- - spec/helpers.rb
121
+ - spec/spec_helper.rb
@@ -1,27 +0,0 @@
1
- require File.dirname(__FILE__) + '/../spec_helper.rb'
2
-
3
- describe 'Getting Along with MOCHA' do
4
-
5
- behaves_like 'has standard setup'
6
-
7
- %w{current other}.each do |mode|
8
-
9
- behaves_like "has #{mode} process setup"
10
-
11
- it "should work for :stubbing_instance_methods_on_real_objects in #{mode} process" do
12
- AnyClass.xstub(:something => stub(:to_s => 'hello')) do
13
- def say_hello ; %\i say #{something}\ ; end
14
- end
15
- @get_value['AnyClass.say_hello'].should.equal 'i say hello'
16
- end
17
-
18
- # it "should work for :traditional_mocking in #{mode} process" do
19
- # end
20
- #
21
- # it "should work for :shortcuts in #{mode} process" do
22
- # end
23
-
24
- end
25
-
26
- end
27
-