ohloh_scm 3.0.21 → 4.0.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
  SHA256:
3
- metadata.gz: a3bc5fee4822aa9fdb23808cf18333cf2439fb67beba337281b19e5e29162d60
4
- data.tar.gz: e6617dc6ce992273abc6b51321ff3092086e27c87821a9175d4551c2b8f9ce3c
3
+ metadata.gz: 8809bbfd25b951cbd16c88eaefec1c70bbc2f255f1b0bb7d3d67380e9e107aed
4
+ data.tar.gz: 6f27491d2f3b158f19f290bdd4f1c1d988ce1c067f79c3c5846c72174e5af920
5
5
  SHA512:
6
- metadata.gz: 177ba8662a8b8cba0370393061af014fd6061e8c58268d8b61c463eb1a4c441967bea7c07f788a03f4ec32dcc878b97d6a51601818bbd644b48a21bd40648122
7
- data.tar.gz: 481ef3fad98f4418fddae8e43b2cefb10d4cab68da6eb5646ffef32a459b13e6f00ee6ba7290184f8ab131e8d2f18ed5a0f20a3de13e8315e3f752ca7012f2b6
6
+ metadata.gz: 7793a60e5457ccd198a9be366b4d9e02926a472f874428328d724baba8c6a228da5eb42030db850d19d981a8844d23c69b5972c0b9c724d42493be6b37696e60
7
+ data.tar.gz: cbe7febaf85256dfce20c7ef059bf1e58952ee3dac0556da0fbb821b3e5d2cac8803f1764126eec2ee0c5ee668b185389f52b9ca46e59f2f603d76d294ce18d9
@@ -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; LANG=en_US.UTF-8 rake test 2> /dev/null'
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.5.3
1
+ 2.6.9
data/Dockerfile CHANGED
@@ -1,36 +1,49 @@
1
- FROM ubuntu:18.04
1
+ FROM ubuntu:22.04
2
2
  MAINTAINER OpenHub <info@openhub.net>
3
3
 
4
- ENV DEBIAN_FRONTEND=noninteractive
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 apt-add-repository -y ppa:brightbox/ruby-ng
11
- RUN apt-get update
12
- RUN apt-get install -y ruby2.5 ruby2.5-dev
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
- RUN cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
20
- RUN echo 'StrictHostKeyChecking no' >> ~/.ssh/config
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 mkdir -p ~/.bazaar/plugins
23
- RUN cd ~/.bazaar/plugins
24
- RUN bzr branch lp:bzr-xmloutput ~/.bazaar/plugins/xmloutput
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
- RUN gem install rake
29
- RUN gem install bundler -v '~> 1.17'
30
-
31
- RUN mkdir -p /home/app/ohloh_scm
32
- WORKDIR /home/app/ohloh_scm
33
- ADD . /home/app/ohloh_scm
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
- RUN bundle config --global silence_root_warning 1
36
- RUN bundle install
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.repository.changectx(revision)
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.repository.changectx(revision)
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
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  module OhlohScm
4
4
  module Version
5
- STRING = '3.0.21'
6
- GIT = '2.17.1'
7
- SVN = '1.9.7'
8
- CVSNT = '2.5.04'
9
- HG = '4.5.3'
10
- BZR = '2.8.0'
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 = [".", "..", ".gitignore", "COPYING", "Gemfile.lock", "Godeps", "README", "helloworld.c", "makefile", "nested", "ohloh_token"]
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 = [".", "..", ".hgtags", "Gemfile.lock", "Godeps", "README", "makefile", "nested", "two"]
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: 3.0.21
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-02-08 00:00:00.000000000 Z
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.17.1, SVN 1.9.7, CVSNT 2.5.04,
179
- Mercurial 4.5.3 and Bazaar 2.8.0. If the installed version is different, Ohloh SCM
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: