brief 1.14.1 → 1.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/brief/cli/export.rb +0 -1
- data/lib/brief/cli/render.rb +30 -0
- data/lib/brief/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2f9aefc158045e46de1dc3cd657e65cf98957ac
|
4
|
+
data.tar.gz: fb7dd822fe374ac2d4d4b3901b6a4c90a3ffac1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1090116d3681c245bca064460081e1e5dfd34b5b75d62f3fca2c47b6cc1903dc47fe8042ed069f8666be9036a601abd040cece19d7798c0c8b507dcb3e4d923
|
7
|
+
data.tar.gz: c54b89eef493fd0c70fea974be07ca5d109a083c0f35b1572c2fb7fd0c72a1f2429dc503ed4cf175b3b7bf0db4f00a87a3a3b721b25848a15352d8abc7517e93
|
data/Gemfile.lock
CHANGED
data/lib/brief/cli/export.rb
CHANGED
data/lib/brief/cli/render.rb
CHANGED
@@ -50,3 +50,33 @@ command 'render' do |c|
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
53
|
+
|
54
|
+
command 'render view' do |c|
|
55
|
+
c.syntax = 'brief render view VIEW [OPTIONS]'
|
56
|
+
c.description = 'render one of the defined views of the briefcase'
|
57
|
+
|
58
|
+
c.option '--include-schema', 'Include schema information'
|
59
|
+
c.option '--include-models', 'Include individual models as well'
|
60
|
+
c.option '--include-data', 'Gets passed to the model renderers if present'
|
61
|
+
c.option '--include-content', 'Gets passed to the model renderers if present'
|
62
|
+
c.option '--include-rendered', 'Gets passed to the model renderers if present'
|
63
|
+
c.option '--include-attachments', 'Gets passed to the model renderers if present'
|
64
|
+
c.option '--include-urls', 'Gets passed to the model renderers if present'
|
65
|
+
|
66
|
+
c.action do |args, options|
|
67
|
+
view = args.first || :full_export
|
68
|
+
|
69
|
+
options.default(root: Pathname(Brief.pwd))
|
70
|
+
|
71
|
+
briefcase = Brief.case = Brief::Briefcase.new(root: Pathname(options.root))
|
72
|
+
|
73
|
+
briefcase.present(view, rendered: options.include_rendered,
|
74
|
+
content: options.include_content,
|
75
|
+
urls: options.include_urls,
|
76
|
+
schema: options.include_schema,
|
77
|
+
data: options.include_data,
|
78
|
+
attachments: options.include_attachments,
|
79
|
+
models: options.include_models)
|
80
|
+
|
81
|
+
end
|
82
|
+
end
|
data/lib/brief/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brief
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Soeder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|