deadly_serious 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05f3250fb16090279dad66ecabbab4990e170873
4
- data.tar.gz: 5bb83f5cb6f050f7f2e008242434e4f556964e09
3
+ metadata.gz: 14b30dd2b9c700069b1cb49a83eeadab6efd4761
4
+ data.tar.gz: d94127b03addf540ca1b4f9f5b85243b19ba6793
5
5
  SHA512:
6
- metadata.gz: 03bda6d7a58b0c890dbe1b98ace3b8b338ff788725cbd02289797912bb7cc5507ea5331bf447cce4614b9ff058b046b228ad8cd2ce28e3a76b68adb8fad22ca8
7
- data.tar.gz: 170776a0f3d4f8fc593b24513027e0341d950590e67ceb945502f7467fa0be6e16f3174c29193225eca82436d5df3f148824f05214c3e60eec3bbbd9f4adc615
6
+ metadata.gz: a8bfa5b556efc9a1192b169030e95ea71629dc12ab3d121d721f7d34b90f1c68edf0edd2cbd6f39ada12da1017587617dbd7dc74f67c481727d042ed17841e01
7
+ data.tar.gz: 4b0430177d779332f6a16cd9c3a33c7d3dac6ac332e3d6123be87e973417bc599b93cac1a6c88c25196a5f50ef32bd57459f737081ba65a9d695ba0383e2f4ba
@@ -5,6 +5,10 @@ require 'deadly_serious/engine/base_process'
5
5
  require 'deadly_serious/engine/push_pop'
6
6
  require 'deadly_serious/engine/push_pop_send' # Compatibility with 0.2.0
7
7
 
8
+ Dir[File.dirname(__FILE__) + '/deadly_serious/engine/*.rb'].each do |file|
9
+ require File.dirname(file) + '/' + File.basename(file, File.extname(file))
10
+ end
11
+
8
12
  # Loading all predefined processes
9
13
  Dir[File.dirname(__FILE__) + '/deadly_serious/processes/*.rb'].each do |file|
10
14
  require File.dirname(file) + '/' + File.basename(file, File.extname(file))
@@ -1,5 +1,6 @@
1
1
  module DeadlySerious
2
2
  module Engine
3
+ # @deprecated Simplifying, simplifying, simplifying
3
4
  module BaseProcess
4
5
  def run(readers: [], writers:[])
5
6
  reader = readers.first
@@ -2,6 +2,7 @@ require 'deadly_serious/engine/json_io'
2
2
 
3
3
  module DeadlySerious
4
4
  module Engine
5
+ # @deprecated Simplifying, simplifying, simplifying
5
6
  module JsonProcess
6
7
  def run(readers: [], writers: [])
7
8
  json_readers = readers.map { |it| JsonIo.new(it) }
@@ -4,6 +4,8 @@ module DeadlySerious
4
4
  # Restrict IO class that opens ONLY
5
5
  # when trying to read something.
6
6
  #
7
+ # *This is the object passed to Components.*
8
+ #
7
9
  # Also, used to reopen lost connections.
8
10
  #
9
11
  # By "restrict", I mean it implements
@@ -13,8 +15,10 @@ module DeadlySerious
13
15
  @channel = channel
14
16
  end
15
17
 
18
+ # @return [String, nil] the name of the file or pipe,
19
+ # nil if it's a socket
16
20
  def filename
17
- return @channel.io_name if @channel.respond_to?(:io_name)
21
+ @channel.io_name if @channel.respond_to?(:io_name)
18
22
  end
19
23
 
20
24
  def gets
@@ -2,6 +2,8 @@ require 'fileutils'
2
2
 
3
3
  module DeadlySerious
4
4
  module Engine
5
+ # Wraps the channels with a {LazyIO} before pass
6
+ # them to the component.
5
7
  module OpenIo
6
8
  def run(*args, readers: [], writers:[])
7
9
  opened_readers = readers.map { |reader| wrap_io(reader) }
@@ -1,5 +1,6 @@
1
1
  module DeadlySerious
2
2
  module Engine
3
+ # @deprecated Simplifying, simplifying, simplifying
3
4
  module PushPop
4
5
  attr_reader :stack
5
6
 
@@ -3,6 +3,7 @@ require 'deadly_serious/engine/base_process'
3
3
 
4
4
  module DeadlySerious
5
5
  module Engine
6
+ # @deprecated Simplifying, simplifying, simplifying
6
7
  module PushPopSend
7
8
  include PushPop
8
9
  include BaseProcess
@@ -2,6 +2,8 @@ require 'deadly_serious/engine/json_io'
2
2
 
3
3
  module DeadlySerious
4
4
  module Engine
5
+
6
+ # @deprecated Simplifying, simplifying, simplifying
5
7
  module SimpleJsonProcess
6
8
 
7
9
  def run(readers: [], writers: [])
@@ -1,3 +1,3 @@
1
1
  module DeadlySerious
2
- VERSION = '0.11.0'
2
+ VERSION = '0.12.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deadly_serious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ronie Uliana
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-04 00:00:00.000000000 Z
11
+ date: 2014-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler