sass-version 0.0.1

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 (5) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +27 -0
  3. data/Version +1 -0
  4. data/lib/sass-version.rb +9 -0
  5. metadata +62 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bdcd9780e2827241cfeb079b853fc9cf91ba4d5d
4
+ data.tar.gz: 61f7cf71df8ad6d49dca7cbdfd242c59d84e5325
5
+ SHA512:
6
+ metadata.gz: 9c072ac0f2cc4076771c2fd74b5b8fcfa0475f96a4085e1809c47625518c79a0323701de651973039e1ac215685a14188967b4f753adfdc917c2419fe5ed3433
7
+ data.tar.gz: c30e9cdacff9caa2ea2b9910b96b7f08a8f78d628f53faf543e69bd63bd1d737db7685b6efc32645a6e771b34693a6af86dd586704de110ea5af694d0f370e12
data/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # sass-version [![Gem Version](https://badge.fury.io/rb/sass-version.svg)](http://badge.fury.io/rb/sass-version)
2
+ Simple SASS function for adding version to compiled CSS.
3
+
4
+ ### Requirements
5
+ - Sass 3.2+
6
+
7
+ ### Install
8
+ ```sh
9
+ gem install sass-version
10
+ ```
11
+
12
+ ### Usage
13
+ 1. Add `require "sass-version"` in `sass` option or `config.rb` if using compass.
14
+
15
+ 2. Create `Version` file with version string in it at the root of yours `.scss` files.
16
+
17
+ 3. Add `#{version()}` in the header or anywhere in your `.scss` file:
18
+
19
+ ```scss
20
+ /* Version #{version()} */
21
+ ```
22
+
23
+ 4. Check output:
24
+
25
+ ```css
26
+ /* Version 0.0.1-beta */
27
+ ```
data/Version ADDED
@@ -0,0 +1 @@
1
+ 0.0.1
@@ -0,0 +1,9 @@
1
+ unless defined?(Sass)
2
+ require 'sass'
3
+ end
4
+
5
+ module Sass::Script::Functions
6
+ def version()
7
+ return Sass::Script::String.new(File.read('Version').strip.freeze)
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,62 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sass-version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - atraktstudio
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-04-20 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'
27
+ description: Simple SASS function for adding version to compiled CSS
28
+ email: atraktstudio@gmail.com
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files:
32
+ - README.md
33
+ - Version
34
+ files:
35
+ - README.md
36
+ - Version
37
+ - lib/sass-version.rb
38
+ homepage: https://github.com/Atrakt/sass-version
39
+ licenses:
40
+ - MIT
41
+ metadata: {}
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ requirements: []
57
+ rubyforge_project:
58
+ rubygems_version: 2.4.6
59
+ signing_key:
60
+ specification_version: 4
61
+ summary: SASS compile version function
62
+ test_files: []