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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b50953a40c2de256ed5b551153fe19e96134158
4
- data.tar.gz: 39e9a84b3ae045c80c43b97dd8595febc446eeae
3
+ metadata.gz: b87692d45379fc2a9e6c9860148b34a413352431
4
+ data.tar.gz: 73afdd6346a56fe3f3ae34604e4da80dc4957634
5
5
  SHA512:
6
- metadata.gz: ab7cb66bf16222d34d4e4e046eb9085b32e93e1e41175596e0b2429a8c56689f8945e1518357fd30c409836bc19f0215f0db731b36dcba9743710b6e27879fef
7
- data.tar.gz: bd5c36253c07c193dfce171aeacabb57aa54e038b30cdf6f442ea5ee142efc9fa1afc6d2d96d7b95bba8e8d20efdbf90b34cfbc8166b2a38190672c1b85a0d96
6
+ metadata.gz: d50ae162ac4d8af6fe5fe24bd40f9f4a8eb7fc53d63715faa6254352f050b80087756072dcaae327ef51ecee0a6ec93268add0d386c45f5321e473c439e175a7
7
+ data.tar.gz: 235eee739d3208da3d0d96131813ad9bd7f99a73ba373fe6d733d4e6549a8280565cbb76b5995161edabbd71156837b747fe2ed743c6c79dc5e22253bc4f2cc0
@@ -1 +1 @@
1
- version: 3.4.0
1
+ version: 3.6.0
@@ -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
- @call_params[name.to_sym] = @call_params[:value]
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.0
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: 2019-08-22 00:00:00.000000000 Z
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.1.0
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.1.0
41
+ version: 3.2.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: swagger_aem_osgi
44
44
  requirement: !ruby/object:Gem::Requirement