italian-ruby 1.2.5 → 1.2.7

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
  SHA256:
3
- metadata.gz: 43bae6de3f2564f8154ec1f312f1e0e1d5b23ba1c1bae6dfa7913a0b75e3d235
4
- data.tar.gz: bb395a89ddbfbde39ea917e73f792e63372c83b64f30777f555028c2f017f41d
3
+ metadata.gz: fc1ddca741526dbf25e8befc266aeeabf579ddc3b2c4fbb258230f717d5fdc8b
4
+ data.tar.gz: a549443641fbcc4687b346b98e117feed2b8c808c0141b8c7ec6c1076cea8afe
5
5
  SHA512:
6
- metadata.gz: 24e14fe80a17bce4d5da2b67d2530840d28997d8154b8193d18bc7a2addec228cb2ad79cad219328d55f4c26640357814165f1e6aaa20b56f7a305301e7f9b65
7
- data.tar.gz: b4a5510e3b7d90b355ffcfbf972f93b93ef928cd8fb8c4ed274f722fb80d0e464f53ac236627fcded246991ca61fdaff546c2f39ead1fc2477c4b4311d313422
6
+ metadata.gz: 0cb851f9a7c77448ccf4288804336b2eba80c7cf3ec43ce8db57956a2ac3205c1cf02667d70f12e824305ad6b49daac5e9bb6855b32c2971b5ed8ae0eebdd459
7
+ data.tar.gz: b2c0e8b598bf18873e55ba87c5193f25569aecf49418e948420df2f4bd12ff17885daef212044b066eca9f75c4c3ea85814e73d587c2df8486c0ba33dca0bab0
@@ -21,6 +21,7 @@ require_relative "alias/object"
21
21
  require_relative "alias/open_struct"
22
22
  require_relative "alias/proc"
23
23
  require_relative "alias/process"
24
+ require_relative "alias/ractor"
24
25
  require_relative "alias/range"
25
26
  require_relative "alias/rational"
26
27
  require_relative "alias/regexp"
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Ractor
4
+
5
+ class << self
6
+ alias :manda :yield
7
+ alias :ricevi :receive
8
+ end
9
+
10
+ alias :ricevi :take
11
+ alias :attendi :take
12
+ alias :manda :send
13
+
14
+ end
15
+
16
+ Parallelo = Ractor
@@ -35,3 +35,9 @@ end
35
35
  def metodo_mancante(nome, *args, &block)
36
36
  method_missing nome, *args, &block
37
37
  end
38
+
39
+ ##
40
+ # Avvia un blocco di codice in parallelo.
41
+ def in_parallelo(*argomenti, &blocco)
42
+ Ractor.new *argomenti, &blocco
43
+ end
@@ -1,5 +1,5 @@
1
1
  module Italian
2
2
  module Ruby
3
- VERSIONE = "1.2.5"
3
+ VERSIONE = "1.2.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: italian-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Ballardin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-22 00:00:00.000000000 Z
11
+ date: 2021-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -98,6 +98,7 @@ files:
98
98
  - lib/italian/ruby/alias/open_struct.rb
99
99
  - lib/italian/ruby/alias/proc.rb
100
100
  - lib/italian/ruby/alias/process.rb
101
+ - lib/italian/ruby/alias/ractor.rb
101
102
  - lib/italian/ruby/alias/range.rb
102
103
  - lib/italian/ruby/alias/rational.rb
103
104
  - lib/italian/ruby/alias/regexp.rb