indent_parser 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,21 @@
1
+ Simple Indentation Parser
2
+ -------------------------
3
+
4
+ IndentParser will parse python style indented text. Let's assume you have some text:
5
+
6
+ foo1
7
+ bar
8
+ baz
9
+ foo2
10
+
11
+ Coding example:
12
+
13
+ root = IndentParser.parse("foo\n bar")
14
+
15
+ # accessing root elements
16
+ first_element = root.first
17
+ first_element.content # foo
18
+
19
+ # accessing children
20
+ first_element[0].content # bar
21
+ first_element.children.first #bar
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = IndentParser::VERSION
8
8
  s.authors = ["Jeff Su"]
9
9
  s.email = ["me@jeffsu.com"]
10
- s.homepage = ""
10
+ s.homepage = "https://github.com/jeffsu/indent_parser"
11
11
  s.summary = %q{Parser for python-style (or haml, sass, etc...) indent markup languages}
12
12
  s.description = %q{Parser for python-style (or haml, sass, etc...) indent markup languages}
13
13
 
@@ -1,3 +1,3 @@
1
1
  module IndentParser
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: indent_parser
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jeff Su
@@ -26,13 +26,14 @@ extra_rdoc_files: []
26
26
  files:
27
27
  - .gitignore
28
28
  - Gemfile
29
+ - README.md
29
30
  - Rakefile
30
31
  - indent_parser.gemspec
31
32
  - lib/indent_parser.rb
32
33
  - lib/indent_parser/version.rb
33
34
  - specs/basic_spec.rb
34
35
  has_rdoc: true
35
- homepage: ""
36
+ homepage: https://github.com/jeffsu/indent_parser
36
37
  licenses: []
37
38
 
38
39
  post_install_message: