tanshuku 0.0.17 → 0.0.18
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/Steepfile +7 -0
- data/app/models/tanshuku/url.rb +3 -0
- data/lib/generators/tanshuku/install_generator.rb +5 -2
- data/lib/tanshuku/version.rb +1 -1
- data/rbs_collection.lock.yaml +194 -0
- data/rbs_collection.yaml +19 -0
- data/sig/app/controllers/tanshuku/urls_controller.rbs +5 -0
- data/sig/app/models/tanshuku/url.rbs +114 -0
- data/sig/db/migrate/create_tanshuku_urls.rbs +2 -0
- data/sig/lib/generators/tanshuku/install_generator.rbs +4 -0
- data/sig/lib/tanshuku/configuration.rbs +42 -0
- data/sig/lib/tanshuku/engine.rbs +4 -0
- data/sig/lib/tanshuku/version.rbs +3 -0
- data/sig/lib/tanshuku.rbs +6 -0
- data/steep_expectations.yml +19 -0
- metadata +22 -12
- data/Rakefile +0 -30
- data/tmp/.keep +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fd8f19194d9833955c4dddc0671365169b09764324daa7b4ddc44a878869f22
|
4
|
+
data.tar.gz: 5689b47d61bdffe1378872f4771b1518b88810b61aab8ee61770278e7c61e993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c14701fe4468278495a0499cc9362a6143c80ab73790407b499b2b6ee018aabe32b2b5eef43090620e725d8988c5ffa5a8fb7f5be3d640cef59bf4091d5d1ecd
|
7
|
+
data.tar.gz: 2aa7417b14b055c3e5677a27661e0757f62661a8130c5315b68ecb1b5c087a8e76371c7b61bfa7cec87915dff623c5fde9980959763aa42febbc445707d680d6
|
data/Steepfile
ADDED
data/app/models/tanshuku/url.rb
CHANGED
@@ -5,6 +5,8 @@ require "addressable"
|
|
5
5
|
require "rack"
|
6
6
|
|
7
7
|
module Tanshuku
|
8
|
+
# rubocop:disable Rails/ApplicationRecord
|
9
|
+
#
|
8
10
|
# An +ActiveRecord::Base+ inherited class for a shortened URL. This class also have some logics for shortening URLs.
|
9
11
|
class Url < ActiveRecord::Base
|
10
12
|
# @!attribute [rw] url
|
@@ -174,4 +176,5 @@ module Tanshuku
|
|
174
176
|
Tanshuku::Engine.routes.url_for(url_options)
|
175
177
|
end
|
176
178
|
end
|
179
|
+
# rubocop:enable Rails/ApplicationRecord
|
177
180
|
end
|
@@ -20,8 +20,11 @@ module Tanshuku
|
|
20
20
|
#
|
21
21
|
# @return [void]
|
22
22
|
def copy_migration_file
|
23
|
-
|
24
|
-
|
23
|
+
# rubocop:disable Rails/TimeZone
|
24
|
+
old_filename = "20230220123456_create_tanshuku_urls.rb"
|
25
|
+
new_filename = old_filename.sub("20230220123456", Time.now.strftime("%Y%m%d%H%M%S"))
|
26
|
+
copy_file "../../../db/migrate/#{old_filename}", "db/migrate/#{new_filename}"
|
27
|
+
# rubocop:enable Rails/TimeZone
|
25
28
|
end
|
26
29
|
end
|
27
30
|
end
|
data/lib/tanshuku/version.rb
CHANGED
@@ -0,0 +1,194 @@
|
|
1
|
+
---
|
2
|
+
sources:
|
3
|
+
- type: git
|
4
|
+
name: ruby/gem_rbs_collection
|
5
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
6
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
7
|
+
repo_dir: gems
|
8
|
+
path: ".gem_rbs_collection"
|
9
|
+
gems:
|
10
|
+
- name: actionmailer
|
11
|
+
version: '7.0'
|
12
|
+
source:
|
13
|
+
type: git
|
14
|
+
name: ruby/gem_rbs_collection
|
15
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
16
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
17
|
+
repo_dir: gems
|
18
|
+
- name: actionpack
|
19
|
+
version: '6.0'
|
20
|
+
source:
|
21
|
+
type: git
|
22
|
+
name: ruby/gem_rbs_collection
|
23
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
24
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
25
|
+
repo_dir: gems
|
26
|
+
- name: actionview
|
27
|
+
version: '6.0'
|
28
|
+
source:
|
29
|
+
type: git
|
30
|
+
name: ruby/gem_rbs_collection
|
31
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
32
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
33
|
+
repo_dir: gems
|
34
|
+
- name: activejob
|
35
|
+
version: '6.0'
|
36
|
+
source:
|
37
|
+
type: git
|
38
|
+
name: ruby/gem_rbs_collection
|
39
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
40
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
41
|
+
repo_dir: gems
|
42
|
+
- name: activemodel
|
43
|
+
version: '7.0'
|
44
|
+
source:
|
45
|
+
type: git
|
46
|
+
name: ruby/gem_rbs_collection
|
47
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
48
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
49
|
+
repo_dir: gems
|
50
|
+
- name: activerecord
|
51
|
+
version: '7.0'
|
52
|
+
source:
|
53
|
+
type: git
|
54
|
+
name: ruby/gem_rbs_collection
|
55
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
56
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
57
|
+
repo_dir: gems
|
58
|
+
- name: activestorage
|
59
|
+
version: '6.1'
|
60
|
+
source:
|
61
|
+
type: git
|
62
|
+
name: ruby/gem_rbs_collection
|
63
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
64
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
65
|
+
repo_dir: gems
|
66
|
+
- name: activesupport
|
67
|
+
version: '7.0'
|
68
|
+
source:
|
69
|
+
type: git
|
70
|
+
name: ruby/gem_rbs_collection
|
71
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
72
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
73
|
+
repo_dir: gems
|
74
|
+
- name: cgi
|
75
|
+
version: '0'
|
76
|
+
source:
|
77
|
+
type: stdlib
|
78
|
+
- name: concurrent-ruby
|
79
|
+
version: '1.1'
|
80
|
+
source:
|
81
|
+
type: git
|
82
|
+
name: ruby/gem_rbs_collection
|
83
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
84
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
85
|
+
repo_dir: gems
|
86
|
+
- name: date
|
87
|
+
version: '0'
|
88
|
+
source:
|
89
|
+
type: stdlib
|
90
|
+
- name: digest
|
91
|
+
version: '0'
|
92
|
+
source:
|
93
|
+
type: stdlib
|
94
|
+
- name: globalid
|
95
|
+
version: '1.1'
|
96
|
+
source:
|
97
|
+
type: git
|
98
|
+
name: ruby/gem_rbs_collection
|
99
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
100
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
101
|
+
repo_dir: gems
|
102
|
+
- name: i18n
|
103
|
+
version: '1.10'
|
104
|
+
source:
|
105
|
+
type: git
|
106
|
+
name: ruby/gem_rbs_collection
|
107
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
108
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
109
|
+
repo_dir: gems
|
110
|
+
- name: logger
|
111
|
+
version: '0'
|
112
|
+
source:
|
113
|
+
type: stdlib
|
114
|
+
- name: mail
|
115
|
+
version: '2.8'
|
116
|
+
source:
|
117
|
+
type: git
|
118
|
+
name: ruby/gem_rbs_collection
|
119
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
120
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
121
|
+
repo_dir: gems
|
122
|
+
- name: minitest
|
123
|
+
version: '0'
|
124
|
+
source:
|
125
|
+
type: stdlib
|
126
|
+
- name: monitor
|
127
|
+
version: '0'
|
128
|
+
source:
|
129
|
+
type: stdlib
|
130
|
+
- name: mutex_m
|
131
|
+
version: '0'
|
132
|
+
source:
|
133
|
+
type: stdlib
|
134
|
+
- name: nokogiri
|
135
|
+
version: '1.11'
|
136
|
+
source:
|
137
|
+
type: git
|
138
|
+
name: ruby/gem_rbs_collection
|
139
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
140
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
141
|
+
repo_dir: gems
|
142
|
+
- name: rack
|
143
|
+
version: '2.2'
|
144
|
+
source:
|
145
|
+
type: git
|
146
|
+
name: ruby/gem_rbs_collection
|
147
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
148
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
149
|
+
repo_dir: gems
|
150
|
+
- name: rails-dom-testing
|
151
|
+
version: '2.0'
|
152
|
+
source:
|
153
|
+
type: git
|
154
|
+
name: ruby/gem_rbs_collection
|
155
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
156
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
157
|
+
repo_dir: gems
|
158
|
+
- name: railties
|
159
|
+
version: '6.0'
|
160
|
+
source:
|
161
|
+
type: git
|
162
|
+
name: ruby/gem_rbs_collection
|
163
|
+
revision: 12631190e75c631eca0908ecc8c03bcfd78c0c99
|
164
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
165
|
+
repo_dir: gems
|
166
|
+
- name: securerandom
|
167
|
+
version: '0'
|
168
|
+
source:
|
169
|
+
type: stdlib
|
170
|
+
- name: singleton
|
171
|
+
version: '0'
|
172
|
+
source:
|
173
|
+
type: stdlib
|
174
|
+
- name: tempfile
|
175
|
+
version: '0'
|
176
|
+
source:
|
177
|
+
type: stdlib
|
178
|
+
- name: time
|
179
|
+
version: '0'
|
180
|
+
source:
|
181
|
+
type: stdlib
|
182
|
+
- name: timeout
|
183
|
+
version: '0'
|
184
|
+
source:
|
185
|
+
type: stdlib
|
186
|
+
- name: tsort
|
187
|
+
version: '0'
|
188
|
+
source:
|
189
|
+
type: stdlib
|
190
|
+
- name: uri
|
191
|
+
version: '0'
|
192
|
+
source:
|
193
|
+
type: stdlib
|
194
|
+
gemfile_lock_path: Gemfile.lock
|
data/rbs_collection.yaml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
sources:
|
2
|
+
- type: git
|
3
|
+
name: ruby/gem_rbs_collection
|
4
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
5
|
+
revision: main
|
6
|
+
repo_dir: gems
|
7
|
+
|
8
|
+
path: .gem_rbs_collection
|
9
|
+
|
10
|
+
gems:
|
11
|
+
- name: rbs
|
12
|
+
ignore: true
|
13
|
+
- name: steep
|
14
|
+
ignore: true
|
15
|
+
- name: tanshuku
|
16
|
+
ignore: true
|
17
|
+
|
18
|
+
- name: digest
|
19
|
+
- name: securerandom
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# cf. https://github.com/pocke/rbs_rails
|
2
|
+
module Tanshuku
|
3
|
+
class Url < ActiveRecord::Base
|
4
|
+
class ActiveRecord_Relation < ActiveRecord::Relation
|
5
|
+
include _ActiveRecord_Relation[Tanshuku::Url, Integer]
|
6
|
+
include Enumerable[Tanshuku::Url]
|
7
|
+
end
|
8
|
+
|
9
|
+
extend _ActiveRecord_Relation_ClassMethods[Tanshuku::Url, ActiveRecord_Relation, Integer]
|
10
|
+
|
11
|
+
DEFAULT_NAMESPACE: String
|
12
|
+
|
13
|
+
module GeneratedAttributeMethods
|
14
|
+
attr_accessor id (): Integer?
|
15
|
+
def id?: () -> bool
|
16
|
+
def id_changed?: () -> bool
|
17
|
+
def id_change: () -> [Integer?, Integer?]
|
18
|
+
def id_will_change!: () -> void
|
19
|
+
def id_was: () -> Integer?
|
20
|
+
def id_previously_changed?: () -> bool
|
21
|
+
def id_previous_change: () -> [Integer?, Integer?]?
|
22
|
+
def id_previously_was: () -> Integer?
|
23
|
+
def id_before_last_save: () -> Integer?
|
24
|
+
def id_change_to_be_saved: () -> [Integer?, Integer?]?
|
25
|
+
def id_in_database: () -> Integer?
|
26
|
+
def saved_change_to_id: () -> [Integer?, Integer?]?
|
27
|
+
def saved_change_to_id?: () -> bool
|
28
|
+
def will_save_change_to_id?: () -> bool
|
29
|
+
def restore_id!: () -> void
|
30
|
+
def clear_id_change: () -> void
|
31
|
+
|
32
|
+
attr_accessor url (): String?
|
33
|
+
def url?: () -> bool
|
34
|
+
def url_changed?: () -> bool
|
35
|
+
def url_change: () -> [String?, String?]
|
36
|
+
def url_will_change!: () -> void
|
37
|
+
def url_was: () -> String?
|
38
|
+
def url_previously_changed?: () -> bool
|
39
|
+
def url_previous_change: () -> [String?, String?]?
|
40
|
+
def url_previously_was: () -> String?
|
41
|
+
def url_before_last_save: () -> String?
|
42
|
+
def url_change_to_be_saved: () -> [String?, String?]?
|
43
|
+
def url_in_database: () -> String?
|
44
|
+
def saved_change_to_url: () -> [String?, String?]?
|
45
|
+
def saved_change_to_url?: () -> bool
|
46
|
+
def will_save_change_to_url?: () -> bool
|
47
|
+
def restore_url!: () -> void
|
48
|
+
def clear_url_change: () -> void
|
49
|
+
|
50
|
+
attr_accessor hashed_url (): String?
|
51
|
+
def hashed_url?: () -> bool
|
52
|
+
def hashed_url_changed?: () -> bool
|
53
|
+
def hashed_url_change: () -> [String?, String?]
|
54
|
+
def hashed_url_will_change!: () -> void
|
55
|
+
def hashed_url_was: () -> String?
|
56
|
+
def hashed_url_previously_changed?: () -> bool
|
57
|
+
def hashed_url_previous_change: () -> [String?, String?]?
|
58
|
+
def hashed_url_previously_was: () -> String?
|
59
|
+
def hashed_url_before_last_save: () -> String?
|
60
|
+
def hashed_url_change_to_be_saved: () -> [String?, String?]?
|
61
|
+
def hashed_url_in_database: () -> String?
|
62
|
+
def saved_change_to_hashed_url: () -> [String?, String?]?
|
63
|
+
def saved_change_to_hashed_url?: () -> bool
|
64
|
+
def will_save_change_to_hashed_url?: () -> bool
|
65
|
+
def restore_hashed_url!: () -> void
|
66
|
+
def clear_hashed_url_change: () -> void
|
67
|
+
|
68
|
+
attr_accessor key (): String?
|
69
|
+
def key?: () -> bool
|
70
|
+
def key_changed?: () -> bool
|
71
|
+
def key_change: () -> [String?, String?]
|
72
|
+
def key_will_change!: () -> void
|
73
|
+
def key_was: () -> String?
|
74
|
+
def key_previously_changed?: () -> bool
|
75
|
+
def key_previous_change: () -> [String?, String?]?
|
76
|
+
def key_previously_was: () -> String?
|
77
|
+
def key_before_last_save: () -> String?
|
78
|
+
def key_change_to_be_saved: () -> [String?, String?]?
|
79
|
+
def key_in_database: () -> String?
|
80
|
+
def saved_change_to_key: () -> [String?, String?]?
|
81
|
+
def saved_change_to_key?: () -> bool
|
82
|
+
def will_save_change_to_key?: () -> bool
|
83
|
+
def restore_key!: () -> void
|
84
|
+
def clear_key_change: () -> void
|
85
|
+
|
86
|
+
attr_accessor created_at (): ActiveSupport::TimeWithZone?
|
87
|
+
def created_at?: () -> bool
|
88
|
+
def created_at_changed?: () -> bool
|
89
|
+
def created_at_change: () -> [ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone?]
|
90
|
+
def created_at_will_change!: () -> void
|
91
|
+
def created_at_was: () -> ActiveSupport::TimeWithZone?
|
92
|
+
def created_at_previously_changed?: () -> bool
|
93
|
+
def created_at_previous_change: () -> [ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone?]?
|
94
|
+
def created_at_previously_was: () -> ActiveSupport::TimeWithZone?
|
95
|
+
def created_at_before_last_save: () -> ActiveSupport::TimeWithZone?
|
96
|
+
def created_at_change_to_be_saved: () -> [ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone?]?
|
97
|
+
def created_at_in_database: () -> ActiveSupport::TimeWithZone?
|
98
|
+
def saved_change_to_created_at: () -> [ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone?]?
|
99
|
+
def saved_change_to_created_at?: () -> bool
|
100
|
+
def will_save_change_to_created_at?: () -> bool
|
101
|
+
def restore_created_at!: () -> void
|
102
|
+
def clear_created_at_change: () -> void
|
103
|
+
end
|
104
|
+
include GeneratedAttributeMethods
|
105
|
+
|
106
|
+
def self.shorten: (String original_url, ?namespace: String, ?url_options: Hash[String | Symbol, untyped]) -> String
|
107
|
+
def self.find_by_url: (String url, ?namespace: String) -> ActiveRecord::Base?
|
108
|
+
def self.normalize_url: (String url) -> String
|
109
|
+
def self.hash_url: (String url, ?namespace: String) -> String
|
110
|
+
def self.generate_key: -> String
|
111
|
+
def self.report_exception: (exception: Exception, original_url: String) -> void
|
112
|
+
def shortened_url: (?Hash[String | Symbol, untyped] url_options) -> String
|
113
|
+
end
|
114
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Tanshuku
|
2
|
+
class Configuration
|
3
|
+
interface _UrlHasher
|
4
|
+
def call: (String url, namespace: String) -> String
|
5
|
+
end
|
6
|
+
|
7
|
+
interface _KeyGenerator
|
8
|
+
def call: -> String
|
9
|
+
end
|
10
|
+
|
11
|
+
interface _ExceptionReporter
|
12
|
+
def call: (exception: Exception, original_url: String) -> void
|
13
|
+
end
|
14
|
+
|
15
|
+
extend ActiveModel::Attributes::ClassMethods
|
16
|
+
|
17
|
+
@mutex: Thread::Mutex
|
18
|
+
|
19
|
+
attr_accessor default_url_options (): Hash[String | Symbol, untyped]
|
20
|
+
attr_accessor max_url_length (): Integer
|
21
|
+
attr_accessor url_pattern (): Regexp
|
22
|
+
attr_accessor key_length (): Integer
|
23
|
+
attr_accessor url_hasher (): _UrlHasher
|
24
|
+
attr_accessor key_generator (): _KeyGenerator
|
25
|
+
attr_accessor exception_reporter (): _ExceptionReporter
|
26
|
+
|
27
|
+
def initialize: (*bot noname) -> void
|
28
|
+
def configure: { (Configuration) -> void } -> void
|
29
|
+
|
30
|
+
module DefaultUrlHasher
|
31
|
+
extend _UrlHasher
|
32
|
+
end
|
33
|
+
|
34
|
+
module DefaultKeyGenerator
|
35
|
+
extend _KeyGenerator
|
36
|
+
end
|
37
|
+
|
38
|
+
module DefaultExceptionReporter
|
39
|
+
extend _ExceptionReporter
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
- file: lib/generators/tanshuku/install_generator.rb
|
3
|
+
diagnostics:
|
4
|
+
- range:
|
5
|
+
start:
|
6
|
+
line: 10
|
7
|
+
character: 49
|
8
|
+
end:
|
9
|
+
line: 10
|
10
|
+
character: 56
|
11
|
+
severity: ERROR
|
12
|
+
message: |-
|
13
|
+
Cannot pass a value of type `(::String | nil)` as an argument of type `(::string | ::_ToPath)`
|
14
|
+
(::String | nil) <: (::string | ::_ToPath)
|
15
|
+
nil <: (::string | ::_ToPath)
|
16
|
+
nil <: ::string
|
17
|
+
nil <: (::String | ::_ToStr)
|
18
|
+
nil <: ::String
|
19
|
+
code: Ruby::ArgumentTypeMismatch
|
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: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kg8m
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -16,31 +16,31 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.4.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.4.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 7.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 7.0.0
|
41
41
|
description: Tanshuku is a simple and performance aware Rails engine for shortening
|
42
|
-
URLs. Tanshuku generates a shortened URL per a normalized original URL.Tanshuku
|
43
|
-
redirects from a shortened URL to its
|
42
|
+
URLs. Tanshuku generates a shortened URL per a normalized original URL. Tanshuku
|
43
|
+
redirects from a shortened URL to its corresponding original URL.
|
44
44
|
email:
|
45
45
|
- takumi.kagiyama@gmail.com
|
46
46
|
executables: []
|
@@ -49,7 +49,7 @@ extra_rdoc_files: []
|
|
49
49
|
files:
|
50
50
|
- LICENSE
|
51
51
|
- README.md
|
52
|
-
-
|
52
|
+
- Steepfile
|
53
53
|
- app/controllers/tanshuku/urls_controller.rb
|
54
54
|
- app/models/tanshuku/url.rb
|
55
55
|
- config/locales/en.yml
|
@@ -62,7 +62,17 @@ files:
|
|
62
62
|
- lib/tanshuku/configuration.rb
|
63
63
|
- lib/tanshuku/engine.rb
|
64
64
|
- lib/tanshuku/version.rb
|
65
|
-
-
|
65
|
+
- rbs_collection.lock.yaml
|
66
|
+
- rbs_collection.yaml
|
67
|
+
- sig/app/controllers/tanshuku/urls_controller.rbs
|
68
|
+
- sig/app/models/tanshuku/url.rbs
|
69
|
+
- sig/db/migrate/create_tanshuku_urls.rbs
|
70
|
+
- sig/lib/generators/tanshuku/install_generator.rbs
|
71
|
+
- sig/lib/tanshuku.rbs
|
72
|
+
- sig/lib/tanshuku/configuration.rbs
|
73
|
+
- sig/lib/tanshuku/engine.rbs
|
74
|
+
- sig/lib/tanshuku/version.rbs
|
75
|
+
- steep_expectations.yml
|
66
76
|
homepage: https://github.com/kg8m/tanshuku
|
67
77
|
licenses:
|
68
78
|
- MIT
|
@@ -80,14 +90,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
80
90
|
requirements:
|
81
91
|
- - ">="
|
82
92
|
- !ruby/object:Gem::Version
|
83
|
-
version: '3.
|
93
|
+
version: '3.1'
|
84
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
95
|
requirements:
|
86
96
|
- - ">="
|
87
97
|
- !ruby/object:Gem::Version
|
88
98
|
version: '0'
|
89
99
|
requirements: []
|
90
|
-
rubygems_version: 3.4.
|
100
|
+
rubygems_version: 3.4.10
|
91
101
|
signing_key:
|
92
102
|
specification_version: 4
|
93
103
|
summary: Tanshuku is a simple and performance aware Rails engine for shortening URLs.
|
data/Rakefile
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
|
5
|
-
APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__)
|
6
|
-
load "rails/tasks/engine.rake"
|
7
|
-
|
8
|
-
load "rails/tasks/statistics.rake"
|
9
|
-
|
10
|
-
require "bundler/gem_tasks"
|
11
|
-
require "rspec/core/rake_task"
|
12
|
-
require "rubocop/rake_task"
|
13
|
-
|
14
|
-
RSpec::Core::RakeTask.new(:spec)
|
15
|
-
RuboCop::RakeTask.new
|
16
|
-
|
17
|
-
namespace :yard do
|
18
|
-
desc "Start YARD server"
|
19
|
-
task :server do
|
20
|
-
puts "See http://localhost:8808/"
|
21
|
-
sh "yard server --reload"
|
22
|
-
end
|
23
|
-
|
24
|
-
desc "Check YARD docs"
|
25
|
-
task :check do
|
26
|
-
sh "yard --no-output --no-cache --fail-on-warning"
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
task default: %i[rubocop spec yard:check]
|
data/tmp/.keep
DELETED
File without changes
|