hoc 0.7 → 0.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59d2fc6efb9c42e103f219afab3f30b6c7795237
4
- data.tar.gz: 909b0ab272d89db5b746080964033de01e5b03ba
3
+ metadata.gz: d63fdd98e0cfd8dd19c7613c87db3d3f7195ee2e
4
+ data.tar.gz: ac77e76f3b0ea558c0367aa4b77397390fcb5ae5
5
5
  SHA512:
6
- metadata.gz: 033ae8f9c36c4e29919f935f62c74c758ae6ee7820c07870af05c8de68165b92f986115d2feca8795f4df7c350307bd0d3bcf517e2e61302cb94d70e8629280a
7
- data.tar.gz: acc93df060da6ce96b1b955256e774aeaa5047fa6d31112ee0e914c7cd7eb8a5ff12d66715c386e666f517493d1a066a180873571ce19ee02072b11ee707e750
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
@@ -6,17 +6,25 @@ Feature: SVN Repo Processing
6
6
  Given It is Unix
7
7
  Given I run bash:
8
8
  """
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
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 '#{@dir}' && svn log --diff | diffstat`
40
+ log = `cd #{@dir} && svn log --diff | diffstat`
41
41
  [
42
42
  Hits.new(
43
43
  Time.now,
data/lib/hoc/version.rb CHANGED
@@ -26,5 +26,5 @@
26
26
  # Copyright:: Copyright (c) 2014 Yegor Bugayenko
27
27
  # License:: MIT
28
28
  module HOC
29
- VERSION = '0.7'
29
+ VERSION = '0.7.1'
30
30
  end
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: '0.7'
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-24 00:00:00.000000000 Z
11
+ date: 2015-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop