esr-rim 1.3.5 → 1.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/CHANGELOG +7 -1
- data/lib/rim/processor.rb +6 -2
- data/lib/rim/sync_helper.rb +1 -0
- data/lib/rim/upload_helper.rb +1 -1
- data/lib/rim/version.rb +1 -1
- data/test/rim_info_test.rb +5 -1
- data/test/test_helper.rb +1 -0
- metadata +9 -13
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MWUzYjVhOGMyZDNmZWUwOGYwYmIxZjdhNjAzOWFmZWYxNGVmNTNiMA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NTk4MjAwMTExNWQ5ZDgzODVjOWIzYjFmZTk2YTVlNTc5MjZiZWUyOQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NDY2Y2NmNjEzZGNkMWQ1ZTViMTBlYjRiOWRmN2Q3NDc5YmI3ZjYzNTc1ZjZl
|
10
|
+
MDcwOWVlNTJhNzI5MzVhYmI5ZWJjODhhZjFlYzIxNWIzMWZhZmE2M2I5ZDQ2
|
11
|
+
OGE1NzY5MmI2N2JkZGVmOTVkNTQ3NmMwYmQxNzBhODQyMzNjYWM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
OWNlNmUzYTk4Y2MyMGU2ZjYyODRmZTM3YTEzNGFjNjc4YjFkOTg4ZmZjMTVl
|
14
|
+
MDFjOTAyODQwMzExMzA5NDcwZWQzNWUzZjQyOWMwYzk3NmYzOGJkZjRkMzAw
|
15
|
+
ZGIyYWJlOGM4MmQwYjRjYzcxYTA3MjJkZTkyYmRmNmQ1ODhmYWM=
|
data/CHANGELOG
CHANGED
@@ -102,4 +102,10 @@
|
|
102
102
|
|
103
103
|
* Shorten paths of helper git directories.
|
104
104
|
* Use RIM_HOME for helper git directories if defined.
|
105
|
-
|
105
|
+
|
106
|
+
# 1.3.6
|
107
|
+
|
108
|
+
* Use fully qualified reference for branches to avoid ambiguities.
|
109
|
+
* Normalize path set in RIM_HOME before using (fixes problems with backslash used in Windows).
|
110
|
+
* Use SHA1 for shortened paths only if shorter than original path.
|
111
|
+
* Set RIM_HOME to non-persistent path for unit tests.
|
data/lib/rim/processor.rb
CHANGED
@@ -18,7 +18,7 @@ GerritServer = "ssh://gerrit/"
|
|
18
18
|
def initialize(workspace_root, logger)
|
19
19
|
@ws_root = workspace_root
|
20
20
|
rim_dir = nil
|
21
|
-
rim_dir = ENV['RIM_HOME'] if ENV.has_key?('RIM_HOME')
|
21
|
+
rim_dir = File.expand_path(ENV['RIM_HOME']) if ENV.has_key?('RIM_HOME')
|
22
22
|
rim_dir = File.join(ENV['HOME'], ".rim") if rim_dir.nil? && ENV.has_key?('HOME')
|
23
23
|
if rim_dir
|
24
24
|
@rim_path = File.join(rim_dir, Processor.shorten_path(@ws_root))
|
@@ -143,7 +143,11 @@ def each_module_parallel(task_desc, modules)
|
|
143
143
|
end
|
144
144
|
|
145
145
|
def self.shorten_path(path)
|
146
|
-
|
146
|
+
if path.length <= 10
|
147
|
+
path.gsub(':', '#')
|
148
|
+
else
|
149
|
+
Digest::SHA1.hexdigest(path || '')[0...10]
|
150
|
+
end
|
147
151
|
end
|
148
152
|
|
149
153
|
end
|
data/lib/rim/sync_helper.rb
CHANGED
@@ -31,6 +31,7 @@ class SyncHelper < CommandHelper
|
|
31
31
|
elsif branch.start_with?("rim/")
|
32
32
|
raise RimException.new("The current git branch '#{branch}' is a rim integration branch. Please switch to a non rim branch to proceed.")
|
33
33
|
else
|
34
|
+
branch = "refs/heads/#{branch}"
|
34
35
|
branch_sha1 = s.rev_sha1(rim_branch)
|
35
36
|
remote_rev = get_latest_remote_revision(s, branch)
|
36
37
|
rev = get_latest_clean_path_revision(s, branch, remote_rev)
|
data/lib/rim/upload_helper.rb
CHANGED
@@ -24,7 +24,7 @@ class UploadHelper < CommandHelper
|
|
24
24
|
@logger.info("Uploading modules...")
|
25
25
|
upload_modules(get_upload_revisions(s, sha1))
|
26
26
|
ensure
|
27
|
-
s.execute("git checkout #{branch}")
|
27
|
+
s.execute("git checkout -B #{branch}")
|
28
28
|
end
|
29
29
|
else
|
30
30
|
raise RimException.new("The current git branch '#{branch}' is a rim integration branch. Please switch to a non rim branch to proceed.")
|
data/lib/rim/version.rb
CHANGED
data/test/rim_info_test.rb
CHANGED
@@ -106,7 +106,11 @@ def test_subdir_default
|
|
106
106
|
ri = RIM::RimInfo.from_dir(d)
|
107
107
|
#puts File.read(d+"/.riminfo")
|
108
108
|
attrs_expected.each_pair do |k,v|
|
109
|
-
|
109
|
+
if v.nil?
|
110
|
+
assert_nil ri.send(k)
|
111
|
+
else
|
112
|
+
assert_equal v, ri.send(k)
|
113
|
+
end
|
110
114
|
end
|
111
115
|
end
|
112
116
|
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: esr-rim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
5
|
-
prerelease:
|
4
|
+
version: 1.3.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- ESR Labs AG
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2016-
|
11
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: subcommand
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -37,6 +34,10 @@ extra_rdoc_files:
|
|
37
34
|
- README.md
|
38
35
|
- CHANGELOG
|
39
36
|
files:
|
37
|
+
- CHANGELOG
|
38
|
+
- README.md
|
39
|
+
- Rakefile
|
40
|
+
- bin/rim
|
40
41
|
- lib/rim/command/command.rb
|
41
42
|
- lib/rim/command/info.rb
|
42
43
|
- lib/rim/command/status.rb
|
@@ -83,12 +84,9 @@ files:
|
|
83
84
|
- test/unit_tests.rb
|
84
85
|
- test/upload_helper_test.rb
|
85
86
|
- test/upload_module_helper_test.rb
|
86
|
-
- README.md
|
87
|
-
- CHANGELOG
|
88
|
-
- Rakefile
|
89
|
-
- bin/rim
|
90
87
|
homepage: http://github.com/esrlabs/esr-rim
|
91
88
|
licenses: []
|
89
|
+
metadata: {}
|
92
90
|
post_install_message:
|
93
91
|
rdoc_options:
|
94
92
|
- --main
|
@@ -98,21 +96,19 @@ rdoc_options:
|
|
98
96
|
require_paths:
|
99
97
|
- lib
|
100
98
|
required_ruby_version: !ruby/object:Gem::Requirement
|
101
|
-
none: false
|
102
99
|
requirements:
|
103
100
|
- - ! '>='
|
104
101
|
- !ruby/object:Gem::Version
|
105
102
|
version: '0'
|
106
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
-
none: false
|
108
104
|
requirements:
|
109
105
|
- - ! '>='
|
110
106
|
- !ruby/object:Gem::Version
|
111
107
|
version: '0'
|
112
108
|
requirements: []
|
113
109
|
rubyforge_project:
|
114
|
-
rubygems_version:
|
110
|
+
rubygems_version: 2.4.8
|
115
111
|
signing_key:
|
116
|
-
specification_version:
|
112
|
+
specification_version: 4
|
117
113
|
summary: RIM - multi git tool
|
118
114
|
test_files: []
|