SassyJSON 1.1.5 → 1.1.6
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/README.md +3 -0
- data/lib/JsonImporter.rb +1 -3
- data/lib/SassyJSON.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 787abe4f1e5dfa7793c6083b9f56076035bd3e37
|
4
|
+
data.tar.gz: 9e084cad5fc089626159ca7904cdf7efe739a25f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac2c206c0985cf301e94b842a7b13b2dd0ff010d170aa92ac589852ed98ca4e23ff7fb57b0564f744c02a90e940798761ef863e4bf579122064e9de4d8eb0b64
|
7
|
+
data.tar.gz: 2e304ea35d7d22c956c279df15ad1d5283e887f90043b178233770705a525882c64f146f53a87cc9099c70b6bd6c7d18bcb8a3710530da00225267be1ab54987
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Changelog
|
2
|
-
|
2
|
+
* `1.1.6`: JSON files that are loaded via `@import "data.json?varname` can be pretty printed now.
|
3
3
|
* `1.1.5`: Fixed `json-encode` mixin to keep `body::before` in the render tree. Making it possible to access via `getComputedStyle(document.body, ':before')`
|
4
4
|
* `1.1.4`: Small fix for the `npm` release
|
5
5
|
* `1.1.3`: fixed error in `_pow` introduced after updating to Sass 3.3.0.rc.3
|
data/README.md
CHANGED
@@ -48,6 +48,9 @@ $map: ((a: (1 2 ( b : 1 )), b: ( #444444, false, ( a: 1, b: test ) ), c: (2 3 4
|
|
48
48
|
/*! json-encode: '{"a": [1, 2, {"b": 1}], "b": ["#444444", false, {"a": 1, "b": "test"}], "c": [2, 3, 4, "string"]}' */
|
49
49
|
|
50
50
|
body::before {
|
51
|
+
display:block;
|
52
|
+
width:0;height:0;
|
53
|
+
overflow:hidden;
|
51
54
|
content: '{"a": [1, 2, {"b": 1}], "b": ["#444444", false, {"a": 1, "b": "test"}], "c": [2, 3, 4, "string"]}';
|
52
55
|
}
|
53
56
|
|
data/lib/JsonImporter.rb
CHANGED
@@ -218,9 +218,7 @@ WARNING
|
|
218
218
|
options[:filename] = full_filename
|
219
219
|
options[:importer] = self
|
220
220
|
|
221
|
-
Sass::Engine.new("$#{varname} : json_decode('" + File.read(full_filename)
|
222
|
-
else
|
223
|
-
Sass::Engine.new("$hello:'test';", options)
|
221
|
+
Sass::Engine.new("$#{varname} : json_decode('" + File.read(full_filename).delete("\n|\r") + "');", options)
|
224
222
|
end
|
225
223
|
end
|
226
224
|
|
data/lib/SassyJSON.rb
CHANGED
@@ -7,6 +7,6 @@ Compass::Frameworks.register('SassyJSON', :path => extension_path)
|
|
7
7
|
# Version is a number. If a version contains alphas, it will be created as a prerelease version
|
8
8
|
# Date is in the form of YYYY-MM-DD
|
9
9
|
module SassyJSON
|
10
|
-
VERSION = "1.1.
|
11
|
-
DATE = "2014-03-
|
10
|
+
VERSION = "1.1.6"
|
11
|
+
DATE = "2014-03-07"
|
12
12
|
end
|
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.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hugo Giraudel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-03-
|
12
|
+
date: 2014-03-07 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Sass API for JSON
|
15
15
|
email:
|