xtrn 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xtrn (0.1.0)
4
+ xtrn (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/README.md CHANGED
@@ -5,12 +5,14 @@ Mainly, <tt>xtrn</tt> doesn't depend on the revision control system. This means
5
5
  Just create an <tt>Externals</tt> file in the root of your project, require the <tt>xtrn</tt> gem and run <tt>xtrn</tt> (again, in the root of
6
6
  your project).
7
7
 
8
- The format of the <tt>Externals</tt> file is as follows:
8
+ The format of the <tt>Externals</tt> file is as follows, note that the username and password will not be cached:
9
9
 
10
10
  ---
11
11
  - url: svn://svnhost/dir/to/external/codebase
12
12
  path: checkout/to/here
13
13
  type: svn
14
+ username: optional_username
15
+ password: optional_password
14
16
  - url: svn://svnhost2/another/thing
15
17
  path: this/one/goes/here
16
18
  type: svn
@@ -10,16 +10,16 @@ module Xtrn
10
10
  @config.each do |entry|
11
11
  username = entry['username'] ? "--username '#{entry['username']}' " : ''
12
12
  password = entry['password'] ? "--password '#{entry['password']}' " : ''
13
- # username = ''
13
+ standard_args = "--no-auth-cache"
14
14
 
15
- x = @executor.exec("svn info #{username}#{password}#{entry['url']}")
15
+ x = @executor.exec("svn info #{username}#{password}#{standard_args} #{entry['url']}")
16
16
  rev = YAML.load(x)["Last Changed Rev"]
17
17
  cmd = if File.directory?(entry['path'])
18
18
  'update'
19
19
  else
20
20
  'checkout'
21
21
  end
22
- @executor.exec("svn #{cmd} #{username}#{password}-r#{rev} #{entry['url']} #{entry['path']}")
22
+ @executor.exec("svn #{cmd} #{username}#{password}#{standard_args} -r#{rev} #{entry['url']} #{entry['path']}")
23
23
  end
24
24
 
25
25
  def updated_gitignore(original_gitignore)
data/lib/xtrn/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xtrn
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
data/spec/spec_helpers.rb CHANGED
@@ -3,6 +3,7 @@ module Xtrn
3
3
  class SVNCommand
4
4
  def initialize()
5
5
  @username_and_password = ''
6
+ @standard_args = '--no-auth-cache'
6
7
  end
7
8
 
8
9
  def cmd(c)
@@ -23,7 +24,7 @@ module Xtrn
23
24
  end
24
25
 
25
26
  def to_s
26
- "svn #{@cmd} #{@username_and_password}#{@args}"
27
+ "svn #{@cmd} #{@username_and_password}#{@standard_args} #{@args}"
27
28
  end
28
29
 
29
30
  def match(actual)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xtrn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-01-19 00:00:00.000000000 Z
13
+ date: 2012-01-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
17
- requirement: &70097058424700 !ruby/object:Gem::Requirement
17
+ requirement: &20704540 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '2.8'
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *70097058424700
25
+ version_requirements: *20704540
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: autotest
28
- requirement: &70097058424040 !ruby/object:Gem::Requirement
28
+ requirement: &20704040 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '4.4'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *70097058424040
36
+ version_requirements: *20704040
37
37
  description:
38
38
  email:
39
39
  - james@mediamolecule.com
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  version: '0'
77
77
  requirements: []
78
78
  rubyforge_project:
79
- rubygems_version: 1.8.10
79
+ rubygems_version: 1.8.11
80
80
  signing_key:
81
81
  specification_version: 3
82
82
  summary: Manage your externals without locking yourself into a single source control