page-objectify 0.0.7 → 0.0.8
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 +12 -0
- data/lib/page-objectify/dom_to_ruby.rb +1 -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: 4e482414f9e180f0957b8fd85610484f0364d3dd
|
4
|
+
data.tar.gz: 61a3914b9edb4d3194b84670003c2156d61fbb70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f703f0bc6cfbac3a9acf85aa49ceaab9718eb7aea8f67e680ff5cc251c9ad60e5a5acb300fe24d3415b327cdc8b0f2c8635d365ddd42f7df9279c2e071f4d350
|
7
|
+
data.tar.gz: 659633f5675e0905bcc976d4fbddb08da1a79fe9b730c220c0e7fa3cb3af0e0d00bea2bcb9475e8f7ecb937046b89489d227ccb74e75e14f89c83d3d9c56113b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v0.0.7](https://github.com/smoll/page-objectify/tree/v0.0.7) (2015-11-11)
|
4
|
+
[Full Changelog](https://github.com/smoll/page-objectify/compare/v0.0.6...v0.0.7)
|
5
|
+
|
6
|
+
**Fixed bugs:**
|
7
|
+
|
8
|
+
- heading is not a valid PO accessor [\#13](https://github.com/smoll/page-objectify/issues/13)
|
9
|
+
- Don't try to generate accessors for invalid tags, and write tests for it [\#2](https://github.com/smoll/page-objectify/issues/2)
|
10
|
+
|
11
|
+
**Merged pull requests:**
|
12
|
+
|
13
|
+
- Fix a few DOM to accessor bugs & write tests [\#14](https://github.com/smoll/page-objectify/pull/14) ([smoll](https://github.com/smoll))
|
14
|
+
|
3
15
|
## [v0.0.6](https://github.com/smoll/page-objectify/tree/v0.0.6) (2015-11-11)
|
4
16
|
[Full Changelog](https://github.com/smoll/page-objectify/compare/v0.0.5...v0.0.6)
|
5
17
|
|
@@ -39,7 +39,7 @@ module PageObjectify
|
|
39
39
|
res = []
|
40
40
|
@dom.to_accessors.each do |element|
|
41
41
|
method_name = element[:id].downcase # because HTML ids are case-insensitive
|
42
|
-
@config.method_name_mapping.each { |k,v| method_name.
|
42
|
+
@config.method_name_mapping.each { |k,v| method_name.gsub!(k, v) }
|
43
43
|
unless valid_method_name?(method_name)
|
44
44
|
logger.warn "Final method name #{method_name} is not a valid Ruby method name! Stripping non-alpha characters as a last resort!"
|
45
45
|
strip_non_alpha_or_underscore!(method_name)
|