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 ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
6
+ - ree
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 mock"
21
- gem.description = "Simple class mock"
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.5
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.5"
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 mock"
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.10"
37
- s.summary = "Simple class mock"
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('bar')
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('mock')
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
- version: 0.1.5
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
- date: 2012-05-03 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rspec
16
- requirement: &2157867840 !ruby/object:Gem::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
- type: :development
33
+ version_requirements: *id001
34
+ name: rspec
23
35
  prerelease: false
24
- version_requirements: *2157867840
25
- - !ruby/object:Gem::Dependency
26
- name: rdoc
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
- version: '3.12'
33
- type: :development
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
- version_requirements: *2157867240
36
- - !ruby/object:Gem::Dependency
37
- name: bundler
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
- type: :development
64
+ version_requirements: *id003
65
+ name: bundler
45
66
  prerelease: false
46
- version_requirements: *2157866640
47
- - !ruby/object:Gem::Dependency
48
- name: jeweler
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
- type: :development
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
- version_requirements: *2157865440
69
- description: Simple class mock
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
- extra_rdoc_files:
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
- require_paths:
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
- version: '0'
102
- segments:
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ hash: 3
135
+ segments:
103
136
  - 0
104
- hash: -2170257274649016692
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
- version: '0'
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.10
150
+ rubygems_version: 1.8.11
114
151
  signing_key:
115
152
  specification_version: 3
116
- summary: Simple class mock
153
+ summary: Simple class mocking
117
154
  test_files: []
155
+