mercurial-ruby 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/mercurial-ruby.rb +4 -1
- data/lib/mercurial-ruby/blame.rb +29 -0
- data/lib/mercurial-ruby/blame_line.rb +19 -0
- data/lib/mercurial-ruby/factories/blame_factory.rb +28 -0
- data/lib/mercurial-ruby/repository.rb +4 -0
- data/mercurial-ruby.gemspec +8 -117
- data/test/fixtures/test-repo.zip +0 -0
- data/test/helper.rb +13 -1
- data/test/test_blame.rb +28 -0
- data/test/test_blame_factory.rb +43 -0
- metadata +10 -119
- data/test/fixtures/test-repo/.DotFile +0 -1
- data/test/fixtures/test-repo/.hg/00changelog.i +0 -0
- data/test/fixtures/test-repo/.hg/branch +0 -1
- data/test/fixtures/test-repo/.hg/cache/branchheads +0 -6
- data/test/fixtures/test-repo/.hg/cache/tags +0 -7
- data/test/fixtures/test-repo/.hg/dirstate +0 -0
- data/test/fixtures/test-repo/.hg/hgrc +0 -3
- data/test/fixtures/test-repo/.hg/last-message.txt +0 -1
- data/test/fixtures/test-repo/.hg/requires +0 -4
- data/test/fixtures/test-repo/.hg/store/00changelog.i +0 -0
- data/test/fixtures/test-repo/.hg/store/00manifest.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_file _with _whitespace.pdf.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_l_i_c_e_n_s_e.txt.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_l_i_c_e_n_s_e2.txt.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_l_i_c_e_n_s_e3.txt.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_l_i_c_e_n_s_e4.txt.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_r_e_a_d_m_e.markdown.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_r_e_a_d_m_e.markup.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_rakefile.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_rakefile2.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_rakefile3.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/check ~5c this ~5c out ~22 now.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/minitest__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/options.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/rdoc__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/rspec__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/shindo__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/shoulda__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/_gemfile.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/_l_i_c_e_n_s_e.txt.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/_r_e_a_d_m_e.rdoc.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/_rakefile.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/bacon/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/bacon/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/bundler__setup.erb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/features/default.feature.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/features/support/env.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/jeweler__tasks.erb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/micronaut/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/micronaut/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/minitest/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/minitest/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/other__tasks.erb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/riot/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/riot/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/rspec/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/rspec/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/rspec/~2erspec.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/shindo/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/shindo/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/shoulda/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/shoulda/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/testspec/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/testspec/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/testunit/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/testunit/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/~2edocument.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/~2egitignore.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/~2e_d_s___store.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory__1/rubygems__dot__org__tasks.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory__1/rubygems__tasks.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory__1/specification.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory__1/tasks.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory__1/~2e_d_s___store.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/empty-file.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/goose.png.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/goose/pretty-thing.txt.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/new-directory/another-boring-file.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/new-directory/something.csv.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/new-directory/subdirectory/_e_u_l_a5seat___chin___sim02.03.04.pdf.d +0 -0
- data/test/fixtures/test-repo/.hg/store/data/new-directory/subdirectory/_e_u_l_a5seat___chin___sim02.03.04.pdf.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/new-directory/subdirectory/_file _with _whitespace.pdf.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/new-directory/subdirectory/beansprout.png.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/new-file.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/old-directory/minitest__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/old-directory/options.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/old-directory/rspec__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/old-directory/shindo__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/old-directory/testunit__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/old-directory/yard__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/riot__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/riot__mixin__copy.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/style.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/super-cow.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/superman.txt.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/testspec__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/testspec__mixin__new.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/~2e_dot_file.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/~2ehgignore.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/~2ehgtags.i +0 -0
- data/test/fixtures/test-repo/.hg/store/fncache +0 -79
- data/test/fixtures/test-repo/.hg/store/undo +0 -0
- data/test/fixtures/test-repo/.hg/undo.bookmarks +0 -0
- data/test/fixtures/test-repo/.hg/undo.branch +0 -1
- data/test/fixtures/test-repo/.hg/undo.desc +0 -2
- data/test/fixtures/test-repo/.hg/undo.dirstate +0 -0
- data/test/fixtures/test-repo/.hgignore +0 -1
- data/test/fixtures/test-repo/.hgtags +0 -1
- data/test/fixtures/test-repo/LICENSE3.txt +0 -15
- data/test/fixtures/test-repo/LICENSE4.txt +0 -17
- data/test/fixtures/test-repo/README.markup +0 -218
- data/test/fixtures/test-repo/Rakefile3 +0 -83
- data/test/fixtures/test-repo/check // this // out /" now" "b/data/test/fixtures/test-repo/check // this // out / → now +0 -0
- data/test/fixtures/test-repo/empty-file +0 -0
- data/test/fixtures/test-repo/goose.png +0 -0
- data/test/fixtures/test-repo/goose/pretty-thing.txt +0 -0
- data/test/fixtures/test-repo/new-directory/another-boring-file +0 -78
- data/test/fixtures/test-repo/new-directory/something.csv +0 -1
- data/test/fixtures/test-repo/new-directory/subdirectory/EULA5seat_Chin_Sim02.03.04.pdf +0 -0
- data/test/fixtures/test-repo/new-directory/subdirectory/File With Whitespace.pdf b/data/test/fixtures/test-repo/new-directory/subdirectory/File With → Whitespace.pdf +0 -0
- data/test/fixtures/test-repo/new-directory/subdirectory/beansprout.png +0 -0
- data/test/fixtures/test-repo/riot_mixin.rb +0 -45
- data/test/fixtures/test-repo/style +0 -4
- data/test/fixtures/test-repo/superman.txt +0 -1
- data/test/fixtures/test-repo/testspec_mixin_new.rb +0 -44
@@ -1,83 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
test
|
4
|
-
|
5
|
-
require 'rubygems'
|
6
|
-
require 'bundler'
|
7
|
-
|
8
|
-
begin
|
9
|
-
Bundler.setup(:default, :development)
|
10
|
-
rescue Bundler::BundlerError => e
|
11
|
-
$stderr.puts e.message
|
12
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
13
|
-
exit e.status_code
|
14
|
-
end
|
15
|
-
|
16
|
-
$LOAD_PATH.unshift('lib')
|
17
|
-
|
18
|
-
require 'rake'
|
19
|
-
require 'jeweler'
|
20
|
-
|
21
|
-
Jeweler::Tasks.new do |gem|
|
22
|
-
gem.name = "jeweler"
|
23
|
-
gem.version = Jeweler::Version::STRING
|
24
|
-
gem.homepage = "http://github.com/technicalpickles/jeweler"
|
25
|
-
gem.summary = "Opinionated tool for creating and managing RubyGem projects"
|
26
|
-
gem.description = "Simple and opinionated helper for creating Rubygem projects on GitHub"
|
27
|
-
gem.license = "MIT"
|
28
|
-
gem.authors = ["Josh Nichols"]
|
29
|
-
gem.email = "josh@technicalpickles.com"
|
30
|
-
gem.files.include %w(lib/jeweler/templates/.document lib/jeweler/templates/.gitignore)
|
31
|
-
|
32
|
-
# dependencies defined in Gemfile
|
33
|
-
end
|
34
|
-
|
35
|
-
Jeweler::RubygemsDotOrgTasks.new
|
36
|
-
|
37
|
-
require 'rake/testtask'
|
38
|
-
Rake::TestTask.new(:test) do |test|
|
39
|
-
test.test_files = FileList.new('test/**/test_*.rb') do |list|
|
40
|
-
list.exclude 'test/test_helper.rb'
|
41
|
-
list.exclude 'test/fixtures/**/*.rb'
|
42
|
-
end
|
43
|
-
test.libs << 'test'
|
44
|
-
test.verbose = true
|
45
|
-
end
|
46
|
-
|
47
|
-
namespace :test do
|
48
|
-
task :gemspec_dup do
|
49
|
-
gemspec = Rake.application.jeweler.gemspec
|
50
|
-
dupped_gemspec = gemspec.dup
|
51
|
-
cloned_gemspec = gemspec.clone
|
52
|
-
puts gemspec.to_ruby
|
53
|
-
puts dupped_gemspec.to_ruby
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
require 'yard'
|
58
|
-
YARD::Rake::YardocTask.new do |t|
|
59
|
-
t.files = FileList['lib/**/*.rb'].exclude('lib/jeweler/templates/**/*.rb')
|
60
|
-
end
|
61
|
-
|
62
|
-
require 'rcov/rcovtask'
|
63
|
-
Rcov::RcovTask.new(:rcov => :check_dependencies) do |rcov|
|
64
|
-
rcov.libs << 'test'
|
65
|
-
rcov.pattern = 'test/**/test_*.rb'
|
66
|
-
end
|
67
|
-
|
68
|
-
require 'cucumber/rake/task'
|
69
|
-
Cucumber::Rake::Task.new(:features) do |features|
|
70
|
-
features.cucumber_opts = "features --format progress"
|
71
|
-
end
|
72
|
-
namespace :features do
|
73
|
-
Cucumber::Rake::Task.new(:pretty) do |features|
|
74
|
-
features.cucumber_opts = "features --format progress"
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
if ENV["RUN_CODE_RUN"] == "true"
|
79
|
-
task :default => [:test, :features]
|
80
|
-
else
|
81
|
-
task :default => :test
|
82
|
-
end
|
83
|
-
|
File without changes
|
File without changes
|
Binary file
|
File without changes
|
@@ -1,78 +0,0 @@
|
|
1
|
-
Mercurial Distributed SCM
|
2
|
-
|
3
|
-
list of commands:
|
4
|
-
|
5
|
-
add add the specified files on the next commit
|
6
|
-
addremove add all new files, delete all missing files
|
7
|
-
annotate show changeset information by line for each file
|
8
|
-
archive create an unversioned archive of a repository revision
|
9
|
-
backout reverse effect of earlier changeset
|
10
|
-
bisect subdivision search of changesets
|
11
|
-
bookmarks track a line of development with movable markers
|
12
|
-
branch set or show the current branch name
|
13
|
-
branches list repository named branches
|
14
|
-
bundle create a changegroup file
|
15
|
-
cat output the current or given revision of files
|
16
|
-
clone make a copy of an existing repository
|
17
|
-
commit commit the specified files or all outstanding changes
|
18
|
-
copy mark files as copied for the next commit
|
19
|
-
diff diff repository (or selected files)
|
20
|
-
export dump the header and diffs for one or more changesets
|
21
|
-
forget forget the specified files on the next commit
|
22
|
-
grep search for a pattern in specified files and revisions
|
23
|
-
heads show current repository heads or show branch heads
|
24
|
-
help show help for a given topic or a help overview
|
25
|
-
identify identify the working copy or specified revision
|
26
|
-
import import an ordered set of patches
|
27
|
-
incoming show new changesets found in source
|
28
|
-
init create a new repository in the given directory
|
29
|
-
locate locate files matching specific patterns
|
30
|
-
log show revision history of entire repository or files
|
31
|
-
manifest output the current or given revision of the project manifest
|
32
|
-
merge merge working directory with another revision
|
33
|
-
outgoing show changesets not found in the destination
|
34
|
-
parents show the parents of the working directory or revision
|
35
|
-
paths show aliases for remote repositories
|
36
|
-
pull pull changes from the specified source
|
37
|
-
push push changes to the specified destination
|
38
|
-
recover roll back an interrupted transaction
|
39
|
-
remove remove the specified files on the next commit
|
40
|
-
rename rename files; equivalent of copy + remove
|
41
|
-
resolve redo merges or set/view the merge status of files
|
42
|
-
revert restore files to their checkout state
|
43
|
-
rollback roll back the last transaction (dangerous)
|
44
|
-
root print the root (top) of the current working directory
|
45
|
-
serve start stand-alone webserver
|
46
|
-
showconfig show combined config settings from all hgrc files
|
47
|
-
status show changed files in the working directory
|
48
|
-
summary summarize working directory state
|
49
|
-
tag add one or more tags for the current or given revision
|
50
|
-
tags list repository tags
|
51
|
-
tip show the tip revision
|
52
|
-
unbundle apply one or more changegroup files
|
53
|
-
update update working directory (or switch revisions)
|
54
|
-
verify verify the integrity of the repository
|
55
|
-
version output version and copyright information
|
56
|
-
|
57
|
-
additional help topics:
|
58
|
-
|
59
|
-
config Configuration Files
|
60
|
-
dates Date Formats
|
61
|
-
diffs Diff Formats
|
62
|
-
environment Environment Variables
|
63
|
-
extensions Using additional features
|
64
|
-
filesets Specifying File Sets
|
65
|
-
glossary Glossary
|
66
|
-
hgignore syntax for Mercurial ignore files
|
67
|
-
hgweb Configuring hgweb
|
68
|
-
merge-tools Merge Tools
|
69
|
-
multirevs Specifying Multiple Revisions
|
70
|
-
patterns File Name Patterns
|
71
|
-
revisions Specifying Single Revisions
|
72
|
-
revsets Specifying Revision Sets
|
73
|
-
subrepos Subrepositories
|
74
|
-
templating Template Usage
|
75
|
-
urls URL Paths
|
76
|
-
|
77
|
-
use "hg -v help" to show builtin aliases and global options
|
78
|
-
|
@@ -1 +0,0 @@
|
|
1
|
-
Here will be some new kind of CSV.
|
Binary file
|
File without changes
|
Binary file
|
@@ -1,45 +0,0 @@
|
|
1
|
-
class Jeweler
|
2
|
-
class Generator
|
3
|
-
module RiotMixin
|
4
|
-
def self.extended(generator)
|
5
|
-
# changed
|
6
|
-
generator.development_dependencies << ["riot", ">= 0"]
|
7
|
-
end
|
8
|
-
|
9
|
-
def default_task
|
10
|
-
'test'
|
11
|
-
end
|
12
|
-
|
13
|
-
def feature_support_require
|
14
|
-
'riot/context'
|
15
|
-
end
|
16
|
-
|
17
|
-
def feature_support_extend
|
18
|
-
'Riot::Context'
|
19
|
-
end
|
20
|
-
|
21
|
-
def test_dir
|
22
|
-
'test'
|
23
|
-
end
|
24
|
-
|
25
|
-
def test_task
|
26
|
-
'test'
|
27
|
-
end
|
28
|
-
|
29
|
-
def test_pattern
|
30
|
-
'test/**/*_test.rb'
|
31
|
-
end
|
32
|
-
|
33
|
-
def test_filename
|
34
|
-
"#{require_name}_test.rb"
|
35
|
-
end
|
36
|
-
|
37
|
-
def test_helper_filename
|
38
|
-
"teststrap.rb"
|
39
|
-
end
|
40
|
-
|
41
|
-
def tiny_change
|
42
|
-
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
This is a superman file.
|
@@ -1,44 +0,0 @@
|
|
1
|
-
class Jeweler
|
2
|
-
class Generator
|
3
|
-
module TestspecMixin
|
4
|
-
def self.extended(generator)
|
5
|
-
generator.development_dependencies << ["test-spec", ">= 0"]
|
6
|
-
end
|
7
|
-
|
8
|
-
def default_task
|
9
|
-
'test'
|
10
|
-
end
|
11
|
-
|
12
|
-
def feature_support_require
|
13
|
-
'test/unit/assertions'
|
14
|
-
end
|
15
|
-
|
16
|
-
def feature_support_extend
|
17
|
-
'Test::Unit::Assertions'
|
18
|
-
end
|
19
|
-
|
20
|
-
def test_dir
|
21
|
-
'test'
|
22
|
-
end
|
23
|
-
|
24
|
-
def another_change
|
25
|
-
|
26
|
-
def test_task
|
27
|
-
'test'
|
28
|
-
end
|
29
|
-
|
30
|
-
def test_pattern
|
31
|
-
'test/**/*_test.rb'
|
32
|
-
end
|
33
|
-
|
34
|
-
def test_filename
|
35
|
-
"#{require_name}_test.rb"
|
36
|
-
end
|
37
|
-
|
38
|
-
def test_helper_filename
|
39
|
-
"test_helper.rb"
|
40
|
-
end
|
41
|
-
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|