webspicy 0.27.3 → 0.27.5

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: ce82bd72f4fe8bb69cde7146e59f55e2164c643af4431b248b7d0ba5728caf82
4
- data.tar.gz: f27a2c3cc31f327105d0a397a03fab97ed05831f122a857b4e168ff2bb901627
3
+ metadata.gz: fa35dbd8b0d6deaef73966158afae4b57f7cbfa3c3743ff0043228aa3bbf7aff
4
+ data.tar.gz: 81d782dd77ef53dc8f6ffd37fb8fc3f503854f9b395db26dae36be51caba4395
5
5
  SHA512:
6
- metadata.gz: 64050f5982d11d77c296ee96bef3d6ef593be7f22dde89534dfc8e4cc793eb21266df450b8d7ec72fa48dbd7e2473334e306ab9f1dec180746140c9ba1cd7011
7
- data.tar.gz: 13d582ea7921160f0dab7df43d73b63782a902c16c15ce11d8e8a46495a7608692c9620c88559e86351b239a2f57fedc718b2811568fc709bae3b272eba1ae2e
6
+ metadata.gz: 21a57f6544eeb33af8a90e5883408011d42044a1fd5bd5e484cd781ec991b67143c8f9f8e3fbd4924c899e1ac5efa07d4ff709b90a3dc89cff5e6af53c004cda
7
+ data.tar.gz: c4c8faa049c7e1dd744197e0721d8c82da788324eb20e4a6fe5ce18688dff73f830ea8ae81f97d8fdf02490a838c79579630b1904fe57b06ffeae3bfb03fbd35
data/README.md CHANGED
@@ -49,6 +49,7 @@ Then execute webspicy help to see the options.
49
49
  ```
50
50
  webspicy --help
51
51
  ```
52
+ Alternatively, you can see the available options [here](./bin/webspicy).
52
53
 
53
54
  ## Using the docker image(s)
54
55
 
@@ -51,6 +51,10 @@ module Webspicy
51
51
  @raw[:tags] ||= []
52
52
  end
53
53
 
54
+ def input
55
+ service.dress_params(params)
56
+ end
57
+
54
58
  def expected
55
59
  @raw[:expected] || {}
56
60
  end
@@ -2,7 +2,7 @@ module Webspicy
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 27
5
- TINY = 3
5
+ TINY = 5
6
6
  end
7
7
  VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::TINY}"
8
8
  end
@@ -32,7 +32,7 @@ module Webspicy
32
32
  end
33
33
 
34
34
  def url_placeholders
35
- url.scan(/\{([a-zA-Z]+(\.[a-zA-Z]+)*)\}/).map{|x| x.first }
35
+ url.scan(/\{([^\}]+)\}/).map{|x| x.first }
36
36
  end
37
37
 
38
38
  def instantiate_url(params)
data/lib/webspicy.rb CHANGED
@@ -108,6 +108,10 @@ module Webspicy
108
108
  else
109
109
  DEFAULT_SYSTEM.system(fio)
110
110
  end
111
+ rescue => ex
112
+ puts ex.message
113
+ puts ex.backtrace.join("\n")
114
+ raise
111
115
  end
112
116
  module_function :schema
113
117
 
@@ -36,13 +36,13 @@ module Webspicy
36
36
  end
37
37
  end
38
38
 
39
- describe 'the proxy itself' do
40
- it 'works as expected' do
41
- get '/users'
42
- expect(last_response.status).to eql(200)
43
- expect(last_response.body).not_to be_empty
44
- end
45
- end
39
+ # describe 'the proxy itself' do
40
+ # it 'works as expected' do
41
+ # get '/users'
42
+ # expect(last_response.status).to eql(200)
43
+ # expect(last_response.body).not_to be_empty
44
+ # end
45
+ # end
46
46
 
47
47
  end
48
48
  end
@@ -18,6 +18,11 @@ module Webspicy
18
18
  expect(r.url_placeholders).to eq(["foo.id", "bar"])
19
19
  end
20
20
 
21
+ it 'supports placeholders in the query params' do
22
+ r = Specification.new(url: "/test?id=eq.{client_id}&name=eq.{name}")
23
+ expect(r.url_placeholders).to eq(["client_id", "name"])
24
+ end
25
+
21
26
  end
22
27
  end
23
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webspicy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.3
4
+ version: 0.27.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernard Lambeau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-28 00:00:00.000000000 Z
11
+ date: 2026-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake