the_string_to_slug 1.2 → 1.3

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
  SHA1:
3
- metadata.gz: 05c1fda589a9fd82d7b6ca75d4d3143c31bbd986
4
- data.tar.gz: 4a64890bbc945bd88981a75ef57541cfe9b0f885
3
+ metadata.gz: 1949fae18f18631f26a0305fdcf46d389ecb7d97
4
+ data.tar.gz: 2b0b7a91421e64ebf878dfe767543d683fc1221f
5
5
  SHA512:
6
- metadata.gz: 2e88afcd87802f6556925d7f0564a9ac883d4201feb1182798e75255df314ff2aad34e9aa117a340e0710ff8975ba2e133b7e079374c3ae85339aa35a5c0f1e7
7
- data.tar.gz: 423d241fb30aee3902460fd36efbd460453af2538b71541f1a3dff751a537d81805a375ef58866d0921d0ea20d77afd9d4c7547bdd2b5eceb50f809071d0c40c
6
+ metadata.gz: 74c4b135b8e9251ab302e2384b5ee22cfbdb1f023fdfa927d5e789e6c8bcc4201156a5de4c52f181fd5b2e6be7255ccecd1e75e66822984146507730afb889c0
7
+ data.tar.gz: 710228bbdd26a674a84f1809d662136670be0c1da83949abc733c5e702357f77497de987dcb44d588da9235a5cbb9b421b8f70505d4e649e46756279660250e7
@@ -1,3 +1,3 @@
1
1
  module TheStringToSlug
2
- VERSION = "1.2"
2
+ VERSION = "1.3"
3
3
  end
@@ -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
@@ -1,8 +1,8 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '4.0.0'
3
+ gem 'rails', '5.0.0.1'
4
4
 
5
5
  gem 'sqlite3'
6
6
  gem 'rspec'
7
7
  gem 'rspec-rails'
8
- gem 'the_string_to_slug', path: '../../'
8
+ gem 'the_string_to_slug', path: '../../'
@@ -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
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  # This file is auto-generated from the current state of the database. Instead
3
2
  # of editing this file, please use the migrations feature of Active Record to
4
3
  # incrementally modify your database, and then regenerate this schema definition.
@@ -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.2'
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: 2014-03-22 00:00:00.000000000 Z
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.11
146
+ rubygems_version: 2.5.1
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: Transliteration + Parameterization for slugs building