samsung_wam_api 0.1.2 → 0.2.2

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
  SHA256:
3
- metadata.gz: 307544974137a94b2ed8954f085853a8d0a722e373718bd7895a6fde38fde48b
4
- data.tar.gz: e2c3b96a6e5746afb0d9be7c203f323ae0cc86a33c3d04d30667b9737d4dc005
3
+ metadata.gz: 0bef250d23ca657562cd0d274ea449f26c870fb066421212acb6223217fe7f5d
4
+ data.tar.gz: 22a480c7412a98abcf696ca931573fd3dfbad3c3d2d3c69dd2b80fb676684ce4
5
5
  SHA512:
6
- metadata.gz: 0c8e1ed87bc53a3b9a16b33ee2572053db8de3e32ba84e2be1d9588b403b484f0471a24bffab35f01977772aa976f38678440a87d8456141d7f074c320dd7fd5
7
- data.tar.gz: e070d44e95fd5752498f2830bef66145d27fe5aa2986d3dbcaf9e0aae834900f7be094cb5be85f9b82850d7c5970c4f639bd223f7f1b7c69122008258accfb77
6
+ metadata.gz: b324e8f1f5d12a57eb48a3eda8cfff43e6bc733d8a4e4d665b5123d87cacdc2adc4ca225c552808ef7d82658ec8a95f56e855cd03e60e5293f156a59a77b9898
7
+ data.tar.gz: a0bdec1f3ae7ab58225459f399f3dcf9089d8ccd77cae5e30d44e9831ee4b975b0cc19627382acfebf4f4837ae87ee5d92b932ea22ecb6bb36aeedd391121b12
@@ -1,6 +1,6 @@
1
1
  require 'uri'
2
2
  require 'net/http'
3
- require 'active_support/core_ext/hash/conversions'
3
+ require 'active_support'
4
4
  require 'logger'
5
5
  require 'timeout'
6
6
 
@@ -113,7 +113,7 @@ module SamsungWamApi
113
113
 
114
114
  def command!(cmd, endpoint = nil)
115
115
  endpoint ||= @endpoint
116
- query = "http://#{@ip}:#{@port}/#{endpoint}?cmd=#{URI.encode(cmd)}"
116
+ query = "http://#{@ip}:#{@port}/#{endpoint}?cmd=#{URI::Parser.new.escape(cmd)}"
117
117
  @logger.debug { "Firing query '#{URI.decode(query)}'" }
118
118
 
119
119
  # if we e.g. request to power on device which is already on, we never receive a response, therefore we use configurable timeout
@@ -1,3 +1,3 @@
1
1
  module SamsungWamApi
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -29,4 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency "pry"
30
30
 
31
31
  spec.add_dependency 'activesupport'
32
+ spec.add_dependency 'libxml-ruby'
32
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: samsung_wam_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marek Hulan
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-06 00:00:00.000000000 Z
11
+ date: 2023-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: libxml-ruby
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  description: Gem provides Ruby Samsung WAM API wrapper
112
126
  email:
113
127
  - mhulan@redhat.com
@@ -143,7 +157,7 @@ homepage: https://github.com/ares/samsung_wam_api
143
157
  licenses:
144
158
  - MIT
145
159
  metadata: {}
146
- post_install_message:
160
+ post_install_message:
147
161
  rdoc_options: []
148
162
  require_paths:
149
163
  - lib
@@ -158,8 +172,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
172
  - !ruby/object:Gem::Version
159
173
  version: '0'
160
174
  requirements: []
161
- rubygems_version: 3.0.3
162
- signing_key:
175
+ rubygems_version: 3.3.15
176
+ signing_key:
163
177
  specification_version: 4
164
178
  summary: Gem provides Ruby Samsung WAM API wrapper
165
179
  test_files: []