SassyJSON 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # SassyJSON [![NPM version](https://badge.fury.io/js/sassyjson.png)](http://badge.fury.io/js/sassyjson) [![Build Status](https://travis-ci.org/HugoGiraudel/SassyJSON.png?branch=master)](https://travis-ci.org/HugoGiraudel/SassyJSON)
1
+ # SassyJSON [![NPM version](https://badge.fury.io/js/sassyjson.png)](http://badge.fury.io/js/sassyjson) [![Build Status](https://travis-ci.org/HugoGiraudel/SassyJSON.png?branch=master)](https://travis-ci.org/HugoGiraudel/SassyJSON) [![Gem Version](https://badge.fury.io/rb/SassyJSON.png)](http://badge.fury.io/rb/SassyJSON)
2
2
 
3
3
  SassyJSON is a Sass-powered API for JSON. It provides you the classic `json-encode` and `json-decode` directly from your Sass files. We'll leave you the only judges of the point of this.
4
4
 
5
5
  ## Install
6
6
 
7
- SassyJSON is currently available in [npm](https://npmjs.org/).
7
+ SassyJSON is available on [npm](https://npmjs.org/) or as a [Ruby Gem](http://rubygems.org/gems/SassyJSON).
8
8
 
9
9
  ### Git
10
10
 
data/lib/SassyJSON.rb CHANGED
@@ -5,7 +5,7 @@ Compass::Frameworks.register('SassyJSON', :path => extension_path)
5
5
  # Version is a number. If a version contains alphas, it will be created as a prerelease version
6
6
  # Date is in the form of YYYY-MM-DD
7
7
  module SassyJSON
8
- VERSION = "1.0.6"
8
+ VERSION = "1.0.7"
9
9
  DATE = "2014-01-19"
10
10
  end
11
11
 
data/src/SassyJSON.scss CHANGED
@@ -1,2 +1,5 @@
1
- @import "decode/decode";
1
+ // Encoder
2
2
  @import "encode/encode";
3
+
4
+ // Decoder
5
+ @import "decode/decode";
@@ -7,10 +7,12 @@
7
7
  $flag: if(not index(all regular media comment, $flag), all, $flag);
8
8
  $json: json-encode($value);
9
9
 
10
+ // Persistent comment
10
11
  @if $flag == comment or $flag == all {
11
12
  /*! json-encode: #{$json} */
12
13
  }
13
14
 
15
+ // Regular property value pair
14
16
  @if $flag == regular or $flag == all {
15
17
  // All browsers except IE8-
16
18
  body::before {
@@ -24,6 +26,7 @@
24
26
  }
25
27
  }
26
28
 
29
+ // Falsy media query
27
30
  @if $flag == media or $flag == all {
28
31
  @media -json-encode {
29
32
  json {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SassyJSON
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,39 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
  date: 2014-01-19 00:00:00.000000000 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: sass
17
- requirement: !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: 3.3.0
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ! '>='
29
- - !ruby/object:Gem::Version
30
- version: 3.3.0
31
- - !ruby/object:Gem::Dependency
32
- name: compass
33
- requirement: !ruby/object:Gem::Requirement
34
- none: false
35
- requirements:
36
- - - ! '>='
37
- - !ruby/object:Gem::Version
38
- version: '1.0'
39
- type: :runtime
40
- prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
46
- version: '1.0'
14
+ dependencies: []
47
15
  description: Sass API for JSON
48
16
  email:
49
17
  - hugo.giraudel@gmail.com