catgem 1.0.0 → 2.0.0
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/lib/catgem.rb +33 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 607ed65927bbfc6fec16a8a7a4c7f87a922d340bb3ec1ea086c3356fc7663c3e
|
|
4
|
+
data.tar.gz: 2ce6818999a8e365daf96920a71c73c7edb0aca4775cefb08330bfa6f70d3384
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: da0c9dd9aef4e420460f20c37a1d206c9a63f14122f6e214dcdd0277dfe3682b797727a1ddceb84f891b6b702abc715c8b34e47b26aa4cbaa46301d15aa76786
|
|
7
|
+
data.tar.gz: 9208ef1d8ff40aa095d07431a3c78a1e7e79856c5bd4c7967f3238fb7a0692da48c516fd487ad8058f2e2567a9eaaed72958ec54538a27d4527950927fe4caaf
|
data/lib/catgem.rb
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
|
|
2
1
|
class CatGem
|
|
3
2
|
|
|
3
|
+
def return_current_month
|
|
4
|
+
month = Date.today.strftime("%m")
|
|
5
|
+
month
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def login_if_required(username, password, browser)
|
|
9
|
+
# if re-directed to the login page
|
|
10
|
+
# do as requested and login
|
|
11
|
+
puts("Inside " + __method__.to_s + " with username " + username + " and password " + password)
|
|
12
|
+
if browser.text_field(:id => "username").present?
|
|
13
|
+
login_members_portal(username, password, browser)
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
4
17
|
def fill_text_box(the_text,the_field, browser)
|
|
5
18
|
puts("Inside " + __method__.to_s)
|
|
6
19
|
# populate using java script, much faster
|
|
@@ -53,5 +66,24 @@ class CatGem
|
|
|
53
66
|
login_members_portal(FigNewton::tempusername, password, browser)
|
|
54
67
|
end
|
|
55
68
|
end
|
|
69
|
+
|
|
70
|
+
# todo as part of phase 3
|
|
71
|
+
# require 'watir'
|
|
72
|
+
# require_relative '../../lib/core'
|
|
73
|
+
# #require 'tiny_tds'
|
|
74
|
+
#
|
|
75
|
+
# class Database
|
|
76
|
+
# class << self
|
|
77
|
+
#
|
|
78
|
+
# def sql_execution(query)
|
|
79
|
+
# puts("Inside " + __method__.to_s)
|
|
80
|
+
# client = TinyTds::Client.new username: EnvConfig['db_user'], password: EnvConfig['db_pw'], databse: EnvConfig['db_db'], host: EnvConfig['db_host'], timeout: 15000
|
|
81
|
+
# client.execute(query).each
|
|
82
|
+
# end
|
|
83
|
+
#
|
|
84
|
+
# end
|
|
85
|
+
# end
|
|
86
|
+
|
|
87
|
+
|
|
56
88
|
|
|
57
89
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: catgem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kev Martin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-07-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Cat shared gem for automation suites
|
|
14
14
|
email: kevin.martin@checkatrade.com
|