netsoul 2.3.7 → 2.3.8

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: 1203596e187b2c7970de45c0c22bba3fe6803ed1
4
- data.tar.gz: 3cfa1f8486d3113cbb77b21d7d51d06a2e9a4edf
3
+ metadata.gz: 4da6956f4acf8e95a6182d863b70b77303a34336
4
+ data.tar.gz: b9ddab1e1a4671f079b900d37ad569eee619cc23
5
5
  SHA512:
6
- metadata.gz: 3a6915e5a080c1c8cac147502e20a43937a487c37821473e32d3a71ba31c5cbd7804ae4802e9f233b4b2131736a71744a92e3891242154c7f8cc58bccb8df336
7
- data.tar.gz: 0342eff815316a59b95adfa0b04fb919aa9356e070e8b246fb5a323d6c4805570fda9c6b9a2b1bc80cfd3e2146fe28a77ecc72a6e10406bac91d8162ead7aa7d
6
+ metadata.gz: 20de678da3bae0ea2c8d25ab331d92196d5be88051d0c3a22873e323c02ad9dfc7014dbbffbf63fd482cbe3fa77ccba6b9791ff939fe682f124b236b6ff0e531
7
+ data.tar.gz: d20a995bc0be5a1e3fa3f7c432328949acd806ae584bffe91e7d5895175e8a07f51db4d4b51749882dba71121a7e06be93b6d37c55a653a71723e5988a131211
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
- source 'https://rubygems.org'
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'.freeze
2
4
 
3
5
  # Specify your gem's dependencies in netsoul.gemspec
4
6
  gemspec
data/Rakefile CHANGED
@@ -1,18 +1,20 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
  require 'rspec/core/rake_task'
3
5
  require 'yard'
4
6
 
5
- RSpec::Core::RakeTask.new('spec')
7
+ RSpec::Core::RakeTask.new('spec'.freeze)
6
8
 
7
9
  task default: :spec
8
10
 
9
11
  require 'rake/extensiontask'
10
- Rake::ExtensionTask.new 'netsoul_kerberos' do |ext|
11
- ext.lib_dir = 'lib'
12
+ Rake::ExtensionTask.new 'netsoul_kerberos'.freeze do |ext|
13
+ ext.lib_dir = 'lib'.freeze
12
14
  end
13
15
 
14
- desc 'Generate documentation'
16
+ desc 'Generate documentation'.freeze
15
17
  YARD::Rake::YardocTask.new do |t|
16
- t.files = %w(lib/**/*.rb - LICENSE.txt)
17
- t.options = %w(--main README.md --no-private --protected)
18
+ t.files = %w(lib/**/*.rb - LICENSE.txt).map(&:freeze).freeze
19
+ t.options = %w(--main README.md --no-private --protected).map(&:freeze).freeze
18
20
  end
data/bin/netsoul-ruby CHANGED
@@ -1,13 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
- # encoding: utf-8
3
2
  # frozen_string_literal: true
4
3
 
5
- lib = File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
4
+ lib = File.join(File.dirname(File.realpath(__FILE__)), '..'.freeze, 'lib'.freeze)
6
5
  $LOAD_PATH.unshift File.expand_path(lib)
7
6
 
8
7
  require 'netsoul/client'
9
8
 
10
- $stderr.sync = true
11
9
  require 'optparse'
12
10
  require 'yaml'
13
11
 
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'mkmf'
2
4
 
3
- have_library('krb5', 'krb5_init_context')
4
- have_library('gssapi_krb5', 'gss_init_sec_context')
5
- have_header('string.h')
6
- have_header('krb5.h')
7
- have_header('gssapi/gssapi.h')
8
- have_header('gssapi/gssapi_krb5.h')
5
+ have_library('krb5'.freeze, 'krb5_init_context'.freeze)
6
+ have_library('gssapi_krb5'.freeze, 'gss_init_sec_context'.freeze)
7
+ have_header('string.h'.freeze)
8
+ have_header('krb5.h'.freeze)
9
+ have_header('gssapi/gssapi.h'.freeze)
10
+ have_header('gssapi/gssapi_krb5.h'.freeze)
9
11
 
10
- create_makefile('netsoul_kerberos')
12
+ create_makefile('netsoul_kerberos'.freeze)
@@ -11,7 +11,8 @@ module Netsoul
11
11
  end
12
12
 
13
13
  def self.logger
14
- @logger ||= ::Logger.new(STDERR).tap do |logger|
14
+ @logger ||= ::Logger.new(STDOUT).tap do |logger|
15
+ $stdout.sync = true
15
16
  logger.level = Logger::INFO
16
17
  logger.formatter = proc do |severity, datetime, _progname, msg|
17
18
  "#{severity} [#{datetime.strftime('%Y-%m-%d %H:%M:%S.%L'.freeze)}] #{msg}\n"
@@ -27,7 +27,7 @@ module Netsoul
27
27
 
28
28
  @netsoul_kerberos ||= NetsoulKerberos.new
29
29
  rescue LoadError => e
30
- raise Netsoul::Error, "NetsoulKerberos library not found: #{e}.".freeze
30
+ raise Netsoul::Error, "NetsoulKerberos library not found: #{e}."
31
31
  end
32
32
 
33
33
  def _kerberos_auth_klog(config)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Netsoul
4
- VERSION = '2.3.7'.freeze
4
+ VERSION = '2.3.8'.freeze
5
5
  end
data/netsoul.gemspec CHANGED
@@ -1,36 +1,37 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('../lib'.freeze, __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'netsoul/version'
5
6
 
6
7
  Gem::Specification.new do |spec|
7
- spec.name = 'netsoul'
8
+ spec.name = 'netsoul'.freeze
8
9
  spec.version = Netsoul::VERSION
9
- spec.authors = ['Christian Kakesa']
10
- spec.email = ['christian.kakesa@gmail.com']
10
+ spec.authors = ['Christian Kakesa'.freeze]
11
+ spec.email = ['christian.kakesa@gmail.com'.freeze]
11
12
 
12
- spec.summary = 'Netsoul client and library for ruby.'
13
+ spec.summary = 'Netsoul client and library for ruby.'.freeze
13
14
  spec.description = spec.summary
14
- spec.homepage = 'https://github.com/fenicks/netsoul-ruby'
15
- spec.license = 'MIT'
15
+ spec.homepage = 'https://github.com/fenicks/netsoul-ruby'.freeze
16
+ spec.license = 'MIT'.freeze
16
17
 
17
18
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
19
  # delete this section to allow pushing this gem to any host.
19
- raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.' unless spec.respond_to?(:metadata)
20
- spec.metadata['allowed_push_host'] = 'https://rubygems.org'
20
+ raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'.freeze unless spec.respond_to?(:metadata)
21
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'.freeze
21
22
 
22
23
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
- spec.bindir = 'bin'
24
+ spec.bindir = 'bin'.freeze
24
25
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
25
- spec.require_paths = %w(lib ext bin)
26
- spec.extensions = ['ext/netsoul_kerberos/extconf.rb']
26
+ spec.require_paths = %w(lib ext bin).map(&:freeze).freeze
27
+ spec.extensions = ['ext/netsoul_kerberos/extconf.rb'.freeze]
27
28
 
28
- spec.add_development_dependency 'bundler', '~> 1.7', '>= 1.7.0'
29
- spec.add_development_dependency 'rake', '~> 0'
30
- spec.add_development_dependency 'rubocop', '~> 0'
31
- spec.add_development_dependency 'rspec', '~> 3.3'
32
- spec.add_development_dependency 'simplecov', '~> 0'
33
- spec.add_development_dependency 'coveralls', '~> 0'
34
- spec.add_development_dependency 'yard', '~> 0'
35
- spec.add_development_dependency 'rake-compiler', '~> 0.9.5'
29
+ spec.add_development_dependency 'bundler'.freeze, '~> 1.7'.freeze, '>= 1.7.0'.freeze
30
+ spec.add_development_dependency 'rake'.freeze, '~> 0'.freeze
31
+ spec.add_development_dependency 'rubocop'.freeze, '~> 0'.freeze
32
+ spec.add_development_dependency 'rspec'.freeze, '~> 3.3'.freeze
33
+ spec.add_development_dependency 'simplecov'.freeze, '~> 0'.freeze
34
+ spec.add_development_dependency 'coveralls'.freeze, '~> 0'.freeze
35
+ spec.add_development_dependency 'yard'.freeze, '~> 0'.freeze
36
+ spec.add_development_dependency 'rake-compiler'.freeze, '~> 0.9.5'.freeze
36
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netsoul
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.7
4
+ version: 2.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Kakesa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-02 00:00:00.000000000 Z
11
+ date: 2016-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler