audible 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.document +5 -5
- data/.travis.yml +12 -12
- data/Gemfile +6 -6
- data/Gemfile.lock +64 -62
- data/LICENSE.txt +20 -20
- data/README.md +9 -9
- data/Rakefile +33 -41
- data/VERSION +1 -1
- data/audible.gemspec +69 -67
- data/lib/audible.rb +3 -3
- data/lib/audible/audible.rb +50 -42
- data/lib/audible/pidfile.rb +16 -16
- data/spec/spec_helper.rb +7 -7
- data/spec/system.tests/drb/bin/server +44 -44
- data/spec/system.tests/drb/drb_observers_spec.rb +65 -65
- data/spec/system.tests/drb/support/drb_server.rb +26 -26
- data/spec/{and_how_it_differs_from_observable_spec.rb → unit.tests/and_how_it_differs_from_observable_spec.rb} +101 -101
- data/spec/{examples → unit.tests/examples}/a_notifying_shell_spec.rb +28 -28
- data/spec/{examples → unit.tests/examples}/logging_as_notifications_spec.rb +51 -51
- data/spec/unit.tests/it_notifies_despite_errors_spec.rb +30 -0
- data/spec/{listening_spec.rb → unit.tests/listening_spec.rb} +53 -53
- data/spec/{relaying_notifications → unit.tests/relaying_notifications}/about_the_notifications_spec.rb +69 -69
- data/spec/{relaying_notifications → unit.tests/relaying_notifications}/can_relay_notifications_spec.rb +43 -43
- metadata +12 -22
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NjhiNGJlZTNlYjgxNjY0MTA1YzkyMjhiOGJlYTcwNDIyNjlhNmM5Ng==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZGNkOGNmZGU1ZjZlOTkyY2JhNDQ4ZGQ4MzM2NjA3ZmU2MjhiZDg4Mg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NDA4NzY4ZmY0Y2NjMDc1MzQyMmRhYTBiYWI2NDM4OTY2MGVjMzM1NzhiYWJi
|
10
|
+
NDJlNDg3MjNmOTc5Y2I2NjVlOWI3OTIzOTkzMzI2YjYwNDM1NjBmN2M0YWM1
|
11
|
+
NjBlMWNjMmNiYTRiNTMwMTczMTRlY2ZkODAwNjRmOTA5ZGNmZjg=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
Mzk3ZDhjNTE3MjBmZDljNmQwMjBmMTQ1NDYxY2MzZjg5ZWNmZTBhMjVlNGJi
|
14
|
+
MGJkMzgzMjgzNDA0YTQxMzY5N2Q4ODE0OWZhMDUzZGVkYTJhZGM0OWFmOWZj
|
15
|
+
Y2MxNTcyOTNmYzgxNzRkM2NiMzUzYzdlYzljOGU1YzVjMjM4OTI=
|
data/.document
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
lib/**/*.rb
|
2
|
-
bin/*
|
3
|
-
-
|
4
|
-
features/**/*.feature
|
5
|
-
LICENSE.txt
|
1
|
+
lib/**/*.rb
|
2
|
+
bin/*
|
3
|
+
-
|
4
|
+
features/**/*.feature
|
5
|
+
LICENSE.txt
|
data/.travis.yml
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 1.9.3
|
4
|
-
- 2.0.0
|
5
|
-
branches:
|
6
|
-
only:
|
7
|
-
- master
|
8
|
-
- next
|
9
|
-
gemfile: Gemfile
|
10
|
-
notifications:
|
11
|
-
recipients:
|
12
|
-
- ben.biddington@gmail.com
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 1.9.3
|
4
|
+
- 2.0.0
|
5
|
+
branches:
|
6
|
+
only:
|
7
|
+
- master
|
8
|
+
- next
|
9
|
+
gemfile: Gemfile
|
10
|
+
notifications:
|
11
|
+
recipients:
|
12
|
+
- ben.biddington@gmail.com
|
data/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
group :development do
|
3
|
-
gem "rdoc"
|
4
|
-
gem "jeweler"
|
5
|
-
gem "rspec"
|
6
|
-
end
|
1
|
+
source "https://rubygems.org"
|
2
|
+
group :development do
|
3
|
+
gem "rdoc"
|
4
|
+
gem "jeweler"
|
5
|
+
gem "rspec"
|
6
|
+
end
|
data/Gemfile.lock
CHANGED
@@ -1,62 +1,64 @@
|
|
1
|
-
GEM
|
2
|
-
remote: https://rubygems.org/
|
3
|
-
specs:
|
4
|
-
addressable (2.3.5)
|
5
|
-
builder (3.2.2)
|
6
|
-
diff-lcs (1.2.4)
|
7
|
-
faraday (0.8.7)
|
8
|
-
multipart-post (~> 1.1)
|
9
|
-
git (1.2.5)
|
10
|
-
github_api (0.10.1)
|
11
|
-
addressable
|
12
|
-
faraday (~> 0.8.1)
|
13
|
-
hashie (>= 1.2)
|
14
|
-
multi_json (~> 1.4)
|
15
|
-
nokogiri (~> 1.5.2)
|
16
|
-
oauth2
|
17
|
-
hashie (2.0.5)
|
18
|
-
highline (1.6.19)
|
19
|
-
httpauth (0.2.0)
|
20
|
-
jeweler (1.8.5)
|
21
|
-
builder
|
22
|
-
bundler (~> 1.0)
|
23
|
-
git (>= 1.2.5)
|
24
|
-
github_api (>= 0.8.1)
|
25
|
-
highline (>= 1.6.15)
|
26
|
-
nokogiri (= 1.5.10)
|
27
|
-
rake
|
28
|
-
rdoc
|
29
|
-
json (1.8.0)
|
30
|
-
jwt (0.1.8)
|
31
|
-
multi_json (>= 1.5)
|
32
|
-
multi_json (1.7.7)
|
33
|
-
multi_xml (0.5.4)
|
34
|
-
multipart-post (1.2.0)
|
35
|
-
nokogiri (1.5.10)
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
rspec-
|
50
|
-
rspec-
|
51
|
-
|
52
|
-
rspec-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.3.5)
|
5
|
+
builder (3.2.2)
|
6
|
+
diff-lcs (1.2.4)
|
7
|
+
faraday (0.8.7)
|
8
|
+
multipart-post (~> 1.1)
|
9
|
+
git (1.2.5)
|
10
|
+
github_api (0.10.1)
|
11
|
+
addressable
|
12
|
+
faraday (~> 0.8.1)
|
13
|
+
hashie (>= 1.2)
|
14
|
+
multi_json (~> 1.4)
|
15
|
+
nokogiri (~> 1.5.2)
|
16
|
+
oauth2
|
17
|
+
hashie (2.0.5)
|
18
|
+
highline (1.6.19)
|
19
|
+
httpauth (0.2.0)
|
20
|
+
jeweler (1.8.5)
|
21
|
+
builder
|
22
|
+
bundler (~> 1.0)
|
23
|
+
git (>= 1.2.5)
|
24
|
+
github_api (>= 0.8.1)
|
25
|
+
highline (>= 1.6.15)
|
26
|
+
nokogiri (= 1.5.10)
|
27
|
+
rake
|
28
|
+
rdoc
|
29
|
+
json (1.8.0)
|
30
|
+
jwt (0.1.8)
|
31
|
+
multi_json (>= 1.5)
|
32
|
+
multi_json (1.7.7)
|
33
|
+
multi_xml (0.5.4)
|
34
|
+
multipart-post (1.2.0)
|
35
|
+
nokogiri (1.5.10)
|
36
|
+
nokogiri (1.5.10-x86-mingw32)
|
37
|
+
oauth2 (0.9.2)
|
38
|
+
faraday (~> 0.8)
|
39
|
+
httpauth (~> 0.2)
|
40
|
+
jwt (~> 0.1.4)
|
41
|
+
multi_json (~> 1.0)
|
42
|
+
multi_xml (~> 0.5)
|
43
|
+
rack (~> 1.2)
|
44
|
+
rack (1.5.2)
|
45
|
+
rake (10.1.0)
|
46
|
+
rdoc (4.0.1)
|
47
|
+
json (~> 1.4)
|
48
|
+
rspec (2.13.0)
|
49
|
+
rspec-core (~> 2.13.0)
|
50
|
+
rspec-expectations (~> 2.13.0)
|
51
|
+
rspec-mocks (~> 2.13.0)
|
52
|
+
rspec-core (2.13.1)
|
53
|
+
rspec-expectations (2.13.0)
|
54
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
55
|
+
rspec-mocks (2.13.1)
|
56
|
+
|
57
|
+
PLATFORMS
|
58
|
+
ruby
|
59
|
+
x86-mingw32
|
60
|
+
|
61
|
+
DEPENDENCIES
|
62
|
+
jeweler
|
63
|
+
rdoc
|
64
|
+
rspec
|
data/LICENSE.txt
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
Copyright (c) 2013 Ben Biddington
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1
|
+
Copyright (c) 2013 Ben Biddington
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
# Audible
|
2
|
-
|
3
|
-
[![Build Status](https://travis-ci.org/ben-biddington/audible.png?branch=master)](https://travis-ci.org/ben-biddington/audible)
|
4
|
-
|
5
|
-
A way to configure object communications as an alternative to `Observable`.
|
6
|
-
|
7
|
-
## Copyright
|
8
|
-
|
9
|
-
Copyright (c) 2013 Ben Biddington. See LICENSE.txt for
|
1
|
+
# Audible
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/ben-biddington/audible.png?branch=master)](https://travis-ci.org/ben-biddington/audible)
|
4
|
+
|
5
|
+
A way to configure object communications as an alternative to `Observable`.
|
6
|
+
|
7
|
+
## Copyright
|
8
|
+
|
9
|
+
Copyright (c) 2013 Ben Biddington. See LICENSE.txt for
|
10
10
|
further details.
|
data/Rakefile
CHANGED
@@ -1,41 +1,33 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
require 'bundler'
|
5
|
-
begin
|
6
|
-
Bundler.setup(:default, :development)
|
7
|
-
rescue Bundler::BundlerError => e
|
8
|
-
$stderr.puts e.message
|
9
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
-
exit e.status_code
|
11
|
-
end
|
12
|
-
require 'rake'
|
13
|
-
|
14
|
-
require 'jeweler'
|
15
|
-
Jeweler::Tasks.new do |gem|
|
16
|
-
gem.name = "audible"
|
17
|
-
gem.homepage = "http://github.com/ben-biddington/audible"
|
18
|
-
gem.license = "MIT"
|
19
|
-
gem.summary = %Q{Object communications}
|
20
|
-
gem.description = %Q{Object communications}
|
21
|
-
gem.email = "ben.biddington@gmail.com"
|
22
|
-
gem.authors = ["Ben Biddington"]
|
23
|
-
# dependencies defined in Gemfile
|
24
|
-
end
|
25
|
-
Jeweler::RubygemsDotOrgTasks.new
|
26
|
-
|
27
|
-
require '
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
35
|
-
end
|
36
|
-
|
37
|
-
require 'rspec/core/rake_task'
|
38
|
-
|
39
|
-
RSpec::Core::RakeTask.new(:unit_tests)
|
40
|
-
|
41
|
-
task :default => :unit_tests
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
gem.name = "audible"
|
17
|
+
gem.homepage = "http://github.com/ben-biddington/audible"
|
18
|
+
gem.license = "MIT"
|
19
|
+
gem.summary = %Q{Object communications}
|
20
|
+
gem.description = %Q{Object communications}
|
21
|
+
gem.email = "ben.biddington@gmail.com"
|
22
|
+
gem.authors = ["Ben Biddington"]
|
23
|
+
# dependencies defined in Gemfile
|
24
|
+
end
|
25
|
+
Jeweler::RubygemsDotOrgTasks.new
|
26
|
+
|
27
|
+
require 'rspec/core/rake_task'
|
28
|
+
|
29
|
+
RSpec::Core::RakeTask.new(:unit_tests) do |t|
|
30
|
+
t.pattern = File.join 'spec', 'unit.tests', '**', '*_spec.rb'
|
31
|
+
end
|
32
|
+
|
33
|
+
task :default => :unit_tests
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/audible.gemspec
CHANGED
@@ -1,67 +1,69 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
s.
|
9
|
-
|
10
|
-
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
s.
|
15
|
-
s.
|
16
|
-
|
17
|
-
"
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
".
|
22
|
-
"
|
23
|
-
"Gemfile
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"lib/audible
|
31
|
-
"lib/audible/
|
32
|
-
"
|
33
|
-
"spec/
|
34
|
-
"spec/
|
35
|
-
"spec/
|
36
|
-
"spec/
|
37
|
-
"spec/
|
38
|
-
"spec/
|
39
|
-
"spec/
|
40
|
-
"spec/
|
41
|
-
"spec/
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
s.
|
46
|
-
s.
|
47
|
-
s.
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
s.add_development_dependency(%q<
|
56
|
-
|
57
|
-
s.
|
58
|
-
|
59
|
-
s.add_dependency(%q<
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
s.add_dependency(%q<
|
65
|
-
|
66
|
-
|
67
|
-
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: audible 0.4.0 ruby lib
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "audible"
|
9
|
+
s.version = "0.4.0"
|
10
|
+
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
+
s.authors = ["Ben Biddington"]
|
13
|
+
s.date = "2014-07-08"
|
14
|
+
s.description = "Object communications"
|
15
|
+
s.email = "ben.biddington@gmail.com"
|
16
|
+
s.extra_rdoc_files = [
|
17
|
+
"LICENSE.txt",
|
18
|
+
"README.md"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
".document",
|
22
|
+
".travis.yml",
|
23
|
+
"Gemfile",
|
24
|
+
"Gemfile.lock",
|
25
|
+
"LICENSE.txt",
|
26
|
+
"README.md",
|
27
|
+
"Rakefile",
|
28
|
+
"VERSION",
|
29
|
+
"audible.gemspec",
|
30
|
+
"lib/audible.rb",
|
31
|
+
"lib/audible/audible.rb",
|
32
|
+
"lib/audible/pidfile.rb",
|
33
|
+
"spec/spec_helper.rb",
|
34
|
+
"spec/system.tests/drb/bin/server",
|
35
|
+
"spec/system.tests/drb/drb_observers_spec.rb",
|
36
|
+
"spec/system.tests/drb/support/drb_server.rb",
|
37
|
+
"spec/unit.tests/and_how_it_differs_from_observable_spec.rb",
|
38
|
+
"spec/unit.tests/examples/a_notifying_shell_spec.rb",
|
39
|
+
"spec/unit.tests/examples/logging_as_notifications_spec.rb",
|
40
|
+
"spec/unit.tests/it_notifies_despite_errors_spec.rb",
|
41
|
+
"spec/unit.tests/listening_spec.rb",
|
42
|
+
"spec/unit.tests/relaying_notifications/about_the_notifications_spec.rb",
|
43
|
+
"spec/unit.tests/relaying_notifications/can_relay_notifications_spec.rb"
|
44
|
+
]
|
45
|
+
s.homepage = "http://github.com/ben-biddington/audible"
|
46
|
+
s.licenses = ["MIT"]
|
47
|
+
s.require_paths = ["lib"]
|
48
|
+
s.rubygems_version = "2.1.11"
|
49
|
+
s.summary = "Object communications"
|
50
|
+
|
51
|
+
if s.respond_to? :specification_version then
|
52
|
+
s.specification_version = 4
|
53
|
+
|
54
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
55
|
+
s.add_development_dependency(%q<rdoc>, [">= 0"])
|
56
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
57
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
58
|
+
else
|
59
|
+
s.add_dependency(%q<rdoc>, [">= 0"])
|
60
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
61
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
62
|
+
end
|
63
|
+
else
|
64
|
+
s.add_dependency(%q<rdoc>, [">= 0"])
|
65
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
66
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|