p4util 0.4 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76f89f0f6624b8a2eeb6b950b6eee1034058ee42
4
- data.tar.gz: 7e3b48e5318f5ca7e69edc63eca9f79da86c747e
3
+ metadata.gz: 55147439ca4bd86ac5eeed2b2a463237ac570956
4
+ data.tar.gz: 6878f4658acb96611ba1041125ec5939df36076b
5
5
  SHA512:
6
- metadata.gz: 9c5babf1ac387faf346c1c490b691c76bee3c5ab5040203bdc3574294856f3a41cfbba50566c30aa0ef4711d9d65d21144926e3ac8eb794c9ff98406ac601592
7
- data.tar.gz: 04280dd34e8e3ad5508e381035872941e763808daf5967e2156285b5e8a5f487fce4c4e738c4d04615e06a530bcb86e9f25c6061b4cf706c47c195fa5f33c63d
6
+ metadata.gz: 8426cfcd5da52c2fe86752342a867b2d445ddb6232847b5f35bcaae923f4317f1231fd73508f1444a3d478500cff692df0fdde02bdd64af122a0e9ae9931ac2f
7
+ data.tar.gz: b768923e0aa9d274889d4102f592fc95f5e413488e136868daf155322ce71ea5109732b512665359dddc3a3e497f4292c5d0fbf7ab41b67b1cc3aaca559ce816
data/README.md CHANGED
@@ -35,6 +35,8 @@ Or install it yourself as:
35
35
 
36
36
  ## Changes
37
37
 
38
+ * 0.4.1: Use 'login -p' everywhere to avoid use of the .p4tickets file
39
+
38
40
  * 0.4: Change working directory from './work' to '/tmp/p4util'. If you are using
39
41
  perforce and have a local .p4config, you can't submit files if you're ignoring
40
42
  the local './work' directory. This behavior may have changed in 15.1.
@@ -95,8 +95,8 @@ module Commands
95
95
  else
96
96
  p4.user = super_user.login
97
97
  p4.password = super_user.password
98
- login = p4.run_login
99
- puts "login results for super #{login}"
98
+ login = p4.run_login('-p')
99
+ puts "login results for super #{login}, ticket is #{p4.password}"
100
100
  end
101
101
 
102
102
  models.each { |m| m.execute(p4, models, super_user) }
@@ -30,7 +30,7 @@ module Commands
30
30
  oldpass = options[:oldpass] if options.key?(:oldpass)
31
31
  p4.user = user
32
32
  p4.password = password
33
- p4.run_login if password
33
+ p4.run_login('-p') if password
34
34
  end
35
35
 
36
36
  name = RandomUtil.randstr
@@ -66,7 +66,7 @@ module Commands
66
66
  if (user)
67
67
  p4.user = olduser
68
68
  p4.password = oldpass
69
- p4.run_login if oldpass
69
+ p4.run_login('-p') if oldpass
70
70
  end
71
71
 
72
72
  p4.run_client('-d', '-f', name)
@@ -100,13 +100,13 @@ module Commands
100
100
  super_user.password = super_pwd
101
101
 
102
102
  p4.password = super_user.password
103
- p4.run_login
103
+ p4.run_login('-p')
104
104
  else
105
105
  # Just create the user
106
106
  super_user.execute(p4)
107
107
  if super_user.password
108
108
  p4.password = super_user.password
109
- p4.run_login
109
+ p4.run_login('-p')
110
110
  end
111
111
  end
112
112
  end
@@ -1,3 +1,3 @@
1
1
  module P4Util
2
- VERSION = '0.4'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: p4util
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tristan Juricek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-15 00:00:00.000000000 Z
11
+ date: 2015-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler