toolkit 0.1.6 → 0.1.7

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/toolkit.rb +7 -0
  2. metadata +3 -3
data/lib/toolkit.rb CHANGED
@@ -4,3 +4,10 @@ require 'respond-to'
4
4
 
5
5
  extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
6
6
  Compass::Frameworks.register('toolkit', :path => extension_path)
7
+
8
+ module Sass::Script::Functions
9
+ def str_replace(needle, replace, haystack)
10
+ result = haystack.value.gsub(needle.value, replace.value)
11
+ Sass::Script::String.new(result)
12
+ end
13
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 6
9
- version: 0.1.6
8
+ - 7
9
+ version: 0.1.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sam Richard
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-30 00:00:00 -04:00
18
+ date: 2011-07-11 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency