page-objectify 0.0.3 → 0.0.4
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/page-objectify/generator.rb +4 -1
- data/lib/page-objectify/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 111ae278a156b0a622bd972840fa5177cd631ec1
|
|
4
|
+
data.tar.gz: d7cc98f40a1dc9ab9b5d2b4ba4cc1dfd9f2960a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78a197300d8fdcb72eb5c56cb00d247a29cc52072ea0fdd648d7b144019bc29cc0c091adb3071e54d9774abc65831cdb5ea9da16710c60f158e2ac2669f32731
|
|
7
|
+
data.tar.gz: c4e8e522433f1327774647211da9cba634bf3fcf536740d3bc44cdab4eecc160e8cbf01920f5e71519b5bb274a04cb9ed17f731a605b49f7e5ffb51feed225aa
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [v0.0.3](https://github.com/smoll/page-objectify/tree/v0.0.3) (2015-11-10)
|
|
4
|
+
[Full Changelog](https://github.com/smoll/page-objectify/compare/v0.0.2...v0.0.3)
|
|
5
|
+
|
|
6
|
+
**Fixed bugs:**
|
|
7
|
+
|
|
8
|
+
- Generator raises NameError: uninitialized constant PageObjectify::VERSION when writing timestamped code comment [\#8](https://github.com/smoll/page-objectify/issues/8)
|
|
9
|
+
|
|
3
10
|
## [v0.0.2](https://github.com/smoll/page-objectify/tree/v0.0.2) (2015-11-10)
|
|
4
11
|
[Full Changelog](https://github.com/smoll/page-objectify/compare/v0.0.1...v0.0.2)
|
|
5
12
|
|
|
@@ -21,7 +21,8 @@ module PageObjectify
|
|
|
21
21
|
visit
|
|
22
22
|
execute_runtime_checks
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
@url_at_generation = @browser.url
|
|
25
|
+
logger.info "About to parse HTML! Current URL: #{@url_at_generation}"
|
|
25
26
|
|
|
26
27
|
doc = Nokogiri::HTML(@browser.html)
|
|
27
28
|
@code = DOMToRuby.new(DOM.new(doc), @config).unparse
|
|
@@ -60,11 +61,13 @@ module PageObjectify
|
|
|
60
61
|
final = <<-BANNER.gsub(/^\s*\|/, '')
|
|
61
62
|
|# This configuration was generated by calling:
|
|
62
63
|
|# #{@config.generator_class}.new.generate!
|
|
64
|
+
|# [URL: #{@url_at_generation}]
|
|
63
65
|
|# on #{Time.now} using PageObjectify version #{PageObjectify::VERSION}.
|
|
64
66
|
|# Note that changes to the underlying page that this page class is modeling, or
|
|
65
67
|
|# new versions of PageObjectify, may require this file to be generated again.
|
|
66
68
|
BANNER
|
|
67
69
|
final << @code
|
|
70
|
+
final << "\n" # Add newline at EOF
|
|
68
71
|
File.open(@config.file, 'w') do |file|
|
|
69
72
|
file.write(final)
|
|
70
73
|
end
|