<commit_before>
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'icinga2/version'

Gem::Specification.new do |s|

  s.name        = 'icinga2'
  s.version     = Icinga2::VERSION
  s.date        = '2017-08-24'
  s.summary     = 'Icinga2 API'
  s.description = 'Ruby Class for the Icinga2 API'
  s.authors     = ['<NAME>']
  s.email       = '<EMAIL>'

  s.files       = Dir[
    'README.md',
    'LICENSE',
    'lib/**/*',
    'doc/*',
    'examples/*.rb'
  ]

  s.homepage    = 'https://github.com/bodsch/ruby-icinga2'
  s.license     = 'LGPL-2.1+'

  begin

    if( RUBY_VERSION >= '2.0' )
      s.required_ruby_version = '~> 2.0'
    elsif( RUBY_VERSION <= '2.1' )
      s.required_ruby_version = '~> 2.1'
    elsif( RUBY_VERSION <= '2.2' )
      s.required_ruby_version = '~> 2.2'
    elsif( RUBY_VERSION <= '2.3' )
      s.required_ruby_version = '~> 2.3'
    end

    if( RUBY_VERSION <= '2.1' )
      s.add_dependency('ruby_dig')
    end

    if( RUBY_VERSION >= '2.3' )
#      puts "Installing openssl because Ruby #{RUBY_VERSION}"

      s.add_dependency('openssl', '~> 2.0')<commit_msg>better version check for ruby_dig<commit_after>
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'icinga2/version'

Gem::Specification.new do |s|

  s.name        = 'icinga2'
  s.version     = Icinga2::VERSION
  s.date        = '2017-08-24'
  s.summary     = 'Icinga2 API'
  s.description = 'Ruby Class for the Icinga2 API'
  s.authors     = ['<NAME>']
  s.email       = '<EMAIL>'

  s.files       = Dir[
    'README.md',
    'LICENSE',
    'lib/**/*',
    'doc/*',
    'examples/*.rb'
  ]

  s.homepage    = 'https://github.com/bodsch/ruby-icinga2'
  s.license     = 'LGPL-2.1+'

  begin

    if( RUBY_VERSION >= '2.0' )
      s.required_ruby_version = '~> 2.0'
    elsif( RUBY_VERSION <= '2.1' )
      s.required_ruby_version = '~> 2.1'
    elsif( RUBY_VERSION <= '2.2' )
      s.required_ruby_version = '~> 2.2'
    elsif( RUBY_VERSION <= '2.3' )
      s.required_ruby_version = '~> 2.3'
    end

    if( RUBY_VERSION < '2.3' )
      s.add_dependency('ruby_dig')
    end

    if( RUBY_VERSION >= '2.3' )
#      puts "Installing openssl because Ruby #{RUBY_VERSION}"

      s.add_dependency('openssl', '~> 2.0')
{'fraction_non_alphanumeric': 0.17606543263021954, 'fraction_numerical': 0.03271631510977185, 'mean_word_length': 2.432791728212703, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 21, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2044724', 'n_tokens_mistral': 1007, 'n_tokens_neox': 932, 'n_words': 165}