Skip to content
This repository has been archived by the owner on May 21, 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 16, 2013
1 parent 7de8299 commit 8d1bca4
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# coding: us-ascii

source 'https://rubygems.org'

gemspec
Expand Down
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
1 change: 1 addition & 0 deletions declared/declared.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/local/bin/ruby -w
# coding: us-ascii

$VERBOSE = true

Expand Down
1 change: 1 addition & 0 deletions examples/README.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/local/bin/ruby -w
# coding: us-ascii

$VERBOSE = true

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

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

require 'forwardable'

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

require 'forwardable'

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

module Structable

class << self
Expand Down
2 changes: 2 additions & 0 deletions lib/structable/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# coding: us-ascii

module Structable

VERSION = '0.0.3'.freeze
Expand Down
2 changes: 2 additions & 0 deletions structable.gemspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# coding: us-ascii

# I don't know why dose occur errors below.
# require_relative 'lib/structable/version'
require File.expand_path('../lib/structable/version', __FILE__)
Expand Down
2 changes: 2 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# coding: us-ascii

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

$VERBOSE = true
require_relative 'test_helper'

Expand Down

0 comments on commit 8d1bca4

Please sign in to comment.