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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f60f237fab1696948ebeffb4f1a54b9a97cd1504
4
- data.tar.gz: b9a098956d24fd5264e4d3511420f4fbd8a434b1
3
+ metadata.gz: f2ae8d951dc4662ce1e7bdc1e01b91b69f8fdcab
4
+ data.tar.gz: 59df5c150e2e33eb8ee50cb43f6eab619629ebd1
5
5
  SHA512:
6
- metadata.gz: 579bbe99256d64811ccf7101c3323e1fa48d1be0586084913e5a5cce7338b95dc146c375284418f8f9132512e9ba788e0e00a5da4fd6023d073f4ca9872c1f05
7
- data.tar.gz: 51fd08a474ea5e563d669364ccaffec6c3ed84efd62395e666ca485d88c36a36c3b891c8ab53a8c02492059a7a6166e7f129ebc13b432628fcc6d1b37b1a3d49
6
+ metadata.gz: b06f2a6820026a8f6e5572c0b00427fe0a60ff4647a93abb631e72384fa94caf08c8a70220b28d75493d8afda931d6764d2445fd10b67f15800e373d1e8c6957
7
+ data.tar.gz: 677387de4b6d8e0b99dbc82ab2e6247bed046a960887d077423a3a9f1b0735c0c2f91d2eb77462deab58ab8bf01aba29eed24801199d3d267d7d25b920990586
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kvn (0.2.0)
4
+ kvn (0.2.1)
5
5
  lex (= 0.1.0)
6
6
 
7
7
  GEM
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 (kevin)
8
+ # KVN (kĕ'vĭn)
9
9
 
10
10
  ## Key/Value Notation
11
11
 
12
- Similar to JSON but more limited in scope.
13
- Can be used to represent basic key/value data structures as (human readable) strings.
12
+ ```
13
+ name:kvn; pronunciation:kĕ'vĭn; summary:Key/Value Notation;
14
+ ```
14
15
 
15
- Useful when working with limited storage options
16
- to capture additional (human readable) data in a single field.
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
- * Data structures should be flat (i.e. 1 level deep, no nesting)
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
@@ -8,7 +8,7 @@ module Kvn
8
8
  )
9
9
 
10
10
  rule :KEY, /\w+(?=:)/
11
- rule :VALUE, /[\w+(\s|\.)]+(?=;)/
11
+ rule :VALUE, /[\w\s\.\-]+(?=;)/
12
12
  rule :PAIRDELIM, /;\s*/
13
13
  rule :PARTDELIM, /:/
14
14
 
@@ -1,3 +1,3 @@
1
1
  module Kvn
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-03-30 00:00:00.000000000 Z
11
+ date: 2016-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lex