ruby_aem 3.4.0 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/conf/gem.yaml +1 -1
- data/conf/spec.yaml +15 -0
- data/lib/ruby_aem/resources/config_property.rb +5 -9
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b87692d45379fc2a9e6c9860148b34a413352431
|
4
|
+
data.tar.gz: 73afdd6346a56fe3f3ae34604e4da80dc4957634
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d50ae162ac4d8af6fe5fe24bd40f9f4a8eb7fc53d63715faa6254352f050b80087756072dcaae327ef51ecee0a6ec93268add0d386c45f5321e473c439e175a7
|
7
|
+
data.tar.gz: 235eee739d3208da3d0d96131813ad9bd7f99a73ba373fe6d733d4e6549a8280565cbb76b5995161edabbd71156837b747fe2ed743c6c79dc5e22253bc4f2cc0
|
data/conf/gem.yaml
CHANGED
@@ -1 +1 @@
|
|
1
|
-
version: 3.
|
1
|
+
version: 3.6.0
|
data/conf/spec.yaml
CHANGED
@@ -721,6 +721,21 @@ path:
|
|
721
721
|
message: 'Path %{path} deleted'
|
722
722
|
configproperty:
|
723
723
|
actions:
|
724
|
+
create:
|
725
|
+
api: sling
|
726
|
+
operation: postConfigProperty
|
727
|
+
params:
|
728
|
+
required:
|
729
|
+
config_node_name: '%{config_node_name}'
|
730
|
+
optional:
|
731
|
+
- query_params
|
732
|
+
responses:
|
733
|
+
200:
|
734
|
+
handler: simple
|
735
|
+
message: 'Set %{config_node_name} config %{type} property %{name}=%{value}'
|
736
|
+
201:
|
737
|
+
handler: simple
|
738
|
+
message: 'Set %{config_node_name} config %{type} property %{name}=%{value}'
|
724
739
|
createapachefelixjettybasedhttpservice:
|
725
740
|
api: sling
|
726
741
|
operation: postConfigApacheFelixJettyBasedHttpService
|
@@ -29,8 +29,11 @@ module RubyAem
|
|
29
29
|
@call_params = {
|
30
30
|
name: name,
|
31
31
|
type: type,
|
32
|
-
value: value
|
32
|
+
value: value,
|
33
|
+
query_params: {}
|
33
34
|
}
|
35
|
+
@call_params[:query_params][@call_params[:name]] = @call_params[:value]
|
36
|
+
@call_params[:query_params]["#{@call_params[:name]}@TypeHint"] = @call_params[:type]
|
34
37
|
end
|
35
38
|
|
36
39
|
# Create a new config property.
|
@@ -38,15 +41,8 @@ module RubyAem
|
|
38
41
|
# @param config_node_name the node name of a given OSGI config
|
39
42
|
# @return RubyAem::Result
|
40
43
|
def create(config_node_name)
|
41
|
-
name = RubyAem::Swagger.property_to_parameter(@call_params[:name])
|
42
|
-
type_hint_prefix = name.gsub(/^_/, '')
|
43
|
-
|
44
44
|
@call_params[:config_node_name] = config_node_name
|
45
|
-
@
|
46
|
-
@call_params["#{type_hint_prefix}_type_hint".to_sym] = @call_params[:type]
|
47
|
-
|
48
|
-
config_name = Swagger.config_node_name_to_config_name(config_node_name)
|
49
|
-
@client.call(self.class, __callee__.to_s.concat(config_name.downcase.gsub(/\s+/, '')), @call_params)
|
45
|
+
@client.call(self.class, __callee__.to_s, @call_params)
|
50
46
|
end
|
51
47
|
end
|
52
48
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_aem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shine Solutions
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-04-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: retries
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - '='
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 3.
|
34
|
+
version: 3.2.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - '='
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 3.
|
41
|
+
version: 3.2.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: swagger_aem_osgi
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|