gambiarra 0.0.5 → 0.0.6

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: 3fc50dc84d4b5d8babd5968c7a4ce8b630470289740d0df2f48fb6d3b2b287df
4
- data.tar.gz: 045a445151e7428c6c58d76f7cecb26151627426de7a7f74d7db0820c803ba31
3
+ metadata.gz: 8b389361e84b99289a101597e0c79647bf76c8f793f91ba6406d98c475f39138
4
+ data.tar.gz: 68cde88ed683287bd3719a6055d6b36703d42e99d8117c5d3ab6694e06e3d9cc
5
5
  SHA512:
6
- metadata.gz: 2343c9c06941c640801d44a92b894f919ee73807224087547086d03812b89ece0383192631a72360b623fb54ef5a5b3f2aef695ddb2b715e941897bded24f37b
7
- data.tar.gz: dd53d53cf7c825320c8096740d77b73cd3f72f5c9b1a89ae4ec8568878e0db42324db3f4fc269030b916fc50d0a9d05851a24b31c6fa01c4de4356bdac06c735
6
+ metadata.gz: 8bb17d8ac829cf3a07e297185860caa90f14fb4f5e7ae0d9e6cd06aa661c3623cc10c23c102b88738feb99573758dd25aa91f0c75c5ec463545ac677a4bca717
7
+ data.tar.gz: 3389a535ed34e8d63671e09ab1658e3638553cc179cdfc04a65fe998d3fcb4ced76c3a2ecfb61e323ef8e84c561f251d453e987737deb0ee96a0625d8135527d
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ .DS_Store
1
2
  /.bundle/
2
3
  /.yardoc
3
4
  /_yardoc/
data/lib/gambiarra/app.rb CHANGED
@@ -22,8 +22,8 @@ module Gambiarra
22
22
  end
23
23
  end
24
24
 
25
- response = {path: (path || ''), **params}
26
- loop { response = app.flow(**response) }
25
+ responses = [{ path: (path || ''), **params }]
26
+ loop { responses << (app.flow(**responses.last) || {}) }
27
27
  end
28
28
 
29
29
  def self.app
@@ -31,7 +31,6 @@ module Gambiarra
31
31
  end
32
32
 
33
33
  def initialize(debugging: false)
34
- debugging = true
35
34
  setup if respond_to?(:setup)
36
35
  @debugging = debugging
37
36
  @router = Router.new
@@ -71,7 +70,7 @@ module Gambiarra
71
70
  self.class.to_s.split('::').first.underscore.gsub('_', '-')
72
71
  end
73
72
 
74
- def flow(response)
73
+ def flow(**response)
75
74
  raise 'Response is empty' unless response
76
75
  output(response)
77
76
  response.delete(:content)
@@ -1,3 +1,3 @@
1
1
  module Gambiarra
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gambiarra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Maciel
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-06 00:00:00.000000000 Z
11
+ date: 2023-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,7 +94,7 @@ dependencies:
94
94
  - - ">"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '5.2'
97
- description:
97
+ description:
98
98
  email:
99
99
  - pedrozath@gmail.com
100
100
  executables:
@@ -102,7 +102,6 @@ executables:
102
102
  extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
- - ".DS_Store"
106
105
  - ".gitignore"
107
106
  - ".rspec"
108
107
  - ".travis.yml"
@@ -136,7 +135,7 @@ homepage: https://github.com/pedrozath/gambiarra
136
135
  licenses:
137
136
  - MIT
138
137
  metadata: {}
139
- post_install_message:
138
+ post_install_message:
140
139
  rdoc_options: []
141
140
  require_paths:
142
141
  - lib
@@ -151,8 +150,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
150
  - !ruby/object:Gem::Version
152
151
  version: '0'
153
152
  requirements: []
154
- rubygems_version: 3.1.2
155
- signing_key:
153
+ rubygems_version: 3.2.15
154
+ signing_key:
156
155
  specification_version: 4
157
156
  summary: An intuitive framework for CLI applications
158
157
  test_files: []
data/.DS_Store DELETED
Binary file