Adam Bouqdib
9cdf35aaef
Fix mutex being copied & wrong mutex key
...
The get `getOrCreateMutex` function copies mutexes which the golang docs specifically tell us not to do: https://golang.org/pkg/sync/#Mutex
Also, the delete function was creating a mutex for the resource, not the collection.
2017-03-27 15:08:01 +02:00
Steve Domino
5eb91537ce
cleaned up some linting issues. Added some badges
2017-02-09 16:28:08 -07:00
Steve Domino
e941ae8fc9
turned down some logging
2016-03-07 19:29:06 -07:00
Steve Domino
cffdb3f127
updating readme to match how scribble actually works; there was a refactor not long ago and the readme never was updated. bump to 1.0.4
2015-12-17 17:13:27 -07:00
Steve Domino
689ffedfe6
cleaning up scribble new a bit from previous pull request. Updating/fixing tests
2015-11-23 11:37:37 -07:00
Sergey Romanov
9be99d20fb
Set experimental option ExistDir
2015-11-21 22:57:59 +05:00
Sergey Romanov
94c595be43
Add Options for New method
2015-11-21 22:36:00 +05:00
Steve Domino
b43a2d16d2
updating some comments
2015-11-16 10:46:22 -07:00
Steve Domino
f6d7310e91
updated some tests which uncovered some issues
2015-11-15 23:44:00 -07:00
Steve Domino
04b81d64d4
updating the mkDir wrapper to be less weird (you'll see what i mean)
2015-11-13 15:19:09 -07:00
Steve Domino
044c65b62e
updating readme
2015-11-13 14:21:11 -07:00
Steve Domino
cfe94ca72c
removing hatchet
2015-11-13 11:54:31 -07:00
Steve Domino
50598c2090
bump to 1.0.1
2015-10-29 11:30:35 -06:00
Daniel Barney
0301461505
matched the format of the write function
2015-10-29 11:22:23 -06:00
Steve Domino
a2e31af24c
adding a mutex to getOrCreateMutex to avoid race conditions (per @chrhlnd pr)
2015-10-20 11:06:33 -06:00
Steve Domino
9d6df7eff7
cleaned up some logic, using filepath library when working with paths to have better support for windows (per @chrhlnd pull request). added tests to test looking for empty files/directories
2015-10-19 15:01:40 -06:00
Steve Domino
77a7709b42
fixing some issues with how scribble was reading/writing. added tests
2015-10-12 17:12:29 -06:00
Steve Domino
c2b94817bc
cleaning up file paths
2015-10-12 13:44:49 -06:00
Steve Domino
08724b339d
removing transactions as really they are unneccessary and just adding unneeded complexity
2015-10-12 13:30:50 -06:00
Steve Domino
bc1d1e667f
actions are now a constant rather than a string
2015-10-12 12:14:54 -06:00
Steve Domino
fdc13448a7
missed merge confilct corrected
2015-10-12 12:05:06 -06:00
Steve Domino
11d33b62b2
updating file permissions to 0644 from 0666
2015-10-08 09:39:27 -06:00
Daniel Barney
68e15df63e
all names need to have the .json postfix
2015-10-07 15:22:50 -06:00
Daniel Barney
dec87937ca
changed how the mutexes were handled, aka fixed some possible deadlocks
2015-10-07 11:36:38 -06:00
Daniel Barney
9a5e133820
the file should be written to a tmp location first
2015-10-07 11:24:38 -06:00
Lyon Hill
86ed632d52
update scribble with new repos
2015-09-29 09:12:55 -06:00
Steve Domino
09d4cba6cf
updating readme and package comments
2015-07-07 17:37:08 -06:00
sdomino
f06bf129bb
gofmt all the things
2015-06-10 16:39:33 -06:00
sdomino
0409bc7d6b
updating licensing
2015-06-02 08:46:25 -06:00
sdomino
c963f645c5
hotfix/updating-import-paths: updating imports to point to correct repos
2015-05-14 10:59:47 -06:00
sdomino
c6c342ab64
writing to right dir path
2014-12-16 14:32:14 -07:00
sdomino
b405d6fba9
using mutex over channels, and some other minor cleanups
2014-12-16 14:30:28 -07:00
sdomino
c924cd01ef
adding fail channel to bubble errors
2014-12-16 09:59:23 -07:00