Skip to content

Commit

Permalink
Fixed rubocop messages.
Browse files Browse the repository at this point in the history
Added utf-8 to top of all *.rb.
  • Loading branch information
merqlove committed Jul 20, 2014
1 parent ccce163 commit 5858f84
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 8 deletions.
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

Expand Down
1 change: 1 addition & 0 deletions bin/do_snapshot
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# -*- encoding : utf-8 -*-

Signal.trap('INT') { exit 1 }

Expand Down
1 change: 1 addition & 0 deletions lib/do_snapshot.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'do_snapshot/version'

# Used primary for creating snapshot's as backups for DigitalOcean
Expand Down
1 change: 1 addition & 0 deletions lib/do_snapshot/api.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'digitalocean'

module DoSnapshot
Expand Down
1 change: 1 addition & 0 deletions lib/do_snapshot/cli.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'thor'
require 'do_snapshot'
require 'do_snapshot/command'
Expand Down
3 changes: 2 additions & 1 deletion lib/do_snapshot/command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'thread'
# -*- encoding : utf-8 -*-
# require 'thread'
require 'do_snapshot/api'

module DoSnapshot
Expand Down
1 change: 1 addition & 0 deletions lib/do_snapshot/core_ext/hash.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Rails symbolize keys methods for Hash
#
class Hash
Expand Down
1 change: 1 addition & 0 deletions lib/do_snapshot/log.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'logger'

module DoSnapshot
Expand Down
1 change: 1 addition & 0 deletions lib/do_snapshot/mail.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'date'
require 'pony'
require 'do_snapshot/core_ext/hash'
Expand Down
1 change: 1 addition & 0 deletions lib/do_snapshot/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Current version
#
module DoSnapshot
Expand Down
1 change: 1 addition & 0 deletions spec/do_snapshot/api_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'

describe DoSnapshot::API do
Expand Down
1 change: 1 addition & 0 deletions spec/do_snapshot/cli_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'

describe DoSnapshot::CLI do
Expand Down
3 changes: 2 additions & 1 deletion spec/do_snapshot/command_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'

describe DoSnapshot::Command do
Expand Down Expand Up @@ -115,6 +116,6 @@

def snap_runner(options = nil)
options ||= default_options
@cmd.snap(options, %i( log trace digital_ocean_client_id digital_ocean_api_key ))
@cmd.snap(options, [:log, :trace, :digital_ocean_client_id, :digital_ocean_api_key])
end
end
1 change: 1 addition & 0 deletions spec/do_snapshots_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'

describe DoSnapshot do
Expand Down
1 change: 1 addition & 0 deletions spec/shared/api_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'

shared_context 'api_helpers' do
Expand Down
1 change: 1 addition & 0 deletions spec/shared/environment.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'

shared_context 'spec' do
Expand Down
1 change: 1 addition & 0 deletions spec/shared/uri_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'

shared_context 'uri_helpers' do
Expand Down
7 changes: 1 addition & 6 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
# -*- encoding : utf-8 -*-
require 'coveralls'
Coveralls.wear! do
add_filter '/spec/*'
add_filter '/bin/*'
add_filter '/lib/*/mail.rb'
add_filter '/lib/*/version.rb'
add_filter '/lib/*/core_ext/hash.rb'
add_filter '/lib/*/hash.rb'
end

require 'do_snapshot/cli'
Expand Down

0 comments on commit 5858f84

Please # to comment.