sly 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/sly/item.rb +7 -1
- data/lib/sly/version.rb +1 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDA4Y2JlYWYyNjI1NmJhNmMxMGM0ZmY5ZmU2MmZiNGU3ZTNiZjllMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzViNDUyZWQxMjE3N2Q3YWFmNDQ4YjYwMzk1ZGI5NTE0YWY3ZmQ2MA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTI1ZmE4MjA2YjA1OTI2NmE3MjI3MTRhMWEwMGQ2N2QyOTMwODg2ZTk4NjI3
|
10
|
+
MmM2ZWQ4YzUyZGUzN2I5MTdjYzBkZTU4MTljMjVmNjM3ZWI4MWQxNDI0OTg2
|
11
|
+
NmUxN2Q2ZTRmZDE3ZWVlODRmZmViMjJiZjlmZGUyMmIxNWRjNmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzU0NDY3NzNhM2QyODU3OWVjNjhkMmRlNmM4YmIyMWU3ZDQ0OGY5MDZiZmU1
|
14
|
+
NzNiZTA5ZmJkZTQzMTBjNTU2YWUyOTg2ZDFjN2M3ZjFlZTBjZTQwZDg4NDU1
|
15
|
+
ZGNhZDNjMDNjNGJiZTQ2MmVkNzZjODkzYzY5YjI1Y2U5Yzk5OTc=
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/sly/item.rb
CHANGED
@@ -47,7 +47,13 @@ class Sly::Item
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def slug
|
50
|
-
self.
|
50
|
+
if self.type == :feature
|
51
|
+
slug_string = self.title.downcase.match(/(as a.*i want.*) so that.*/)[1]
|
52
|
+
else
|
53
|
+
slug_string = self.title.downcase
|
54
|
+
end
|
55
|
+
|
56
|
+
slug_string.gsub(/(&|&)/, 'and').gsub(/ to | the |\s+|_+|\//, '-').gsub(/[^\w-]/, '').squeeze('-')
|
51
57
|
end
|
52
58
|
|
53
59
|
def git_slug
|
data/lib/sly/version.rb
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|