anvil-core 0.4.0 → 0.4.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
  SHA1:
3
- metadata.gz: 71ffb03f67a3fed9d510791164f6688a87392fc4
4
- data.tar.gz: c4dab2c85e2d625ffab883580fa2e2bb88382570
3
+ metadata.gz: 08669b1307370dfecf73c78fe582d4d86dfaa47b
4
+ data.tar.gz: d3765d6b9f9347bd5c57afd32968a0ffe7f60c76
5
5
  SHA512:
6
- metadata.gz: 2a47af0b91a303163f21691c8d520925e7f9558617c8993b22e5d265740679c4bbca464f4b1b8874fa11831563cb14d24e259a52806f0b1485f491f148d5f7d8
7
- data.tar.gz: a2555fcaedd1ee41e37e66aeb782b7b65bd2b4ed9b09939730649085638bd378b4114d00bce8e25937f9e0e9e39711e9fca3a51bdcbe2e19a2466fccf11f1126
6
+ metadata.gz: 354c45a372d0ad59036e645e27c4b01aa4ea65af1c818f6dbb36de067ea279bd99fd52b10ea1391a9f766a2656382546903c1b7c8157664da28d85cbc53674a3
7
+ data.tar.gz: faa1282ff749d1b59b3e2fdaddc5926daa59a5c9b8d8676ae696944db920564fe215fb3d80092bdb26c64ac54303cfacef9716c949cacfb4daf898d40181a46c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -99,7 +99,7 @@ module Anvil
99
99
 
100
100
  # @return [String] top level dir if this is a git managed project
101
101
  def current_project_path
102
- Rugged::Repository.discover(Dir.pwd).gsub('.git/', '')
102
+ Rugged::Repository.discover(Dir.pwd).path.gsub('.git/', '')
103
103
  rescue Rugged::RepositoryError
104
104
  ''
105
105
  end
@@ -26,7 +26,7 @@ describe Anvil::ExtensionsManager do
26
26
  context 'on a path managed by git' do
27
27
  before do
28
28
  Rugged::Repository.stub(:discover)
29
- .and_return(pwd + '.git/')
29
+ .and_return(double(path: "#{pwd}.git/"))
30
30
  end
31
31
 
32
32
  it 'returns the repo workdir' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anvil-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fran Casas
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-25 00:00:00.000000000 Z
12
+ date: 2014-06-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: git
@@ -87,14 +87,14 @@ dependencies:
87
87
  requirements:
88
88
  - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '0.19'
90
+ version: 0.21.0
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: '0.19'
97
+ version: 0.21.0
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: bundler
100
100
  requirement: !ruby/object:Gem::Requirement