[DRE-commits] [ruby-em-spec] 01/06: Imported Upstream version 0.2.7

Lucas Moura lucasmoura-guest at moszumanska.debian.org
Fri Jul 15 17:56:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

lucasmoura-guest pushed a commit to branch master
in repository ruby-em-spec.

commit bef5edcd576444e5816b78a7d24c342f5df78b60
Author: Lucas Albuquerque Medeiros de Moura <lucas.moura128 at gmail.com>
Date:   Fri Jul 15 14:35:12 2016 -0300

    Imported Upstream version 0.2.7
---
 CHANGELOG.md             |  3 +++
 Gemfile.lock             | 13 ++++++----
 LICENSE                  | 21 ++++++++++++++++
 README.rdoc => README.md | 63 +++++++++++++++++++++++++++++++++++-------------
 em-spec.gemspec          | 16 ++++++------
 lib/em-spec/test.rb      |  2 +-
 lib/em-spec/version.rb   |  2 +-
 7 files changed, 87 insertions(+), 33 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..d88bcf0
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,3 @@
+## 0.2.7
+
+Added MIT license, on popular request.
diff --git a/Gemfile.lock b/Gemfile.lock
index bc10a2a..72b5ea8 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,18 +1,15 @@
 PATH
   remote: .
   specs:
-    em-spec (0.2.6)
-      bacon
+    em-spec (0.2.7)
       eventmachine
-      rspec (> 2.6.0)
-      test-unit
 
 GEM
   remote: http://rubygems.org/
   specs:
     bacon (1.1.0)
     diff-lcs (1.1.3)
-    eventmachine (0.12.10)
+    eventmachine (1.0.9.1)
     growl (1.0.3)
     guard (0.8.8)
       thor (~> 0.14.6)
@@ -37,8 +34,14 @@ PLATFORMS
   ruby
 
 DEPENDENCIES
+  bacon
   em-spec!
   growl
   guard-bundler
   guard-rspec
   rake (= 0.8.7)
+  rspec (> 2.6.0)
+  test-unit
+
+BUNDLED WITH
+   1.10.6
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..743a82c
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+Copyright (c) 2016 @joshbuddy
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
diff --git a/README.rdoc b/README.md
similarity index 56%
rename from README.rdoc
rename to README.md
index a45c36b..5d95c2d 100644
--- a/README.rdoc
+++ b/README.md
@@ -1,11 +1,17 @@
-Simple BDD API for testing asynchronous Ruby/EventMachine code
-(c) 2008 Aman Gupta (tmm1)
+# Simple BDD API for testing asynchronous Ruby/EventMachine code
 
-em-spec can be used with either bacon, test unit or rspec.
+`em-spec` can be used with either bacon, test unit or rspec.
 
-=Rspec
-There are two ways to use the Rspec extension.  To use it as a helper, include EM::SpecHelper in your describe block.  You then use the em method to wrap your evented test code.  Inside the em block, you must call #done after your expectations.  Everything works normally otherwise.
+## Rspec
+There are two ways to use with the Rspec gem.
 
+To use it as a helper, include `EM::SpecHelper` in your describe block.
+You then use the `em` method to wrap your evented test code.
+
+Inside the `em` block, you must call `done` after your expectations.
+Everything works normally otherwise.
+
+```ruby
   require "em-spec/rspec"
   describe EventMachine do
     include EM::SpecHelper
@@ -25,7 +31,13 @@ There are two ways to use the Rspec extension.  To use it as a helper, include E
       end
     end
   end
-The other option is to include EM::Spec in your describe block.  This will patch Rspec so that all of your examples run inside an em block automatically:
+```
+
+The other option is to include `EM::Spec` in your describe block.
+
+This will patch Rspec so that all of your examples run inside an `em` block automatically:
+
+```ruby
   require "em-spec/rspec"
   describe EventMachine do
     include EM::Spec
@@ -44,10 +56,14 @@ The other option is to include EM::Spec in your describe block.  This will patch
       }
     end
   end
+```
+
+## Bacon
 
-=Bacon
-The API is identical to Bacon, except that you must explicitly call 'done' after all the current behavior's assertions have been made:
+The API is identical to Bacon, except that you must explicitly call `done`
+after all the current behavior's assertions have been made:
 
+```ruby
   require 'em-spec/bacon'
 
   EM.describe EventMachine do
@@ -75,14 +91,23 @@ The API is identical to Bacon, except that you must explicitly call 'done' after
     end
 
   end
+```
+
+## `Test::Unit`
 
-=Test::Unit
-There are two ways to use the Test::Unit extension.  To use it as a helper, include EM::TestHelper in your test unit class.  You then use the em method to wrap your evented test code.  Inside the em block, you must call #done after your expectations.  Everything works normally otherwise.
+There are two ways to use the `Test::Unit` extension.
 
+To use it as a helper, include `EM::TestHelper` in your test unit class.
+
+You then use the em method to wrap your evented test code.
+
+Inside the em block, you must call `done` after your expectations.
+Everything works normally otherwise.
+
+```ruby
   require 'em-spec/test'
 
   class EmSpecHelperTest < Test::Unit::TestCase
-    
     include EventMachine::TestHelper
   
     def test_trivial
@@ -92,9 +117,14 @@ There are two ways to use the Test::Unit extension.  To use it as a helper, incl
       end
     end
   end
-  
-The other option is to include EM::Test in your test class.  This will patch Test::Unit so that all of your examples run inside an em block automatically:
+```
+
+The other option is to include `EM::Test` in your test class.
+
+This will patch `Test::Unit` so that all of your examples run inside an
+`em` block automatically:
 
+```ruby
   require 'em-spec/test'
 
   class EmSpecTest < Test::Unit::TestCase
@@ -110,9 +140,8 @@ The other option is to include EM::Test in your test class.  This will patch Tes
       }
     end
   end
+```
 
-Resources:
+## Resources
 
-* Git repository: http://github.com/tmm1/em-spec
-* Bacon: http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/30b07b651b0662fd
-* Initial announcement: http://groups.google.com/group/eventmachine/browse_thread/thread/8b4e7ead72f9d013
+* [Bacon](http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/30b07b651b0662fd)
diff --git a/em-spec.gemspec b/em-spec.gemspec
index a3263f2..f55c0ae 100644
--- a/em-spec.gemspec
+++ b/em-spec.gemspec
@@ -10,21 +10,21 @@ Gem::Specification.new do |s|
   s.summary = "BDD for Ruby/EventMachine"
   s.description = "Simple BDD API for testing asynchronous Ruby/EventMachine code"
   s.email = %q{schmurfy at gmail.com}
-  s.extra_rdoc_files = ['README.rdoc']
   s.files = `git ls-files`.split("\n")
-  s.homepage = %q{http://github.com/schmurfy/em-spec}
-  s.rdoc_options = ["--charset=UTF-8"]
+  s.homepage = %q{https://github.com/joshbuddy/em-spec}
   s.require_paths = ["lib"]
   s.rubygems_version = %q{1.3.7}
   s.test_files = `git ls-files`.split("\n").select{|f| f =~ /^test/}
   s.rubyforge_project = 'em-spec'
 
-  # dependencies
-  s.add_dependency 'rspec', '> 2.6.0'
-  s.add_dependency 'bacon'
-  s.add_dependency 'test-unit'
   s.add_dependency 'eventmachine'
   
+  # These are not runtime dependencies since in most cases people will use
+  # em-spec with only one of these libraries
+  s.add_development_dependency 'rspec', '> 2.6.0'
+  s.add_development_dependency 'bacon'
+  s.add_development_dependency 'test-unit'
+
   if RUBY_PLATFORM.downcase.include?("darwin")
     # also install growlnotify from the
     # Extras/growlnotify/growlnotify.pkg in Growl disk image
@@ -34,6 +34,4 @@ Gem::Specification.new do |s|
   s.add_development_dependency 'guard-rspec'
   s.add_development_dependency 'guard-bundler'
   s.add_development_dependency 'rake', '= 0.8.7'
-
 end
-
diff --git a/lib/em-spec/test.rb b/lib/em-spec/test.rb
index 08ddbf0..58292a9 100644
--- a/lib/em-spec/test.rb
+++ b/lib/em-spec/test.rb
@@ -33,7 +33,7 @@ module EventMachine
     end
 
     def timeout(time_to_run)
-      EM.cancel_timer(@_em_timer) if @_em_timer
+      EM.cancel_timer(@_em_timer) if defined? @_em_timer
       @_em_timer = EM.add_timer(time_to_run) { done('timeout exceeded') }
     end
 
diff --git a/lib/em-spec/version.rb b/lib/em-spec/version.rb
index d379b82..bdcae81 100644
--- a/lib/em-spec/version.rb
+++ b/lib/em-spec/version.rb
@@ -1,5 +1,5 @@
 module EventMachine
   module Spec
-    VERSION = '0.2.6'
+    VERSION = '0.2.7'
   end
 end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-em-spec.git



More information about the Pkg-ruby-extras-commits mailing list