imitate 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +6 -0
- data/Rakefile +4 -4
- data/VERSION +1 -1
- data/imitate.gemspec +7 -6
- data/spec/imitate_spec.rb +2 -2
- metadata +102 -64
data/.travis.yml
ADDED
data/Rakefile
CHANGED
@@ -17,10 +17,10 @@ Jeweler::Tasks.new do |gem|
|
|
17
17
|
gem.name = "imitate"
|
18
18
|
gem.homepage = "http://github.com/petrjanda/imitate"
|
19
19
|
gem.license = "MIT"
|
20
|
-
gem.summary = "Simple class
|
21
|
-
gem.description = "Simple class
|
22
|
-
gem.email = "petrjanda@me.com"
|
23
|
-
gem.authors = ["Petr Janda"]
|
20
|
+
gem.summary = "Simple class mocking"
|
21
|
+
gem.description = "Simple class mocking"
|
22
|
+
gem.email = "petrjanda@me.com, pericles.dias@gmail.com"
|
23
|
+
gem.authors = ["Petr Janda", "Pericles Dias"]
|
24
24
|
# dependencies defined in Gemfile
|
25
25
|
end
|
26
26
|
Jeweler::RubygemsDotOrgTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
data/imitate.gemspec
CHANGED
@@ -5,13 +5,13 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "imitate"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Petr Janda"]
|
11
|
+
s.authors = ["Petr Janda", "Pericles Dias"]
|
12
12
|
s.date = "2012-05-03"
|
13
|
-
s.description = "Simple class
|
14
|
-
s.email = "petrjanda@me.com"
|
13
|
+
s.description = "Simple class mocking"
|
14
|
+
s.email = "petrjanda@me.com, pericles.dias@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
17
17
|
"README.rdoc"
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
".rspec",
|
22
|
+
".travis.yml",
|
22
23
|
"Gemfile",
|
23
24
|
"Gemfile.lock",
|
24
25
|
"LICENSE.txt",
|
@@ -33,8 +34,8 @@ Gem::Specification.new do |s|
|
|
33
34
|
s.homepage = "http://github.com/petrjanda/imitate"
|
34
35
|
s.licenses = ["MIT"]
|
35
36
|
s.require_paths = ["lib"]
|
36
|
-
s.rubygems_version = "1.8.
|
37
|
-
s.summary = "Simple class
|
37
|
+
s.rubygems_version = "1.8.11"
|
38
|
+
s.summary = "Simple class mocking"
|
38
39
|
|
39
40
|
if s.respond_to? :specification_version then
|
40
41
|
s.specification_version = 3
|
data/spec/imitate_spec.rb
CHANGED
@@ -109,7 +109,7 @@ describe "Imitate" do
|
|
109
109
|
}
|
110
110
|
|
111
111
|
it 'should instance evaluate given block' do
|
112
|
-
Foo.new.methods.should include
|
112
|
+
Foo.new.methods.map(&:to_s).should include 'bar'
|
113
113
|
Foo.new.bar.should == 'bar'
|
114
114
|
end
|
115
115
|
end
|
@@ -128,7 +128,7 @@ describe "Imitate" do
|
|
128
128
|
before { Imitate.mock('Imitate') }
|
129
129
|
|
130
130
|
it 'should not override already existing object' do
|
131
|
-
Imitate.methods.should include
|
131
|
+
Imitate.methods.map(&:to_s).should include 'mock'
|
132
132
|
end
|
133
133
|
end
|
134
134
|
end
|
metadata
CHANGED
@@ -1,81 +1,113 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: imitate
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 6
|
10
|
+
version: 0.1.6
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Petr Janda
|
14
|
+
- Pericles Dias
|
9
15
|
autorequire:
|
10
16
|
bindir: bin
|
11
17
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
requirement: &
|
18
|
+
|
19
|
+
date: 2012-05-03 00:00:00 Z
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
23
|
none: false
|
18
|
-
requirements:
|
24
|
+
requirements:
|
19
25
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 47
|
28
|
+
segments:
|
29
|
+
- 2
|
30
|
+
- 8
|
31
|
+
- 0
|
21
32
|
version: 2.8.0
|
22
|
-
|
33
|
+
version_requirements: *id001
|
34
|
+
name: rspec
|
23
35
|
prerelease: false
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
|
27
|
-
requirement: &2157867240 !ruby/object:Gem::Requirement
|
36
|
+
type: :development
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
39
|
none: false
|
29
|
-
requirements:
|
40
|
+
requirements:
|
30
41
|
- - ~>
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
33
|
-
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 31
|
44
|
+
segments:
|
45
|
+
- 3
|
46
|
+
- 12
|
47
|
+
version: "3.12"
|
48
|
+
version_requirements: *id002
|
49
|
+
name: rdoc
|
34
50
|
prerelease: false
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
|
38
|
-
requirement: &2157866640 !ruby/object:Gem::Requirement
|
51
|
+
type: :development
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
54
|
none: false
|
40
|
-
requirements:
|
55
|
+
requirements:
|
41
56
|
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 23
|
59
|
+
segments:
|
60
|
+
- 1
|
61
|
+
- 0
|
62
|
+
- 0
|
43
63
|
version: 1.0.0
|
44
|
-
|
64
|
+
version_requirements: *id003
|
65
|
+
name: bundler
|
45
66
|
prerelease: false
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
|
49
|
-
requirement: &2157866040 !ruby/object:Gem::Requirement
|
67
|
+
type: :development
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
70
|
none: false
|
51
|
-
requirements:
|
71
|
+
requirements:
|
52
72
|
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
hash: 49
|
75
|
+
segments:
|
76
|
+
- 1
|
77
|
+
- 8
|
78
|
+
- 3
|
54
79
|
version: 1.8.3
|
55
|
-
|
80
|
+
version_requirements: *id004
|
81
|
+
name: jeweler
|
56
82
|
prerelease: false
|
57
|
-
version_requirements: *2157866040
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: mocha
|
60
|
-
requirement: &2157865440 !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
|
-
requirements:
|
63
|
-
- - ! '>='
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version: '0'
|
66
83
|
type: :development
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
hash: 3
|
91
|
+
segments:
|
92
|
+
- 0
|
93
|
+
version: "0"
|
94
|
+
version_requirements: *id005
|
95
|
+
name: mocha
|
67
96
|
prerelease: false
|
68
|
-
|
69
|
-
description: Simple class
|
70
|
-
email: petrjanda@me.com
|
97
|
+
type: :development
|
98
|
+
description: Simple class mocking
|
99
|
+
email: petrjanda@me.com, pericles.dias@gmail.com
|
71
100
|
executables: []
|
101
|
+
|
72
102
|
extensions: []
|
73
|
-
|
103
|
+
|
104
|
+
extra_rdoc_files:
|
74
105
|
- LICENSE.txt
|
75
106
|
- README.rdoc
|
76
|
-
files:
|
107
|
+
files:
|
77
108
|
- .document
|
78
109
|
- .rspec
|
110
|
+
- .travis.yml
|
79
111
|
- Gemfile
|
80
112
|
- Gemfile.lock
|
81
113
|
- LICENSE.txt
|
@@ -87,31 +119,37 @@ files:
|
|
87
119
|
- spec/imitate_spec.rb
|
88
120
|
- spec/spec_helper.rb
|
89
121
|
homepage: http://github.com/petrjanda/imitate
|
90
|
-
licenses:
|
122
|
+
licenses:
|
91
123
|
- MIT
|
92
124
|
post_install_message:
|
93
125
|
rdoc_options: []
|
94
|
-
|
126
|
+
|
127
|
+
require_paths:
|
95
128
|
- lib
|
96
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
129
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
97
130
|
none: false
|
98
|
-
requirements:
|
99
|
-
- -
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
|
102
|
-
segments:
|
131
|
+
requirements:
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
hash: 3
|
135
|
+
segments:
|
103
136
|
- 0
|
104
|
-
|
105
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
|
+
version: "0"
|
138
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
139
|
none: false
|
107
|
-
requirements:
|
108
|
-
- -
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
hash: 3
|
144
|
+
segments:
|
145
|
+
- 0
|
146
|
+
version: "0"
|
111
147
|
requirements: []
|
148
|
+
|
112
149
|
rubyforge_project:
|
113
|
-
rubygems_version: 1.8.
|
150
|
+
rubygems_version: 1.8.11
|
114
151
|
signing_key:
|
115
152
|
specification_version: 3
|
116
|
-
summary: Simple class
|
153
|
+
summary: Simple class mocking
|
117
154
|
test_files: []
|
155
|
+
|