sly 0.0.6 → 0.0.7
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.
- data/lib/sly/item.rb +1 -1
- data/lib/sly/version.rb +1 -1
- metadata +3 -3
data/lib/sly/item.rb
CHANGED
|
@@ -47,7 +47,7 @@ class Sly::Item
|
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
def slug
|
|
50
|
-
self.title.downcase.gsub(/(&|&)/, ' and ').strip.gsub(/
|
|
50
|
+
self.title.downcase.gsub(/(&|&)/, ' and ').strip.gsub(/[^\w\s]/, '').gsub(/ to | the | +|_+/, '-')
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
def git_slug
|
data/lib/sly/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -181,7 +181,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
181
181
|
version: '0'
|
|
182
182
|
segments:
|
|
183
183
|
- 0
|
|
184
|
-
hash:
|
|
184
|
+
hash: 625480761348820372
|
|
185
185
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
none: false
|
|
187
187
|
requirements:
|
|
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
190
190
|
version: '0'
|
|
191
191
|
segments:
|
|
192
192
|
- 0
|
|
193
|
-
hash:
|
|
193
|
+
hash: 625480761348820372
|
|
194
194
|
requirements: []
|
|
195
195
|
rubyforge_project:
|
|
196
196
|
rubygems_version: 1.8.25
|