html5-beautifier 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,9 +1,11 @@
1
1
  # HTML5 Beautifier
2
2
 
3
- HTML5 Beautifier is a plugin for Ruby on Rails that process an HTML5 document and reformat it with a correct indentation.
3
+ HTML5 Beautifier is an extension to Ruby that process an HTML5 document and reformat it with a correct indentation.
4
4
 
5
5
  ## Installation
6
6
 
7
+ ### Ruby on Rails
8
+
7
9
  Add this line to your application's Gemfile:
8
10
 
9
11
  gem "html5-beautifier"
@@ -12,13 +14,25 @@ And then execute:
12
14
 
13
15
  $ bundle
14
16
 
15
- Or install it yourself as:
17
+ ### Other Ruby applications
18
+
19
+ Install the gem:
16
20
 
17
21
  $ gem install html5-beautifier
18
22
 
19
23
  ## Usage
20
24
 
21
- any_string.beautify
25
+ ### Ruby on Rails
26
+
27
+ "Hello World".beautify
28
+
29
+ ### Other Ruby applications
30
+
31
+ Require the gem before use it:
32
+
33
+ require "html5-beautifier"
34
+
35
+ puts "Hello World".beautify
22
36
 
23
37
  ## Contributing
24
38
 
@@ -30,8 +44,8 @@ Or install it yourself as:
30
44
 
31
45
  ## Support
32
46
 
33
- If you have any questions or issues with HTML5 Beautifier, or if you like to report a bug, please create an {issue on GitHub}[https://github.com/jarijokinen/html5-beautifier/issues].
47
+ If you have any questions or issues with HTML5 Beautifier, or if you like to report a bug, please create an [issue on GitHub](https://github.com/jarijokinen/html5-beautifier/issues).
34
48
 
35
49
  ## License
36
50
 
37
- MIT License. Copyright (c) 2012 Jari Jokinen. See {LICENSE}[[https://github.com/jarijokinen/html5-beautifier/LICENSE] for further details.
51
+ MIT License. Copyright (c) 2012 Jari Jokinen. See [LICENSE](https://github.com/jarijokinen/html5-beautifier/blob/master/LICENSE.txt) for further details.
@@ -8,13 +8,12 @@ Gem::Specification.new do |gem|
8
8
  gem.version = Html5::Beautifier::VERSION
9
9
  gem.authors = ["Jari Jokinen"]
10
10
  gem.email = ["info@jarijokinen.com"]
11
- gem.description = %q{HTML5 Beautifier for Ruby on Rails}
12
- gem.summary = %q{HTML5 Beautifier plugin for Ruby on Rails}
11
+ gem.description = %q{HTML5 Beautifier for Ruby}
12
+ gem.summary = %q{HTML5 Beautifier for Ruby}
13
13
  gem.homepage = "http://jarijokinen.com/html5-beautifier"
14
14
 
15
15
  gem.files = `git ls-files`.split($/)
16
16
  gem.require_paths = ["lib"]
17
17
 
18
- gem.add_dependency "rails"
19
18
  gem.add_dependency "nokogiri"
20
19
  end
@@ -1,3 +1,4 @@
1
+ require "nokogiri"
1
2
  require "html5-beautifier/core_ext/string/beautify"
2
3
  require "html5-beautifier/version"
3
4
 
@@ -1,5 +1,5 @@
1
1
  module Html5
2
2
  module Beautifier
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html5-beautifier
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:
@@ -11,22 +11,6 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rails
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
14
  - !ruby/object:Gem::Dependency
31
15
  name: nokogiri
32
16
  requirement: !ruby/object:Gem::Requirement
@@ -43,7 +27,7 @@ dependencies:
43
27
  - - ! '>='
44
28
  - !ruby/object:Gem::Version
45
29
  version: '0'
46
- description: HTML5 Beautifier for Ruby on Rails
30
+ description: HTML5 Beautifier for Ruby
47
31
  email:
48
32
  - info@jarijokinen.com
49
33
  executables: []
@@ -83,5 +67,5 @@ rubyforge_project:
83
67
  rubygems_version: 1.8.24
84
68
  signing_key:
85
69
  specification_version: 3
86
- summary: HTML5 Beautifier plugin for Ruby on Rails
70
+ summary: HTML5 Beautifier for Ruby
87
71
  test_files: []