to_slug_param 1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.keep +0 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +91 -0
- data/Rakefile +1 -0
- data/config/locales/yandex_translit.rb +97 -0
- data/lib/to_slug_param/string.rb +81 -0
- data/lib/to_slug_param/symbol.rb +17 -0
- data/lib/to_slug_param.rb +20 -0
- data/spec/dummy_app/.gitignore +16 -0
- data/spec/dummy_app/.rspec +1 -0
- data/spec/dummy_app/Gemfile +8 -0
- data/spec/dummy_app/README.md +14 -0
- data/spec/dummy_app/Rakefile +6 -0
- data/spec/dummy_app/app/assets/images/.keep +0 -0
- data/spec/dummy_app/app/assets/javascripts/application.js +16 -0
- data/spec/dummy_app/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy_app/app/controllers/application_controller.rb +5 -0
- data/spec/dummy_app/app/controllers/concerns/.keep +0 -0
- data/spec/dummy_app/app/helpers/application_helper.rb +2 -0
- data/spec/dummy_app/app/mailers/.keep +0 -0
- data/spec/dummy_app/app/models/.keep +0 -0
- data/spec/dummy_app/app/models/concerns/.keep +0 -0
- data/spec/dummy_app/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy_app/bin/bundle +3 -0
- data/spec/dummy_app/bin/rails +4 -0
- data/spec/dummy_app/bin/rake +4 -0
- data/spec/dummy_app/config/application.rb +25 -0
- data/spec/dummy_app/config/boot.rb +4 -0
- data/spec/dummy_app/config/database.yml +25 -0
- data/spec/dummy_app/config/environment.rb +5 -0
- data/spec/dummy_app/config/environments/development.rb +29 -0
- data/spec/dummy_app/config/environments/production.rb +80 -0
- data/spec/dummy_app/config/environments/test.rb +36 -0
- data/spec/dummy_app/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy_app/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy_app/config/initializers/inflections.rb +16 -0
- data/spec/dummy_app/config/initializers/mime_types.rb +5 -0
- data/spec/dummy_app/config/initializers/secret_token.rb +12 -0
- data/spec/dummy_app/config/initializers/session_store.rb +3 -0
- data/spec/dummy_app/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy_app/config/locales/en.yml +23 -0
- data/spec/dummy_app/config/routes.rb +56 -0
- data/spec/dummy_app/config.ru +4 -0
- data/spec/dummy_app/db/schema.rb +16 -0
- data/spec/dummy_app/db/seeds.rb +7 -0
- data/spec/dummy_app/lib/assets/.keep +0 -0
- data/spec/dummy_app/lib/tasks/.keep +0 -0
- data/spec/dummy_app/log/.keep +0 -0
- data/spec/dummy_app/public/404.html +58 -0
- data/spec/dummy_app/public/422.html +58 -0
- data/spec/dummy_app/public/500.html +57 -0
- data/spec/dummy_app/public/favicon.ico +0 -0
- data/spec/dummy_app/public/robots.txt +5 -0
- data/spec/dummy_app/spec/helpers/string.rb +155 -0
- data/spec/dummy_app/spec/spec_helper.rb +17 -0
- data/spec/dummy_app/test/controllers/.keep +0 -0
- data/spec/dummy_app/test/fixtures/.keep +0 -0
- data/spec/dummy_app/test/helpers/.keep +0 -0
- data/spec/dummy_app/test/integration/.keep +0 -0
- data/spec/dummy_app/test/mailers/.keep +0 -0
- data/spec/dummy_app/test/models/.keep +0 -0
- data/spec/dummy_app/test/test_helper.rb +15 -0
- data/spec/dummy_app/vendor/assets/javascripts/.keep +0 -0
- data/spec/dummy_app/vendor/assets/stylesheets/.keep +0 -0
- data/to_slug_param.gemspec +29 -0
- metadata +223 -0
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
ENV["RAILS_ENV"] ||= "test"
|
2
|
+
require File.expand_path('../../config/environment', __FILE__)
|
3
|
+
require 'rails/test_help'
|
4
|
+
|
5
|
+
class ActiveSupport::TestCase
|
6
|
+
ActiveRecord::Migration.check_pending!
|
7
|
+
|
8
|
+
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
9
|
+
#
|
10
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
11
|
+
# -- they do not yet inherit this setting
|
12
|
+
fixtures :all
|
13
|
+
|
14
|
+
# Add more helper methods to be used by all tests here...
|
15
|
+
end
|
File without changes
|
File without changes
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
module ToSlugParam
|
6
|
+
VERSION = "1.2"
|
7
|
+
end
|
8
|
+
|
9
|
+
Gem::Specification.new do |spec|
|
10
|
+
spec.name = 'to_slug_param'
|
11
|
+
spec.version = ToSlugParam::VERSION
|
12
|
+
spec.authors = ['Ilya N. Zykin']
|
13
|
+
spec.email = ['zykin-ilya@ya.ru']
|
14
|
+
spec.description = %q{ Convert strings and symbols to slug param }
|
15
|
+
spec.summary = %q{ Transliteration + Parameterization for slugs building }
|
16
|
+
spec.homepage = 'https://github.com/the-teacher/to_slug_param'
|
17
|
+
spec.license = 'MIT'
|
18
|
+
|
19
|
+
spec.files = `git ls-files`.split($/)
|
20
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
21
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
22
|
+
spec.require_paths = ['lib']
|
23
|
+
|
24
|
+
spec.add_dependency 'rails-i18n'
|
25
|
+
spec.add_dependency 'stringex', '~> 2.7.1'
|
26
|
+
|
27
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
28
|
+
spec.add_development_dependency 'rake'
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,223 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: to_slug_param
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.2'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ilya N. Zykin
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-10-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails-i18n
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: stringex
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.7.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.7.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: " Convert strings and symbols to slug param "
|
70
|
+
email:
|
71
|
+
- zykin-ilya@ya.ru
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".keep"
|
78
|
+
- Gemfile
|
79
|
+
- LICENSE.txt
|
80
|
+
- README.md
|
81
|
+
- Rakefile
|
82
|
+
- config/locales/yandex_translit.rb
|
83
|
+
- lib/to_slug_param.rb
|
84
|
+
- lib/to_slug_param/string.rb
|
85
|
+
- lib/to_slug_param/symbol.rb
|
86
|
+
- spec/dummy_app/.gitignore
|
87
|
+
- spec/dummy_app/.rspec
|
88
|
+
- spec/dummy_app/Gemfile
|
89
|
+
- spec/dummy_app/README.md
|
90
|
+
- spec/dummy_app/Rakefile
|
91
|
+
- spec/dummy_app/app/assets/images/.keep
|
92
|
+
- spec/dummy_app/app/assets/javascripts/application.js
|
93
|
+
- spec/dummy_app/app/assets/stylesheets/application.css
|
94
|
+
- spec/dummy_app/app/controllers/application_controller.rb
|
95
|
+
- spec/dummy_app/app/controllers/concerns/.keep
|
96
|
+
- spec/dummy_app/app/helpers/application_helper.rb
|
97
|
+
- spec/dummy_app/app/mailers/.keep
|
98
|
+
- spec/dummy_app/app/models/.keep
|
99
|
+
- spec/dummy_app/app/models/concerns/.keep
|
100
|
+
- spec/dummy_app/app/views/layouts/application.html.erb
|
101
|
+
- spec/dummy_app/bin/bundle
|
102
|
+
- spec/dummy_app/bin/rails
|
103
|
+
- spec/dummy_app/bin/rake
|
104
|
+
- spec/dummy_app/config.ru
|
105
|
+
- spec/dummy_app/config/application.rb
|
106
|
+
- spec/dummy_app/config/boot.rb
|
107
|
+
- spec/dummy_app/config/database.yml
|
108
|
+
- spec/dummy_app/config/environment.rb
|
109
|
+
- spec/dummy_app/config/environments/development.rb
|
110
|
+
- spec/dummy_app/config/environments/production.rb
|
111
|
+
- spec/dummy_app/config/environments/test.rb
|
112
|
+
- spec/dummy_app/config/initializers/backtrace_silencers.rb
|
113
|
+
- spec/dummy_app/config/initializers/filter_parameter_logging.rb
|
114
|
+
- spec/dummy_app/config/initializers/inflections.rb
|
115
|
+
- spec/dummy_app/config/initializers/mime_types.rb
|
116
|
+
- spec/dummy_app/config/initializers/secret_token.rb
|
117
|
+
- spec/dummy_app/config/initializers/session_store.rb
|
118
|
+
- spec/dummy_app/config/initializers/wrap_parameters.rb
|
119
|
+
- spec/dummy_app/config/locales/en.yml
|
120
|
+
- spec/dummy_app/config/routes.rb
|
121
|
+
- spec/dummy_app/db/schema.rb
|
122
|
+
- spec/dummy_app/db/seeds.rb
|
123
|
+
- spec/dummy_app/lib/assets/.keep
|
124
|
+
- spec/dummy_app/lib/tasks/.keep
|
125
|
+
- spec/dummy_app/log/.keep
|
126
|
+
- spec/dummy_app/public/404.html
|
127
|
+
- spec/dummy_app/public/422.html
|
128
|
+
- spec/dummy_app/public/500.html
|
129
|
+
- spec/dummy_app/public/favicon.ico
|
130
|
+
- spec/dummy_app/public/robots.txt
|
131
|
+
- spec/dummy_app/spec/helpers/string.rb
|
132
|
+
- spec/dummy_app/spec/spec_helper.rb
|
133
|
+
- spec/dummy_app/test/controllers/.keep
|
134
|
+
- spec/dummy_app/test/fixtures/.keep
|
135
|
+
- spec/dummy_app/test/helpers/.keep
|
136
|
+
- spec/dummy_app/test/integration/.keep
|
137
|
+
- spec/dummy_app/test/mailers/.keep
|
138
|
+
- spec/dummy_app/test/models/.keep
|
139
|
+
- spec/dummy_app/test/test_helper.rb
|
140
|
+
- spec/dummy_app/vendor/assets/javascripts/.keep
|
141
|
+
- spec/dummy_app/vendor/assets/stylesheets/.keep
|
142
|
+
- to_slug_param.gemspec
|
143
|
+
homepage: https://github.com/the-teacher/to_slug_param
|
144
|
+
licenses:
|
145
|
+
- MIT
|
146
|
+
metadata: {}
|
147
|
+
post_install_message:
|
148
|
+
rdoc_options: []
|
149
|
+
require_paths:
|
150
|
+
- lib
|
151
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
requirements: []
|
162
|
+
rubyforge_project:
|
163
|
+
rubygems_version: 2.6.14
|
164
|
+
signing_key:
|
165
|
+
specification_version: 4
|
166
|
+
summary: Transliteration + Parameterization for slugs building
|
167
|
+
test_files:
|
168
|
+
- spec/dummy_app/.gitignore
|
169
|
+
- spec/dummy_app/.rspec
|
170
|
+
- spec/dummy_app/Gemfile
|
171
|
+
- spec/dummy_app/README.md
|
172
|
+
- spec/dummy_app/Rakefile
|
173
|
+
- spec/dummy_app/app/assets/images/.keep
|
174
|
+
- spec/dummy_app/app/assets/javascripts/application.js
|
175
|
+
- spec/dummy_app/app/assets/stylesheets/application.css
|
176
|
+
- spec/dummy_app/app/controllers/application_controller.rb
|
177
|
+
- spec/dummy_app/app/controllers/concerns/.keep
|
178
|
+
- spec/dummy_app/app/helpers/application_helper.rb
|
179
|
+
- spec/dummy_app/app/mailers/.keep
|
180
|
+
- spec/dummy_app/app/models/.keep
|
181
|
+
- spec/dummy_app/app/models/concerns/.keep
|
182
|
+
- spec/dummy_app/app/views/layouts/application.html.erb
|
183
|
+
- spec/dummy_app/bin/bundle
|
184
|
+
- spec/dummy_app/bin/rails
|
185
|
+
- spec/dummy_app/bin/rake
|
186
|
+
- spec/dummy_app/config.ru
|
187
|
+
- spec/dummy_app/config/application.rb
|
188
|
+
- spec/dummy_app/config/boot.rb
|
189
|
+
- spec/dummy_app/config/database.yml
|
190
|
+
- spec/dummy_app/config/environment.rb
|
191
|
+
- spec/dummy_app/config/environments/development.rb
|
192
|
+
- spec/dummy_app/config/environments/production.rb
|
193
|
+
- spec/dummy_app/config/environments/test.rb
|
194
|
+
- spec/dummy_app/config/initializers/backtrace_silencers.rb
|
195
|
+
- spec/dummy_app/config/initializers/filter_parameter_logging.rb
|
196
|
+
- spec/dummy_app/config/initializers/inflections.rb
|
197
|
+
- spec/dummy_app/config/initializers/mime_types.rb
|
198
|
+
- spec/dummy_app/config/initializers/secret_token.rb
|
199
|
+
- spec/dummy_app/config/initializers/session_store.rb
|
200
|
+
- spec/dummy_app/config/initializers/wrap_parameters.rb
|
201
|
+
- spec/dummy_app/config/locales/en.yml
|
202
|
+
- spec/dummy_app/config/routes.rb
|
203
|
+
- spec/dummy_app/db/schema.rb
|
204
|
+
- spec/dummy_app/db/seeds.rb
|
205
|
+
- spec/dummy_app/lib/assets/.keep
|
206
|
+
- spec/dummy_app/lib/tasks/.keep
|
207
|
+
- spec/dummy_app/log/.keep
|
208
|
+
- spec/dummy_app/public/404.html
|
209
|
+
- spec/dummy_app/public/422.html
|
210
|
+
- spec/dummy_app/public/500.html
|
211
|
+
- spec/dummy_app/public/favicon.ico
|
212
|
+
- spec/dummy_app/public/robots.txt
|
213
|
+
- spec/dummy_app/spec/helpers/string.rb
|
214
|
+
- spec/dummy_app/spec/spec_helper.rb
|
215
|
+
- spec/dummy_app/test/controllers/.keep
|
216
|
+
- spec/dummy_app/test/fixtures/.keep
|
217
|
+
- spec/dummy_app/test/helpers/.keep
|
218
|
+
- spec/dummy_app/test/integration/.keep
|
219
|
+
- spec/dummy_app/test/mailers/.keep
|
220
|
+
- spec/dummy_app/test/models/.keep
|
221
|
+
- spec/dummy_app/test/test_helper.rb
|
222
|
+
- spec/dummy_app/vendor/assets/javascripts/.keep
|
223
|
+
- spec/dummy_app/vendor/assets/stylesheets/.keep
|