marfa 0.5.2 → 0.5.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: 8764d13609ff7cb8a3352206888a777e515a4695
4
- data.tar.gz: 5944641df53e44d5b9a33000487a931f63904fb6
3
+ metadata.gz: 1aca8dad0c47806a5823b6296d139735ab42e121
4
+ data.tar.gz: edeb6cc773df525b6988c2ffef7863c07eefa08b
5
5
  SHA512:
6
- metadata.gz: d8c2d8fb0f3a7b18fd78b2de0f986852e1e39cf4cc30400ed0e3c332b5156c7fb5d4f24752b273ab96afd41c6f1da97af2d6c0efabf9cd33a7adf0b1996da459
7
- data.tar.gz: 6acc988256ee11341587512a0ebe14fc8c6ebdf3afd6440b1a5254bf9e4f3741c3887d6a5f76fffadcc0145f87d5eacc13c4ea3fee8981239ddf8bb1aded76b3
6
+ metadata.gz: bc303e2600f78b4b5518989927486e8d3fa8baaf8525bdd95374403fc11b85425b506da0c0a7601461f0ba1a00745dd2e9be76f920cc071314f1ac660fc7f9bc
7
+ data.tar.gz: df2e0569c73596ab7cd2cd62bdea4bb71cba33464356be438aebd48e790e0fb0291f902f31a07d46e0f7a9b1a1cb9d0de7b2523e38cea470e7fa4ea5450cf5e0
@@ -24,9 +24,8 @@ class String
24
24
  # @return [String] changed string
25
25
  def to_url
26
26
  val = self.strip_tags!
27
- val = val.gsub(':', '')
28
- val = val.gsub(' ', '-')
29
- val = val.gsub('/', '-')
27
+ val = val.gsub(/[ —_\/]/, '-')#TODO: длинный пробел не работает
28
+ val = val.gsub(/[+.,!?@#$%^&*()\[\]{}:;\/\\|<>"']/, '') #TODO: больше символов!
30
29
  val.downcase
31
30
  end
32
31
 
data/lib/marfa/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # Version constant
2
2
  module Marfa
3
3
  # The version constant for the current version of Marfa
4
- VERSION = '0.5.2' unless defined?(Marfa::VERSION)
4
+ VERSION = '0.5.3' unless defined?(Marfa::VERSION)
5
5
 
6
6
  # The current Marfa version.
7
7
  # @return [String] The version number
data/marfa.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'marfa'
6
- s.version = '0.5.2'
6
+ s.version = '0.5.3'
7
7
  s.required_ruby_version = '>= 2.3.0'
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.date = Time.now.strftime('%Y-%m-%d')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marfa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Krechetov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-06-22 00:00:00.000000000 Z
13
+ date: 2017-06-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: haml