Commit graph

78 commits

Author SHA1 Message Date
78d06a5191 Add documentation in ruby codebase 2017-02-21 11:09:15 +01:00
10a6dc4322 Pass logger config as hash here 2017-02-21 10:35:34 +01:00
45880b5b12 Revert the ruby build infrastructure PR.
The ruby build infrastructure PR caused our CI to get really sad, so I
revert it here.

This reverts commit

    5eaddbc6f2a4b05ac59d9e8b29d0d2226d3f2015..44e02ff8185c5ad3da6448b6caff9d2a3a9b332f
2017-02-06 15:32:23 +01:00
77566bc7a5 Add Makefile setup for building libimagruby + thermite bundling 2017-02-06 07:11:06 +01:00
980d5222be Ignore thermite output 2017-02-06 07:11:05 +01:00
ead81c9436 Remove self scripted tests 2017-02-06 07:11:05 +01:00
5eaddbc6f2 Set up thermite 2017-02-06 07:11:05 +01:00
dea3a7b230 Impl Store::retrieve_for_module() interface function 2017-02-05 18:35:39 +01:00
36dfee812f libimagruby: Eliminate EntryHeader type 2017-02-05 13:10:39 +01:00
3d4edfe078 Fix: Pass error return expression further down 2017-01-26 15:50:22 +01:00
55ea7f8228 Merge pull request #869 from matthiasbeyer/readme-updates
Readme updates
2017-01-25 19:59:01 +01:00
2021b3ea16 Remove unnecessary "mut" 2017-01-25 18:32:16 +01:00
2aa54b820f Remove unused imports 2017-01-25 18:32:04 +01:00
a439004a46 Update README 2017-01-25 17:30:34 +01:00
4804cf36ce Add more tests 2017-01-22 18:44:47 +01:00
57c266dfc8 Add Ruby-like hash read/set syntax 2017-01-22 18:44:47 +01:00
c222213291 Add test script to test entry capabilities 2017-01-22 18:44:47 +01:00
c14a3a6e02 Ignore ruby/bundler stuff 2017-01-22 18:44:47 +01:00
e929a0ccf1 Rename: Imag -> RImag (class) 2017-01-22 18:44:47 +01:00
916d647a24 Rename init fn to be able to require binary directly 2017-01-22 16:55:45 +01:00
41cacb3c78 Add test-gem code 2017-01-22 16:39:57 +01:00
a06fce06e5 Beautify wrapper helper macros 2017-01-22 15:50:48 +01:00
ce23114f2c Add test for Store::create() 2017-01-22 15:44:21 +01:00
1aaf0c4d30 Fix store handle class name to fit convention 2017-01-22 15:44:21 +01:00
bf53c6b529 Add StoreHandle::new() 2017-01-22 15:44:21 +01:00
34cd5d9c87 Add Store::new() function interface 2017-01-22 15:44:21 +01:00
54deef3dde Remove Deref{,Mut} on FileLockEntryHandle to make code more explicit 2017-01-22 13:19:55 +01:00
439326e1b6 Add documentation in README 2017-01-22 13:17:13 +01:00
47f3806825 Add tests for RStore class 2017-01-22 12:56:46 +01:00
063083d7b5 Add setup() for Store interface 2017-01-22 12:56:46 +01:00
ffb9ad120f Impl Store::create() interface 2017-01-22 12:56:46 +01:00
ce8c382e81 Impl Store::retrieve() interface 2017-01-22 12:56:46 +01:00
bc3a82fcc6 Impl Store::get() interface function 2017-01-22 12:56:46 +01:00
6875376f91 Impl Store::update() interface function 2017-01-22 12:56:46 +01:00
c87fa74169 impl Store::delete() interface function 2017-01-22 12:56:46 +01:00
c2b146aad8 Beautify cal_on_store_by_handle!{} macro syntax 2017-01-22 12:56:46 +01:00
04363035c2 Beautify call_on_store!() macro syntax 2017-01-22 12:56:46 +01:00
551b135436 Make macro more advanced, to be able to impl Store::save_{as,to}() interfaces 2017-01-22 12:56:46 +01:00
d047b6663b Rewrite code to wrap StoreHandle properly 2017-01-22 12:56:46 +01:00
3a90077777 Minify macros by introducing store-level operation macro 2017-01-22 12:56:46 +01:00
d91243d4b4 Rewrite FileLockEntry interface to work with Store in cache 2017-01-22 12:56:46 +01:00
5e708b9720 Change FileLockEntryHandle to operate on cached store objects 2017-01-22 12:56:46 +01:00
64fc3749d0 Move parts to own files 2017-01-22 12:56:46 +01:00
e956c51412 Introduce FileLockEntry cache
Holy shit, this compiles!

Have a look at the documentation from src/cache.rs - there's a rather
long description why we need this.
2017-01-22 12:56:45 +01:00
7aed2d2689 Impl RStore::move_by_id() 2017-01-22 12:56:45 +01:00
4f8a14ba1a Impl RStore::path() 2017-01-22 12:56:45 +01:00
158e7aaff5 Add macro to implement Wrap automatically 2017-01-22 12:56:45 +01:00
91a60093b7 Make wraps easily unwrappable 2017-01-22 12:56:45 +01:00
2d9ddb8a49 Minify code with typecheck!() macro 2017-01-22 12:56:45 +01:00
677b7eaf2a Add code structure for RStore wrapper for Store 2017-01-22 12:56:45 +01:00