hexx 5.2.0 → 5.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8f682ab2559e5df4745c3b31da39343558726c2
4
- data.tar.gz: 761e5de6edc7ac19029e67cbb0f7693baf4adea4
3
+ metadata.gz: 0ced8ed5601015e9d1aa5f72bfe3e4703dd4c41b
4
+ data.tar.gz: 83c8cbafafd64dfa6d4a5edcafcbda8b29bcfd7e
5
5
  SHA512:
6
- metadata.gz: 1f6765140b1e83e75943def81b095b1f48fea48887d7ef6297e34f156051f2d3bf88d783fcef7f578eddd2092fa8f80d426e29b1060d727ab0cae5e6900f0293
7
- data.tar.gz: 7e7039f4ba789a130a838ed32904420115e567d6d6d29cda539a971906c25c8c1efcba2343904b5513ae0fda73a7a4d6ef80382ae6fae3a43d72b9f9274e156c
6
+ metadata.gz: b16413214ce7dbb0d3656c6ccf2a90a2de98448a8dc750fdbef8971b6d9149fac6661a34099a990b15f21f1d5dc18c75589a31bd9e9a9d504c08cde91f38c0f4
7
+ data.tar.gz: 092546d340413aa0084e112798413d381398b1f873ec150116b39ea7b8111372b8feab1e161b690e10cb7a644ec26ba1b78fea5c0ec733ff39e658deb8267a16
@@ -90,11 +90,9 @@ module Hexx
90
90
 
91
91
  # @abstract
92
92
  # Runs the service object.
93
- # @note The method must be reloaded by a specific service class,
94
- # inherited from <tt>Hexx::Service</tt>.
95
- # @raise [NotImplementedError] if a child class hasn't redefined the method.
93
+ # @note The method does nothing and should be reloaded by a specific
94
+ # service class.
96
95
  def run
97
- fail NotImplementedError.new "#{ self.class.name }#run not implemented."
98
96
  end
99
97
 
100
98
  # Makes private methods with given prefix public.
@@ -171,14 +169,12 @@ module Hexx
171
169
  # end
172
170
  # end
173
171
  #
174
- # @param [Class] service_class The service class to instantiate and run
175
- # a service object.
172
+ # @param [Hexx::Service] service_class The class for the service object to
173
+ # run.
176
174
  # @param [Symbol] prefix The prefix for callbacks to receive the service
177
175
  # object's notifications.
178
176
  # @param [Hash] options ({}) The options for the service object initializer.
179
- # @raise [TypeError] when the service_class is not a <tt>Hexx::Service</tt>.
180
177
  def run_service(service_class, prefix, options = {})
181
- fail TypeError unless service_class.ancestors.include? Hexx::Service
182
178
  service = service_class.new(options)
183
179
  service.subscribe with_callbacks, prefix: prefix
184
180
  service.run
@@ -2,5 +2,5 @@
2
2
  module Hexx
3
3
 
4
4
  # Current release.
5
- VERSION = "5.2.0"
5
+ VERSION = "5.3.0"
6
6
  end
@@ -85,8 +85,8 @@ module Hexx
85
85
 
86
86
  describe "#run" do
87
87
 
88
- it "fails with NotImplementedError" do
89
- expect { subject.run }.to raise_error { NotImplementedError }
88
+ it "is defined" do
89
+ expect(subject).to respond_to :run
90
90
  end
91
91
  end
92
92
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexx
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 5.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kozin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-22 00:00:00.000000000 Z
11
+ date: 2014-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel