hglib 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/examples/clone.rb DELETED
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'loggability'
4
- require 'hglib'
5
-
6
- Loggability.level = :debug
7
-
8
- Dir.chdir( File.expand_path('~/temp/') ) do
9
- repo = Hglib.clone( 'https://bitbucket.org/ged/ruby-hglib' )
10
- puts repo.status
11
- end
12
-
13
-
@@ -1,52 +0,0 @@
1
- #!/usr/bin/env rspec -cfd
2
-
3
- require_relative '../spec_helper'
4
-
5
- RSpec.describe "cloning" do
6
-
7
- let( :repo_dir ) do
8
- dir = Dir.mktmpdir( ['hglib', 'repodir'] )
9
- Pathname( dir )
10
- end
11
-
12
-
13
- after( :each ) do
14
- repo_dir.rmtree if repo_dir.exist?
15
- end
16
-
17
-
18
- it "can clone a local repo with no options" do
19
- repo = Hglib.clone( '.', repo_dir )
20
-
21
- expect( repo ).to be_a( Hglib::Repo )
22
- expect( repo.path ).to eq( repo_dir )
23
- expect( repo.status ).to be_empty
24
- expect( repo_dir.children(false) ).to include(
25
- Pathname( '.hg' ),
26
- Pathname( 'Rakefile' )
27
- )
28
- end
29
-
30
-
31
- it "can clone without updating" do
32
- repo = Hglib.clone( '.', repo_dir, noupdate: true )
33
-
34
- expect( repo ).to be_a( Hglib::Repo )
35
- expect( repo.path ).to eq( repo_dir )
36
- expect( repo.status ).to be_empty
37
- expect( repo.id ).to eq( '000000000000' )
38
- expect( repo_dir.children(false) ).to contain_exactly( Pathname('.hg') )
39
- end
40
-
41
-
42
- it "can clone to a specific revision" do
43
- repo = Hglib.clone( '.', repo_dir, rev: 'da8322c8b033' )
44
-
45
- expect( repo ).to be_a( Hglib::Repo )
46
- expect( repo.path ).to eq( repo_dir )
47
- expect( repo.status ).to be_empty
48
- expect( repo.id ).to eq( 'da8322c8b033' )
49
- end
50
-
51
- end
52
-
@@ -1,29 +0,0 @@
1
- # -*- ruby -*-
2
- #encoding: utf-8
3
-
4
- require 'tmpdir'
5
-
6
- require 'rspec'
7
- require 'hglib'
8
-
9
- RSpec.configure do |config|
10
- config.expect_with :rspec do |expectations|
11
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
12
- end
13
-
14
- config.mock_with :rspec do |mocks|
15
- mocks.verify_partial_doubles = true
16
- end
17
-
18
- config.shared_context_metadata_behavior = :apply_to_host_groups
19
- config.filter_run_when_matching :focus
20
- config.example_status_persistence_file_path = "spec/.status"
21
- config.disable_monkey_patching!
22
- config.warnings = true
23
- config.profile_examples = 10
24
- config.order = :random
25
-
26
- config.filter_run_excluding( :requires_binary ) unless Hglib.hg_path.executable?
27
-
28
- Kernel.srand( config.seed )
29
- end
data/spec/.status DELETED
@@ -1,42 +0,0 @@
1
- example_id | status | run_time |
2
- ---------------------------------------- | ------ | --------------- |
3
- ./spec/hglib/repo/id_spec.rb[1:1] | passed | 0.0001 seconds |
4
- ./spec/hglib/repo/id_spec.rb[1:2] | passed | 0.00057 seconds |
5
- ./spec/hglib/repo/id_spec.rb[1:3] | passed | 0.00007 seconds |
6
- ./spec/hglib/repo/id_spec.rb[1:4] | passed | 0.00006 seconds |
7
- ./spec/hglib/repo/id_spec.rb[1:5] | passed | 0.00005 seconds |
8
- ./spec/hglib/repo/id_spec.rb[1:6] | passed | 0.00006 seconds |
9
- ./spec/hglib/repo/id_spec.rb[1:7:1] | passed | 0.00006 seconds |
10
- ./spec/hglib/repo/id_spec.rb[1:7:2] | passed | 0.00005 seconds |
11
- ./spec/hglib/repo/id_spec.rb[1:8:1] | passed | 0.00009 seconds |
12
- ./spec/hglib/repo/id_spec.rb[1:8:2] | passed | 0.0001 seconds |
13
- ./spec/hglib/repo/id_spec.rb[1:8:3] | passed | 0.00251 seconds |
14
- ./spec/hglib/repo/id_spec.rb[1:8:4] | passed | 0.00007 seconds |
15
- ./spec/hglib/repo/id_spec.rb[1:8:5] | passed | 0.00006 seconds |
16
- ./spec/hglib/repo/id_spec.rb[1:8:6] | passed | 0.0001 seconds |
17
- ./spec/hglib/repo/id_spec.rb[1:9:1] | passed | 0.00005 seconds |
18
- ./spec/hglib/repo/id_spec.rb[1:9:2] | passed | 0.00005 seconds |
19
- ./spec/hglib/repo/id_spec.rb[1:9:3] | passed | 0.0001 seconds |
20
- ./spec/hglib/repo/id_spec.rb[1:9:4] | passed | 0.00004 seconds |
21
- ./spec/hglib/repo/log_entry_spec.rb[1:1] | passed | 0.00151 seconds |
22
- ./spec/hglib/repo/log_entry_spec.rb[1:2] | passed | 0.00013 seconds |
23
- ./spec/hglib/repo_spec.rb[1:1] | passed | 0.0102 seconds |
24
- ./spec/hglib/repo_spec.rb[1:2] | passed | 0.00178 seconds |
25
- ./spec/hglib/repo_spec.rb[1:3] | passed | 0.00111 seconds |
26
- ./spec/hglib/server_spec.rb[1:1:1] | passed | 0.00041 seconds |
27
- ./spec/hglib/server_spec.rb[1:1:2] | passed | 0.00041 seconds |
28
- ./spec/hglib/server_spec.rb[1:1:3] | passed | 0.00042 seconds |
29
- ./spec/hglib/server_spec.rb[1:1:4] | passed | 0.00044 seconds |
30
- ./spec/hglib/server_spec.rb[1:1:5] | passed | 0.00042 seconds |
31
- ./spec/hglib/server_spec.rb[1:1:6] | passed | 0.00041 seconds |
32
- ./spec/hglib/server_spec.rb[1:2] | passed | 0.00064 seconds |
33
- ./spec/hglib/server_spec.rb[1:3] | passed | 0.00066 seconds |
34
- ./spec/hglib/server_spec.rb[1:4] | passed | 0.00065 seconds |
35
- ./spec/hglib/server_spec.rb[1:5] | passed | 0.00069 seconds |
36
- ./spec/hglib/server_spec.rb[1:6] | passed | 0.00157 seconds |
37
- ./spec/hglib_spec.rb[1:1:1] | passed | 0.0007 seconds |
38
- ./spec/hglib_spec.rb[1:1:2] | passed | 0.00141 seconds |
39
- ./spec/hglib_spec.rb[1:2:1] | passed | 0.00064 seconds |
40
- ./spec/hglib_spec.rb[1:3:1] | passed | 0.00017 seconds |
41
- ./spec/hglib_spec.rb[1:3:2] | passed | 0.00022 seconds |
42
- ./spec/hglib_spec.rb[1:3:3] | passed | 0.17371 seconds |