hoc 0.7 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/appveyor.yml +3 -1
- data/features/svn_basics.feature +19 -11
- data/lib/hoc/svn.rb +1 -1
- data/lib/hoc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d63fdd98e0cfd8dd19c7613c87db3d3f7195ee2e
|
4
|
+
data.tar.gz: ac77e76f3b0ea558c0367aa4b77397390fcb5ae5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17976a64377f361b3019d348943b51e14ee134c0a57b2299337f57f4b2aeff9be8330c01012386b9ffca28643e95d69d45faa924c92ebff6353e3073cf191af7
|
7
|
+
data.tar.gz: 78893f795b06537a1495265d6856c2f6c1b87ff2886cf61e9cd9bc4e3cf50577bacc8cd267a5be11bbab886284b9efd647d49fa15f90c640025772705bbbacc7
|
data/appveyor.yml
CHANGED
@@ -8,10 +8,12 @@ branches:
|
|
8
8
|
- gh-pages
|
9
9
|
os: Windows Server 2012
|
10
10
|
install:
|
11
|
-
- cmd: SET PATH=C:\Ruby200\bin;%PATH%
|
11
|
+
- cmd: SET PATH=C:\Ruby200\bin;C:\msys64\usr\bin;%PATH%
|
12
|
+
- cmd: bash --login -c "pacman -S --needed --noconfirm base-devel"
|
12
13
|
- cmd: ruby --version
|
13
14
|
- cmd: svn --version
|
14
15
|
- cmd: git --version
|
16
|
+
- cmd: diffstat --version
|
15
17
|
build_script:
|
16
18
|
- bundle update
|
17
19
|
- bundle install
|
data/features/svn_basics.feature
CHANGED
@@ -6,17 +6,25 @@ Feature: SVN Repo Processing
|
|
6
6
|
Given It is Unix
|
7
7
|
Given I run bash:
|
8
8
|
"""
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
9
|
+
svnadmin create base
|
10
|
+
svn co file://$(pwd)/base repo
|
11
|
+
cd repo
|
12
|
+
echo 'Hello, world!' > test.txt
|
13
|
+
svn add test.txt
|
14
|
+
svn ci -m 'first commit'
|
15
|
+
echo 'Bye!' > test.txt
|
16
|
+
svn ci -m 'second commit'
|
17
|
+
svn rm test.txt
|
18
|
+
svn ci -m 'third commit'
|
19
|
+
svn up
|
20
20
|
"""
|
21
21
|
When I run bin/hoc with "-f int -d repo"
|
22
22
|
Then Exit code is zero
|
23
|
+
|
24
|
+
Scenario: Real SVN repo
|
25
|
+
Given I run bash:
|
26
|
+
"""
|
27
|
+
svn co https://svn.apache.org/repos/asf/maven/skins/tags/maven-skins-9/src/site
|
28
|
+
"""
|
29
|
+
When I run bin/hoc with "-f int -d site"
|
30
|
+
Then Exit code is zero
|
data/lib/hoc/svn.rb
CHANGED
@@ -37,7 +37,7 @@ module HOC
|
|
37
37
|
Gem::Version.new(version) >= Gem::Version.new('1.7')
|
38
38
|
fail 'diffstat is not installed' if
|
39
39
|
`diffstat -V`.index('version').nil?
|
40
|
-
log = `cd
|
40
|
+
log = `cd #{@dir} && svn log --diff | diffstat`
|
41
41
|
[
|
42
42
|
Hits.new(
|
43
43
|
Time.now,
|
data/lib/hoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slop
|