meta_hari 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,41 @@
1
+ <!DOCTYPE HTML>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
+ <title>JSON-LD example</title>
6
+ </head>
7
+ <body>
8
+ <h1>Executive Anvil</h1>
9
+ <script type="application/ld+json">
10
+ {
11
+ "@context": "http://schema.org/",
12
+ "@type": "Product",
13
+ "name": "Executive Anvil",
14
+ "image": "http://www.example.com/anvil_executive.jpg",
15
+ "description": "Sleeker than ACME's Classic Anvil, the Executive Anvil is perfect for the business traveler looking for something to drop from a height.",
16
+ "mpn": "925872",
17
+ "brand":{
18
+ "@type": "Thing",
19
+ "name": "ACME"
20
+ },
21
+ "aggregateRating":{
22
+ "@type": "AggregateRating",
23
+ "ratingValue": "4.4",
24
+ "reviewCount": "89"
25
+ },
26
+ "offers":{
27
+ "@type": "Offer",
28
+ "priceCurrency": "USD",
29
+ "price": "119.99",
30
+ "priceValidUntil": "2020-11-05",
31
+ "itemCondition": "http://schema.org/UsedCondition",
32
+ "availability": "http://schema.org/InStock",
33
+ "seller":{
34
+ "@type": "Organization",
35
+ "name": "Executive Objects"
36
+ }
37
+ }
38
+ }
39
+ </script>
40
+ </body>
41
+ </html>
@@ -0,0 +1,6 @@
1
+ require 'meta_hari'
2
+ require 'pry'
3
+
4
+ # Requires supporting ruby files with custom matchers and macros, etc,
5
+ # in spec/support/ and its subdirectories.
6
+ Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
@@ -0,0 +1,11 @@
1
+ module ResourcesHelper
2
+ def resource_content(name)
3
+ dirname = File.dirname(__FILE__)
4
+ resource_file = File.join(dirname, '..', 'resources', name)
5
+ File.read(resource_file)
6
+ end
7
+ end
8
+
9
+ RSpec.configure do |config|
10
+ config.include ResourcesHelper
11
+ end
metadata ADDED
@@ -0,0 +1,202 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: meta_hari
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Paul Spieker
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-05-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 3.2.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 3.2.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.12.5
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.12.5
69
+ - !ruby/object:Gem::Dependency
70
+ name: guard-rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 4.5.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 4.5.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.31.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.31.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: guard-rubocop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.2.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.2.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.10.1
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.10.1
125
+ - !ruby/object:Gem::Dependency
126
+ name: nokogiri
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 1.6.6
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 1.6.6
139
+ description:
140
+ email:
141
+ - p.spieker@duenos.de
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - ".gitignore"
147
+ - ".rubocop.yml"
148
+ - Gemfile
149
+ - Guardfile
150
+ - LICENSE.txt
151
+ - README.md
152
+ - Rakefile
153
+ - lib/meta_hari.rb
154
+ - lib/meta_hari/helpers.rb
155
+ - lib/meta_hari/helpers/json_ld.rb
156
+ - lib/meta_hari/spyglass.rb
157
+ - lib/meta_hari/spyglass/amazon_de.rb
158
+ - lib/meta_hari/spyglass/base.rb
159
+ - lib/meta_hari/version.rb
160
+ - meta_hari.gemspec
161
+ - spec/lib/meta_hari/helpers/json_ld_spec.rb
162
+ - spec/lib/meta_hari/spyglass/amazon_de_spec.rb
163
+ - spec/lib/meta_hari/spyglass/base_spec.rb
164
+ - spec/lib/meta_hari_spec.rb
165
+ - spec/resources/amazon_de.html
166
+ - spec/resources/json_ld_example.html
167
+ - spec/spec_helper.rb
168
+ - spec/support/resources_helper.rb
169
+ homepage: https://github.com/spieker/meta_hari
170
+ licenses:
171
+ - MIT
172
+ metadata: {}
173
+ post_install_message:
174
+ rdoc_options: []
175
+ require_paths:
176
+ - lib
177
+ required_ruby_version: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ required_rubygems_version: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ requirements: []
188
+ rubyforge_project:
189
+ rubygems_version: 2.4.4
190
+ signing_key:
191
+ specification_version: 4
192
+ summary: Receiving product informations from a given link.
193
+ test_files:
194
+ - spec/lib/meta_hari/helpers/json_ld_spec.rb
195
+ - spec/lib/meta_hari/spyglass/amazon_de_spec.rb
196
+ - spec/lib/meta_hari/spyglass/base_spec.rb
197
+ - spec/lib/meta_hari_spec.rb
198
+ - spec/resources/amazon_de.html
199
+ - spec/resources/json_ld_example.html
200
+ - spec/spec_helper.rb
201
+ - spec/support/resources_helper.rb
202
+ has_rdoc: