kvn 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +12 -11
- data/lib/kvn/lexer.rb +1 -1
- data/lib/kvn/version.rb +1 -1
- 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: f2ae8d951dc4662ce1e7bdc1e01b91b69f8fdcab
|
4
|
+
data.tar.gz: 59df5c150e2e33eb8ee50cb43f6eab619629ebd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b06f2a6820026a8f6e5572c0b00427fe0a60ff4647a93abb631e72384fa94caf08c8a70220b28d75493d8afda931d6764d2445fd10b67f15800e373d1e8c6957
|
7
|
+
data.tar.gz: 677387de4b6d8e0b99dbc82ab2e6247bed046a960887d077423a3a9f1b0735c0c2f91d2eb77462deab58ab8bf01aba29eed24801199d3d267d7d25b920990586
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -5,27 +5,28 @@
|
|
5
5
|
[![Coverage Status](https://img.shields.io/coveralls/hopsoft/kvn.svg?style=flat)](https://coveralls.io/r/hopsoft/kvn?branch=master)
|
6
6
|
[![Downloads](http://img.shields.io/gem/dt/kvn.svg?style=flat)](http://rubygems.org/gems/kvn)
|
7
7
|
|
8
|
-
# KVN (
|
8
|
+
# KVN (kĕ'vĭn)
|
9
9
|
|
10
10
|
## Key/Value Notation
|
11
11
|
|
12
|
-
|
13
|
-
|
12
|
+
```
|
13
|
+
name:kvn; pronunciation:kĕ'vĭn; summary:Key/Value Notation;
|
14
|
+
```
|
14
15
|
|
15
|
-
|
16
|
-
|
16
|
+
Similar to JSON but narrower in scope.
|
17
|
+
Represents basic key/value data structures as legible strings.
|
18
|
+
Useful when working with limited storage options to capture complex data in a single field.
|
17
19
|
|
18
20
|
## Rules
|
19
21
|
|
20
|
-
*
|
22
|
+
* Key & value are delimited with a colon `:`
|
23
|
+
* Key/value pairs are delimited with a semicolon `;`
|
24
|
+
* Colons & semicolons are reserved & are prohibited in keys & values
|
25
|
+
* Data structures should be flat— 1 level deep, no nesting
|
21
26
|
* Keys & values are limited to primitive types
|
22
|
-
|
27
|
+
* Boolean
|
23
28
|
* String
|
24
29
|
* Numeric
|
25
|
-
* Boolean
|
26
|
-
* Null
|
27
|
-
|
28
|
-
* Colons & semicolons are prohibited in keys & values
|
29
30
|
* Keys are sorted alphabetically
|
30
31
|
|
31
32
|
## Examples
|
data/lib/kvn/lexer.rb
CHANGED
data/lib/kvn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kvn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Hopkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lex
|