tanshuku 2.0.1 → 2.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3cc384c4492189accccfc879367351895150308a66f00ab012693fd9fd50e566
4
- data.tar.gz: 311ff92821499384dc78679e3bfa78cccbc6c2cc6eab16d62642239ca5ccdf9a
3
+ metadata.gz: 02ecbaaff21e734b68382c179b154a19425e89ca3639bc16717aea64ff9f8398
4
+ data.tar.gz: 5ba490d590f1434a46333ad450bedd15568dbbf5e57f4254bc480d3a2f532bd2
5
5
  SHA512:
6
- metadata.gz: c9179a040bca6b1eafbd0e902044cac23482a89b9ce25f563288e15b392bbc0db5ea25f55de528b4110e9cf135839c592e190102909b1a29847117b87516e47a
7
- data.tar.gz: c4b2667923b854523f9488fae0c77143f11f7334f922e6898bd3a162507fae3fcbdc977b0edd70d80e39de4e82e63f51d947b30df866be1999585300ed3528e7
6
+ metadata.gz: 4387ca8fd4cc69cbc71ec38463bb31de400ed62d29d4ee0ef947634deca95a763e9408edb1be6e97f96b0baad2441aefd703bd8cd2711b1a66d9dbac78370de6
7
+ data.tar.gz: 6a492c69c9133a526a8f9d0e366580ef89f2d9e857b82a809c0e7ba3bde50650fc3248d5fbd494b9cd6ee25787751881301a7d39c3f1c5bcbce91a9b1084e955
@@ -43,6 +43,22 @@ module Tanshuku
43
43
  end
44
44
 
45
45
  include ActiveModel::Attributes
46
+
47
+ # @!attribute [rw] default_url_options
48
+ # Default URL options for Rails’ +url_for+. Defaults to +{}+.
49
+ #
50
+ # @return [Hash]
51
+ # @return [void] If you set an invalid object.
52
+ #
53
+ # @note
54
+ # The example below means that the configured host and protocol are used. Shortened URLs will be like
55
+ # +https://example.com/t/abcdefghij0123456789+.
56
+ #
57
+ # @example
58
+ # # config/initializers/tanshuku.rb
59
+ # Tanshuku.configure do |config|
60
+ # config.default_url_options = { host: "example.com", protocol: :https }
61
+ # end
46
62
  attribute :default_url_options, default: {}
47
63
 
48
64
  # @!attribute [rw] max_url_length
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tanshuku
4
- VERSION = "2.0.1"
4
+ VERSION = "2.0.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tanshuku
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kg8m
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-16 00:00:00.000000000 Z
11
+ date: 2024-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -85,7 +85,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
- version: '3.0'
88
+ version: '2.7'
89
89
  - - "<"
90
90
  - !ruby/object:Gem::Version
91
91
  version: '3.2'