utf8 encoding in every file

This commit is contained in:
Tomasz Gieniusz 2012-10-23 20:37:42 +02:00
parent 8f62957ae5
commit 5b3b15f238
46 changed files with 85 additions and 38 deletions

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module GitStats
end

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'git_stats/core_extensions/hash'
require 'git_stats/core_extensions/string'
require 'git_stats/core_extensions/symbol'

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module ByFieldFinder
def method_missing(name, *args, &block)
field = name[/^by_(.*)$/, 1]

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require "git_stats"
class GitStats::CLI

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Hash
def to_key_indexed_array(params = {})
raise ArgumentError.new('all the keys must be numbers to convert to key indexed array') unless all? { |k, v| k.is_a? Numeric }

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class String
def absolute_path
Pathname.new(__FILE__).expand_path.join(self).cleanpath.to_s

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Symbol
def t
I18n.t self

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module GitStats
class Generator
delegate :add_command_observer, to: :@repo

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module GitStats
module GitData
class Activity

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'git_stats/hash_initializable'
module GitStats

View file

@ -1,3 +1,5 @@
# -*- encoding : utf-8 -*-
require 'git_stats/hash_initializable'
module GitStats

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module GitStats
module GitData
class CommandParser

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module GitStats
module GitData
class CommandRunner

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'git_stats/hash_initializable'
module GitStats

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'git_stats/hash_initializable'
module GitStats

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module GitStats
module GitData
class ShortStat

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module HashInitializable
def initialize(params = {})
raise "pass a Hash to initialize #{self.class}" unless params.is_a? Hash

View file

@ -1 +1,2 @@
# -*- encoding : utf-8 -*-
I18n.load_path += Dir['../../../../config/locales/*.yml'.absolute_path]

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module GitStats
module StatsView
module Charts

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module GitStats
module StatsView
module Charts

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module GitStats
module StatsView
module Charts

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module GitStats
module StatsView
module Charts

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module GitStats
module StatsView
module Charts

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module GitStats
module StatsView
class Template

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module GitStats
module StatsView
class View

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module GitStats
module StatsView
class ViewData

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module GitStats
VERSION = "0.0.1"
end

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'
describe ByFieldFinder do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
FactoryGirl.define do
initialize_with { new(attributes) }

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'
describe GitStats::GitData::Activity do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'
describe GitStats::GitData::Author do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'
describe GitStats::GitData::Blob do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'
describe GitStats::CLI do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'
describe GitStats::GitData::Repo do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'
describe GitStats::GitData::Repo do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'
describe GitStats::GitData::Commit do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'
describe GitStats::Generator do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'
describe GitStats::GitData::Repo do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'
describe GitStats::GitData::ShortStat do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'
describe Hash do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'integration/shared'
describe GitStats::GitData::Activity do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'integration/shared'
describe GitStats::GitData::Activity do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'integration/shared'
describe GitStats::GitData::Repo do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'integration/shared'
describe GitStats::GitData::Repo do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'
shared_context "shared" do

View file

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'simplecov'
SimpleCov.start