writefully 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ed6a1fba1b4a874781ba0b49856fef00295f45a
4
- data.tar.gz: de4f892c3286f1aaf7b5c4cb29ae7f8f9b9802a9
3
+ metadata.gz: 308eeeadcb4e6e36ef44673d75b240e051de2fb2
4
+ data.tar.gz: dbf6727b93c13e139a29e2400185e6f778de7195
5
5
  SHA512:
6
- metadata.gz: ca5123743d75d988ffdfc5506d7e24f3adfd9b49a87e6e67d8f94cff8d3959b4a2d399e0e51cbc2553ec088b14de4dc84beb5b232434bf43ba41600a072d9450
7
- data.tar.gz: 2f6f13499f8ee407b4c00abe74195dbde3978c071b6afc4ded2ca44fc760c1ffaedb53f2bd3acaa8c6a697645f39e259943f7bf9570960b2f991d98a6bdd6c1d
6
+ metadata.gz: b9dc0c87ca55ad7e6a6f97cac478b8c1ccc706f3154b84ed7c15ed1de18a04105e498e34468e19ee06dfdf1d35d687c59bbfb25bc1109b1f9b167b56931e666b
7
+ data.tar.gz: f314fdfa14e15dc341549931591ba4a98264f2b5315ad404d9f7cd3c8f7877a7bbe76cc7761601f07f771fc2b325e02ab78dacb0f3ec6c57505bea45decd7ab8
@@ -21,11 +21,11 @@ module Writefully
21
21
  end
22
22
 
23
23
  def slug
24
- index[:slug].split(/\d-/).last
24
+ index[:slug].split(/\A\d*-/).last
25
25
  end
26
26
 
27
27
  def position
28
- index[:slug].match(/\d/).to_s.to_i
28
+ index[:slug].match(/\A\d*/).to_s.to_i
29
29
  end
30
30
  end
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module Writefully
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: writefully
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zack Siri