mailbox 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 1
3
3
  :major: 0
4
- :patch: 1
4
+ :patch: 2
data/lib/mailbox.rb CHANGED
@@ -5,8 +5,8 @@ require 'jretlang'
5
5
 
6
6
  # This module is used to simplify the using concurrency
7
7
  # in your application. Using JVM threads as the backing
8
- # a function can set to become an asynchronous function
9
- # to be used in a actor-model method. Or a function
8
+ # a method can set to become an asynchronous method
9
+ # to be used in a actor-model method. Or a method
10
10
  # can be set to be the backing of a named channel
11
11
  # (jretlang channels are used here).
12
12
  module Mailbox
@@ -54,10 +54,7 @@ module Mailbox
54
54
  def method_added(method_name, &block)
55
55
  return if @adding_mailbox_to_method == method_name
56
56
 
57
- unless @mailslot == true
58
- private method_name
59
- return
60
- end
57
+ return unless @mailslot == true
61
58
 
62
59
  @mailslot = false
63
60
 
data/mailbox.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mailbox}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Joel Friedman", "Patrick Farley"]
12
- s.date = %q{2009-10-18}
12
+ s.date = %q{2009-10-22}
13
13
  s.description = %q{Mailbox is a JRuby module that simplifies concurrency and is backed by JVM threads.}
14
14
  s.email = %q{asher.friedman@gmail.com}
15
15
  s.extra_rdoc_files = [
data/test/mailbox_test.rb CHANGED
@@ -30,20 +30,18 @@ class MailboxTest < Test::Unit::TestCase
30
30
 
31
31
  end
32
32
 
33
- def test_non_mailslot_methods_become_private
33
+ def test_non_mailslot_methods_stay_public
34
34
 
35
35
  klass = Class.new do
36
36
  include Mailbox
37
37
 
38
38
  def bar
39
+ "foo"
39
40
  end
40
41
  end
41
42
 
42
- exception = assert_raise NoMethodError do
43
- klass.new.bar
44
- end
43
+ assert "foo", klass.new.bar
45
44
 
46
- assert_match /private method `bar'/, exception.message
47
45
  end
48
46
 
49
47
  def test_should_supports_channels
metadata CHANGED
@@ -49,12 +49,12 @@ requirements: []
49
49
  authors:
50
50
  - Joel Friedman
51
51
  - Patrick Farley
52
- date: 2009-10-18 05:00:00 +00:00
52
+ date: 2009-10-22 05:00:00 +00:00
53
53
  platform: ruby
54
54
  test_files:
55
55
  - test/mailbox_test.rb
56
56
  version: !ruby/object:Gem::Version
57
- version: 0.1.1
57
+ version: 0.1.2
58
58
  require_paths:
59
59
  - lib
60
60
  dependencies: