appmodel 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -0
- data/appmodel.gemspec +1 -9
- data/lib/appmodel/model/model.rb +11 -1
- data/lib/appmodel/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa7ee34657ccc67a49f7415aa68700a257d358aa
|
4
|
+
data.tar.gz: ef392725c13e38d95d10a2a8609093863b83a522
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1f60949e18631835afa029be710d12881cef9091b94292c69e52c1a89cc28038cee3fb0139002af7db43fdd8fdd6b5afe96b57850d24e4d6bad85a49ea23209
|
7
|
+
data.tar.gz: 89dcb0081c6bdcad1b025b865501d81e9f27397e305604f6c5ef513e16317ad38126cb15005368902fcddd836eb40f6eadb3b0bb6da7535e582240e89a29aec9
|
data/Gemfile
CHANGED
data/appmodel.gemspec
CHANGED
@@ -14,14 +14,6 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = "http://github.com/h20dragon."
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
|
-
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
-
# delete this section to allow pushing this gem to any host.
|
19
|
-
#if spec.respond_to?(:metadata)
|
20
|
-
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
21
|
-
# else
|
22
|
-
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
-
# end
|
24
|
-
|
25
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
18
|
spec.bindir = "exe"
|
27
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
@@ -30,5 +22,5 @@ Gem::Specification.new do |spec|
|
|
30
22
|
spec.add_development_dependency "bundler", "~> 1.11"
|
31
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
32
24
|
spec.add_development_dependency "rspec", "~> 3.0"
|
33
|
-
spec.add_development_dependency "logging"
|
25
|
+
spec.add_development_dependency "logging", "~> 2.2"
|
34
26
|
end
|
data/lib/appmodel/model/model.rb
CHANGED
@@ -56,14 +56,24 @@ module Appmodel
|
|
56
56
|
|
57
57
|
if rc
|
58
58
|
hit = { 'frame' => rc[1], 'locator' => rc[3] }
|
59
|
+
|
60
|
+
elsif _locator.match(/^\s*\//)
|
61
|
+
hit = { 'locator' => _locator.match(/^\s*(.*)\s*$/)[1] }
|
62
|
+
|
63
|
+
elsif _locator.match(/^\s*(css|CSS)\s*=\s*(.*)\s*$/)
|
64
|
+
# hit = { 'locator' => _locator.match(/^\s*(css|CSS)\s*=\s*(.*)\s*$/)[2] }
|
65
|
+
hit = { 'locator' => _locator }
|
66
|
+
|
59
67
|
elsif _locator.match(/^\s*[lL]ocator\((.*)\)\s*$/)
|
60
68
|
hit = { 'locator' => _locator.match(/^\s*[lL]ocator\((.*)\)\s*$/)[1] }
|
61
|
-
|
69
|
+
elsif _locator.match(/^\s*([([fF]rame\([^\(]*?\)\.)]*)\.([lL]ocator\((.*)\))\s*$/)
|
62
70
|
rc=_locator.match(/^\s*([([fF]rame\([^\(]*?\)\.)]*)\.([lL]ocator\((.*)\))\s*$/)
|
63
71
|
|
64
72
|
if rc
|
65
73
|
hit = { 'frame' => rc[1], 'locator' => rc[2]}
|
66
74
|
end
|
75
|
+
else
|
76
|
+
hit = { 'locator' => _locator }
|
67
77
|
end
|
68
78
|
|
69
79
|
elsif _locator.is_a?(Hash) && _locator.has_key?('locator')
|
data/lib/appmodel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appmodel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- H20Dragon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: logging
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '2.2'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '2.2'
|
69
69
|
description: Simple, scalable pageObject design and modeling.
|
70
70
|
email:
|
71
71
|
- h20dragon@outlook.com
|