page-objectify 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db1c3f6281b180699aae5fbdadb76584b565e6d2
4
- data.tar.gz: 563255e13874d944f33ebbaf15aa3c4d898b0cf3
3
+ metadata.gz: 111ae278a156b0a622bd972840fa5177cd631ec1
4
+ data.tar.gz: d7cc98f40a1dc9ab9b5d2b4ba4cc1dfd9f2960a9
5
5
  SHA512:
6
- metadata.gz: 58f65a4a74028fd2d34da68980798f421cde3cef3df5a38d7ac786e36d276831f2c37674a6a55768be762a8cc88e613484bf78000ea80945fb0f110e74861373
7
- data.tar.gz: 7ad4f65a938af7ced6200f58f73fd55cb4118d8771c68073b17d39fca502d4d76c9b698ff0c5dd8f351186342d8e193a50ce5fefa7bab251a5641128dfb6dc6b
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
- logger.info "About to parse HTML! Current URL: #{@browser.url}"
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
@@ -1,3 +1,3 @@
1
1
  module PageObjectify
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: page-objectify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shujon Mollah