Skip to content

Commit 9da1b85

Browse files
author
Peter Degen-Portnoy
committed
Rename library to ohloh_scm
1 parent ee93e37 commit 9da1b85

File tree

151 files changed

+214
-214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+214
-214
lines changed

README.md

Lines changed: 1 addition & 1 deletion

bin/ohlog

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env ruby
2-
require File.dirname(__FILE__) + '/../lib/scm'
2+
require File.dirname(__FILE__) + '/../lib/ohloh_scm'
33

44
# This is a simple command line tool which parses CVS and Subversion logs.
55
# It is not used by the main Ohloh system.
66
#
77
# I use it primarily to help debug Ohloh behavior. It's a convenient way
88
# to turn an enormously long CVS log into something readable.
9-
module Scm::Parsers
9+
module OhlohScm::Parsers
1010
class CommandLine
1111
attr_accessor :paths, :writer
1212

lib/ohloh_scm.rb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
module OhlohScm
2+
end
3+
4+
#require 'rbconfig'
5+
6+
#$: << File.join(File.dirname(__FILE__),"..")
7+
8+
require_relative 'ohloh_scm/shellout'
9+
require_relative 'ohloh_scm/scratch_dir'
10+
require_relative 'ohloh_scm/commit'
11+
require_relative 'ohloh_scm/diff'
12+
13+
require_relative 'ohloh_scm/adapters/abstract_adapter'
14+
require_relative 'ohloh_scm/adapters/cvs_adapter'
15+
require_relative 'ohloh_scm/adapters/svn_adapter'
16+
require_relative 'ohloh_scm/adapters/svn_chain_adapter'
17+
require_relative 'ohloh_scm/adapters/git_adapter'
18+
require_relative 'ohloh_scm/adapters/hg_adapter'
19+
require_relative 'ohloh_scm/adapters/hglib_adapter'
20+
require_relative 'ohloh_scm/adapters/bzr_adapter'
21+
require_relative 'ohloh_scm/adapters/bzrlib_adapter'
22+
require_relative 'ohloh_scm/adapters/factory'
23+
24+
require_relative 'ohloh_scm/parsers/parser'
25+
require_relative 'ohloh_scm/parsers/branch_number'
26+
require_relative 'ohloh_scm/parsers/cvs_parser'
27+
require_relative 'ohloh_scm/parsers/svn_parser'
28+
require_relative 'ohloh_scm/parsers/svn_xml_parser'
29+
require_relative 'ohloh_scm/parsers/git_parser'
30+
require_relative 'ohloh_scm/parsers/git_styled_parser'
31+
require_relative 'ohloh_scm/parsers/hg_parser'
32+
require_relative 'ohloh_scm/parsers/hg_styled_parser'
33+
require_relative 'ohloh_scm/parsers/bzr_xml_parser'
34+
require_relative 'ohloh_scm/parsers/bzr_parser'
35+
36+
require_relative 'ohloh_scm/parsers/array_writer'
37+
require_relative 'ohloh_scm/parsers/xml_writer'
38+
require_relative 'ohloh_scm/parsers/human_writer'

lib/scm/adapters/abstract/misc.rb renamed to lib/ohloh_scm/adapters/abstract/misc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Scm::Adapters
1+
module OhlohScm::Adapters
22
class AbstractAdapter
33

44
def is_merge_commit?(commit)

lib/scm/adapters/abstract/sha1.rb renamed to lib/ohloh_scm/adapters/abstract/sha1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
NULL_SHA1 = '0000000000000000000000000000000000000000' unless defined?(NULL_SHA1)
44

5-
module Scm::Adapters
5+
module OhlohScm::Adapters
66
class AbstractAdapter
77

88
# This file provides SHA1 computation helpers for source control systems that

lib/scm/adapters/abstract/system.rb renamed to lib/ohloh_scm/adapters/abstract/system.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Scm::Adapters
1+
module OhlohScm::Adapters
22
require 'logger'
33
class AbstractAdapter
44
def self.logger

lib/scm/adapters/abstract/validation.rb renamed to lib/ohloh_scm/adapters/abstract/validation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Scm::Adapters
1+
module OhlohScm::Adapters
22
class AbstractAdapter
33
# The full regex that permits all possible URLs supported by the source control system.
44
def self.url_regex

lib/scm/adapters/abstract_adapter.rb renamed to lib/ohloh_scm/adapters/abstract_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Scm::Adapters
1+
module OhlohScm::Adapters
22
class AbstractAdapter
33
attr_accessor :url, :branch_name, :username, :password, :errors, :public_urls_only
44

lib/scm/adapters/bzr/cat_file.rb renamed to lib/ohloh_scm/adapters/bzr/cat_file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Scm::Adapters
1+
module OhlohScm::Adapters
22
class BzrAdapter < AbstractAdapter
33
def cat_file(commit, diff)
44
cat(commit.token, diff.path)

lib/scm/adapters/bzr/commits.rb renamed to lib/ohloh_scm/adapters/bzr/commits.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Scm::Adapters
1+
module OhlohScm::Adapters
22
class BzrAdapter < AbstractAdapter
33

44
# Return the number of commits in the repository following +after+.
@@ -19,7 +19,7 @@ def commit_tokens(opts={})
1919
def commits(opts={})
2020
after = opts[:after]
2121
log = run("#{rev_list_command(opts)} | cat")
22-
a = Scm::Parsers::BzrXmlParser.parse(log)
22+
a = OhlohScm::Parsers::BzrXmlParser.parse(log)
2323

2424
if after && i = a.index { |commit| commit.token == after }
2525
a[(i+1)..-1]
@@ -31,7 +31,7 @@ def commits(opts={})
3131
# Returns a single commit, including its diffs
3232
def verbose_commit(token)
3333
log = run("cd '#{self.url}' && bzr xmllog --show-id -v --limit 1 -c #{to_rev_param(token)}")
34-
Scm::Parsers::BzrXmlParser.parse(log).first
34+
OhlohScm::Parsers::BzrXmlParser.parse(log).first
3535
end
3636

3737
# Yields each commit after +after+, including its diffs.
@@ -44,7 +44,7 @@ def each_commit(opts={})
4444
skip_commits = !!after # Don't emit any commits until the 'after' resume point passes
4545

4646
open_log_file(opts) do |io|
47-
Scm::Parsers::BzrXmlParser.parse(io) do |commit|
47+
OhlohScm::Parsers::BzrXmlParser.parse(io) do |commit|
4848
yield remove_directories(commit) if block_given? && !skip_commits
4949
skip_commits = false if commit.token == after
5050
end

0 commit comments

Comments
 (0)