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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6358dea3eafddfbe97b057972dd846f2c5990ada
4
- data.tar.gz: 13f1d129366b38180a707bacd8fa6be906a211ca
3
+ metadata.gz: c2f9aefc158045e46de1dc3cd657e65cf98957ac
4
+ data.tar.gz: fb7dd822fe374ac2d4d4b3901b6a4c90a3ffac1d
5
5
  SHA512:
6
- metadata.gz: 8f5f9c3453997419d55ce210d37bcf687f396993c60bf38c568ef585a397963a39a7228c6e4bb16e0702c824e6a6897169fecc28840092fa22f67d11758a0290
7
- data.tar.gz: 7b2d2cff36f86caeac97af09c576edcc60b0a77fc19b6ff36e5c3538a280f55c969c16f78060f915bc8b78ff7c919cc6d0becf88e9e8a1673ff11c39865e09f1
6
+ metadata.gz: a1090116d3681c245bca064460081e1e5dfd34b5b75d62f3fca2c47b6cc1903dc47fe8042ed069f8666be9036a601abd040cece19d7798c0c8b507dcb3e4d923
7
+ data.tar.gz: c54b89eef493fd0c70fea974be07ca5d109a083c0f35b1572c2fb7fd0c72a1f2429dc503ed4cf175b3b7bf0db4f00a87a3a3b721b25848a15352d8abc7517e93
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brief (1.14.0)
4
+ brief (1.14.2)
5
5
  activesupport (> 3.2)
6
6
  commander (~> 4.3)
7
7
  em-websocket (~> 0.5)
@@ -26,4 +26,3 @@ command 'export' do |c|
26
26
 
27
27
  end
28
28
  end
29
-
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Brief
2
- VERSION = '1.14.1'
2
+ VERSION = '1.14.2'
3
3
  end
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.1
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-19 00:00:00.000000000 Z
11
+ date: 2015-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie