nsisam 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
data/lib/nsisam/client.rb CHANGED
@@ -97,9 +97,9 @@ module NSISam
97
97
  execute_request(request)
98
98
  end
99
99
 
100
- # Configure the default values for NSISam::Client objects
100
+ # Pre-configure the NSISam module with default params for the NSISam::Client
101
101
  #
102
- # @param [Block]
102
+ # @yield a Configuration object (see {NSISam::Client::Configuration})
103
103
  #
104
104
  # @example
105
105
  # NSISam::Client.configure do
@@ -2,26 +2,53 @@ module NSISam
2
2
  class Client
3
3
  class Configuration
4
4
  class << self
5
+ # Set the default {NSISam::Client} user
6
+ #
7
+ #
8
+ # @param [String] user to set
9
+ #
10
+ # @return [String] the user set
5
11
  def user(user = nil)
6
12
  @user = user unless user.nil?
7
13
  @user
8
14
  end
9
15
 
16
+ # Set the default {NSISam::Client} password
17
+ #
18
+ #
19
+ # @param [String] password to set
20
+ #
21
+ # @return [String] the password set
10
22
  def password(password = nil)
11
23
  @password = password unless password.nil?
12
24
  @password
13
25
  end
14
26
 
27
+ # Set the default {NSISam::Client} host
28
+ #
29
+ #
30
+ # @param [String] host to set
31
+ #
32
+ # @return [String] the host set
15
33
  def host(host = nil)
16
34
  @host = host unless host.nil?
17
35
  @host
18
36
  end
19
37
 
38
+ # Set the default {NSISam::Client} port
39
+ #
40
+ #
41
+ # @param [String] port to set
42
+ #
43
+ # @return [String] the port set
20
44
  def port(port = nil)
21
45
  @port = port unless port.nil?
22
46
  @port
23
47
  end
24
48
 
49
+ # See how are the settings
50
+ #
51
+ # @return [Hash] actual settings
25
52
  def settings
26
53
  {user: @user, password: @password, host: @host, port: @port}
27
54
  end
data/nsisam.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "nsisam"
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Douglas Camata"]
12
- s.date = "2012-05-10"
12
+ s.date = "2012-05-16"
13
13
  s.description = "A simple gem to access a SAM node. For more info about SAM\n visit www.github.com/nsi-iff/sam_buildout."
14
14
  s.email = "d.camata@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
  s.homepage = "http://github.com/nsi-iff/nsisam-ruby"
40
40
  s.licenses = ["MIT"]
41
41
  s.require_paths = ["lib"]
42
- s.rubygems_version = "1.8.21"
42
+ s.rubygems_version = "1.8.24"
43
43
  s.summary = "A simple gem to access a SAM service."
44
44
 
45
45
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nsisam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-10 00:00:00.000000000 Z
12
+ date: 2012-05-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  segments:
167
167
  - 0
168
- hash: -1697488961065118787
168
+ hash: 1208612574851701475
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  none: false
171
171
  requirements:
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  requirements: []
176
176
  rubyforge_project:
177
- rubygems_version: 1.8.21
177
+ rubygems_version: 1.8.24
178
178
  signing_key:
179
179
  specification_version: 3
180
180
  summary: A simple gem to access a SAM service.