dang 1.0.0.rc1 → 1.0.0.rc3

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
- SHA512:
3
- metadata.gz: ffabe3af990c95e65060e84baa3aafbc4e5f2819b2d42a2a95eb05d49c4db064bbf853f8983d4f2ba6bbf8f0ec19c39c5a8744ab2f7ddeb15b8e6a2c9179eed2
4
- data.tar.gz: a41454e0e02dddc883a99c484972336edd08ac4d7b36277454c0b0dbfae041e03cb3d14c46fb0755fdcf6bfa7f7ed6ab89e43fc2832b51987641ff5d3bad9daa
5
2
  SHA1:
6
- metadata.gz: 2678da64cfb92588a3140913f902176929bba2fb
7
- data.tar.gz: 31398bcdeb3a87e0de26ad2063becd441c377e2a
3
+ metadata.gz: 921e16bc25d57d7d9bb54ca3549bfa22eeca70c4
4
+ data.tar.gz: 65e62f8ea4bc62059bf6e0ab9eb170b6c080b8b4
5
+ SHA512:
6
+ metadata.gz: e10eab2a35238fb1afad8806e6d27a51ba360f1eb2aa4869f50f67f90a8477f9c460db15529f7bca14a583379ef41e03b5d741fc250f50b0b553931c697392f6
7
+ data.tar.gz: 601b1c03479ccad637c39dc65ca59a0d4157f095136d2ef25cf3cc8d8ee155eb979c6c5fbd220ecf426f80af0df99cc8a77a22f7909ddd6b548de3b26c5bafab
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source "https://rubygems.org"
2
+
3
+ # for developing
4
+ gem "rake"
5
+ gem "hoe"
6
+ gem "kpeg"
7
+ gem "minitest"
8
+
9
+ # for releasing
10
+ gem "hoe-doofus"
11
+ gem "hoe-git"
data/Gemfile.lock ADDED
@@ -0,0 +1,22 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ hoe (3.6.2)
5
+ rake (>= 0.8, < 11.0)
6
+ hoe-doofus (1.0.0)
7
+ hoe-git (1.5.0)
8
+ hoe (>= 2.2.0)
9
+ kpeg (0.10.0)
10
+ minitest (5.0.3)
11
+ rake (10.0.4)
12
+
13
+ PLATFORMS
14
+ ruby
15
+
16
+ DEPENDENCIES
17
+ hoe
18
+ hoe-doofus
19
+ hoe-git
20
+ kpeg
21
+ minitest
22
+ rake
data/History.md CHANGED
@@ -1,5 +1,33 @@
1
- === 0.1.0 / 2011-02-15
1
+ # History
2
2
 
3
- * 1 major enhancement
3
+ ## 1.0.0 / 2013-06-19
4
4
 
5
- * Conception!
5
+ ### Major Enhancements
6
+
7
+ 1. Dang to html transformation
8
+
9
+ * **Syntax**: `<tag content tag>`
10
+ * **Syntax**: `<tag#id content tag>`
11
+ * **Syntax**: `<tag#class content tag>`
12
+ * **Syntax**: `<tag[attr=value] content tag>`
13
+ * **Syntax**: `<! html comment !>`
14
+ * **Syntax**: Embedded non-printing ruby (<- if logged_in? ->)
15
+ * **Syntax**: Embedded printing ruby (<= @user.name =>)
16
+ * **Syntax**: `!!!` doctype shorthand inspired by HAML
17
+
18
+ 2. Command Line Interface
19
+
20
+ * `dang path/to/file.html.dang`
21
+ * Option: `dang -e "<i super duper i>"`
22
+
23
+ 3. House Keeping
24
+
25
+ * Gemfile for development dependencies
26
+ * Removed kpeg as a runtime dependency
27
+ * Hoe plugins for better release management
28
+
29
+ ## 0.1.0 / 2011-02-15
30
+
31
+ ### 1 major enhancement
32
+
33
+ Conception!
data/Manifest.txt CHANGED
@@ -1,10 +1,13 @@
1
1
  .autotest
2
+ Gemfile
3
+ Gemfile.lock
2
4
  History.md
3
5
  Manifest.txt
4
6
  README.md
5
7
  Rakefile
8
+ TODO.md
6
9
  bin/dang
7
10
  lib/dang.rb
8
11
  lib/dang/dang.rb
9
- lib/dang/parser.rb
10
12
  lib/dang/parser.kpeg
13
+ lib/dang/parser.rb
data/README.md CHANGED
@@ -14,18 +14,35 @@ Another dang templating language.
14
14
 
15
15
  * CSS selectors for HTML tags
16
16
  * Not as noisy syntax than ERB
17
- * Not quite as elegant as [HAML](http://haml-lang.com)
18
- * No %s in the codez
17
+ * Not quite as elegant as [HAML](http://haml.info)
18
+ * No %s in your code
19
19
  * More closers than HAML
20
20
  * A lot is based on / inspired by [HAML](http://haml.info)
21
21
 
22
22
  ## Synopsis
23
23
 
24
- <b BOLD b> => <b>BOLD</b>
24
+ * **Syntax**: `<tag content tag>`
25
+ * **Syntax**: `<tag#id content tag>`
26
+ * **Syntax**: `<tag#class content tag>`
27
+ * **Syntax**: `<tag[attr=value] content tag>`
28
+ * **Syntax**: `<! html comment !>`
29
+ * **Syntax**: Embedded non-printing ruby (<- if logged_in? ->)
30
+ * **Syntax**: Embedded printing ruby (<= @user.name =>)
31
+ * **Syntax**: `!!!` doctype shorthand inspired by HAML
32
+
33
+ ## Synopsis
34
+
35
+ From the command line, transform a file of dang into html:
36
+
37
+ `dang path/to/file.html.dang`
38
+
39
+ Or just a snippet of dang into html:
40
+
41
+ `dang -e "<i snippet i>"`
25
42
 
26
43
  ## Current Version
27
44
 
28
- 0.1.0
45
+ 1.0.0.rc3
29
46
 
30
47
  ## Requirements
31
48
 
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require "rubygems"
2
2
  require "hoe"
3
3
 
4
4
  Hoe.plugins.delete :rubyforge
5
- Hoe.plugin :doofus, :git, :minitest
5
+ Hoe.plugin :doofus, :git
6
6
 
7
7
  Hoe.spec "dang" do
8
8
  developer "Shane Becker", "veganstraightedge@gmail.com"
data/TODO.md ADDED
File without changes
data/bin/dang CHANGED
File without changes
data/lib/dang/dang.rb CHANGED
@@ -1,12 +1,9 @@
1
1
  require 'stringio'
2
-
3
2
  require 'rubygems'
4
- require 'kpeg'
5
-
6
3
  require 'dang/parser'
7
4
 
8
5
  class Dang
9
- VERSION = '1.0.0.rc1'
6
+ VERSION = '1.0.0.rc3'
10
7
 
11
8
  @filters = {}
12
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dang
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc1
4
+ version: 1.0.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Becker
@@ -9,38 +9,28 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2013-06-19 00:00:00 Z
12
+ date: 2013-06-20 00:00:00 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: minitest
16
- prerelease: false
17
- requirement: &id001 !ruby/object:Gem::Requirement
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: "5.0"
22
- type: :development
23
- version_requirements: *id001
24
14
  - !ruby/object:Gem::Dependency
25
15
  name: rdoc
26
16
  prerelease: false
27
- requirement: &id002 !ruby/object:Gem::Requirement
17
+ requirement: &id001 !ruby/object:Gem::Requirement
28
18
  requirements:
29
19
  - - ~>
30
20
  - !ruby/object:Gem::Version
31
21
  version: "4.0"
32
22
  type: :development
33
- version_requirements: *id002
23
+ version_requirements: *id001
34
24
  - !ruby/object:Gem::Dependency
35
25
  name: hoe
36
26
  prerelease: false
37
- requirement: &id003 !ruby/object:Gem::Requirement
27
+ requirement: &id002 !ruby/object:Gem::Requirement
38
28
  requirements:
39
29
  - - ~>
40
30
  - !ruby/object:Gem::Version
41
31
  version: "3.6"
42
32
  type: :development
43
- version_requirements: *id003
33
+ version_requirements: *id002
44
34
  description: Another dang templating language.
45
35
  email:
46
36
  - veganstraightedge@gmail.com
@@ -52,17 +42,21 @@ extra_rdoc_files:
52
42
  - History.md
53
43
  - Manifest.txt
54
44
  - README.md
45
+ - TODO.md
55
46
  files:
56
47
  - .autotest
48
+ - Gemfile
49
+ - Gemfile.lock
57
50
  - History.md
58
51
  - Manifest.txt
59
52
  - README.md
60
53
  - Rakefile
54
+ - TODO.md
61
55
  - bin/dang
62
56
  - lib/dang.rb
63
57
  - lib/dang/dang.rb
64
- - lib/dang/parser.rb
65
58
  - lib/dang/parser.kpeg
59
+ - lib/dang/parser.rb
66
60
  homepage: https://github.com/veganstraightedge/dang
67
61
  licenses: []
68
62