acts_more_seo 1.0.0 → 1.0.1
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/CHANGELOG.rdoc +3 -0
- data/Rakefile +1 -1
- data/acts_more_seo.gemspec +2 -2
- data/lib/string_ext.rb +0 -13
- data/spec/acts_more_seo_spec.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec83478368dca721770a10e86ecd5ad7b3edc435
|
|
4
|
+
data.tar.gz: 76b21902f51b84a7f75566883e4379eabf9aea67
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ba75ecff765b0cb7abeeaa5f60dd500cbe1b5d0434c3724bf6e51358d6f3ee67e12bc906dbf91c6ff428f64311643348b0787b78771bbabf3ae811fc9f791218
|
|
7
|
+
data.tar.gz: 845c40e90b86a9bc997bf6fb8364b2c062af19cf07a24f21bee58a29c06141114a7e07bfecdc73d6fd459b6945af46f9e9a8e7e5211a8fe706c9b8f2caa101d7
|
data/CHANGELOG.rdoc
CHANGED
data/Rakefile
CHANGED
|
@@ -3,7 +3,7 @@ require 'rubygems'
|
|
|
3
3
|
require 'rake'
|
|
4
4
|
require 'echoe'
|
|
5
5
|
|
|
6
|
-
Echoe.new('acts_more_seo', '1.0.
|
|
6
|
+
Echoe.new('acts_more_seo', '1.0.1') do |p|
|
|
7
7
|
p.description = "Gem makes your ActiveRecord models more SEO friendly. Changes URL to look way better"
|
|
8
8
|
p.url = "https://github.com/mensfeld/Acts-more-SEO"
|
|
9
9
|
p.author = "Maciej Mensfeld"
|
data/acts_more_seo.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = "acts_more_seo"
|
|
5
|
-
s.version = "1.0.
|
|
5
|
+
s.version = "1.0.1"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Maciej Mensfeld"]
|
|
9
|
-
s.date = "2013-
|
|
9
|
+
s.date = "2013-09-17"
|
|
10
10
|
s.description = "Gem makes your ActiveRecord models more SEO friendly. Changes URL to look way better"
|
|
11
11
|
s.email = "maciej@mensfeld.pl"
|
|
12
12
|
s.extra_rdoc_files = ["CHANGELOG.rdoc", "README.md", "lib/acts_more_seo.rb", "lib/generators/acts_more_seo/install_generator.rb", "lib/generators/acts_more_seo/templates/create_seo_history_migration.rb", "lib/seo_finder.rb", "lib/seo_formatter.rb", "lib/seo_history.rb", "lib/string_ext.rb"]
|
data/lib/string_ext.rb
CHANGED
|
@@ -27,17 +27,4 @@ class String
|
|
|
27
27
|
self.replace self.nl2br
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
# Trim string to required length
|
|
31
|
-
def trim(length = 20, end_str = '...')
|
|
32
|
-
if self.length > length
|
|
33
|
-
return "#{self[0, length-end_str.length]}#{end_str}"
|
|
34
|
-
end
|
|
35
|
-
self
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
def trim!(length = 20, end_str = '...')
|
|
39
|
-
self.replace self.trim(length, end_str)
|
|
40
|
-
self
|
|
41
|
-
end
|
|
42
|
-
|
|
43
30
|
end
|
data/spec/acts_more_seo_spec.rb
CHANGED
|
@@ -308,3 +308,15 @@ describe IntegerElement do
|
|
|
308
308
|
end
|
|
309
309
|
end
|
|
310
310
|
end
|
|
311
|
+
|
|
312
|
+
describe String do
|
|
313
|
+
context 'when we convert string to url' do
|
|
314
|
+
context 'and string contains polish big letters' do
|
|
315
|
+
subject{ 'ŻółÓwio' }
|
|
316
|
+
|
|
317
|
+
it 'should convert them to downcase str letters' do
|
|
318
|
+
subject.to_url.should == 'zolowio'
|
|
319
|
+
end
|
|
320
|
+
end
|
|
321
|
+
end
|
|
322
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: acts_more_seo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Maciej Mensfeld
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-09-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: babosa
|