dispel 0.0.3 → 0.0.4

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: 9ad721bc1aaf49b4fe3f4ac6bc910385631b679d
4
- data.tar.gz: a5ded2dca56707bddafe54d81b46cbffa48a0e1b
3
+ metadata.gz: b769c54e5ce615be2c2e8222e9dddb0dab23f10f
4
+ data.tar.gz: 2cf99d0728018e78d2077206c8a8c811512cf7df
5
5
  SHA512:
6
- metadata.gz: 8a926d25d2df33f9c4ba5de3a294e0610e1155004dce18ce5885342aebad406bec182a93c138771f3e3529bbe7dec4757a3d9f583feb84f3ccc0f40a0f5185b1
7
- data.tar.gz: 0f952af0f1cace8c5da985618bcc2f725246204dadffac5178ba1d5be0163d6c8d030e36e78e9fa633d11463d3b410aac1a4db3041eb7200eac25e631f5ecd84
6
+ metadata.gz: 2309d2fdebf6c2230e6791602f1545145310b1e778a7d571b1473fcf6cee9688ebddf9dfe6157a3af1f85a1186f8100c2c032b5f5784dc4399611fbdd2347688
7
+ data.tar.gz: bb2d751bea5cc6631977f48c914e2437329904f081c43e013a00b2d25ee1e38b757976535ec55e0bc18ece16019aa6ed25004ddc2b7378a87c71297b9261c0d0
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -21,7 +21,7 @@ module Dispel
21
21
  next unless styles
22
22
 
23
23
  # change to style at start and recalculate one after the end
24
- points_of_change = styles.map{|s,c| [c.first, Tools.last_element(c)+1] }.flatten.uniq
24
+ points_of_change = styles.map{|s,c| [c.first, c.max + 1] }.flatten.uniq
25
25
 
26
26
  flat = []
27
27
 
@@ -12,10 +12,6 @@ module Dispel
12
12
  result.empty? ? [''] : result
13
13
  end
14
14
 
15
- def last_element(range)
16
- range.exclude_end? ? range.last.pred : range.last
17
- end
18
-
19
15
  # http://grosser.it/2010/12/31/ruby-string-indexes-indices-find-all-indexes-in-a-string
20
16
  def indexes(string, needle)
21
17
  found = []
@@ -1,3 +1,3 @@
1
1
  module Dispel
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dispel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
@@ -29,7 +29,7 @@ cert_chain:
29
29
  y0kCSWmK6D+x/SbfS6r7Ke07MRqziJdB9GuE1+0cIRuFh8EQ+LN6HXCKM5pon/GU
30
30
  ycwMXfl0
31
31
  -----END CERTIFICATE-----
32
- date: 2013-12-15 00:00:00.000000000 Z
32
+ date: 2014-01-31 00:00:00.000000000 Z
33
33
  dependencies: []
34
34
  description:
35
35
  email: michael@grosser.it
metadata.gz.sig CHANGED
Binary file