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

Commit

Permalink
Clarify code encodings for Ruby 2.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Dec 6, 2013
1 parent 42d675c commit 73af23e
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env rake
# coding: us-ascii

require 'bundler/gem_tasks'

require 'rake/testtask'
Expand Down
2 changes: 2 additions & 0 deletions examples/test_failure.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# coding: us-ascii

require_relative 'test_helper'

The(Array) {
Expand Down
2 changes: 2 additions & 0 deletions examples/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# coding: us-ascii

$VERBOSE = true

require_relative '../lib/test/declare'
2 changes: 2 additions & 0 deletions examples/test_mixed.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# coding: us-ascii

require_relative 'test_helper'

class Person
Expand Down
2 changes: 2 additions & 0 deletions examples/test_successfull.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# coding: us-ascii

require_relative 'test_helper'

The(Array) {
Expand Down
1 change: 1 addition & 0 deletions lib/test/declare.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# coding: us-ascii
# Copyright (C) 2012 Kenichi Kamiya

require_relative 'declare/requirements'
2 changes: 2 additions & 0 deletions lib/test/declare/assertions.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# coding: us-ascii

require 'test/unit'
require_relative 'exceptions'

Expand Down
2 changes: 2 additions & 0 deletions lib/test/declare/compatible_ruby_version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# coding: us-ascii

require 'test/unit'

unless RUBY_VERSION >= '1.9.3'
Expand Down
2 changes: 2 additions & 0 deletions lib/test/declare/core_kernel.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# coding: us-ascii

require_relative 'singleton_class'

# @return [Test::Unit::TestCase]
Expand Down
2 changes: 2 additions & 0 deletions lib/test/declare/exceptions.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# coding: us-ascii

module Test; module Declare

class UnhandledError < Exception; end
Expand Down
2 changes: 2 additions & 0 deletions lib/test/declare/requirements.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# coding: us-ascii

require_relative 'version'
require_relative 'compatible_ruby_version'
require_relative 'exceptions'
Expand Down
2 changes: 2 additions & 0 deletions lib/test/declare/singleton_class.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# coding: us-ascii

require 'test/unit'
require_relative 'exceptions'
require_relative 'assertions'
Expand Down
2 changes: 2 additions & 0 deletions lib/test/declare/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# coding: us-ascii

module Test; module Declare

VERSION = '0.0.2.1'.freeze
Expand Down
4 changes: 2 additions & 2 deletions test-declare.gemspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# I don't know why dose occur errors below.
# require_relative 'lib/test/declare/version'
# coding: us-ascii

require File.expand_path('../lib/test/declare/version', __FILE__)

Gem::Specification.new do |gem|
Expand Down

0 comments on commit 73af23e

Please sign in to comment.