hamlboard 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Hamlboard
2
2
 
3
- TODO: Write a gem description
3
+ Simple clipboard wrapper for HTML2HAML.
4
+
5
+ Turn your HTML from your clipboard into HAML into your clipboard.
4
6
 
5
7
  ## Installation
6
8
 
@@ -18,7 +20,35 @@ Or install it yourself as:
18
20
 
19
21
  ## Usage
20
22
 
21
- TODO: Write usage instructions here
23
+ Look at some HTML, and then copy it. For example:
24
+
25
+ ```html
26
+ <div class="panel">
27
+ <h5>This is a regular panel.</h5>
28
+ <p>It has an easy to override visual style, and is appropriately subdued.</p>
29
+ </div>
30
+
31
+ <div class="panel callout radius">
32
+ <h5>This is a callout panel.</h5>
33
+ <p>It's a little ostentatious, but useful for important content (like the Foundation 3 Download panel).</p>
34
+ </div>
35
+ ```
36
+
37
+ And then run `hamlboard` in your terminal.
38
+
39
+ You now have a hamlized version in your clipboard! Paste it wherever
40
+ appropriate.
41
+
42
+ Hamlized code:
43
+
44
+ ```haml
45
+ .panel
46
+ %h5 This is a regular panel.
47
+ %p It has an easy to override visual style, and is appropriately subdued.
48
+ .panel.callout.radius
49
+ %h5 This is a callout panel.
50
+ %p It's a little ostentatious, but useful for important content (like the Foundation 3 Download panel).
51
+ ```
22
52
 
23
53
  ## Contributing
24
54
 
@@ -16,6 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.add_dependency('erubis')
17
17
  gem.add_dependency('ruby_parser')
18
18
  gem.add_dependency('main', '>= 5.1.0')
19
+ gem.add_dependency('haml', '>= 3.1.6')
19
20
 
20
21
 
21
22
  gem.files = `git ls-files`.split($/)
@@ -1,3 +1,3 @@
1
1
  module Hamlboard
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hamlboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -75,6 +75,22 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: 5.1.0
78
+ - !ruby/object:Gem::Dependency
79
+ name: haml
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: 3.1.6
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: 3.1.6
78
94
  description: Just a quick way to convert html to haml and put it in your clipboard.
79
95
  email:
80
96
  - me@danielfischer.com