raki 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 44d1c46c2049a9ce58482fd1142eeb6bb7918389231e86eef6fea8ad8ec00653
4
- data.tar.gz: 36f8ebea936c45decc39f7d93493132c029be5c9320498491e719ead1b2bc5c7
3
+ metadata.gz: d20b9e1d32d8e1c3f4bd9ab47716454a4920bb7c87b3f89a4925d2fd89b13469
4
+ data.tar.gz: 695322c7f43ea2a09bbb964d27c882ac232a797569dcc3695d0257f4dd79fcc3
5
5
  SHA512:
6
- metadata.gz: eda887ab0b6504e8879a3f771e649cf3490f69240a384dedba908092d0fdb2043f80db7a7f7bc99421e177e0acb466b49810643cc2055b5dd836068a5d01c87c
7
- data.tar.gz: f8c2e6802a753cf4f52d5264395679221cffb41746a55953f1db3a3c000eadea7a7f52d6607a6aa581ac03774d5da16d44b18e493d270af0ad6ec7e40bad6dfc
6
+ metadata.gz: a06c2000aa75a4c72463521c497adfae9f91bd348fd655fb9bc189c70bfa493a03b6f3d1209a04f7498b92d0408608d5941bfd389de2b4e05a9527fc4edf8dfa
7
+ data.tar.gz: 7ecdba757cf28b77a98a54a1e5a2000ab161158a81870d7639359a425cb9ab3f9f2ddac51f2af926b50beb39ecebf96d232338ebb34113294cfd84098d867c12
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Raki
2
2
  [![Gem Version](https://badge.fury.io/rb/raki.png)](http://badge.fury.io/rb/raki)
3
+ [![GEM Downloads](https://img.shields.io/gem/dt/raki?color=168AFE&logo=ruby&logoColor=FE1616)](https://rubygems.org/gems/raki)
3
4
 
4
5
  The Raki specification enables a kind of piping objects.
5
6
 
@@ -143,6 +144,4 @@ Frozen arguments may avoid some strange behaviour.
143
144
  Heavily inspired by Rack.
144
145
 
145
146
  Copyright (c) 2020-2023 Dittmar Krall (www.matiq.com),
146
- released under the MIT license:
147
-
148
- * https://opensource.org/licenses/MIT
147
+ released under the [MIT license](https://opensource.org/licenses/MIT).
data/lib/raki/builder.rb CHANGED
@@ -10,10 +10,10 @@ module Raki
10
10
  chain
11
11
  end
12
12
 
13
- def add(middleware, *args, &block)
13
+ def add(middleware, ...)
14
14
  @stack <<
15
15
  if middleware.instance_of?(Class)
16
- middleware.new(*args, &block)
16
+ middleware.new(...)
17
17
  else
18
18
  middleware
19
19
  end
data/lib/raki/chain.rb CHANGED
@@ -8,11 +8,12 @@ module Raki
8
8
  instance_eval(&block) if block
9
9
  end
10
10
 
11
- def add(middleware = nil, *args, &block)
11
+ def add(middleware = nil, *, &block)
12
12
  middleware ||= block
13
13
  @stack <<
14
14
  if middleware.instance_of?(Class)
15
- middleware.new(*args, &block)
15
+ # middleware.new(*args, &block)
16
+ middleware.new(*, &block)
16
17
  else
17
18
  middleware
18
19
  end
data/lib/raki/version.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  module Raki
2
- VERSION = "0.1.1" # 2023-04-26
2
+ VERSION = "0.1.2" # 2023-12-13
3
+ # VERSION = "0.1.1" # 2023-04-26
3
4
  # VERSION = "0.1.0" # 2021-11-03
4
5
  # VERSION = "0.0.5" # 2021-07-01
5
6
  # VERSION = '0.0.4' # 2021-06-25
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-26 00:00:00.000000000 Z
11
+ date: 2023-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -75,8 +75,7 @@ files:
75
75
  - lib/raki/require.rb
76
76
  - lib/raki/slice.rb
77
77
  - lib/raki/version.rb
78
- - lib/raki/version.rb.bak
79
- homepage: https://matiq.com
78
+ homepage: https://github.com/matique/raki
80
79
  licenses:
81
80
  - MIT
82
81
  metadata:
@@ -96,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
95
  - !ruby/object:Gem::Version
97
96
  version: '0'
98
97
  requirements: []
99
- rubygems_version: 3.4.10
98
+ rubygems_version: 3.4.20
100
99
  signing_key:
101
100
  specification_version: 4
102
101
  summary: Kind of chaining objects
@@ -1,8 +0,0 @@
1
- module Raki
2
- VERSION = "0.1.1" # 2023-04-26
3
- # VERSION = "0.1.0" # 2021-11-03
4
- # VERSION = "0.0.5" # 2021-07-01
5
- # VERSION = '0.0.4' # 2021-06-25
6
- # VERSION = '0.0.3' # 2020-07-14
7
- # VERSION = '0.0.2'
8
- end