nokogiri_page 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0e3f69ec6fbcb8a5812d76f847d68b7b66059199
4
+ data.tar.gz: '088abcd0cf056f1f9426785fc036d46506ee628a'
5
+ SHA512:
6
+ metadata.gz: 4b25a7c609acda80b64fff929260396096d97baceeebc94f6025fb36c51797bba136a30f5f8f694304ec6162d60c1177c12e29221df7b7cf1acfb22c31d25100
7
+ data.tar.gz: 9ee98eb77c5eddd48040a92c01aada2c28cb4063cabed5aa7ffb9d026eae13a82fec6c6065f5c2cea366d4b79337a3cf191aba315e970df25966d16217d707f8
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 maxxillo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ # nokogiri-page
2
+ This gem uses https://github.com/sparklemotion/nokogiri to implement the Page Object Pattern
@@ -0,0 +1,9 @@
1
+ class NokogiriPage
2
+ def self.hi(language = "english")
3
+ p 'something'
4
+ translator = Translator.new(language)
5
+ translator.hi
6
+ end
7
+ end
8
+
9
+ require 'nokogiri_page/translator'
@@ -0,0 +1,14 @@
1
+ class NokogiriPage::Translator
2
+ def initialize(language)
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when "spanish"
9
+ "hola mundo"
10
+ else
11
+ "hello world"
12
+ end
13
+ end
14
+ end
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nokogiri_page
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Massimiliano De Vivo
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-02-28 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A page object pattern gem for Nokogiri!
14
+ email: mooikospersoon@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - LICENSE.md
20
+ - README.md
21
+ - lib/nokogiri_page.rb
22
+ - lib/nokogiri_page/translator.rb
23
+ homepage: http://rubygems.org/gems/nokogiri_page
24
+ licenses:
25
+ - MIT
26
+ metadata: {}
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubyforge_project:
43
+ rubygems_version: 2.6.13
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: A page object pattern gem for Nokogiri!
47
+ test_files: []