raki 0.1.1 → 0.1.3

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: 44d1c46c2049a9ce58482fd1142eeb6bb7918389231e86eef6fea8ad8ec00653
4
- data.tar.gz: 36f8ebea936c45decc39f7d93493132c029be5c9320498491e719ead1b2bc5c7
3
+ metadata.gz: 0355da5fc7a77ca9cfb1396c346ca771eb63a66911ba5aa10c240d794190809d
4
+ data.tar.gz: 2f2d4257ee535b9eb233c357a0536a071574fb62d83a8ab39cfec112db0b5baa
5
5
  SHA512:
6
- metadata.gz: eda887ab0b6504e8879a3f771e649cf3490f69240a384dedba908092d0fdb2043f80db7a7f7bc99421e177e0acb466b49810643cc2055b5dd836068a5d01c87c
7
- data.tar.gz: f8c2e6802a753cf4f52d5264395679221cffb41746a55953f1db3a3c000eadea7a7f52d6607a6aa581ac03774d5da16d44b18e493d270af0ad6ec7e40bad6dfc
6
+ metadata.gz: cb268de1132f55a2aa6a979af9dbd81890f959a99f19c177fc6b418a218bb715bfac3b40c934b673490d199a080ff5b707dfca09df836cc9e96593a7798d6f96
7
+ data.tar.gz: 714584442582d65a81d9d8652b81e39a8f8c1ed8d08f1fdfea9c4de69bb46d4291f06321dc5329007c8606595b25ed5b2fb08128a470e3e924d6b956391fed84
@@ -1,6 +1,4 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2020-2023 Dittmar Krall (www.matiq.com)
1
+ Copyright (c) 2020-2025 Dittmar Krall (www.matiq.com)
4
2
 
5
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
4
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Raki
2
- [![Gem Version](https://badge.fury.io/rb/raki.png)](http://badge.fury.io/rb/raki)
2
+
3
+ [![Gem Version](https://img.shields.io/gem/v/raki?color=168AFE&logo=rubygems&logoColor=FE1616)](https://rubygems.org/gems/raki)
4
+ [![Downloads](https://img.shields.io/gem/dt/raki?color=168AFE&logo=rubygems&logoColor=FE1616)](https://rubygems.org/gems/raki)
5
+ [![GitHub Build](https://img.shields.io/github/actions/workflow/status/matique/raki/rake.yml?logo=github)](https://github.com/matique/raki/actions/workflows/rake.yml)
6
+ [![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/standardrb/standard)
7
+ [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://choosealicense.com/licenses/mit/)
3
8
 
4
9
  The Raki specification enables a kind of piping objects.
5
10
 
@@ -142,7 +147,5 @@ Frozen arguments may avoid some strange behaviour.
142
147
 
143
148
  Heavily inspired by Rack.
144
149
 
145
- Copyright (c) 2020-2023 Dittmar Krall (www.matiq.com),
146
- released under the MIT license:
147
-
148
- * https://opensource.org/licenses/MIT
150
+ Copyright (c) 2020-2025 Dittmar Krall (www.matiq.com),
151
+ 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/idem.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Rreturns "env" (doing nothing)
3
+ # Returns "env" (doing nothing)
4
4
  module Raki
5
5
  class Idem < Raki::Middleware
6
6
  def call(env)
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Rreturns "env" (doing nothing)
4
+ module Raki
5
+ class Idem < Raki::Middleware
6
+ def call(env)
7
+ env
8
+ end
9
+ end
10
+ end
data/lib/raki/version.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  module Raki
2
- VERSION = "0.1.1" # 2023-04-26
2
+ VERSION = "0.1.3" # 2025-06-22
3
+ # VERSION = "0.1.2" # 2023-12-13
4
+ # VERSION = "0.1.1" # 2023-04-26
3
5
  # VERSION = "0.1.0" # 2021-11-03
4
6
  # VERSION = "0.0.5" # 2021-07-01
5
7
  # VERSION = '0.0.4' # 2021-06-25
@@ -1,6 +1,7 @@
1
1
  module Raki
2
- VERSION = "0.1.1" # 2023-04-26
3
- # VERSION = "0.1.0" # 2021-11-03
2
+ VERSION = "0.1.2" # 2023-12-13
3
+ # VERSION = "0.1.1" # 2023-04-26
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
6
7
  # VERSION = '0.0.3' # 2020-07-14
metadata CHANGED
@@ -1,14 +1,13 @@
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-04-26 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rake
@@ -63,12 +62,13 @@ executables: []
63
62
  extensions: []
64
63
  extra_rdoc_files: []
65
64
  files:
66
- - LICENSE
65
+ - MIT-LICENSE
67
66
  - README.md
68
67
  - lib/raki.rb
69
68
  - lib/raki/builder.rb
70
69
  - lib/raki/chain.rb
71
70
  - lib/raki/idem.rb
71
+ - lib/raki/idem.rb.bak
72
72
  - lib/raki/lint.rb
73
73
  - lib/raki/merge.rb
74
74
  - lib/raki/middleware.rb
@@ -76,28 +76,26 @@ files:
76
76
  - lib/raki/slice.rb
77
77
  - lib/raki/version.rb
78
78
  - lib/raki/version.rb.bak
79
- homepage: https://matiq.com
79
+ homepage: https://github.com/matique/raki
80
80
  licenses:
81
81
  - MIT
82
82
  metadata:
83
83
  source_code_uri: https://github.com/matique/raki
84
- post_install_message:
85
84
  rdoc_options: []
86
85
  require_paths:
87
86
  - lib
88
87
  required_ruby_version: !ruby/object:Gem::Requirement
89
88
  requirements:
90
- - - ">="
89
+ - - "~>"
91
90
  - !ruby/object:Gem::Version
92
- version: '0'
91
+ version: '3'
93
92
  required_rubygems_version: !ruby/object:Gem::Requirement
94
93
  requirements:
95
94
  - - ">="
96
95
  - !ruby/object:Gem::Version
97
96
  version: '0'
98
97
  requirements: []
99
- rubygems_version: 3.4.10
100
- signing_key:
98
+ rubygems_version: 3.6.7
101
99
  specification_version: 4
102
100
  summary: Kind of chaining objects
103
101
  test_files: []