Commit Graph

3643 Commits

Author SHA1 Message Date
Matthias Beyer e929a0ccf1 Rename: Imag -> RImag (class) 2017-01-22 18:44:47 +01:00
Matthias Beyer 916d647a24 Rename init fn to be able to `require binary` directly 2017-01-22 16:55:45 +01:00
Matthias Beyer 41cacb3c78 Add test-gem code 2017-01-22 16:39:57 +01:00
Matthias Beyer 6dbecbd397 Merge pull request #857 from matthiasbeyer/libimagrt/config-types-pub
Libimagrt/config types pub
2017-01-22 16:11:07 +01:00
Matthias Beyer a06fce06e5 Beautify wrapper helper macros 2017-01-22 15:50:48 +01:00
Matthias Beyer ce23114f2c Add test for Store::create() 2017-01-22 15:44:21 +01:00
Matthias Beyer 1aaf0c4d30 Fix store handle class name to fit convention 2017-01-22 15:44:21 +01:00
Matthias Beyer 0884b337c9 Make configuration module public 2017-01-22 15:44:21 +01:00
Matthias Beyer 13b901e3d4 Make error types public 2017-01-22 15:44:21 +01:00
Matthias Beyer bf53c6b529 Add StoreHandle::new() 2017-01-22 15:44:21 +01:00
Matthias Beyer 34cd5d9c87 Add Store::new() function interface 2017-01-22 15:44:21 +01:00
Matthias Beyer 587e806cdd Make configuration module public 2017-01-22 15:16:27 +01:00
Matthias Beyer 49b81602c0 Make error types public 2017-01-22 15:16:22 +01:00
Matthias Beyer 9d7a26ba3a Merge pull request #856 from matthiasbeyer/libimagrt/dbg-fileline-opt
ImagLogger: Add option to not include file/line in dbg logging
2017-01-22 13:30:41 +01:00
Matthias Beyer 54deef3dde Remove Deref{,Mut} on FileLockEntryHandle to make code more explicit 2017-01-22 13:19:55 +01:00
Matthias Beyer 439326e1b6 Add documentation in README 2017-01-22 13:17:13 +01:00
Matthias Beyer 22741d71c0 ImagLogger: Add option to not include file/line in dbg logging 2017-01-22 13:02:56 +01:00
Matthias Beyer 47f3806825 Add tests for RStore class 2017-01-22 12:56:46 +01:00
Matthias Beyer 063083d7b5 Add setup() for Store interface 2017-01-22 12:56:46 +01:00
Matthias Beyer ffb9ad120f Impl Store::create() interface 2017-01-22 12:56:46 +01:00
Matthias Beyer ce8c382e81 Impl Store::retrieve() interface 2017-01-22 12:56:46 +01:00
Matthias Beyer bc3a82fcc6 Impl Store::get() interface function 2017-01-22 12:56:46 +01:00
Matthias Beyer 6875376f91 Impl Store::update() interface function 2017-01-22 12:56:46 +01:00
Matthias Beyer c87fa74169 impl Store::delete() interface function 2017-01-22 12:56:46 +01:00
Matthias Beyer c2b146aad8 Beautify cal_on_store_by_handle!{} macro syntax 2017-01-22 12:56:46 +01:00
Matthias Beyer 04363035c2 Beautify call_on_store!() macro syntax 2017-01-22 12:56:46 +01:00
Matthias Beyer 551b135436 Make macro more advanced, to be able to impl Store::save_{as,to}() interfaces 2017-01-22 12:56:46 +01:00
Matthias Beyer d047b6663b Rewrite code to wrap StoreHandle properly 2017-01-22 12:56:46 +01:00
Matthias Beyer 3a90077777 Minify macros by introducing store-level operation macro 2017-01-22 12:56:46 +01:00
Matthias Beyer d91243d4b4 Rewrite FileLockEntry interface to work with Store in cache 2017-01-22 12:56:46 +01:00
Matthias Beyer 5e708b9720 Change FileLockEntryHandle to operate on cached store objects 2017-01-22 12:56:46 +01:00
Matthias Beyer 64fc3749d0 Move parts to own files 2017-01-22 12:56:46 +01:00
Matthias Beyer 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
Matthias Beyer 7aed2d2689 Impl RStore::move_by_id() 2017-01-22 12:56:45 +01:00
Matthias Beyer 4f8a14ba1a Impl RStore::path() 2017-01-22 12:56:45 +01:00
Matthias Beyer 158e7aaff5 Add macro to implement Wrap automatically 2017-01-22 12:56:45 +01:00
Matthias Beyer 91a60093b7 Make wraps easily unwrappable 2017-01-22 12:56:45 +01:00
Matthias Beyer 2d9ddb8a49 Minify code with typecheck!() macro 2017-01-22 12:56:45 +01:00
Matthias Beyer 677b7eaf2a Add code structure for RStore wrapper for Store 2017-01-22 12:56:45 +01:00
Matthias Beyer 32b51f5946 Impl VerifiedObject for all the things! 2017-01-21 14:11:30 +01:00
Matthias Beyer b931d7e685 Rewrite test script with awesome logging 2017-01-21 13:56:07 +01:00
Matthias Beyer 311d0b23e2 Disable file/line in debug logging from Ruby 2017-01-21 13:56:07 +01:00
Matthias Beyer 3299a7ecfc ImagLogger: Add option to not include file/line in dbg logging 2017-01-21 13:56:07 +01:00
Matthias Beyer fc6cf0c709 Add functionality to initialize a logger from ruby 2017-01-21 13:56:07 +01:00
Matthias Beyer 4fde23bc1b Fix test script for new location of build articfact 2017-01-21 13:56:07 +01:00
Matthias Beyer a749452379 Add setup*() calls 2017-01-21 13:56:07 +01:00
Matthias Beyer 5a449ed1c7 Add ruby->imag logging functionality 2017-01-21 13:56:07 +01:00
Matthias Beyer 8b2ec05613 Add setup code for FileLockEntry 2017-01-21 13:56:07 +01:00
Matthias Beyer e11a6cc5ad Add r_set_content() for FileLockEntry 2017-01-21 13:56:07 +01:00
Matthias Beyer 7848da07e6 Add r_get_content() for FileLockEntry 2017-01-21 13:56:07 +01:00