Skip to content

Commit

Permalink
30x --> apid branch (#3)
Browse files Browse the repository at this point in the history
* 30x --> apid branch

* update glide.lock
  • Loading branch information
sramamoorthy73 authored and haomingzhang committed Sep 20, 2017
1 parent d2e9072 commit fcef6b3
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 45 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export COV_FILE := $(COV_DIR)/covdata.out
export COV_HTML := $(COV_DIR)/$(MYAPP)-coverage.html
export LOG_DIR := logs
export UNIT_TEST_DB := unit-test.db
VENDOR_DIR := github.com/30x/$(MYAPP)/vendor
VENDOR_DIR := github.com/apid/$(MYAPP)/vendor
SQLITE_PKG := github.com/mattn/go-sqlite3

clean:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# apidCRUD

apidCRUD is a plugin for
[apid](http://github.com/30x/apid).
[apid](http://github.com/apid/apid).
it handles CRUD (Create/Read/Update/Delete) APIs,
with a simple local database on the back end.

Expand Down Expand Up @@ -148,9 +148,9 @@ utConfData in globals_test.go .

## Resources

* [travis-ci for apidCRUD](https://travis-ci.org/30x/apidCRUD)
* [coveralls for apidCRUD](https://coveralls.io/github/30x/apidCRUD)
* [godoc for apidCRUD](https://godoc.org/github.com/30x/apidCRUD)
* [travis-ci for apidCRUD](https://travis-ci.org/apid/apidCRUD)
* [coveralls for apidCRUD](https://coveralls.io/github/apid/apidCRUD)
* [godoc for apidCRUD](https://godoc.org/github.com/apid/apidCRUD)
* [swagger.yaml for apidCRUD](./swagger.yaml)
* [apistudio for apidCRUD](http://playground.apistudio.io/8548bd01-cb5e-47c7-b2f4-5452c9ca4e66/#/)
* [Apigee Edge API style guide](https://docs.google.com/document/d/1iwzeSdQqsDnhapQarQKs9pK_8vQUdnI91RNiwHeLv94)
6 changes: 3 additions & 3 deletions cmd/apidCRUD/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
package main

import (
"github.com/30x/apid-core"
"github.com/30x/apid-core/factory"
_ "github.com/30x/apidCRUD"
"github.com/apid/apid-core"
"github.com/apid/apid-core/factory"
_ "github.com/apid/apidCRUD"
)

// main() here is a stripped-down version of the real apid main.
Expand Down
2 changes: 1 addition & 1 deletion cover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

modules()
{
local pref="github\.com/30x/apidCRUD"
local pref="github\.com/apid/apidCRUD"
go list ./... \
| egrep -v "^$pref/vendor|^$pref/obs|^$pref/cmd"
}
Expand Down
42 changes: 20 additions & 22 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions glide.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package: github.com/30x/apidCRUD
package: github.com/apid/apidCRUD
import:
- package: github.com/30x/apid-core # plugin framework
# repo: [email protected]:30x/apid-core.git
- package: github.com/30x/goscaffold
# repo: [email protected]:30x/goscaffold.git
- package: github.com/apid/apid-core # plugin framework
# repo: [email protected]:apid/apid-core.git
- package: github.com/apid/goscaffold
# repo: [email protected]:apid/goscaffold.git
- package: github.com/mattn/go-sqlite3
# repo: [email protected]:mattn/go-sqlite3.git
#- package: github.com/proullon/ramsql/driver
Expand Down
2 changes: 1 addition & 1 deletion globals.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package apidCRUD
import (
"net/http"
"database/sql"
"github.com/30x/apid-core"
"github.com/apid/apid-core"
)

// dbType is intended to encapsulate the database handle type.
Expand Down
2 changes: 1 addition & 1 deletion init.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package apidCRUD

import "github.com/30x/apid-core"
import "github.com/apid/apid-core"

// init() is magically called at startup by the go runtime.
// we take this opportunity to tell apid to call our initPlugin()
Expand Down
2 changes: 1 addition & 1 deletion plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package apidCRUD
import (
"strconv"
"net/http"
"github.com/30x/apid-core"
"github.com/apid/apid-core"
)

// ----- narrowed-down versions of apid service interfaces
Expand Down
2 changes: 1 addition & 1 deletion plugin_data.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package apidCRUD

import "github.com/30x/apid-core"
import "github.com/apid/apid-core"

// pluginData is used to pass back some plugin data to the apid framework.
var pluginData = apid.PluginData {
Expand Down
2 changes: 1 addition & 1 deletion plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"net/http"
"net/http/httptest"
"github.com/30x/apid-core"
"github.com/apid/apid-core"
)

// ----- unit tests for initDB()
Expand Down
4 changes: 2 additions & 2 deletions setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package apidCRUD
import (
"testing"
"os"
"github.com/30x/apid-core"
"github.com/30x/apid-core/factory"
"github.com/apid/apid-core"
"github.com/apid/apid-core/factory"
)

var testServices = factory.DefaultServicesFactory()
Expand Down
4 changes: 2 additions & 2 deletions unit-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ LOG_DIR=${LOG_DIR:-logs}
COV_DIR=${COV_DIR:-cov}
COV_FILE=${COV_FILE:-$COV_DIR/covdata.out}
COV_HTML=${COV_HTML:-$COV_DIR/apidCRUD-coverage.html}
PKG=github.com/30x/apidCRUD
PKG=github.com/apid/apidCRUD

mkdir -p "$LOG_DIR" "$COV_DIR"

./logrun.sh "$LOG_DIR/unit-test.out" \
go test -coverprofile="$COV_FILE" github.com/30x/apidCRUD \
go test -coverprofile="$COV_FILE" github.com/apid/apidCRUD \
|| exit 1

go tool cover -func="$COV_FILE" > "$LOG_DIR/cover-func.out"
Expand Down

0 comments on commit fcef6b3

Please sign in to comment.