Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
AllCops:
Include:
- Rakefile
Exclude:
- bin/**/*

Layout/DotPosition:
EnforcedStyle: leading
Expand Down Expand Up @@ -30,9 +32,5 @@ Naming/FileName:
Style/Documentation:
Enabled: false

Style/FrozenStringLiteralComment:
Exclude:
- lib/flag-icons-rails/version.rb

Style/StringLiterals:
EnforcedStyle: single_quotes
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ rvm:
- 2.3.4
- 2.4.0
- 2.4.1
script:
- bin/rake test
- bin/rubocop -c .rubocop.yml
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ require 'bundler/gem_tasks'
require 'rake/testtask'
require 'rubocop/rake_task'

RuboCop::RakeTask.new
RuboCop::RakeTask.new(:rubocop) do |t|
t.options = ['-c', '.rubocop.yml']
end

Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
Expand Down
17 changes: 17 additions & 0 deletions bin/rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'rake' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("rake", "rake")
17 changes: 17 additions & 0 deletions bin/rubocop
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'rubocop' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("rubocop", "rubocop")
6 changes: 4 additions & 2 deletions lib/flag-icons-rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# frozen_string_literal: true

module FlagIconsRails
VERSION = '3.1.0'.freeze
FLAG_ICONS_CSS_VERSION = '3.1.0'.freeze
VERSION = '3.1.0'
FLAG_ICONS_CSS_VERSION = '3.1.0'
end