bee_go 0.0.4 → 0.0.5

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.
Files changed (3) hide show
  1. data/build/README +1 -1
  2. data/go.yml +7 -5
  3. metadata +4 -4
data/build/README CHANGED
@@ -20,4 +20,4 @@ or go to URL http://www.apache.org/licenses/LICENSE-2.0).
20
20
 
21
21
  = Copyright
22
22
 
23
- Bee_go version 0.0.4 (C) Michel Casabianca - 2014
23
+ Bee_go version 0.0.5 (C) Michel Casabianca - 2014
data/go.yml CHANGED
@@ -61,11 +61,13 @@
61
61
  - for: _dir
62
62
  in: 'Dir.glob("#{go_src_dir}/#{go_package}/#{name}/**/*").select{|f| File.directory? f}'
63
63
  do:
64
- - rb: |
65
- _pkg = _dir[go_src_dir.length+1..-1]
66
- _name = _pkg[_pkg.rindex('/')+1..-1]
67
- - "go test -covermode=#{go_cover_mode} -coverprofile=#{go_cov_file} #{_pkg} > /dev/null"
68
- - "go tool cover -html=#{go_cov_file} -o #{go_build_dir}/#{_name}.html"
64
+ - if: 'Dir.glob("#{_dir}/*_test.go").length > 0'
65
+ then:
66
+ - rb: |
67
+ _pkg = _dir[go_src_dir.length+1..-1]
68
+ _name = _pkg[_pkg.rindex('/')+1..-1]
69
+ - "go test -covermode=#{go_cover_mode} -coverprofile=#{go_cov_file} #{_pkg} > /dev/null"
70
+ - "go tool cover -html=#{go_cov_file} -o #{go_build_dir}/#{_name}.html"
69
71
  - "go test -cover #{go_package}/..."
70
72
  - rm: :go_cov_file
71
73
  - print: "Test coverage reports generated in directory '#{go_build_dir}'"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bee_go
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michel Casabianca
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2014-07-09 00:00:00 Z
18
+ date: 2014-09-09 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bee