assert-mocha 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env rake
2
2
  require "bundler/gem_tasks"
3
3
 
4
- require 'assert/rake_tasks'
5
- Assert::RakeTasks.for :test
4
+ require "assert/rake_tasks"
5
+ Assert::RakeTasks.install
data/assert-mocha.gemspec CHANGED
@@ -15,6 +15,6 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Assert::Mocha::VERSION
17
17
 
18
- gem.add_dependency("assert", ["~>0.7"])
19
- gem.add_dependency("mocha", ["~>0.10.0"])
18
+ gem.add_dependency("assert", ["~>1.0"])
19
+ gem.add_dependency("mocha", ["~>0.13"])
20
20
  end
data/lib/assert-mocha.rb CHANGED
@@ -1,12 +1,20 @@
1
1
  require 'assert'
2
- require 'mocha'
2
+ require 'mocha/api'
3
+
4
+ require 'assert-mocha/version'
3
5
 
4
6
  module Assert
5
7
  module Mocha
6
- autoload :VERSION, 'assert-mocha/version'
8
+
9
+ def self.included(klass)
10
+ klass.class_eval do
11
+ include ::Mocha::API
12
+ end
13
+ end
14
+
7
15
  end
8
16
  end
9
17
 
10
18
  Assert::Context.class_eval do
11
- include Mocha::API
19
+ include Assert::Mocha
12
20
  end
@@ -1,5 +1,5 @@
1
1
  module Assert
2
2
  module Mocha
3
- VERSION = "0.1.1"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assert-mocha
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
- - 0
8
- - 1
9
7
  - 1
10
- version: 0.1.1
8
+ - 0
9
+ - 0
10
+ version: 1.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kelly Redding
@@ -16,39 +16,38 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-10-11 00:00:00 Z
19
+ date: 2012-11-21 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- type: :runtime
23
22
  prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
23
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
25
  requirements:
27
26
  - - ~>
28
27
  - !ruby/object:Gem::Version
29
- hash: 5
28
+ hash: 15
30
29
  segments:
30
+ - 1
31
31
  - 0
32
- - 7
33
- version: "0.7"
34
- version_requirements: *id001
32
+ version: "1.0"
33
+ requirement: *id001
35
34
  name: assert
36
- - !ruby/object:Gem::Dependency
37
35
  type: :runtime
36
+ - !ruby/object:Gem::Dependency
38
37
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
38
+ version_requirements: &id002 !ruby/object:Gem::Requirement
40
39
  none: false
41
40
  requirements:
42
41
  - - ~>
43
42
  - !ruby/object:Gem::Version
44
- hash: 55
43
+ hash: 17
45
44
  segments:
46
45
  - 0
47
- - 10
48
- - 0
49
- version: 0.10.0
50
- version_requirements: *id002
46
+ - 13
47
+ version: "0.13"
48
+ requirement: *id002
51
49
  name: mocha
50
+ type: :runtime
52
51
  description: Assert with Mocha
53
52
  email:
54
53
  - kelly@kelredd.com
@@ -97,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
96
  requirements: []
98
97
 
99
98
  rubyforge_project:
100
- rubygems_version: 1.8.10
99
+ rubygems_version: 1.8.15
101
100
  signing_key:
102
101
  specification_version: 3
103
102
  summary: Assert with Mocha