apipie-dsl 2.6.0 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apipie_dsl/class_description.rb +2 -1
- data/lib/apipie_dsl/dsl.rb +1 -1
- data/lib/apipie_dsl/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a935b655bd2524a43eefbca0dca4de2ef003ec752093f970e2cc99ae7c29aba0
|
4
|
+
data.tar.gz: f7b5dadbbd5e454318c721697c5e1866011ec368e6bc0371faac1a9efae27693
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 886c7753ceb135d1a479d8240709970ec999e8646d52e153170dbecef3359a2e4e13fe6292f3d39955866ad57570ab1c41e027578ff33671d79507266a4eb8b9
|
7
|
+
data.tar.gz: 15a296d6773f87d4637891cc4ed23ff5e65a3b8056ff3392edaa55b508db427f5b4c4163ce9143346217e0365763cd4723f3bdb9f5b7b80ad56ad43eac799ba0
|
@@ -90,11 +90,12 @@ module ApipieDSL
|
|
90
90
|
else
|
91
91
|
[@methods[method_name.to_sym].docs(section, lang)]
|
92
92
|
end
|
93
|
+
short_desc = @short_description || ApipieDSL.configuration.default_class_description&.call(@klass)
|
93
94
|
{
|
94
95
|
id: id,
|
95
96
|
name: @name,
|
96
97
|
doc_url: doc_url(section),
|
97
|
-
short_description: ApipieDSL.translate(
|
98
|
+
short_description: ApipieDSL.translate(short_desc, lang),
|
98
99
|
full_description: ApipieDSL.translate(@full_description, lang),
|
99
100
|
version: version,
|
100
101
|
metadata: @metadata,
|
data/lib/apipie_dsl/dsl.rb
CHANGED
@@ -466,7 +466,7 @@ module ApipieDSL
|
|
466
466
|
block = proc {} unless block_given?
|
467
467
|
|
468
468
|
delegatee = Delegatee.instance_for(self).with(&block)
|
469
|
-
delegatee.short(options[:desc]
|
469
|
+
delegatee.short(options[:desc])
|
470
470
|
# Don't eval the block, since it will be evaluated after method is defined
|
471
471
|
return if context == :method
|
472
472
|
|
data/lib/apipie_dsl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apipie-dsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleh Fedorenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -194,7 +194,7 @@ files:
|
|
194
194
|
- lib/generators/apipie_dsl/install/templates/initializer.rb.erb
|
195
195
|
- lib/generators/apipie_dsl/views_generator.rb
|
196
196
|
- test/test_helper.rb
|
197
|
-
homepage: https://github.com/
|
197
|
+
homepage: https://github.com/Apipie/apipie-dsl
|
198
198
|
licenses:
|
199
199
|
- MIT
|
200
200
|
metadata: {}
|