higml 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/higml.gemspec +3 -3
- data/lib/higml/parser.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjRjNDllOGVhNGFkM2M1ZjY0YmY3OTllYWQyYjA0YjA5NWJiMGZiOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzQ1NWYwZDkyODNmMTgzMjJlZjI0ODMzMDk0Zjg0MmI2ZWRkMTY0MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OGZhNDVkZDJjOWIxY2U2NDgzZTQ5OWYwYmYyNDU5NzcyYWJiZjA4ZWIzZTRh
|
10
|
+
NDZlYTE1YTZiYzkxZjgyNjZmZTY4N2NjNGYzNzU1ZDg4MTE3NzU0YjQ5ZWRl
|
11
|
+
M2I5NDVmMDY4Y2Q2MjFkNzdiNTQ4OTY2YzUzY2QyYTJmNjhhNmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzcxM2U3ODFkOWI1ZjEwMzZmMGU4NGU5NTM4MjY2ZGYzMDQzNjRiMDY1YzZl
|
14
|
+
ZDA3YWFkNzJlYjY4Nzk2ZTJhNjQ1MDU1YjcwZDRhMzA1OTRkZDMwM2E2YzNm
|
15
|
+
OTQ2MzE1YTMyYzVkZjRjMTJlNzg5ZWQ4NDVjZDAxYTZhZDgxZTI=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/higml.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: higml 0.0.
|
5
|
+
# stub: higml 0.0.4 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "higml"
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.4"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Daniel Higginbotham"]
|
14
|
-
s.date = "2014-
|
14
|
+
s.date = "2014-08-14"
|
15
15
|
s.description = "Higml is a terse format for converting a static input hash to a dynamic output hash."
|
16
16
|
s.email = "daniel@flyingmachinestudios.com"
|
17
17
|
s.extra_rdoc_files = [
|
data/lib/higml/parser.rb
CHANGED
@@ -41,7 +41,7 @@ module Higml
|
|
41
41
|
when :value
|
42
42
|
# TODO move this comment
|
43
43
|
# Every drop in indentation corresponds to a new node;
|
44
|
-
# It doesn't make sense to drop indentation level and
|
44
|
+
# It doesn't make sense to drop indentation level and
|
45
45
|
# define further values
|
46
46
|
current_node.values << line.to_value
|
47
47
|
when :selector
|
@@ -82,7 +82,7 @@ module Higml
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def type
|
85
|
-
case @stripped_source[0]
|
85
|
+
case @stripped_source[0].class == String ? @stripped_source[0].ord : @stripped_source[0]
|
86
86
|
when VALUE_INDICATOR then :value
|
87
87
|
when IMPORT_INDICATOR then :import
|
88
88
|
when COMMENT_INDICATOR then :comment
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: higml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Higginbotham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|