uptime_monitor 0.3.1 → 0.3.2

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: 74345d2d0b4a37e5215fdc47ee2e4e91acedf7e2
4
- data.tar.gz: a9db7ab1cce2cc7b0017b4a737042378d0940cd6
3
+ metadata.gz: 5ffc7dcce0abd4f3bb0d738c8188fdfe552ea1b7
4
+ data.tar.gz: f0e1a2eb02574473dd9dcc6e3a3387650ddfe0bf
5
5
  SHA512:
6
- metadata.gz: 10b7d31ef32e5bbaaaf619fff62da1862597d86d9a46beca220a58a78d2c5923f7696b91f5b28f4ae13097c4c8271091c3438e27e296a3c48ab5dba7e41183d5
7
- data.tar.gz: 69325d95853fd5f6b288e138595e8251ae866603b1aecfbdc5714ed7594b06f7c465a51ad47fccecb3bea1b0a9924f5005bb8c9729b91389daf0510fb1bd296b
6
+ metadata.gz: 5f45e485c337bc7826475d39e275384aa2c2b42e0ea4cb950fc31324da6415fe0342a480e98ce08cd76f0044e4a052a963ab04bb2e32f9815a0653f5b5c53480
7
+ data.tar.gz: afdc2e16259ab425098a71e6cd0ef533c09af6dfde66551ca3aa2110b1c0605090f24cdeeeb03d0f8891b17ad25e50a4bb698230ce292abf91f57a5bab3e991e
data/.travis.yml CHANGED
@@ -1,8 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.3.0
3
4
  - 2.2.3
4
- - 2.1.5
5
- - rbx
6
- #- jruby-19mode # JRuby in 1.9 mode
7
5
 
8
6
  script: bundle exec rspec -fd spec
data/Gemfile CHANGED
@@ -18,7 +18,7 @@ group :development do
18
18
  gem "rspec"
19
19
  gem "rdoc", "~> 3.12"
20
20
  gem "bundler", "~> 1.0"
21
- gem "jeweler", "~> 1.8.7"
21
+ gem "jeweler", "~> 2.0.1"
22
22
  #gem "rcov", ">= 0"
23
23
  gem "pry"
24
24
  end
data/Gemfile.lock CHANGED
@@ -46,16 +46,16 @@ GEM
46
46
  highline (1.7.1)
47
47
  http_connection (1.4.4)
48
48
  i18n (0.6.9)
49
- jeweler (1.8.8)
49
+ jeweler (2.0.1)
50
50
  builder
51
- bundler (~> 1.0)
51
+ bundler (>= 1.0)
52
52
  git (>= 1.2.5)
53
- github_api (= 0.10.1)
53
+ github_api
54
54
  highline (>= 1.6.15)
55
- nokogiri (= 1.5.10)
55
+ nokogiri (>= 1.5.10)
56
56
  rake
57
57
  rdoc
58
- json (1.8.1)
58
+ json (1.8.3)
59
59
  jwt (1.4.1)
60
60
  method_source (0.8.2)
61
61
  mime-types (2.4.3)
@@ -115,10 +115,13 @@ DEPENDENCIES
115
115
  bundler (~> 1.0)
116
116
  carrierwave (= 0.4.10)
117
117
  headless (~> 1.0.2)
118
- jeweler (~> 1.8.7)
118
+ jeweler (~> 2.0.1)
119
119
  pry
120
120
  rdoc (~> 3.12)
121
121
  rspec
122
122
  treetop
123
123
  watir-webdriver!
124
124
  watir-webdriver-performance (~> 0.2.4)
125
+
126
+ BUNDLED WITH
127
+ 1.11.2
data/README.md CHANGED
@@ -6,6 +6,8 @@ uptime_monitor (Hercules)
6
6
  Uptime_monitor is a [ragios](https://github.com/obi-a/ragios) plugin that uses a real web browser to perform transactions on a website to ensure that features of the site are still working correctly. It can check elements of a webpage to ensure they still exist and it can also perform transactions like a website login to ensure that the process still works correctly.
7
7
 
8
8
  ##Requirements
9
+ Ruby: At least Ruby 2.3.0 or higher is recommended
10
+
9
11
  [Ragios](https://github.com/obi-a/ragios)
10
12
 
11
13
  ##Installation:
@@ -23,7 +25,10 @@ require 'uptime_monitor'
23
25
  ```
24
26
  Restart ragios
25
27
 
26
- ##usage:
28
+ ##Run in a Docker Container
29
+ (Optional) A docker container is available with the uptime_monitor plugin and all its dependencies already setup and configured. You can run it out of the box with minimal effort in this docker container. See details here: [Using Maestro](https://github.com/obi-a/maestro).
30
+
31
+ ##Usage:
27
32
  A quick example, to monitor the title tag of a web page to ensure that it hasn't changed. Using [Ragios ruby client](http://www.whisperservers.com/ragios/ragios-saint-ruby/using-ragios)
28
33
  ````ruby
29
34
  monitor = {
@@ -33,12 +38,16 @@ monitor = {
33
38
  contact: "admin@obiora.com",
34
39
  via: "gmail_notifier",
35
40
  plugin: "uptime_monitor",
36
- exists?: 'title.with_text("Obi Akubue")'
41
+ exists?: 'title.with_text("Obi Akubue")',
37
42
  browser: "firefox"
38
43
  }
39
44
  ragios.create(monitor)
40
45
  ```
41
- The above example will create a ragios monitor that will, every 5 minutes, use firefox to visit the website url http://obi-akubue.org, and verify that the home page title tag matches the text "Obi Akubue". The validations performed as defined in the exists? key/value pair. When the title tag doesn't match the text, a failure notification will be sent out to the provided contact "admin@obiora.com".
46
+ The above example will create a ragios monitor that will, every 5 minutes, use firefox to visit the website url http://obi-akubue.org, and verify that the home page title tag matches the text "Obi Akubue". The validations performed are defined in the exists? key/value pair, in this statement.
47
+ ```ruby
48
+ exists?: 'title.with_text("Obi Akubue")'
49
+ ```
50
+ When the title tag on the web page doesn't match the text "Obi Akubue", a failure notification will be sent out to the provided contact "admin@obiora.com".
42
51
 
43
52
  ###Using the plugin
44
53
  To use the uptime monitor plugin add the key/value pair to the monitor
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: uptime_monitor 0.3.1 ruby lib
5
+ # stub: uptime_monitor 0.3.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "uptime_monitor"
9
- s.version = "0.3.1"
9
+ s.version = "0.3.2"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["obi-a"]
14
- s.date = "2015-10-12"
14
+ s.date = "2016-02-21"
15
15
  s.description = "A Ragios plugin that uses a real web browser to monitor transactions on a website for availability"
16
16
  s.email = "obioraakubue@yahoo.com"
17
17
  s.extra_rdoc_files = [
@@ -44,7 +44,7 @@ Gem::Specification.new do |s|
44
44
  ]
45
45
  s.homepage = "http://github.com/obi-a/uptime_monitor"
46
46
  s.licenses = ["MIT"]
47
- s.rubygems_version = "2.4.6"
47
+ s.rubygems_version = "2.4.8"
48
48
  s.summary = "Real browser website uptime monitoring plugin for Ragios"
49
49
 
50
50
  if s.respond_to? :specification_version then
@@ -62,7 +62,7 @@ Gem::Specification.new do |s|
62
62
  s.add_development_dependency(%q<rspec>, [">= 0"])
63
63
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
64
64
  s.add_development_dependency(%q<bundler>, ["~> 1.0"])
65
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
65
+ s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
66
66
  s.add_development_dependency(%q<pry>, [">= 0"])
67
67
  else
68
68
  s.add_dependency(%q<headless>, ["~> 1.0.2"])
@@ -76,7 +76,7 @@ Gem::Specification.new do |s|
76
76
  s.add_dependency(%q<rspec>, [">= 0"])
77
77
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
78
78
  s.add_dependency(%q<bundler>, ["~> 1.0"])
79
- s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
79
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
80
80
  s.add_dependency(%q<pry>, [">= 0"])
81
81
  end
82
82
  else
@@ -91,7 +91,7 @@ Gem::Specification.new do |s|
91
91
  s.add_dependency(%q<rspec>, [">= 0"])
92
92
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
93
93
  s.add_dependency(%q<bundler>, ["~> 1.0"])
94
- s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
94
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
95
95
  s.add_dependency(%q<pry>, [">= 0"])
96
96
  end
97
97
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uptime_monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - obi-a
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-12 00:00:00.000000000 Z
11
+ date: 2016-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: headless
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 1.8.7
173
+ version: 2.0.1
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 1.8.7
180
+ version: 2.0.1
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: pry
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  version: '0'
244
244
  requirements: []
245
245
  rubyforge_project:
246
- rubygems_version: 2.4.6
246
+ rubygems_version: 2.4.8
247
247
  signing_key:
248
248
  specification_version: 4
249
249
  summary: Real browser website uptime monitoring plugin for Ragios