cran 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.semver +1 -1
- data/README.md +48 -16
- data/config/cran.yml +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fbbe9eb76874a07cd133c56e9fc08b04d0920bf
|
4
|
+
data.tar.gz: 244301ad73937595b98704610b24d534c2607321
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 299efceb1b8e4f94c1567fa8d7b74af31858040f9622dbbef60b8a270d4fc7e187b04fc985067ace4afd0a9b2c93988237fd5c41410c0853ea095d47d9517252
|
7
|
+
data.tar.gz: 66645a1953a1d58540f977a60c6a6a01a0b0e498ed69ec5cd42417eb616ec062c8f572a0cac05a9a1dcfa6be5447884f489cd56004cd499a2e82ffcce010bb92
|
data/.semver
CHANGED
data/README.md
CHANGED
@@ -1,16 +1,14 @@
|
|
1
1
|
# Cran
|
2
2
|
|
3
|
-
TODO: Write a gem description
|
4
|
-
|
5
3
|
## Installation
|
6
4
|
|
7
|
-
|
5
|
+
Checkout the repository:
|
8
6
|
|
9
|
-
|
7
|
+
git co https://github.com/nakedmoon/cran
|
10
8
|
|
11
|
-
|
9
|
+
and do
|
12
10
|
|
13
|
-
|
11
|
+
bundle
|
14
12
|
|
15
13
|
Or install it yourself as:
|
16
14
|
|
@@ -18,13 +16,47 @@ Or install it yourself as:
|
|
18
16
|
|
19
17
|
## Usage
|
20
18
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
19
|
+
cran_indexer (or bundle exec bin/cran_indexer from the project directory)
|
20
|
+
|
21
|
+
Commands:
|
22
|
+
cran_indexer help [COMMAND] # Describe available commands or one specific command
|
23
|
+
cran_indexer info -U, --url=URL # Get Package Info
|
24
|
+
cran_indexer list # List Indexed Files
|
25
|
+
cran_indexer reset # Reset Indexed Files
|
26
|
+
cran_indexer start # Start Cran Indexer
|
27
|
+
|
28
|
+
### Indexer
|
29
|
+
|
30
|
+
cran_indexer help start (or bundle exec bin/cran_indexer from the project directory)
|
31
|
+
|
32
|
+
Usage:
|
33
|
+
cran_indexer start
|
34
|
+
|
35
|
+
Options:
|
36
|
+
-U, [--url=URL] # Repository URL
|
37
|
+
# Default: http://cran.r-project.org/src/contrib/
|
38
|
+
-E, [--raise-error], [--no-raise-error] # Skip invalid files without raise an error
|
39
|
+
-L, [--limit=N] # Limit results items
|
40
|
+
# Default: 100
|
41
|
+
-P, [--processes=N] # Number of parallel processes during indexing
|
42
|
+
# Default: 4
|
43
|
+
## Note
|
44
|
+
* Indexer index new files on each launch
|
45
|
+
* You can run it periodically at fixed times, dates, or intervals:
|
46
|
+
- Put the command in your crontab
|
47
|
+
- Use background service (DelayedJob, Sidekick, Resque) and instantiate the Repository class
|
48
|
+
* Use of PStore as Key/Value storage (the closest filesystem structure)
|
49
|
+
* You can easily create a new adapter (for example for Redis) extending the Cran::Adapter
|
50
|
+
* Default logs in the log directory
|
51
|
+
* Use semantic versioning (use semver CL to increase major/minor/patch)
|
52
|
+
* It use parallel gem to parallelize the index process (speed up blocking operations like downloads)
|
53
|
+
* Fully customizable log severity/adapters with Yell (you can change the severity updating the file cran.yaml)
|
54
|
+
|
55
|
+
|
56
|
+
## Test
|
57
|
+
|
58
|
+
rake spec (from the project directory)
|
59
|
+
|
60
|
+
### TODO
|
61
|
+
* Check for process running writing a pid file
|
62
|
+
* Move db file and logs in a system folder
|
data/config/cran.yml
CHANGED