sass-times 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sass-times.rb +3 -3
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d90d215e347d29ae58a286b023d3d97d201d036d
|
4
|
+
data.tar.gz: e0ab3b6d2b6ad564b82bb8ce86e018e93a2d810d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90f41817da38519b711b808f324588ac2f09670eb99c6682e714ea4a01b1619ebc8a409208ddb94a1651886bf208653da44f8fd44fdca3f8a8f87135644c9842
|
7
|
+
data.tar.gz: 2b241e817959fce8f54a637e1a4c9412515ed830ca26540bb932c973d01939abafb0e317513dec7de87561796e8beed4aea097de6b5403943daf77b3c72bd8ac
|
data/lib/sass-times.rb
CHANGED
@@ -3,12 +3,12 @@ unless defined?(Sass)
|
|
3
3
|
end
|
4
4
|
|
5
5
|
module Sass::Script::Functions
|
6
|
+
def strftime(format)
|
7
|
+
return Sass::Script::Value::String.new(Time.now.strftime(format.value))
|
8
|
+
end
|
6
9
|
def timestamp()
|
7
10
|
return Sass::Script::String.new(Time.now.to_s)
|
8
11
|
end
|
9
|
-
def strftime(format){
|
10
|
-
return Sass::Script::Value::String.new(Time.now.strftime(format.value))
|
11
|
-
}
|
12
12
|
def unix_timestamp()
|
13
13
|
return Sass::Script::String.new(Time.now.to_i.to_s)
|
14
14
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass-times
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rambo
|
@@ -9,21 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2016-07-19 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: sass
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '3.2'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '3.2'
|
12
|
+
dependencies: []
|
27
13
|
description: Sass添加时间戳方法
|
28
14
|
email: alisa@kzcn.cc
|
29
15
|
executables: []
|