gorgeous 0.1.2 → 0.2.0

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.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +2 -2
  3. data/bin/gorgeous +1 -1
  4. metadata +65 -12
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 10870d5aee523f196cd00865761a46148095d07d
4
+ data.tar.gz: e05c7fc6098d3ddb8c812acbc103b30ec2313d06
5
+ SHA512:
6
+ metadata.gz: 6d53840eef9201af7ea82c7f0bef247bcda373c22cbda930295d13b337877caa65ec597337cef41d85e4661767f9af027be0c1724a41f6a02d6dd49c8066671e
7
+ data.tar.gz: 2411721d2e17d3af470b2217ee183055ab260e0dc172a2ef3f72d0bfef8aad1ef94a69f3a4db8b7d8c95a97847b52a12aac9dbd3a6b22b4392def87ee644b6f8
data/README.md CHANGED
@@ -29,8 +29,8 @@ Query format:
29
29
 
30
30
  It's recommended that you install all of these ruby libraries. They are only loaded when processing specific formats.
31
31
 
32
- * **nokogiri** for xml
33
- * **yajl-ruby** for json
32
+ * **nokogiri** for HTML/XML
33
+ * **yajl-ruby** or **json** for JSON (for Ruby < 1.9)
34
34
  * **activesupport** (for various stuff)
35
35
  * **rack** for url
36
36
  * **mail** for email
@@ -99,7 +99,7 @@ elsif input_format == :email and output_format == :xml
99
99
  output = Gorgeous.pretty_xml(ugly)
100
100
  elsif input_format == :email and output_format == :txt and not input.filtered?
101
101
  email = input.to_mail
102
- part = email.text_part
102
+ part = email.text?? email : email.text_part
103
103
  output = Gorgeous.convert_utf8(part.decode_body.strip, part.charset)
104
104
  elsif output_format == :xml
105
105
  output = Gorgeous.pretty_xml(input.to_xml)
metadata CHANGED
@@ -1,16 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gorgeous
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Mislav Marohnić
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2011-12-16 00:00:00.000000000 Z
13
- dependencies: []
11
+ date: 2014-03-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: nokogiri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rack
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: mail
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
14
69
  description:
15
70
  email: mislav.marohnic@gmail.com
16
71
  executables:
@@ -23,29 +78,27 @@ files:
23
78
  - lib/pretty.xslt
24
79
  - README.md
25
80
  - LICENSE
26
- homepage: https://github.com/mislav/gorgeous
81
+ homepage: https://github.com/mislav/gorgeous#readme
27
82
  licenses: []
83
+ metadata: {}
28
84
  post_install_message:
29
85
  rdoc_options: []
30
86
  require_paths:
31
87
  - lib
32
88
  required_ruby_version: !ruby/object:Gem::Requirement
33
- none: false
34
89
  requirements:
35
- - - ! '>='
90
+ - - '>='
36
91
  - !ruby/object:Gem::Version
37
92
  version: '0'
38
93
  required_rubygems_version: !ruby/object:Gem::Requirement
39
- none: false
40
94
  requirements:
41
- - - ! '>='
95
+ - - '>='
42
96
  - !ruby/object:Gem::Version
43
97
  version: '0'
44
98
  requirements: []
45
99
  rubyforge_project:
46
- rubygems_version: 1.8.12
100
+ rubygems_version: 2.0.14
47
101
  signing_key:
48
- specification_version: 3
102
+ specification_version: 4
49
103
  summary: Convert between different data formats; prettify JSON, HTML and XML
50
104
  test_files: []
51
- has_rdoc: