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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sass-times.rb +3 -3
  3. metadata +2 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 308c1390f44f5701184e933406bfc4c60791af3d
4
- data.tar.gz: ed9f01551d26d8c2caa306e61e9f87525abb896c
3
+ metadata.gz: d90d215e347d29ae58a286b023d3d97d201d036d
4
+ data.tar.gz: e0ab3b6d2b6ad564b82bb8ce86e018e93a2d810d
5
5
  SHA512:
6
- metadata.gz: 799bac8f9db9535b90ac980c6596e6e021575aba43ce8d8c2538c1afb973d53bbd344c34a0bb437a87b28098d2148c65ab648f9a619b7c3913a706dafdc47b03
7
- data.tar.gz: 1b25d64e2f15383e7977de8c85b9b776337580d60dfdced856aabb43c1c2e4b9d9fa8c9e127b397d86b27141fb6091d930c404b11ae106a2295e6ec84cd6deae
6
+ metadata.gz: 90f41817da38519b711b808f324588ac2f09670eb99c6682e714ea4a01b1619ebc8a409208ddb94a1651886bf208653da44f8fd44fdca3f8a8f87135644c9842
7
+ data.tar.gz: 2b241e817959fce8f54a637e1a4c9412515ed830ca26540bb932c973d01939abafb0e317513dec7de87561796e8beed4aea097de6b5403943daf77b3c72bd8ac
@@ -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.1
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: []