documentator 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b963ef4ea1b4cde6792411d46cba1b3bc967f75
4
- data.tar.gz: 7df81ea85e431d434ba3eb5c176bd8c6128e9579
3
+ metadata.gz: 7e09f4c8c041881638c3bbd0d7076d2689863854
4
+ data.tar.gz: 1a34de1fc0c0a419d7b6b7666255f30a1a159220
5
5
  SHA512:
6
- metadata.gz: f00c4c845426e9ac25f8dc694074bcd30e3b06c6fae96a245dd5e9808c9117ad16b1bb33095997657dbc2b61c99559087ff8c9c830ee5aa01a5cee23d232e74f
7
- data.tar.gz: a0be1033c8d0f97d1aac90cb3c71c011e5f7bb156d16ca000d10792083e0b694706f97c0749a5ceabce7a820c6df127e6a6b7f0e0e4cdda8a6d13b69e3454886
6
+ metadata.gz: ce479d595b8cf88a6d43103ae13cf2dee8603e9ca3147f8aa4ddd52fea7fc5e32f430c2f1f6b9f250f8f77bd6870cbe0565761302f5e0a2abedf2bdf56af938e
7
+ data.tar.gz: 5f3a96bf4de980b6dee781c6524a1480d817c98082f295f85bf7842f8fac2497f6219c3cc044087aaf502448412e1a653f267960ef901e4183958996ec3753c8
data/README.md CHANGED
@@ -1,32 +1,10 @@
1
1
  # documentator
2
2
 
3
- documentator has one primary goal: having better docs on our projects.
3
+ `documentator` has one primary goal: having better docs on our projects.
4
4
 
5
5
  documentator provides two main features to achieve that goal:
6
6
 
7
7
 
8
- ### Bootstrap
9
-
10
- `bootstrap` provides a minimal set of documentation's file.
11
- Those are empty, and they *must* be written for each project. This is specific
12
- to each project:
13
-
14
- * What's the architecture (providing a [ditaa](http://ditaa.sourceforge.net/)
15
- schema will make you earns some karma points)?
16
- * Dependencies?
17
- * Environnements?
18
-
19
-
20
- As a treat, `bootstrap` generates a Gemfile in `project/doc` which include
21
- [Guide'em up](https://github.com/nono/guide-em-up). Guide'em up can be used to
22
- preview markdown file in a browser.
23
-
24
- ### Import
25
-
26
- `import` provides some templates of common documentation that should be the same
27
- from one project to another. And yet, we write them on each project. I mean,
28
- installing ElasticSearch is always the same.
29
-
30
8
  ## Installation
31
9
 
32
10
  With bundler, add it to your `Gemfile`:
@@ -43,18 +21,45 @@ Commands should be used from the root directory of the current project.
43
21
 
44
22
  ### Bootstrap
45
23
 
24
+ `bootstrap` provides a minimal set of documentation files.
25
+ Those are empty, and they *must* be written for each project. The content is
26
+ specific to each project:
27
+
28
+ * What's the architecture? (providing a [ditaa](http://ditaa.sourceforge.net/)
29
+ schema will earn you some extra karma points)
30
+ * Dependencies?
31
+ * Environnements?
32
+
33
+ As a treat, `bootstrap` generates a Gemfile in `project/doc` which includes
34
+ [Guide'em up](https://github.com/nono/guide-em-up). Guide'em up can be used to
35
+ preview markdown file in a browser.
36
+
37
+
46
38
  ``` bash
47
39
  bundle exec documentator bootstrap
48
40
  ```
49
41
 
50
42
  ### Importing templates
51
43
 
44
+ `import` provides templates for common documentation that should be the same
45
+ from one project to another. Installing ElasticSearch is basically always the
46
+ same. If there are projet specific particularities, you can always add them
47
+ here.
48
+
52
49
  ``` bash
53
50
  bundle exec documentator list
54
51
  ```
55
52
 
53
+ A language can be specified to the `list` command.
54
+
55
+ ``` bash
56
+ bundle exec documentator list fr
57
+ ```
58
+
59
+ A language must be specified to the `import` command.
60
+
56
61
  ``` bash
57
- bundle exec documentator import nginx ruby
62
+ bundle exec documentator import fr beasntalkd mongodb
58
63
  ```
59
64
 
60
65
  ## Contribution
@@ -16,14 +16,14 @@ module Documentator
16
16
  end
17
17
 
18
18
  desc "import a template to doc directory"
19
- def import(*templates)
19
+ def import(locale, *templates)
20
20
  templates.each do |template|
21
21
  begin
22
22
  unless File.exists?(doc_path)
23
23
  puts "You should run `bootstrap` before trying to import documentation"
24
24
  exit 1
25
25
  end
26
- cp(templates_path.join("#{template}.md"), doc_path)
26
+ cp(templates_path.join(locale, "#{template}.md"), doc_path)
27
27
  puts "✓ File #{template} copied."
28
28
  rescue Errno::ENOENT
29
29
  puts "x File #{template} not found."
@@ -32,9 +32,12 @@ module Documentator
32
32
  end
33
33
 
34
34
  desc "List all templates"
35
- def list
36
- Dir[templates_path.join("*")].each do |file|
37
- puts "* #{File.basename(file, File.extname(file))}"
35
+ def list(locale = nil)
36
+ Dir[templates_path.join(locale || "*")].each do |locale|
37
+ puts "* #{File.basename(locale)}"
38
+ Dir[templates_path.join(locale, "*")].each do |file|
39
+ puts " * #{File.basename(file, File.extname(file))}"
40
+ end
38
41
  end
39
42
  end
40
43
 
@@ -0,0 +1,22 @@
1
+ # ZeroMQ / ØMQ
2
+
3
+ ØMQ est une librairie de manipulation de socket. Il ne s'agit pas d'un serveur,
4
+ il n'y a donc aucun processus ØMQ à lancer. ØMQ s'approche plus d'un langage.
5
+
6
+ ## Installation
7
+
8
+ ### Debian
9
+
10
+ En tant que root:
11
+
12
+ ``` bash
13
+ aptitude install libzmq-dev
14
+ ```
15
+
16
+ Ou pour la branche 3.2:
17
+
18
+ ``` bash
19
+ aptitude install libzmq-dev
20
+ ```
21
+
22
+ Et, c'est tout.
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Documentator
3
- VERSION = "0.0.3"
3
+ VERSION = "0.1.0"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: documentator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - chatgris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-02 00:00:00.000000000 Z
11
+ date: 2013-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: boson
@@ -44,14 +44,15 @@ files:
44
44
  - lib/documentator/bootstrap/Deploy.md
45
45
  - lib/documentator/bootstrap/Environments.md
46
46
  - lib/documentator/bootstrap/Gemfile
47
- - lib/documentator/templates/beanstalkd.md
48
- - lib/documentator/templates/capistrano.md
49
- - lib/documentator/templates/elasticsearch.md
50
- - lib/documentator/templates/grunt.md
51
- - lib/documentator/templates/mongodb.md
52
- - lib/documentator/templates/neo4j.md
53
- - lib/documentator/templates/postgresql.md
54
- - lib/documentator/templates/ruby.md
47
+ - lib/documentator/templates/en/ruby.md
48
+ - lib/documentator/templates/fr/beanstalkd.md
49
+ - lib/documentator/templates/fr/capistrano.md
50
+ - lib/documentator/templates/fr/elasticsearch.md
51
+ - lib/documentator/templates/fr/grunt.md
52
+ - lib/documentator/templates/fr/mongodb.md
53
+ - lib/documentator/templates/fr/neo4j.md
54
+ - lib/documentator/templates/fr/postgresql.md
55
+ - lib/documentator/templates/fr/zeromq.md
55
56
  - lib/documentator/version.rb
56
57
  homepage: https://github.com/AF83/documentator
57
58
  licenses: []
@@ -77,3 +78,4 @@ signing_key:
77
78
  specification_version: 4
78
79
  summary: Documents all the things
79
80
  test_files: []
81
+ has_rdoc: