sassy-strings 0.1.1 → 0.2

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.
Files changed (2) hide show
  1. data/lib/sassy-strings.rb +10 -2
  2. metadata +3 -4
data/lib/sassy-strings.rb CHANGED
@@ -18,9 +18,17 @@ module Sass::Script::Functions
18
18
  end
19
19
  end
20
20
 
21
+ def str_pos(needle, haystack)
22
+ if haystack.value.to_s.index(needle.value.to_s)
23
+ Sass::Script::Number.new(haystack.value.to_s.index(needle.value.to_s))
24
+ else
25
+ Sass::Script::Number.new(-1)
26
+ end
27
+ end
28
+
21
29
  module SassyStrings
22
30
 
23
- VERSION = "0.1.1"
24
- DATE = "2013-01-21"
31
+ VERSION = "0.2"
32
+ DATE = "2013-01-22"
25
33
 
26
34
  end
metadata CHANGED
@@ -4,9 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
8
- - 1
9
- version: 0.1.1
7
+ - 2
8
+ version: "0.2"
10
9
  platform: ruby
11
10
  authors:
12
11
  - Sam Richard
@@ -14,7 +13,7 @@ autorequire:
14
13
  bindir: bin
15
14
  cert_chain: []
16
15
 
17
- date: 2013-01-21 00:00:00 -05:00
16
+ date: 2013-01-22 00:00:00 -05:00
18
17
  default_executable:
19
18
  dependencies:
20
19
  - !ruby/object:Gem::Dependency