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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDBlMmQ4OTM3ZDdmZmJmNzI4NDY0MTRmMzFhNTZiZjY5OWVlZDNlMQ==
4
+ NDA4Y2JlYWYyNjI1NmJhNmMxMGM0ZmY5ZmU2MmZiNGU3ZTNiZjllMQ==
5
5
  data.tar.gz: !binary |-
6
- MmU1YmNlNDNlOWU0MzM3YWI4NjAzODhmNzY1NmJiOTI5MGY2ZDQyOQ==
6
+ MzViNDUyZWQxMjE3N2Q3YWFmNDQ4YjYwMzk1ZGI5NTE0YWY3ZmQ2MA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YTc3NDQ5OWJlOWRmMjAyZWZkZjRhN2MzYzY3OGNmYjhhYTMzZWY4MzQ4MjE3
10
- NWRmNGZjZDRkNjFjMjMyZDdlYTQ2YWM4ODdmNmQwYTNmMTQ2ZjE3ZTU3ZGY3
11
- ZThiN2YzNGJmYzgwZDMwOTVmMjYxMGQwN2U0YjZmZDM4NGYzZGE=
9
+ ZTI1ZmE4MjA2YjA1OTI2NmE3MjI3MTRhMWEwMGQ2N2QyOTMwODg2ZTk4NjI3
10
+ MmM2ZWQ4YzUyZGUzN2I5MTdjYzBkZTU4MTljMjVmNjM3ZWI4MWQxNDI0OTg2
11
+ NmUxN2Q2ZTRmZDE3ZWVlODRmZmViMjJiZjlmZGUyMmIxNWRjNmI=
12
12
  data.tar.gz: !binary |-
13
- NjFmN2JlN2U3NDVkYzg1YTM1N2IyMGQ3M2UxOGQ1M2QwMDlhZjZjYjkzOWRj
14
- ZDI4NjdjMjQyYTdiNmEzNzUzZDQwNWIzODBjZjc0ZDM3ZDkyODFhMTQ0MmFm
15
- Mjg0MmJhYzkwOWRiYjZmNWNhYmVkZTU2ZjgyZWQyZTU3NjRlMTc=
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.title.downcase.gsub(/(&|&)/, ' and ').strip.gsub(/[^\w\s]/, '').gsub(/ to | the | +|_+/, '-')
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
@@ -1,5 +1,5 @@
1
1
  module Sly
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
 
4
4
  class VersionChecker
5
5
  def self.run
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert White
metadata.gz.sig CHANGED
Binary file