Skip to content

Commit 99c5e27

Browse files
committed
readme update for v0.2 release and build config update
1 parent a51556d commit 99c5e27

File tree

11 files changed

+18
-55
lines changed

11 files changed

+18
-55
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ before_install:
1717
- bash <(curl -s https://aahframework.org/env.txt) "essentials" "v0"
1818

1919
install:
20-
- go get -v -t aahframework.org/essentials.v0/...
20+
- cd $GOPATH/src/aahframework.org/essentials.v0
21+
- go get -v -t ./...
22+
# - go get -v -t aahframework.org/essentials.v0/...
2123

2224
script:
23-
- cd $GOPATH/src/aahframework.org/essentials.v0
25+
# - cd $GOPATH/src/aahframework.org/essentials.v0
2426
- bash go.test.sh
2527

2628
after_success:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Build Status](https://travis-ci.org/go-aah/essentials.svg?branch=master)](https://travis-ci.org/go-aah/essentials) [![codecov](https://codecov.io/gh/go-aah/essentials/branch/master/graph/badge.svg)](https://codecov.io/gh/go-aah/essentials/branch/master) [![Go Report Card](https://goreportcard.com/badge/aahframework.org/essentials)](https://goreportcard.com/report/aahframework.org/essentials)
44
[![Version](https://img.shields.io/badge/version-0.1-blue.svg)](https://github.com/go-aah/essentials/releases/latest) [![GoDoc](https://godoc.org/aahframework.org/essentials?status.svg)](https://godoc.org/aahframework.org/essentials) [![License](https://img.shields.io/github/license/go-aah/essentials.svg)](LICENSE)
55

6-
***v0.1 [released](https://github.com/go-aah/essentials/releases/latest) and tagged on Jan 22, 2017***
6+
***v0.2 [released](https://github.com/go-aah/essentials/releases/latest) and tagged on Mar 03, 2017***
77

88
`essentials` contain simple & useful utils for go lang. aah framework utilizes essentials (aka `ess`) library across. Essential library complements with handy methods for:
99
* filepath
@@ -20,7 +20,7 @@
2020
#### Stable - Version
2121
```sh
2222
# install the library
23-
go get -u aahframework.org/essentials
23+
go get -u aahframework.org/essentials.v0
2424
```
2525

2626
See official page [TODO]

filepath_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"runtime"
1111
"testing"
1212

13-
"aahframework.org/test/assert"
13+
"aahframework.org/test.v0/assert"
1414
)
1515

1616
func TestIsFileExists(t *testing.T) {

format_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package ess
77
import (
88
"testing"
99

10-
"aahframework.org/test/assert"
10+
"aahframework.org/test.v0/assert"
1111
)
1212

1313
func TestBStrToBytes(t *testing.T) {

go_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"path/filepath"
1010
"testing"
1111

12-
"aahframework.org/test/assert"
12+
"aahframework.org/test.v0/assert"
1313
)
1414

1515
func TestLookExecutable(t *testing.T) {
@@ -19,7 +19,7 @@ func TestLookExecutable(t *testing.T) {
1919
}
2020

2121
func TestIsImportPathExists(t *testing.T) {
22-
assert.Equal(t, true, IsImportPathExists("aahframework.org/essentials"))
22+
assert.Equal(t, true, IsImportPathExists("aahframework.org/essentials.v0"))
2323

2424
assert.Equal(t, false, IsImportPathExists("aahframework.org/unknown"))
2525
}

io_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"os"
99
"testing"
1010

11-
"aahframework.org/test/assert"
11+
"aahframework.org/test.v0/assert"
1212
)
1313

1414
func TestCloseQuietly(t *testing.T) {

os_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"runtime"
99
"testing"
1010

11-
"aahframework.org/test/assert"
11+
"aahframework.org/test.v0/assert"
1212
)
1313

1414
func TestMkDirAll(t *testing.T) {

prepare-aah-env.sh

Lines changed: 0 additions & 41 deletions
This file was deleted.

reflect.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ func GetFunctionInfo(f interface{}) (fi *FunctionInfo) {
4242
}()
4343

4444
info := runtime.FuncForPC(reflect.ValueOf(f).Pointer()).Name()
45+
info = strings.Replace(info, "%2e", ".", -1)
4546
idx := strings.LastIndexByte(info, '.')
4647
fi = &FunctionInfo{
4748
Name: info[idx+1:],
@@ -62,6 +63,7 @@ func GetCallerInfo() *CallerInfo {
6263
}
6364

6465
fn := runtime.FuncForPC(pc).Name()
66+
fn = strings.Replace(fn, "%2e", ".", -1)
6567

6668
return &CallerInfo{
6769
QualifiedName: fn,

reflect_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"fmt"
99
"testing"
1010

11-
"aahframework.org/test/assert"
11+
"aahframework.org/test.v0/assert"
1212
)
1313

1414
func TestGetFunctionInfo(t *testing.T) {
@@ -17,7 +17,7 @@ func TestGetFunctionInfo(t *testing.T) {
1717
}
1818

1919
info := GetFunctionInfo(testFunc1)
20-
assert.Equal(t, "aahframework.org/essentials.testFunc1", info.QualifiedName)
20+
assert.Equal(t, "aahframework.org/essentials.v0.testFunc1", info.QualifiedName)
2121

2222
info = GetFunctionInfo(SampleStr{})
2323
assert.Equal(t, "", info.Name)
@@ -30,7 +30,7 @@ func TestGetFunctionInfo(t *testing.T) {
3030
func TestGetCallerInfo(t *testing.T) {
3131
caller := GetCallerInfo()
3232
assert.Equal(t, "TestGetCallerInfo", caller.FunctionName)
33-
assert.Equal(t, "aahframework.org/essentials.TestGetCallerInfo", caller.QualifiedName)
33+
assert.Equal(t, "aahframework.org/essentials.v0.TestGetCallerInfo", caller.QualifiedName)
3434
assert.Equal(t, "reflect_test.go", caller.FileName)
3535
}
3636

0 commit comments

Comments
 (0)