mock_em 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -8,7 +8,7 @@ TAGS
8
8
  Gemfile.lock
9
9
 
10
10
  # Rbenv
11
- .ruby-version
11
+ #.ruby-version
12
12
 
13
13
  # rcov generated
14
14
  coverage
data/.rspec CHANGED
@@ -1,3 +1,4 @@
1
+ --require spec_helper
1
2
  --colour
2
3
  --format=documentation
3
4
  --backtrace
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 1.8.7-p375
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.3
5
+ - 2.0.0
6
+ - 2.1.0
7
+ cache: bundler
8
+ sudo: false # use docker-based workers, which spin up faster than VM-based ones
data/CHANGELOG.md ADDED
@@ -0,0 +1,10 @@
1
+ ## 0.2.0 (2014-11-13)
2
+
3
+ Features:
4
+
5
+ - Added SimpleCov to specs
6
+ - Added Code Climate badges to README
7
+
8
+ ## 0.1.0
9
+
10
+ - Initial release.
data/README.md CHANGED
@@ -1,4 +1,9 @@
1
1
  # MockEM
2
+ [![Gem Version](https://badge.fury.io/rb/mock_em.svg)](http://badge.fury.io/rb/mock_em)
3
+ [![Build Status](https://travis-ci.org/rightscale/mock_em.png)](https://travis-ci.org/rightscale/mock_em)
4
+ [![Dependency Status](https://gemnasium.com/rightscale/mock_em.svg)](https://gemnasium.com/rightscale/mock_em)
5
+ [![Code Climate](https://codeclimate.com/github/rightscale/mock_em/badges/gpa.svg)](https://codeclimate.com/github/rightscale/mock_em)
6
+ [![Test Coverage](https://codeclimate.com/github/rightscale/mock_em/badges/coverage.svg)](https://codeclimate.com/github/rightscale/mock_em)
2
7
 
3
8
  MockEM provides the same interface as [EM](https://github.com/eventmachine/eventmachine/) (a.k.a. [EventMachine](https://github.com/eventmachine/eventmachine/)), but simulates the passage of time to execute your
4
9
  scheduled actions without delay. It is intended for use in tests.
@@ -56,9 +61,6 @@ to verify the behavior is identical.
56
61
  ## Unsupported Features
57
62
  Your mileage may vary.
58
63
 
59
- ## TODO
60
- - [ ] add Travis CI integration for specs
61
-
62
64
  ## Compatibility
63
65
  Ruby 1.8.7 and above is supported.
64
66
 
@@ -67,7 +69,12 @@ Pull requests welcome.
67
69
 
68
70
  If you'd like to add missing functionality, you can use `mock_em_spec.rb` to verify that the behavior is identical in both `MockEM` and `EM`.
69
71
 
72
+ ## Contributors
73
+ - [Jim Slattery](https://github.com/jim-slattery-rs)
74
+ - [Dominic Metzger](https://github.com/dominicm)
75
+
70
76
  Maintained by the RightScale "Cornsilk_team"
71
77
 
78
+
72
79
  ## License
73
80
  MIT License, see [LICENSE](LICENSE)
data/Rakefile CHANGED
@@ -1 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -1,3 +1,3 @@
1
1
  module MockEM
2
- VERSION = "0.1.0"
3
- end
2
+ VERSION = "0.2.0"
3
+ end
data/mock_em.gemspec CHANGED
@@ -23,11 +23,12 @@ Gem::Specification.new do |gem|
23
23
  gem.extra_rdoc_files = [ "LICENSE", "README.md" ]
24
24
  gem.rubygems_version = "1.8.26"
25
25
 
26
- gem.add_dependency("timecop", "0.3.4")
26
+ gem.add_dependency("timecop", "0.5.9.2")
27
27
  # ---------------------------------------------------------------------
28
28
  # Test suite
29
29
  # ---------------------------------------------------------------------
30
+ gem.add_development_dependency("rake", '~> 10.0')
30
31
  gem.add_development_dependency("rspec", '3.0.0')
31
- gem.add_development_dependency('ruby-debug', '0.10.4')
32
32
  gem.add_development_dependency('eventmachine', '1.0.3')
33
+ gem.add_development_dependency("simplecov", '0.9.1')
33
34
  end
@@ -1,5 +1,3 @@
1
- require 'spec/spec_helper'
2
- require 'mock_em/mock_em'
3
1
  require 'eventmachine'
4
2
 
5
3
  describe MockEM::MockEM do
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,7 @@
1
+ require 'simplecov'
2
+ SimpleCov.start
3
+
1
4
  require 'mock_em'
2
5
 
3
6
  require 'logger'
4
7
  require 'timecop'
5
-
6
- require 'ruby-debug' # enable debugger support
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mock_em
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 0.1.0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jim Slattery, Dominic Metzger
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2014-05-30 00:00:00 Z
18
+ date: 2014-05-30 00:00:00 -04:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: timecop
@@ -25,44 +26,44 @@ dependencies:
25
26
  requirements:
26
27
  - - "="
27
28
  - !ruby/object:Gem::Version
28
- hash: 27
29
+ hash: 71
29
30
  segments:
30
31
  - 0
31
- - 3
32
- - 4
33
- version: 0.3.4
32
+ - 5
33
+ - 9
34
+ - 2
35
+ version: 0.5.9.2
34
36
  type: :runtime
35
37
  version_requirements: *id001
36
38
  - !ruby/object:Gem::Dependency
37
- name: rspec
39
+ name: rake
38
40
  prerelease: false
39
41
  requirement: &id002 !ruby/object:Gem::Requirement
40
42
  none: false
41
43
  requirements:
42
- - - "="
44
+ - - ~>
43
45
  - !ruby/object:Gem::Version
44
- hash: 7
46
+ hash: 35
45
47
  segments:
46
- - 3
47
- - 0
48
+ - 10
48
49
  - 0
49
- version: 3.0.0
50
+ version: "10.0"
50
51
  type: :development
51
52
  version_requirements: *id002
52
53
  - !ruby/object:Gem::Dependency
53
- name: ruby-debug
54
+ name: rspec
54
55
  prerelease: false
55
56
  requirement: &id003 !ruby/object:Gem::Requirement
56
57
  none: false
57
58
  requirements:
58
59
  - - "="
59
60
  - !ruby/object:Gem::Version
60
- hash: 63
61
+ hash: 7
61
62
  segments:
63
+ - 3
62
64
  - 0
63
- - 10
64
- - 4
65
- version: 0.10.4
65
+ - 0
66
+ version: 3.0.0
66
67
  type: :development
67
68
  version_requirements: *id003
68
69
  - !ruby/object:Gem::Dependency
@@ -81,6 +82,22 @@ dependencies:
81
82
  version: 1.0.3
82
83
  type: :development
83
84
  version_requirements: *id004
85
+ - !ruby/object:Gem::Dependency
86
+ name: simplecov
87
+ prerelease: false
88
+ requirement: &id005 !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - "="
92
+ - !ruby/object:Gem::Version
93
+ hash: 57
94
+ segments:
95
+ - 0
96
+ - 9
97
+ - 1
98
+ version: 0.9.1
99
+ type: :development
100
+ version_requirements: *id005
84
101
  description: Mock EM
85
102
  email: support@rightscale.com
86
103
  executables: []
@@ -93,7 +110,9 @@ extra_rdoc_files:
93
110
  files:
94
111
  - .gitignore
95
112
  - .rspec
96
- - CHANGELOG.rdoc
113
+ - .ruby-version
114
+ - .travis.yml
115
+ - CHANGELOG.md
97
116
  - Gemfile
98
117
  - LICENSE
99
118
  - README.md
@@ -105,6 +124,7 @@ files:
105
124
  - mock_em.gemspec
106
125
  - spec/lib/mock_em/mock_em_spec.rb
107
126
  - spec/spec_helper.rb
127
+ has_rdoc: true
108
128
  homepage: https://github.com/rightscale/mock_em
109
129
  licenses:
110
130
  - MIT
@@ -134,11 +154,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
154
  requirements: []
135
155
 
136
156
  rubyforge_project:
137
- rubygems_version: 1.8.15
157
+ rubygems_version: 1.6.2
138
158
  signing_key:
139
159
  specification_version: 3
140
160
  summary: Mock for EM for testing.
141
161
  test_files:
142
162
  - spec/lib/mock_em/mock_em_spec.rb
143
163
  - spec/spec_helper.rb
144
- has_rdoc:
data/CHANGELOG.rdoc DELETED
File without changes