Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

Commit

Permalink
Merge pull request #104 from drenalin23/drenalin/ruby-update
Browse files Browse the repository at this point in the history
ruby update and rubocop fixes
  • Loading branch information
drenalin23 authored Mar 15, 2018
2 parents c6a4075 + c4ea27a commit 256fa1c
Show file tree
Hide file tree
Showing 31 changed files with 40 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-2.2.4
ruby-2.3.0
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: ruby
rvm:
- 2.2.4
- 2.3.0

sudo: required
services: docker
Expand Down
18 changes: 9 additions & 9 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ gem 'berkshelf'
gem 'stove'

group :test do
gem 'rake', '~> 11.2.2'
gem 'test-kitchen', '~> 1.10.2'
gem 'foodcritic', '~> 7.0.1'
gem 'rubocop', '~> 0.41.2'
gem 'chefspec', '~> 4.7.0'
gem 'buff-extensions', '~> 1.0.0'
gem 'rake'
gem 'test-kitchen'
gem 'foodcritic'
gem 'rubocop'
gem 'chefspec'
gem 'buff-extensions'
end

group :vagrant do
gem 'kitchen-vagrant', '~> 0.20.0'
gem 'kitchen-vagrant'
end

group :development do
gem 'knife-cookbook-doc', '~> 0.7.0'
gem 'knife-cookbook-doc'
gem 'kitchen-openstack'
gem 'kitchen-transport-rsync'
end

group :integration_docker do
gem 'kitchen-docker', '~> 2.3'
gem 'kitchen-docker'
end
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true

require 'rake'
require 'rake/testtask'
Expand Down
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true

#<> Kibana major version
default['kibana']['version'] = 5
Expand Down
1 change: 1 addition & 0 deletions libraries/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true

class Kibana
# All to find correct url to download kibana
Expand Down
1 change: 1 addition & 0 deletions metadata.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true

name 'kibana'
maintainer 'Peter Donald'
Expand Down
1 change: 1 addition & 0 deletions recipes/_service.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true

template node['kibana']['service']['template_file'] do
cookbook node['kibana']['service']['cookbook']
Expand Down
1 change: 1 addition & 0 deletions recipes/apache.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true

=begin
#<
Expand Down
1 change: 1 addition & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true

=begin
#<
Expand Down
1 change: 1 addition & 0 deletions recipes/kibana3.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true

include_recipe 'kibana'

Expand Down
1 change: 1 addition & 0 deletions recipes/kibana4.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true

include_recipe 'kibana'

Expand Down
1 change: 1 addition & 0 deletions recipes/nginx.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true
include_recipe 'chef_nginx'

template File.join(node['nginx']['dir'], 'sites-available', 'kibana') do
Expand Down
1 change: 1 addition & 0 deletions spec/support/matchers.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
# matcher for install_ark
def install_ark(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:ark, :install, resource_name)
Expand Down
1 change: 1 addition & 0 deletions test/integration/kibana3_apache/serverspec/default_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true
require 'spec_helper'

describe 'kibana' do
Expand Down
1 change: 1 addition & 0 deletions test/integration/kibana3_apache/serverspec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true
require 'serverspec'

# Required by serverspec
Expand Down
1 change: 1 addition & 0 deletions test/integration/kibana3_nginx/serverspec/default_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true
require 'spec_helper'

describe 'kibana' do
Expand Down
1 change: 1 addition & 0 deletions test/integration/kibana3_nginx/serverspec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true
require 'serverspec'

# Required by serverspec
Expand Down
1 change: 1 addition & 0 deletions test/integration/kibana3_source/serverspec/default_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true
require 'spec_helper'

describe 'kibana' do
Expand Down
1 change: 1 addition & 0 deletions test/integration/kibana3_source/serverspec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true
require 'serverspec'

# Required by serverspec
Expand Down
1 change: 1 addition & 0 deletions test/integration/kibana4_apache/serverspec/default_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true
require 'spec_helper'

describe 'kibana' do
Expand Down
1 change: 1 addition & 0 deletions test/integration/kibana4_apache/serverspec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true
require 'serverspec'

# Required by serverspec
Expand Down
1 change: 1 addition & 0 deletions test/integration/kibana4_nginx/serverspec/default_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true
require 'spec_helper'

describe 'kibana' do
Expand Down
1 change: 1 addition & 0 deletions test/integration/kibana4_nginx/serverspec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Encoding: utf-8
# frozen_string_literal: true
require 'serverspec'

# Required by serverspec
Expand Down
1 change: 1 addition & 0 deletions test/unit/spec/_service_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'chefspec'
require_relative 'spec_helper'

Expand Down
1 change: 1 addition & 0 deletions test/unit/spec/apache_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'chefspec'
require_relative 'spec_helper'

Expand Down
1 change: 1 addition & 0 deletions test/unit/spec/default_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'chefspec'
require_relative 'spec_helper'

Expand Down
1 change: 1 addition & 0 deletions test/unit/spec/kibana3_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'chefspec'
require_relative 'spec_helper'

Expand Down
1 change: 1 addition & 0 deletions test/unit/spec/kibana4_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'chefspec'
require_relative 'spec_helper'

Expand Down
1 change: 1 addition & 0 deletions test/unit/spec/nginx_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'chefspec'
require_relative 'spec_helper'

Expand Down
4 changes: 2 additions & 2 deletions test/unit/spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# encoding: UTF-8
# frozen_string_literal: true
# -*- mode: ruby -*-
# vi: set ft=ruby :

Expand Down Expand Up @@ -27,7 +28,6 @@
version: '7.0'
}.freeze

def stub_resources
end
def stub_resources; end

at_exit { ChefSpec::Coverage.report! }

0 comments on commit 256fa1c

Please sign in to comment.