Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: schollz/find
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a3d23a9
Choose a base ref
...
head repository: schollz/find
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2b15b82
Choose a head ref
  • 5 commits
  • 140 files changed
  • 1 contributor

Commits on Sep 26, 2017

  1. Update dependencies

    schollz committed Sep 26, 2017
    Copy the full SHA
    baa7870 View commit details
  2. Bump version

    schollz committed Sep 26, 2017
    Copy the full SHA
    5b2a5b0 View commit details
  3. CHange name

    schollz committed Sep 26, 2017
    Copy the full SHA
    e857589 View commit details
  4. Fix tests

    schollz committed Sep 26, 2017
    Copy the full SHA
    84ead19 View commit details
  5. Lock dependencies

    schollz committed Sep 26, 2017
    Copy the full SHA
    2b15b82 View commit details
Showing with 30,113 additions and 26 deletions.
  1. +39 −0 Gopkg.lock
  2. +34 −0 Gopkg.toml
  3. +19 −20 Makefile
  4. +2 −2 README.md
  5. +2 −2 main.go
  6. +1 −1 main_test.go
  7. +1 −1 os_configuration.go
  8. +22 −0 vendor/github.com/davecgh/go-spew/.gitignore
  9. +14 −0 vendor/github.com/davecgh/go-spew/.travis.yml
  10. +15 −0 vendor/github.com/davecgh/go-spew/LICENSE
  11. +205 −0 vendor/github.com/davecgh/go-spew/README.md
  12. +22 −0 vendor/github.com/davecgh/go-spew/cov_report.sh
  13. +152 −0 vendor/github.com/davecgh/go-spew/spew/bypass.go
  14. +38 −0 vendor/github.com/davecgh/go-spew/spew/bypasssafe.go
  15. +341 −0 vendor/github.com/davecgh/go-spew/spew/common.go
  16. +298 −0 vendor/github.com/davecgh/go-spew/spew/common_test.go
  17. +306 −0 vendor/github.com/davecgh/go-spew/spew/config.go
  18. +211 −0 vendor/github.com/davecgh/go-spew/spew/doc.go
  19. +509 −0 vendor/github.com/davecgh/go-spew/spew/dump.go
  20. +1,042 −0 vendor/github.com/davecgh/go-spew/spew/dump_test.go
  21. +99 −0 vendor/github.com/davecgh/go-spew/spew/dumpcgo_test.go
  22. +26 −0 vendor/github.com/davecgh/go-spew/spew/dumpnocgo_test.go
  23. +226 −0 vendor/github.com/davecgh/go-spew/spew/example_test.go
  24. +419 −0 vendor/github.com/davecgh/go-spew/spew/format.go
  25. +1,558 −0 vendor/github.com/davecgh/go-spew/spew/format_test.go
  26. +87 −0 vendor/github.com/davecgh/go-spew/spew/internal_test.go
  27. +102 −0 vendor/github.com/davecgh/go-spew/spew/internalunsafe_test.go
  28. +148 −0 vendor/github.com/davecgh/go-spew/spew/spew.go
  29. +320 −0 vendor/github.com/davecgh/go-spew/spew/spew_test.go
  30. +82 −0 vendor/github.com/davecgh/go-spew/spew/testdata/dumpcgo.go
  31. +61 −0 vendor/github.com/davecgh/go-spew/test_coverage.txt
  32. +6 −0 vendor/github.com/op/go-logging/.travis.yml
  33. +5 −0 vendor/github.com/op/go-logging/CONTRIBUTORS
  34. +27 −0 vendor/github.com/op/go-logging/LICENSE
  35. +89 −0 vendor/github.com/op/go-logging/README.md
  36. +39 −0 vendor/github.com/op/go-logging/backend.go
  37. +40 −0 vendor/github.com/op/go-logging/example_test.go
  38. +49 −0 vendor/github.com/op/go-logging/examples/example.go
  39. BIN vendor/github.com/op/go-logging/examples/example.png
  40. +400 −0 vendor/github.com/op/go-logging/format.go
  41. +184 −0 vendor/github.com/op/go-logging/format_test.go
  42. +128 −0 vendor/github.com/op/go-logging/level.go
  43. +76 −0 vendor/github.com/op/go-logging/level_test.go
  44. +109 −0 vendor/github.com/op/go-logging/log_nix.go
  45. +155 −0 vendor/github.com/op/go-logging/log_test.go
  46. +107 −0 vendor/github.com/op/go-logging/log_windows.go
  47. +249 −0 vendor/github.com/op/go-logging/logger.go
  48. +53 −0 vendor/github.com/op/go-logging/logger_test.go
  49. +237 −0 vendor/github.com/op/go-logging/memory.go
  50. +117 −0 vendor/github.com/op/go-logging/memory_test.go
  51. +65 −0 vendor/github.com/op/go-logging/multi.go
  52. +51 −0 vendor/github.com/op/go-logging/multi_test.go
  53. +53 −0 vendor/github.com/op/go-logging/syslog.go
  54. +28 −0 vendor/github.com/op/go-logging/syslog_fallback.go
  55. +5 −0 vendor/github.com/pmezard/go-difflib/.travis.yml
  56. +27 −0 vendor/github.com/pmezard/go-difflib/LICENSE
  57. +50 −0 vendor/github.com/pmezard/go-difflib/README.md
  58. +772 −0 vendor/github.com/pmezard/go-difflib/difflib/difflib.go
  59. +426 −0 vendor/github.com/pmezard/go-difflib/difflib/difflib_test.go
  60. +24 −0 vendor/github.com/stretchr/testify/.gitignore
  61. +16 −0 vendor/github.com/stretchr/testify/.travis.yml
  62. +23 −0 vendor/github.com/stretchr/testify/Godeps/Godeps.json
  63. +5 −0 vendor/github.com/stretchr/testify/Godeps/Readme
  64. +22 −0 vendor/github.com/stretchr/testify/LICENCE.txt
  65. +22 −0 vendor/github.com/stretchr/testify/LICENSE
  66. +332 −0 vendor/github.com/stretchr/testify/README.md
  67. +287 −0 vendor/github.com/stretchr/testify/_codegen/main.go
  68. +387 −0 vendor/github.com/stretchr/testify/assert/assertion_forward.go
  69. +4 −0 vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl
  70. +1,052 −0 vendor/github.com/stretchr/testify/assert/assertions.go
  71. +1,210 −0 vendor/github.com/stretchr/testify/assert/assertions_test.go
  72. +45 −0 vendor/github.com/stretchr/testify/assert/doc.go
  73. +10 −0 vendor/github.com/stretchr/testify/assert/errors.go
  74. +16 −0 vendor/github.com/stretchr/testify/assert/forward_assertions.go
  75. +611 −0 vendor/github.com/stretchr/testify/assert/forward_assertions_test.go
  76. +106 −0 vendor/github.com/stretchr/testify/assert/http_assertions.go
  77. +86 −0 vendor/github.com/stretchr/testify/assert/http_assertions_test.go
  78. +22 −0 vendor/github.com/stretchr/testify/doc.go
  79. +2 −0 vendor/github.com/stretchr/testify/http/doc.go
  80. +49 −0 vendor/github.com/stretchr/testify/http/test_response_writer.go
  81. +17 −0 vendor/github.com/stretchr/testify/http/test_round_tripper.go
  82. +44 −0 vendor/github.com/stretchr/testify/mock/doc.go
  83. +763 −0 vendor/github.com/stretchr/testify/mock/mock.go
  84. +1,132 −0 vendor/github.com/stretchr/testify/mock/mock_test.go
  85. +12 −0 vendor/github.com/stretchr/testify/package_test.go
  86. +28 −0 vendor/github.com/stretchr/testify/require/doc.go
  87. +16 −0 vendor/github.com/stretchr/testify/require/forward_requirements.go
  88. +385 −0 vendor/github.com/stretchr/testify/require/forward_requirements_test.go
  89. +464 −0 vendor/github.com/stretchr/testify/require/require.go
  90. +6 −0 vendor/github.com/stretchr/testify/require/require.go.tmpl
  91. +388 −0 vendor/github.com/stretchr/testify/require/require_forward.go
  92. +4 −0 vendor/github.com/stretchr/testify/require/require_forward.go.tmpl
  93. +9 −0 vendor/github.com/stretchr/testify/require/requirements.go
  94. +369 −0 vendor/github.com/stretchr/testify/require/requirements_test.go
  95. +65 −0 vendor/github.com/stretchr/testify/suite/doc.go
  96. +34 −0 vendor/github.com/stretchr/testify/suite/interfaces.go
  97. +115 −0 vendor/github.com/stretchr/testify/suite/suite.go
  98. +239 −0 vendor/github.com/stretchr/testify/suite/suite_test.go
  99. +2 −0 vendor/github.com/urfave/cli/.flake8
  100. +2 −0 vendor/github.com/urfave/cli/.gitignore
  101. +27 −0 vendor/github.com/urfave/cli/.travis.yml
  102. +435 −0 vendor/github.com/urfave/cli/CHANGELOG.md
  103. +21 −0 vendor/github.com/urfave/cli/LICENSE
  104. +1,381 −0 vendor/github.com/urfave/cli/README.md
  105. +3 −0 vendor/github.com/urfave/cli/altsrc/altsrc.go
  106. +261 −0 vendor/github.com/urfave/cli/altsrc/flag.go
  107. +347 −0 vendor/github.com/urfave/cli/altsrc/flag_generated.go
  108. +336 −0 vendor/github.com/urfave/cli/altsrc/flag_test.go
  109. +18 −0 vendor/github.com/urfave/cli/altsrc/helpers_test.go
  110. +21 −0 vendor/github.com/urfave/cli/altsrc/input_source_context.go
  111. +262 −0 vendor/github.com/urfave/cli/altsrc/map_input_source.go
  112. +310 −0 vendor/github.com/urfave/cli/altsrc/toml_command_test.go
  113. +113 −0 vendor/github.com/urfave/cli/altsrc/toml_file_loader.go
  114. +313 −0 vendor/github.com/urfave/cli/altsrc/yaml_command_test.go
  115. +92 −0 vendor/github.com/urfave/cli/altsrc/yaml_file_loader.go
  116. +497 −0 vendor/github.com/urfave/cli/app.go
  117. +1,742 −0 vendor/github.com/urfave/cli/app_test.go
  118. +26 −0 vendor/github.com/urfave/cli/appveyor.yml
  119. +16 −0 vendor/github.com/urfave/cli/autocomplete/bash_autocomplete
  120. +5 −0 vendor/github.com/urfave/cli/autocomplete/zsh_autocomplete
  121. +44 −0 vendor/github.com/urfave/cli/category.go
  122. +22 −0 vendor/github.com/urfave/cli/cli.go
  123. +304 −0 vendor/github.com/urfave/cli/command.go
  124. +240 −0 vendor/github.com/urfave/cli/command_test.go
  125. +278 −0 vendor/github.com/urfave/cli/context.go
  126. +403 −0 vendor/github.com/urfave/cli/context_test.go
  127. +115 −0 vendor/github.com/urfave/cli/errors.go
  128. +122 −0 vendor/github.com/urfave/cli/errors_test.go
  129. +93 −0 vendor/github.com/urfave/cli/flag-types.json
  130. +799 −0 vendor/github.com/urfave/cli/flag.go
  131. +627 −0 vendor/github.com/urfave/cli/flag_generated.go
  132. +1,215 −0 vendor/github.com/urfave/cli/flag_test.go
  133. +28 −0 vendor/github.com/urfave/cli/funcs.go
  134. +255 −0 vendor/github.com/urfave/cli/generate-flag-types
  135. +338 −0 vendor/github.com/urfave/cli/help.go
  136. +452 −0 vendor/github.com/urfave/cli/help_test.go
  137. +28 −0 vendor/github.com/urfave/cli/helpers_test.go
  138. +9 −0 vendor/github.com/urfave/cli/helpers_unix_test.go
  139. +20 −0 vendor/github.com/urfave/cli/helpers_windows_test.go
  140. +122 −0 vendor/github.com/urfave/cli/runtests
39 changes: 39 additions & 0 deletions Gopkg.lock

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

34 changes: 34 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
name = "github.com/op/go-logging"
version = "1.0.0"

[[constraint]]
name = "github.com/stretchr/testify"
version = "1.1.4"

[[constraint]]
name = "github.com/urfave/cli"
version = "1.20.0"
39 changes: 19 additions & 20 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
SOURCEDIR=.
SOURCES := $(shell find $(SOURCEDIR) -name '*.go')

BINARY=findclient
BINARY=fingerprint

VERSION=0.5
VERSION=0.6
BUILD_TIME=`date +%FT%T%z`
BUILD=`git rev-parse HEAD`

@@ -26,30 +26,29 @@ clean:
if [ -f ${BINARY} ] ; then rm ${BINARY} ; fi
rm -rf builds
rm -rf find
rm -rf findclient*
rm -rf fingerprint*

.PHONY: binaries
binaries:
go test
rm -rf builds
mkdir builds
# Build Windows
env GOOS=windows GOARCH=amd64 go build ${LDFLAGS} -o findclient.exe -v *.go
zip -r findclient_${VERSION}_windows_amd64.zip findclient.exe LICENSE
mv findclient_${VERSION}_windows_amd64.zip builds/
rm findclient.exe
env GOOS=windows GOARCH=amd64 go build ${LDFLAGS} -o fingerprint.exe -v *.go
zip -r fingerprint_${VERSION}_windows_amd64.zip fingerprint.exe LICENSE
mv fingerprint_${VERSION}_windows_amd64.zip builds/
rm fingerprint.exe
# Build Linux
env GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -o findclient -v *.go
zip -r findclient_${VERSION}_linux_amd64.zip findclient LICENSE
mv findclient_${VERSION}_linux_amd64.zip builds/
rm findclient
env GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -o fingerprint -v *.go
zip -r fingerprint_${VERSION}_linux_amd64.zip fingerprint LICENSE
mv fingerprint_${VERSION}_linux_amd64.zip builds/
rm fingerprint
# Build OS X
env GOOS=darwin GOARCH=amd64 go build ${LDFLAGS} -o findclient -v *.go
zip -r findclient_${VERSION}_osx.zip findclient LICENSE
mv findclient_${VERSION}_osx.zip builds/
rm findclient
env GOOS=darwin GOARCH=amd64 go build ${LDFLAGS} -o fingerprint -v *.go
zip -r fingerprint_${VERSION}_osx.zip fingerprint LICENSE
mv fingerprint_${VERSION}_osx.zip builds/
rm fingerprint
# Build Raspberry Pi / Chromebook
env GOOS=linux GOARCH=arm go build ${LDFLAGS} -o findclient -v *.go
zip -r findclient_${VERSION}_linux_arm.zip findclient LICENSE
mv findclient_${VERSION}_linux_arm.zip builds/
rm findclient
env GOOS=linux GOARCH=arm go build ${LDFLAGS} -o fingerprint -v *.go
zip -r fingerprint_${VERSION}_linux_arm.zip fingerprint LICENSE
mv fingerprint_${VERSION}_linux_arm.zip builds/
rm fingerprint
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -25,10 +25,10 @@ NAME:
fingerprint - client for sending WiFi fingerprints to a FIND server
USAGE:
find2.exe [global options] command [command options] [arguments...]
fingerprint [global options] command [command options] [arguments...]
VERSION:
0.2
0.6
COMMANDS:
GLOBAL OPTIONS:
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -13,8 +13,8 @@ import (
"strings"
"time"

"github.com/codegangsta/cli"
"github.com/op/go-logging"
logging "github.com/op/go-logging"
"github.com/urfave/cli"
)

// Fingerprint to be sent to the server
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ func ExampleSendFingerprintServerOnlineLearn() {
fmt.Println(err)
}
fmt.Println(response)
// Output: Inserted fingerprint containing 22 APs for zack at zakhome floor 2 office
// Output: Inserted fingerprint containing 22 APs for zack (testdb) at zakhome floor 2 office
}

func ExampleSendFingerprintServerOnlineTrack() {
2 changes: 1 addition & 1 deletion os_configuration.go
Original file line number Diff line number Diff line change
@@ -97,7 +97,7 @@ func DownloadVerifyFile(url string, target string, sha1sum string) error {
return err
}

log.Info(n, "bytes downloaded.")
log.Infof("%d bytes downloaded.",n )
fd.Close()

fileSum, err := ComputeSHA1Sum(target)
22 changes: 22 additions & 0 deletions vendor/github.com/davecgh/go-spew/.gitignore

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

14 changes: 14 additions & 0 deletions vendor/github.com/davecgh/go-spew/.travis.yml

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

15 changes: 15 additions & 0 deletions vendor/github.com/davecgh/go-spew/LICENSE

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

Loading