winrm 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3780e46071bdca109e70b7f8b412d493274ed98d
4
+ data.tar.gz: 3cbcdaea711ae74ac1587d275303bb0dfb1d5daa
5
+ SHA512:
6
+ metadata.gz: 0bede7bc1ba0642d666739a85b4fb7a225ef55ab272ca1919fe7757759a4f0e9aa0140d04d66529be6a5faf0ed43e229827b5c67e4ec7803f946f03278dc4782
7
+ data.tar.gz: 5a6a51468daa939506f6c858e1cc2e4cc5a9e32ca49670b559dbe2a4b4e0aa0a9b70c06dcd40b0acffb02d2b64ad96107e0e36e353ffce3144c0da72e4354f65
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.2
1
+ 1.3.3
data/bin/rwinrm CHANGED
@@ -32,7 +32,7 @@ def parse_options
32
32
  options = {}
33
33
  fail 'Missing required options' unless ARGV.length == 1
34
34
 
35
- m = /^(?<user>[a-z0-9\.\!\$ _-]+)@{1}(?<host>[a-z0-9\.]+)(?<port>:[0-9]+)?/i.match(ARGV[0])
35
+ m = /^(?<user>[a-z0-9\.\!\$ _-]+)@{1}(?<host>[a-z0-9\.\-]+)(?<port>:[0-9]+)?/i.match(ARGV[0])
36
36
  fail "#{ARGV[0]} is an invalid host" unless m
37
37
  options[:user] = m[:user]
38
38
  options[:endpoint] = "http://#{m[:host]}#{m[:port] || ':5985'}/wsman"
data/changelog.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # WinRM Gem Changelog
2
2
 
3
+ # 1.3.3
4
+ - Fixed issue 133, rwinrm allow hostnames with dashes
5
+ - Use duck typing for powershell script read
6
+
3
7
  # 1.3.2
4
8
  - Add spec.license attribute to gemspec
5
9
  - Bump RSpec dependency 3.0 to 3.2
@@ -312,7 +312,7 @@ module WinRM
312
312
  # @return [Hash] :stdout and :stderr
313
313
  def run_powershell_script(script_file, &block)
314
314
  # if an IO object is passed read it..otherwise assume the contents of the file were passed
315
- script_text = script_file.kind_of?(IO) ? script_file.read : script_file
315
+ script_text = script_file.respond_to?(:read) ? script_file.read : script_file
316
316
  script = WinRM::PowershellScript.new(script_text)
317
317
  run_cmd("powershell -encodedCommand #{script.encoded()}", &block)
318
318
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: winrm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
5
- prerelease:
4
+ version: 1.3.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Dan Wanek
@@ -10,199 +9,176 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2015-04-01 00:00:00.000000000 Z
12
+ date: 2015-05-01 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: gssapi
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ~>
18
+ - - "~>"
21
19
  - !ruby/object:Gem::Version
22
20
  version: '1.2'
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ~>
25
+ - - "~>"
29
26
  - !ruby/object:Gem::Version
30
27
  version: '1.2'
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: httpclient
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ~>
32
+ - - "~>"
37
33
  - !ruby/object:Gem::Version
38
34
  version: '2.2'
39
- - - ! '>='
35
+ - - ">="
40
36
  - !ruby/object:Gem::Version
41
37
  version: 2.2.0.2
42
38
  type: :runtime
43
39
  prerelease: false
44
40
  version_requirements: !ruby/object:Gem::Requirement
45
- none: false
46
41
  requirements:
47
- - - ~>
42
+ - - "~>"
48
43
  - !ruby/object:Gem::Version
49
44
  version: '2.2'
50
- - - ! '>='
45
+ - - ">="
51
46
  - !ruby/object:Gem::Version
52
47
  version: 2.2.0.2
53
48
  - !ruby/object:Gem::Dependency
54
49
  name: rubyntlm
55
50
  requirement: !ruby/object:Gem::Requirement
56
- none: false
57
51
  requirements:
58
- - - ~>
52
+ - - "~>"
59
53
  - !ruby/object:Gem::Version
60
54
  version: 0.4.0
61
55
  type: :runtime
62
56
  prerelease: false
63
57
  version_requirements: !ruby/object:Gem::Requirement
64
- none: false
65
58
  requirements:
66
- - - ~>
59
+ - - "~>"
67
60
  - !ruby/object:Gem::Version
68
61
  version: 0.4.0
69
62
  - !ruby/object:Gem::Dependency
70
63
  name: uuidtools
71
64
  requirement: !ruby/object:Gem::Requirement
72
- none: false
73
65
  requirements:
74
- - - ~>
66
+ - - "~>"
75
67
  - !ruby/object:Gem::Version
76
68
  version: 2.1.2
77
69
  type: :runtime
78
70
  prerelease: false
79
71
  version_requirements: !ruby/object:Gem::Requirement
80
- none: false
81
72
  requirements:
82
- - - ~>
73
+ - - "~>"
83
74
  - !ruby/object:Gem::Version
84
75
  version: 2.1.2
85
76
  - !ruby/object:Gem::Dependency
86
77
  name: logging
87
78
  requirement: !ruby/object:Gem::Requirement
88
- none: false
89
79
  requirements:
90
- - - ~>
80
+ - - "~>"
91
81
  - !ruby/object:Gem::Version
92
82
  version: '1.6'
93
- - - ! '>='
83
+ - - ">="
94
84
  - !ruby/object:Gem::Version
95
85
  version: 1.6.1
96
86
  type: :runtime
97
87
  prerelease: false
98
88
  version_requirements: !ruby/object:Gem::Requirement
99
- none: false
100
89
  requirements:
101
- - - ~>
90
+ - - "~>"
102
91
  - !ruby/object:Gem::Version
103
92
  version: '1.6'
104
- - - ! '>='
93
+ - - ">="
105
94
  - !ruby/object:Gem::Version
106
95
  version: 1.6.1
107
96
  - !ruby/object:Gem::Dependency
108
97
  name: nori
109
98
  requirement: !ruby/object:Gem::Requirement
110
- none: false
111
99
  requirements:
112
- - - ~>
100
+ - - "~>"
113
101
  - !ruby/object:Gem::Version
114
102
  version: '2.0'
115
103
  type: :runtime
116
104
  prerelease: false
117
105
  version_requirements: !ruby/object:Gem::Requirement
118
- none: false
119
106
  requirements:
120
- - - ~>
107
+ - - "~>"
121
108
  - !ruby/object:Gem::Version
122
109
  version: '2.0'
123
110
  - !ruby/object:Gem::Dependency
124
111
  name: gyoku
125
112
  requirement: !ruby/object:Gem::Requirement
126
- none: false
127
113
  requirements:
128
- - - ~>
114
+ - - "~>"
129
115
  - !ruby/object:Gem::Version
130
116
  version: '1.0'
131
117
  type: :runtime
132
118
  prerelease: false
133
119
  version_requirements: !ruby/object:Gem::Requirement
134
- none: false
135
120
  requirements:
136
- - - ~>
121
+ - - "~>"
137
122
  - !ruby/object:Gem::Version
138
123
  version: '1.0'
139
124
  - !ruby/object:Gem::Dependency
140
125
  name: builder
141
126
  requirement: !ruby/object:Gem::Requirement
142
- none: false
143
127
  requirements:
144
- - - ! '>='
128
+ - - ">="
145
129
  - !ruby/object:Gem::Version
146
130
  version: 2.1.2
147
131
  type: :runtime
148
132
  prerelease: false
149
133
  version_requirements: !ruby/object:Gem::Requirement
150
- none: false
151
134
  requirements:
152
- - - ! '>='
135
+ - - ">="
153
136
  - !ruby/object:Gem::Version
154
137
  version: 2.1.2
155
138
  - !ruby/object:Gem::Dependency
156
139
  name: rspec
157
140
  requirement: !ruby/object:Gem::Requirement
158
- none: false
159
141
  requirements:
160
- - - ~>
142
+ - - "~>"
161
143
  - !ruby/object:Gem::Version
162
144
  version: 3.2.0
163
145
  type: :development
164
146
  prerelease: false
165
147
  version_requirements: !ruby/object:Gem::Requirement
166
- none: false
167
148
  requirements:
168
- - - ~>
149
+ - - "~>"
169
150
  - !ruby/object:Gem::Version
170
151
  version: 3.2.0
171
152
  - !ruby/object:Gem::Dependency
172
153
  name: rake
173
154
  requirement: !ruby/object:Gem::Requirement
174
- none: false
175
155
  requirements:
176
- - - ~>
156
+ - - "~>"
177
157
  - !ruby/object:Gem::Version
178
158
  version: 10.3.2
179
159
  type: :development
180
160
  prerelease: false
181
161
  version_requirements: !ruby/object:Gem::Requirement
182
- none: false
183
162
  requirements:
184
- - - ~>
163
+ - - "~>"
185
164
  - !ruby/object:Gem::Version
186
165
  version: 10.3.2
187
166
  - !ruby/object:Gem::Dependency
188
167
  name: rubocop
189
168
  requirement: !ruby/object:Gem::Requirement
190
- none: false
191
169
  requirements:
192
- - - ~>
170
+ - - "~>"
193
171
  - !ruby/object:Gem::Version
194
172
  version: 0.28.0
195
173
  type: :development
196
174
  prerelease: false
197
175
  version_requirements: !ruby/object:Gem::Requirement
198
- none: false
199
176
  requirements:
200
- - - ~>
177
+ - - "~>"
201
178
  - !ruby/object:Gem::Version
202
179
  version: 0.28.0
203
- description: ! ' Ruby library for Windows Remote Management
204
-
205
- '
180
+ description: |2
181
+ Ruby library for Windows Remote Management
206
182
  email:
207
183
  - dan.wanek@gmail.com
208
184
  - paul@themortonsonline.com
@@ -213,10 +189,10 @@ extra_rdoc_files:
213
189
  - README.md
214
190
  - LICENSE
215
191
  files:
216
- - .gitignore
217
- - .rspec
218
- - .rubocop.yml
219
- - .travis.yml
192
+ - ".gitignore"
193
+ - ".rspec"
194
+ - ".rubocop.yml"
195
+ - ".travis.yml"
220
196
  - Gemfile
221
197
  - LICENSE
222
198
  - README.md
@@ -257,33 +233,29 @@ files:
257
233
  homepage: https://github.com/WinRb/WinRM
258
234
  licenses:
259
235
  - Apache-2.0
236
+ metadata: {}
260
237
  post_install_message:
261
238
  rdoc_options:
262
- - -x
239
+ - "-x"
263
240
  - test/
264
- - -x
241
+ - "-x"
265
242
  - examples/
266
243
  require_paths:
267
244
  - lib
268
245
  required_ruby_version: !ruby/object:Gem::Requirement
269
- none: false
270
246
  requirements:
271
- - - ! '>='
247
+ - - ">="
272
248
  - !ruby/object:Gem::Version
273
249
  version: 1.9.0
274
250
  required_rubygems_version: !ruby/object:Gem::Requirement
275
- none: false
276
251
  requirements:
277
- - - ! '>='
252
+ - - ">="
278
253
  - !ruby/object:Gem::Version
279
254
  version: '0'
280
- segments:
281
- - 0
282
- hash: -3678902895359859195
283
255
  requirements: []
284
256
  rubyforge_project:
285
- rubygems_version: 1.8.23.2
257
+ rubygems_version: 2.2.2
286
258
  signing_key:
287
- specification_version: 3
259
+ specification_version: 4
288
260
  summary: Ruby library for Windows Remote Management
289
261
  test_files: []