brief 1.6.0 → 1.6.1
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/Gemfile.lock +1 -1
- data/lib/brief/briefcase.rb +10 -5
- data/lib/brief/version.rb +1 -1
- data/spec/fixtures/example/docs/concept.html.md +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: e40ba8497cd64fef959861d1349e7a955bbf0df7
|
|
4
|
+
data.tar.gz: 596ab5f961548a7ff2088d87bc0e4e68c3ef1b47
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 263dfac1ba20242d8aae3c3fa7d2876bef767141c7d05f66723ac068d10efb3e8b1c5e8fb4f06bc10e4dfd5bc85363d3ef02b6e5b78a3ae98b8163a3460d7737
|
|
7
|
+
data.tar.gz: cf69dca6f61a98015ee53b8bc54dc64f32160b4533aa89d2200081bb38dd01cfb94e3fab0ee4097122ba0f6737fdd0b3352edb3b564d73421c6ec86fa657fa40
|
data/Gemfile.lock
CHANGED
data/lib/brief/briefcase.rb
CHANGED
|
@@ -124,12 +124,17 @@ module Brief
|
|
|
124
124
|
uses_app? && app_path.join("models")
|
|
125
125
|
end
|
|
126
126
|
|
|
127
|
-
def
|
|
128
|
-
|
|
127
|
+
def app_namespace
|
|
128
|
+
Brief::Apps.find_namespace(options[:app])
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
def app_models
|
|
132
|
+
app_namespace.constants.map {|c| app_namespace.const_get(c) }
|
|
133
|
+
end
|
|
129
134
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
135
|
+
def model_class_for(document)
|
|
136
|
+
return generic_model_class_for(document) unless uses_app?
|
|
137
|
+
app_models.find {|k| k.type_alias == document.document_type }
|
|
133
138
|
end
|
|
134
139
|
|
|
135
140
|
def generic_model_class_for(document)
|
data/lib/brief/version.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: concept
|
|
3
3
|
title: Blueprint Concept Example
|
|
4
4
|
subheading: A key concept to the domain model
|
|
5
|
-
needle:
|
|
5
|
+
needle: cbw5astzg5gh0ui3op68054s9sm39me6vjvc
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
# Modified Content
|
|
8
|
+
# Modified Content oh5lszxtl7w8uyldpjrum1w5uy3pbr33wsh
|