ohloh_scm 3.0.21 → 4.0.1
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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/.ruby-version +1 -1
- data/Dockerfile +35 -22
- data/lib/ohloh_scm/py_bridge/hg_server.py +9 -2
- data/lib/ohloh_scm/version.rb +6 -6
- data/spec/ohloh_scm/git/activity_spec.rb +2 -1
- data/spec/ohloh_scm/hg/activity_spec.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8809bbfd25b951cbd16c88eaefec1c70bbc2f255f1b0bb7d3d67380e9e107aed
|
4
|
+
data.tar.gz: 6f27491d2f3b158f19f290bdd4f1c1d988ce1c067f79c3c5846c72174e5af920
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7793a60e5457ccd198a9be366b4d9e02926a472f874428328d724baba8c6a228da5eb42030db850d19d981a8844d23c69b5972c0b9c724d42493be6b37696e60
|
7
|
+
data.tar.gz: cbe7febaf85256dfce20c7ef059bf1e58952ee3dac0556da0fbb821b3e5d2cac8803f1764126eec2ee0c5ee668b185389f52b9ca46e59f2f603d76d294ce18d9
|
data/.github/workflows/ci.yml
CHANGED
@@ -16,5 +16,5 @@ jobs:
|
|
16
16
|
- name: Run rubocop and tests
|
17
17
|
run: |
|
18
18
|
docker pull ohdeployer/ohloh_scm:latest
|
19
|
-
cmd='/etc/init.d/ssh start; rubocop;
|
19
|
+
cmd='/etc/init.d/ssh start; bundle exec rubocop; rake test 2> /dev/null'
|
20
20
|
docker run --rm -P -v $(pwd):/home/app/ohloh_scm -i ohdeployer/ohloh_scm:latest /bin/sh -c "$cmd"
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6.9
|
data/Dockerfile
CHANGED
@@ -1,36 +1,49 @@
|
|
1
|
-
FROM ubuntu:
|
1
|
+
FROM ubuntu:22.04
|
2
2
|
MAINTAINER OpenHub <info@openhub.net>
|
3
3
|
|
4
|
-
ENV
|
4
|
+
ENV HOME /home
|
5
|
+
ENV LC_ALL en_US.UTF-8
|
6
|
+
ENV APP_HOME $HOME/app/ohloh_scm
|
7
|
+
ENV DEBIAN_FRONTEND noninteractive
|
8
|
+
ENV PATH $HOME/.rbenv/shims:$HOME/.rbenv/bin:$HOME/.rbenv/plugins/ruby-build/bin:$PATH
|
5
9
|
|
6
10
|
RUN apt-get update
|
7
|
-
RUN apt-get install -y build-essential software-properties-common locales
|
11
|
+
RUN apt-get install -y build-essential software-properties-common locales ragel \
|
12
|
+
libxml2-dev libpcre3 libpcre3-dev swig gperf openssh-server expect libreadline-dev \
|
13
|
+
zlib1g-dev git git-svn subversion cvs ca-certificates
|
14
|
+
|
15
|
+
RUN apt-get install -y python2.7 python2-dev python-pip \
|
16
|
+
&& ln -s /usr/bin/python2.7 /usr/local/bin/python
|
17
|
+
|
8
18
|
RUN locale-gen en_US.UTF-8
|
9
19
|
|
10
|
-
RUN
|
11
|
-
|
12
|
-
|
20
|
+
RUN cd $HOME \
|
21
|
+
&& git clone https://github.com/rbenv/rbenv.git $HOME/.rbenv \
|
22
|
+
&& git clone https://github.com/sstephenson/ruby-build.git $HOME/.rbenv/plugins/ruby-build \
|
23
|
+
&& echo 'eval "$(rbenv init -)"' >> $HOME/.bashrc \
|
24
|
+
&& echo 'gem: --no-rdoc --no-ri' >> $HOME/.gemrc \
|
25
|
+
&& echo 'export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:/home/.rbenv/plugins/ruby-build/bin:$PATH"' >> $HOME/.bash_profile \
|
26
|
+
&& rbenv install 2.6.9 && rbenv global 2.6.9
|
13
27
|
|
14
|
-
RUN apt-get install -y ragel libxml2-dev libpcre3 libpcre3-dev swig gperf openssh-server expect
|
15
|
-
RUN apt-get install -y git git-svn subversion cvs mercurial bzr
|
16
28
|
RUN git config --global --add safe.directory '*'
|
17
29
|
|
18
|
-
RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa
|
19
|
-
|
20
|
-
|
30
|
+
RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa \
|
31
|
+
&& cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys \
|
32
|
+
&& echo 'StrictHostKeyChecking no' >> /root/.ssh/config
|
21
33
|
|
22
|
-
RUN
|
23
|
-
RUN
|
24
|
-
|
34
|
+
RUN pip2 install bzr "mercurial==4.9.1"
|
35
|
+
RUN mkdir -p ~/.bazaar/plugins \
|
36
|
+
&& cd ~/.bazaar/plugins \
|
37
|
+
&& bzr branch lp:bzr-xmloutput ~/.bazaar/plugins/xmloutput
|
25
38
|
|
26
39
|
RUN ln -s /usr/bin/cvs /usr/bin/cvsnt
|
27
40
|
|
28
|
-
|
29
|
-
RUN
|
30
|
-
|
31
|
-
RUN
|
32
|
-
|
33
|
-
|
41
|
+
# Run bundle install before copying source to keep this step cached.
|
42
|
+
RUN mkdir -p $APP_HOME
|
43
|
+
COPY Gemfile* $APP_HOME/
|
44
|
+
RUN gem install rake bundler:1.17.3 \
|
45
|
+
&& bundle config --global silence_root_warning 1 \
|
46
|
+
&& cd $APP_HOME && bundle install
|
34
47
|
|
35
|
-
|
36
|
-
|
48
|
+
ADD . $APP_HOME
|
49
|
+
WORKDIR $APP_HOME
|
@@ -10,13 +10,20 @@ class HglibPipeServer:
|
|
10
10
|
self.repository = hg.repository(self.ui, repository_url)
|
11
11
|
|
12
12
|
def get_file_content(self, filename, revision):
|
13
|
-
c = self.
|
13
|
+
c = self.changectx(revision)
|
14
14
|
fc = c[filename]
|
15
15
|
contents = fc.data()
|
16
16
|
return contents
|
17
17
|
|
18
|
+
def changectx(self, revision):
|
19
|
+
if hasattr(self.repository, 'changectx'):
|
20
|
+
return self.repository.changectx(revision)
|
21
|
+
else:
|
22
|
+
rev_no = self.repository.revs(revision).first()
|
23
|
+
return self.repository[rev_no]
|
24
|
+
|
18
25
|
def get_parent_tokens(self, revision):
|
19
|
-
c = self.
|
26
|
+
c = self.changectx(revision)
|
20
27
|
parents = [p.hex() for p in c.parents() if p.hex() != '0000000000000000000000000000000000000000']
|
21
28
|
return parents
|
22
29
|
|
data/lib/ohloh_scm/version.rb
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
module OhlohScm
|
4
4
|
module Version
|
5
|
-
STRING = '
|
6
|
-
GIT = '2.
|
7
|
-
SVN = '1.
|
8
|
-
CVSNT = '
|
9
|
-
HG = '4.
|
10
|
-
BZR = '2.
|
5
|
+
STRING = '4.0.1'
|
6
|
+
GIT = '2.34.1'
|
7
|
+
SVN = '1.14.1'
|
8
|
+
CVSNT = '1.12.13'
|
9
|
+
HG = '4.9.1'
|
10
|
+
BZR = '2.7.0'
|
11
11
|
end
|
12
12
|
end
|
@@ -7,7 +7,8 @@ describe 'Git::Activity' do
|
|
7
7
|
with_git_repository('git') do |git|
|
8
8
|
tmpdir do |dir|
|
9
9
|
git.activity.export(dir)
|
10
|
-
entries = [
|
10
|
+
entries = ['.', '..', '.gitignore', 'COPYING', 'Gemfile.lock', 'Godeps', 'README',
|
11
|
+
'helloworld.c', 'makefile', 'nested', 'ohloh_token']
|
11
12
|
Dir.entries(dir).sort.must_equal entries
|
12
13
|
end
|
13
14
|
end
|
@@ -13,7 +13,7 @@ describe 'Hg::Activity' do
|
|
13
13
|
with_hg_repository('hg') do |hg|
|
14
14
|
Dir.mktmpdir do |dir|
|
15
15
|
hg.activity.export(dir)
|
16
|
-
entries = [
|
16
|
+
entries = ['.', '..', '.hgtags', 'Gemfile.lock', 'Godeps', 'README', 'makefile', 'nested', 'two']
|
17
17
|
Dir.entries(dir).sort.must_equal entries
|
18
18
|
end
|
19
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ohloh_scm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenHub Team at Synopsys
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
The OpenHub source control management library for \
|
@@ -175,8 +175,8 @@ homepage: https://github.com/blackducksoftware/ohloh_scm/
|
|
175
175
|
licenses:
|
176
176
|
- GPL-2.0
|
177
177
|
metadata: {}
|
178
|
-
post_install_message: Ohloh SCM is depending on Git 2.
|
179
|
-
Mercurial 4.
|
178
|
+
post_install_message: Ohloh SCM is depending on Git 2.34.1, SVN 1.14.1, CVSNT 1.12.13,
|
179
|
+
Mercurial 4.9.1 and Bazaar 2.7.0. If the installed version is different, Ohloh SCM
|
180
180
|
may not operate as expected.
|
181
181
|
rdoc_options: []
|
182
182
|
require_paths:
|