the_string_to_slug 1.2 → 1.3
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1949fae18f18631f26a0305fdcf46d389ecb7d97
|
|
4
|
+
data.tar.gz: 2b0b7a91421e64ebf878dfe767543d683fc1221f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 74c4b135b8e9251ab302e2384b5ee22cfbdb1f023fdfa927d5e789e6c8bcc4201156a5de4c52f181fd5b2e6be7255ccecd1e75e66822984146507730afb889c0
|
|
7
|
+
data.tar.gz: 710228bbdd26a674a84f1809d662136670be0c1da83949abc733c5e702357f77497de987dcb44d588da9235a5cbb9b421b8f70505d4e649e46756279660250e7
|
data/lib/the_string_to_slug.rb
CHANGED
|
@@ -26,7 +26,7 @@ class String
|
|
|
26
26
|
str = I18n::transliterate(str, opts)
|
|
27
27
|
.gsub('_', sep)
|
|
28
28
|
.gsub('-', sep)
|
|
29
|
-
.parameterize(sep)
|
|
29
|
+
.parameterize(separator: sep)
|
|
30
30
|
.to_s
|
|
31
31
|
end
|
|
32
32
|
|
|
@@ -68,4 +68,4 @@ class Symbol
|
|
|
68
68
|
def slugged_filepath opts = {}
|
|
69
69
|
String.slugged_file(self.to_s, opts)
|
|
70
70
|
end
|
|
71
|
-
end
|
|
71
|
+
end
|
data/spec/dummy_app/Gemfile
CHANGED
|
@@ -14,7 +14,8 @@ DummyApp::Application.configure do
|
|
|
14
14
|
|
|
15
15
|
# Configure static asset server for tests with Cache-Control for performance.
|
|
16
16
|
config.serve_static_assets = true
|
|
17
|
-
config.static_cache_control = "public, max-age=3600"
|
|
17
|
+
# config.static_cache_control = "public, max-age=3600"
|
|
18
|
+
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
|
|
18
19
|
|
|
19
20
|
# Show full error reports and disable caching.
|
|
20
21
|
config.consider_all_requests_local = true
|
data/spec/dummy_app/db/schema.rb
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
ENV["RAILS_ENV"] ||= 'test'
|
|
3
3
|
require File.expand_path("../../config/environment", __FILE__)
|
|
4
4
|
require 'rspec/rails'
|
|
5
|
-
require 'rspec/autorun'
|
|
6
5
|
|
|
7
6
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
|
8
7
|
# in spec/support/ and its subdirectories.
|
|
@@ -14,4 +13,5 @@ ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
|
|
|
14
13
|
|
|
15
14
|
RSpec.configure do |config|
|
|
16
15
|
config.order = "random"
|
|
16
|
+
config.expect_with(:rspec) { |c| c.syntax = :should }
|
|
17
17
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: the_string_to_slug
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '1.
|
|
4
|
+
version: '1.3'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ilya N. Zykin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-11-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails-i18n
|
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
143
143
|
version: '0'
|
|
144
144
|
requirements: []
|
|
145
145
|
rubyforge_project:
|
|
146
|
-
rubygems_version: 2.1
|
|
146
|
+
rubygems_version: 2.5.1
|
|
147
147
|
signing_key:
|
|
148
148
|
specification_version: 4
|
|
149
149
|
summary: Transliteration + Parameterization for slugs building
|