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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74c03424f8923d0bcdef27d6588935a470f466e6c02f267fb9351b89cfa24c85
4
- data.tar.gz: 274e3df451d072c225d7903d2c79af71672a6929b11f28aea5bac56144398012
3
+ metadata.gz: a935b655bd2524a43eefbca0dca4de2ef003ec752093f970e2cc99ae7c29aba0
4
+ data.tar.gz: f7b5dadbbd5e454318c721697c5e1866011ec368e6bc0371faac1a9efae27693
5
5
  SHA512:
6
- metadata.gz: e70a8239240a9973d41126a1a14ff779c120c8cd3adaf1b11957443722a423b1a6e3605141052d185b1b721b28dd4ac3a30d489e3063e74540448cfe0a978fb6
7
- data.tar.gz: e4f465aed8a22cc99211ff6527c4d0f419b15e7d71426d85bf4c7126f49b0002063066108806d7548ba3bcbee6c38689e21b870d8c9cc245071741bc35460043
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(@short_description, lang),
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,
@@ -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] || ApipieDSL.configuration.default_class_description&.call(self))
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApipieDSL
4
- VERSION = "2.6.0"
4
+ VERSION = "2.6.1"
5
5
  end
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.0
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-10-12 00:00:00.000000000 Z
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/ofedoren/apipie-dsl
197
+ homepage: https://github.com/Apipie/apipie-dsl
198
198
  licenses:
199
199
  - MIT
200
200
  metadata: {}