legiblate 0.0.1

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 (3) hide show
  1. checksums.yaml +15 -0
  2. data/lib/legiblate.rb +10 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NjNkMTIxOTlkMjQyMTA1YmJmYTQ3NDJlYjMzYTNlNWJmMGVkYmQ0Yg==
5
+ data.tar.gz: !binary |-
6
+ Nzg4MjA3NGFlYTg4ZjM1NWVlMGI4OTI0NzQ1MmU1ZTYxMmMyNjdmOA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZDBhZTdlZDY0NzRiMWU5OWViNWViZDY5ZjNkODhmMDNhMWI4MzU3ZTI3YmZk
10
+ NzcxYWM3ZDRiNTIzMGY2ZWVlYjQyNzVhOWZjNWY2ZjA4MjA1ZjIzZDZjYjg4
11
+ M2EwNTlhOTE4ZGM4MWNiNGQ4ZDQyODdiNzY2MTM5MWJlNTYxN2E=
12
+ data.tar.gz: !binary |-
13
+ NzA4YTdlMGRkMTliZTdjOTMzYzk1Yjc4NDRiYjUyOTc5Yzc5ZWM1ZDhlNGEz
14
+ YjJhZjg2M2JiY2M3MzQ0M2FhNDU3ZmFmYmEzNDZiY2Q4Nzc0NmVkY2QwODYz
15
+ OTBiN2I3MWU2Y2M1OTNjOWJlNTQ2YWRhMTgzMjRiOGQ5ZWMwMzE=
data/lib/legiblate.rb ADDED
@@ -0,0 +1,10 @@
1
+ class Legiblate
2
+ def self.read(description)
3
+ hash_items = {}
4
+ description.split(/<div>(.*)<\/div>\n/).select{|a| !a.empty?}.each do |item|
5
+ key, value = item.split(/<b>(.*):<\/b> (.*)/).select{|a| !a.empty?}
6
+ hash_items[key] = value
7
+ end
8
+ hash_items
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: legiblate
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Ryan Metzler
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-01-12 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Converts HTML in Sharepoint's RSS to a hash
14
+ email: rmetzler@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/legiblate.rb
20
+ homepage: http://github.com/rkmetzl/legiblate
21
+ licenses: []
22
+ metadata: {}
23
+ post_install_message:
24
+ rdoc_options: []
25
+ require_paths:
26
+ - lib
27
+ required_ruby_version: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ! '>='
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ required_rubygems_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ! '>='
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ requirements: []
38
+ rubyforge_project:
39
+ rubygems_version: 2.0.3
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: Sharepoint Description Hasher
43
+ test_files: []