sass-base64 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.
- data/lib/sass-base64.rb +14 -0
- data/sass-base64.gemspec +26 -0
- metadata +46 -0
data/lib/sass-base64.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'sass'
|
2
|
+
require 'base64'
|
3
|
+
|
4
|
+
module Sass::Script::Functions
|
5
|
+
def sassBase64(string)
|
6
|
+
assert_type string, :String
|
7
|
+
Sass::Script::String.new(Base64.strict_encode64(string.value))
|
8
|
+
end
|
9
|
+
declare :sassBase64, :args => [:string]
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
|
data/sass-base64.gemspec
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = %q{sass-base64}
|
3
|
+
s.version = "0.2"
|
4
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
5
|
+
s.authors = ["Adam Long"]
|
6
|
+
s.date = %q{2016-01-16}
|
7
|
+
s.description = %q{Base64 for Sass}
|
8
|
+
s.email = %q{adam.michael.long@gmail.com}
|
9
|
+
s.files = [
|
10
|
+
"sass-base64.gemspec",
|
11
|
+
"lib/sass-base64.rb"
|
12
|
+
]
|
13
|
+
s.homepage = %q{https://github.com/AdamMichaelLong/sass-base64/}
|
14
|
+
s.require_paths = ["lib"]
|
15
|
+
s.rubygems_version = %q{1.3.6}
|
16
|
+
s.summary = %q{Base64 For Sass}
|
17
|
+
if s.respond_to? :specification_version then
|
18
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
19
|
+
s.specification_version = 3
|
20
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
21
|
+
else
|
22
|
+
end
|
23
|
+
else
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
metadata
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sass-base64
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.2'
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Adam Long
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2016-01-16 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: Base64 for Sass
|
15
|
+
email: adam.michael.long@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- sass-base64.gemspec
|
21
|
+
- lib/sass-base64.rb
|
22
|
+
homepage: https://github.com/AdamMichaelLong/sass-base64/
|
23
|
+
licenses: []
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
+
none: false
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
requirements: []
|
41
|
+
rubyforge_project:
|
42
|
+
rubygems_version: 1.8.23
|
43
|
+
signing_key:
|
44
|
+
specification_version: 3
|
45
|
+
summary: Base64 For Sass
|
46
|
+
test_files: []
|