uptime_monitor 0.1.1 → 0.2.0

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: ac52cdfd40d5e93ff2f32cd163a786699c2e8d8f
4
- data.tar.gz: e5489ade6c72a1e2a87ece3da4db581c8a49267b
3
+ metadata.gz: 3f0887d811bb871c4123ec7bbeda82f357e2e63e
4
+ data.tar.gz: 6799a662dc592781a68d6373d4499d330eb5fe79
5
5
  SHA512:
6
- metadata.gz: d6e325144ef9cea5377966e04b99fc022f80b74df4a97ac832da304b55b5726bb37c3cb81731acb2eec43851c5e380c02690d7afdf300d161ffd142ab1061dff
7
- data.tar.gz: 489af5a84dc5ae43aeff4a19442a7c452b660e29fe4374a14128344912825fb5c927b9f830779134020767914ffe80c57bd9a011f1a7cc4a4a7b19508ee7cebe
6
+ metadata.gz: 9b654292ee7ec3da0702b7088084054c5f3aef73fbe3d8a552ff20fec06abc10cad30a9d86bc454cf93351ccaa9d4bf0099310471a9e6e9f6a9eabf4c59abf1d
7
+ data.tar.gz: bb5cdfc4f36cff159a3136bf46be110d397376c3872839190e31e3e2527ea42d688864dbba896e666e9b2198924fb87b2d418874c54d883e0403ab261aa92c1d
data/Gemfile CHANGED
@@ -6,6 +6,10 @@ gem 'headless', "~> 1.0.2"
6
6
  gem 'watir-webdriver', git: 'https://github.com/watir/watir-webdriver.git'
7
7
  gem 'watir-webdriver-performance', "~> 0.2.4"
8
8
  gem 'activesupport'
9
+ gem 'carrierwave', "0.4.10"
10
+ gem 'aws'
11
+ gem "aws-s3"
12
+
9
13
 
10
14
  # Add dependencies to develop your gem here.
11
15
  # Include everything needed to run rake, tests, features, etc.
data/Gemfile.lock CHANGED
@@ -14,9 +14,18 @@ GEM
14
14
  multi_json (~> 1.3)
15
15
  thread_safe (~> 0.1)
16
16
  tzinfo (~> 0.3.37)
17
- addressable (2.3.5)
17
+ addressable (2.3.8)
18
18
  atomic (1.1.14)
19
+ aws (2.10.2)
20
+ http_connection
21
+ uuidtools
22
+ xml-simple
23
+ aws-s3 (0.6.3)
24
+ builder
25
+ mime-types
26
+ xml-simple
19
27
  builder (3.2.2)
28
+ carrierwave (0.4.10)
20
29
  childprocess (0.5.5)
21
30
  ffi (~> 1.0, >= 1.0.11)
22
31
  coderay (1.1.0)
@@ -24,7 +33,7 @@ GEM
24
33
  faraday (0.8.8)
25
34
  multipart-post (~> 1.2.0)
26
35
  ffi (1.9.6)
27
- git (1.2.6)
36
+ git (1.2.9.1)
28
37
  github_api (0.10.1)
29
38
  addressable
30
39
  faraday (~> 0.8.1)
@@ -32,10 +41,10 @@ GEM
32
41
  multi_json (~> 1.4)
33
42
  nokogiri (~> 1.5.2)
34
43
  oauth2
35
- hashie (2.0.5)
44
+ hashie (3.4.1)
36
45
  headless (1.0.2)
37
- highline (1.6.20)
38
- httpauth (0.2.0)
46
+ highline (1.7.1)
47
+ http_connection (1.4.4)
39
48
  i18n (0.6.9)
40
49
  jeweler (1.8.8)
41
50
  builder
@@ -47,27 +56,26 @@ GEM
47
56
  rake
48
57
  rdoc
49
58
  json (1.8.1)
50
- jwt (0.1.8)
51
- multi_json (>= 1.5)
59
+ jwt (1.4.1)
52
60
  method_source (0.8.2)
61
+ mime-types (2.4.3)
53
62
  minitest (4.7.5)
54
63
  multi_json (1.8.2)
55
64
  multi_xml (0.5.5)
56
65
  multipart-post (1.2.0)
57
66
  nokogiri (1.5.10)
58
- oauth2 (0.9.2)
59
- faraday (~> 0.8)
60
- httpauth (~> 0.2)
61
- jwt (~> 0.1.4)
62
- multi_json (~> 1.0)
67
+ oauth2 (1.0.0)
68
+ faraday (>= 0.8, < 0.10)
69
+ jwt (~> 1.0)
70
+ multi_json (~> 1.3)
63
71
  multi_xml (~> 0.5)
64
72
  rack (~> 1.2)
65
73
  pry (0.9.12.4)
66
74
  coderay (~> 1.0)
67
75
  method_source (~> 0.8)
68
76
  slop (~> 3.4)
69
- rack (1.5.2)
70
- rake (10.1.0)
77
+ rack (1.6.0)
78
+ rake (10.4.2)
71
79
  rdoc (3.12.2)
72
80
  json (~> 1.4)
73
81
  rspec (2.14.1)
@@ -88,17 +96,22 @@ GEM
88
96
  thread_safe (0.1.3)
89
97
  atomic
90
98
  tzinfo (0.3.38)
99
+ uuidtools (2.1.5)
91
100
  watir-webdriver-performance (0.2.4)
92
101
  watir-webdriver
93
102
  watir-webdriver
94
103
  websocket (1.2.1)
104
+ xml-simple (1.1.5)
95
105
 
96
106
  PLATFORMS
97
107
  ruby
98
108
 
99
109
  DEPENDENCIES
100
110
  activesupport
111
+ aws
112
+ aws-s3
101
113
  bundler (~> 1.0)
114
+ carrierwave (= 0.4.10)
102
115
  headless (~> 1.0.2)
103
116
  jeweler (~> 1.8.7)
104
117
  pry
data/README.md CHANGED
@@ -384,14 +384,12 @@ Sometimes it's useful to run validations outside Ragios to verify that the valid
384
384
  ```ruby
385
385
  require 'uptime_monitor'
386
386
 
387
+ page_element1 = [:title]
388
+ page_element2 = [:div]
387
389
  monitor = {
388
- monitor: "About Us page",
389
- url: "https://www.southmunn.com/aboutus",
390
- browser: ["firefox", headless: false],
391
- exists?: [
392
- [{div: {class: "box_content"}}, [includes_text: "SouthMunn is a Website Uptime Monitoring SASS created and maintained by"]],
393
- [img: {src: "https://fc03.deviantart.net/fs14/f/2007/047/f/2/Street_Addiction_by_gizmodus.jpg"}],
394
- ],
390
+ url: "http://obi-akubue.org",
391
+ browser: ["firefox", headless: true],
392
+ exists?: [page_element1, page_element2]
395
393
  }
396
394
 
397
395
  u = Ragios::Plugin::UptimeMonitor.new
@@ -399,30 +397,35 @@ u.init(monitor)
399
397
  u.test_command?
400
398
  #=> true
401
399
  u.test_result
402
- #=> {[{:div=>{:class=>"box_content"}},
403
- # [{:includes_text=>
404
- # "SouthMunn is a Website Uptime Monitoring SASS created and maintained by"}]]=>
405
- # :exists_as_expected,
406
- # [{:img=>
407
- # {:src=>
408
- # "https://fc03.deviantart.net/fs14/f/2007/047/f/2/Street_Addiction_by_gizmodus.jpg"}}]=>
409
- # :exists_as_expected}
410
-
400
+ #=> {
401
+ # :results =>
402
+ # [
403
+ # [[:title], "exists_as_expected"],
404
+ # [[:div], "exists_as_expected"]
405
+ # ]
406
+ # }
407
+
408
+ #test result for a failed test during downtime
409
+ page_element = [:title, [text: "dont_exist"]]
410
+ monitor = {
411
+ url: "http://obi-akubue.org",
412
+ browser: ["firefox", headless: true],
413
+ exists?: [page_element]
414
+ }
411
415
 
412
- #test result during downtime
416
+ u.init(monitor)
413
417
  u.test_command?
414
418
  #=> false
415
419
  u.test_result
416
- #=> {[{:div=>{:class=>"box_content"}},
417
- # [{:includes_text=>
418
- # "SouthMunn is a Website Uptime Monitoring SASS created and maintained by"}]]=>
419
- # :does_not_exist_as_expected,
420
- # [{:img=>
421
- # {:src=>
422
- # "https://fc03.deviantart.net/fs14/f/2007/047/f/2/Street_Addiction_by_gizmodus.jpg"}}]=>
423
- # :does_not_exist_as_expected}
420
+ #=> {
421
+ # :results=>
422
+ # [
423
+ # [[:title, [{:text=>"dont_exist"}]], "does_not_exist_as_expected"]
424
+ # ]
425
+ # }
424
426
  ```
425
- In the above example the test_command?() method runs all validations and returns true when all validations passes, returns false when any of the validation fails. test_result is a hash that contains the result of the tests ran by test_command?().
427
+ In the above example the test_command? method runs the validations and returns true when all validations passes, returns false when any of the validation fails. test_result is a hash that contains the result of the tests ran by test_command?.
428
+
426
429
 
427
430
  ####Testing individual validations
428
431
  It can be very useful to test validations individually before adding them to Ragios. This can be done by running plugin's browser object directly.
@@ -445,8 +448,67 @@ browser.close
445
448
  The above example creates a browser object and visits the url. The exists? method takes a single validation as arguement and performs the validation on the url, it returns true if the validation passes and returns false if the validation fails. In the first validation it checks if the title tag on the url includes the text 'ruby'.
446
449
 
447
450
 
451
+ ##Screenshots
452
+ The uptime_monitor can be configured to take a screenshot of the webpage when a test fails. This screenshot is uploaded to Amazon s3 and its url is included in the test_result. So the website admin can see what the site looks like when transaction failed.
453
+
454
+ This feature is disable by default, to enable it set following environment variable.
455
+ ```
456
+ RAGIOS_HERCULES_ENABLE_SCREENSHOTS=true
457
+ ```
458
+ Also set environment variables for the Amazon s3 account you want to use for storing the screenshots,
459
+ ```
460
+ AWS_ACCESS_KEY_ID=xxxxxxx
461
+ AWS_SECRET_ACCESS_KEY=xxxxxx
462
+ RAGIOS_HERCULES_S3_DIR=xxxxxx
463
+ ```
464
+ The above env vars are for the Amazon AWS access key, AWS secret key and s3 directory/bucket you want to use for storage. First create this s3 bucket manually.
465
+
466
+ With the screenshots feature enabled, the results of a failed test will include a screenshot of the webpage when the test failed.
467
+ See an example below:
468
+ ```ruby
469
+ require 'uptime_monitor'
470
+
471
+ page_element = [:title, [text: "dont_exist"]]
472
+ monitor = {
473
+ url: "http://obi-akubue.org",
474
+ browser: ["firefox", headless: true],
475
+ exists?: [page_element]
476
+ }
477
+
478
+ u = Ragios::Plugin::UptimeMonitor.new
479
+ u.init(monitor)
480
+ u.test_command?
481
+ #=>false
482
+ u.test_result
483
+ #=> {
484
+ # :results=>
485
+ # [
486
+ # [[:title, [{:text=>"dont_exist"}]], "does_not_exist_as_expected"]
487
+ # ],
488
+ # :screenshot=>
489
+ # "http://screenshot-ragios.s3.amazonaws.com/uploads/screenshot1428783237.png"
490
+ # }
491
+ ```
492
+ Notice that test result includes a url to the screenshot of the webpage when the test failed. This test result is also included in the notifications sent to site admin by by Ragios when a test fails. So this way the admin can see exactly what webpage looked like when the transaction failed.
493
+
494
+ ##Disable screenshots on individual monitors
495
+ To disable screenshots on a particular monitor add the key/value pair ```disable_screenshots: true```
496
+ example:
497
+ ```ruby
498
+ page_element = [:title]
499
+ monitor = {
500
+ url: "http://obi-akubue.org",
501
+ browser: ["firefox", headless: true],
502
+ exists?: [page_element],
503
+ disable_screenshots: true
504
+ }
505
+
506
+ ragios.create(monitor)
507
+ ```
508
+ This will diable screenshots only for this monitor, no screenshots will be taken when its test fails.
509
+
448
510
  ##Specification:
449
- <pre lang="ruby">
511
+ ```ruby
450
512
  monitor = {
451
513
  monitor: "My Website",
452
514
  url: "http://mysite.com",
@@ -470,7 +532,7 @@ monitor = {
470
532
  browser: ["firefox", headless: true]
471
533
  }
472
534
  ragios.create(monitor)
473
- </pre>
535
+ ```
474
536
 
475
537
 
476
538
  ##License:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.2.0
@@ -109,6 +109,14 @@ module Hercules
109
109
  rescue Watir::Wait::TimeoutError
110
110
  false
111
111
  end
112
+ def capture_screenshot
113
+ filename = "#{RAGIOS_HERCULES_SCREENSHOT_DIR}/screenshot#{Time.now.to_i}.png"
114
+ @browser.screenshot.save(filename)
115
+ file = File.open(filename)
116
+ uploader = Hercules::UptimeMonitor::ScreenShotUploader.new
117
+ uploader.store!(file)
118
+ uploader.url
119
+ end
112
120
  private
113
121
  def goto(url, browser_name)
114
122
  client = Selenium::WebDriver::Remote::Http::Default.new
@@ -0,0 +1,7 @@
1
+ module Hercules
2
+ module UptimeMonitor
3
+ class ScreenShotUploader < CarrierWave::Uploader::Base
4
+ storage :s3
5
+ end
6
+ end
7
+ end
@@ -4,11 +4,13 @@ module Ragios
4
4
  attr_reader :monitor
5
5
  attr_reader :test_result
6
6
  attr_reader :success
7
+ attr_reader :screenshot_url
8
+ attr_reader :has_screenshot
7
9
 
8
10
  def initialize
9
11
  @test_result = ActiveSupport::OrderedHash.new
10
12
  @result_set = []
11
- @test_result = {results: @result_set }
13
+ @test_result = {results: @result_set}
12
14
  end
13
15
 
14
16
  def init(monitor)
@@ -24,10 +26,12 @@ module Ragios
24
26
  def test_command?
25
27
  @result_set = []
26
28
  @success = true
29
+ @has_screenshot = false
27
30
  browser_reader = Hercules::UptimeMonitor::BrowserReader.new(@monitor.browser)
28
31
  start_browser(@monitor.url, browser_reader.browser_name, browser_reader.headless)
29
32
  exists(@monitor.exists?)
30
- @test_result = {results: @result_set }
33
+ @test_result = {results: @result_set}
34
+ @test_result[:screenshot] = @screenshot_url if @has_screenshot
31
35
  close_browser
32
36
  @success
33
37
  rescue Net::ReadTimeout => e
@@ -49,7 +53,12 @@ module Ragios
49
53
 
50
54
  def exists(page_elements)
51
55
  page_elements.each do |page_element|
52
- @browser.exists?(page_element) ? result!(page_element, true) : result!(page_element, false)
56
+ if @browser.exists?(page_element)
57
+ result!(page_element, true)
58
+ else
59
+ take_screenshot
60
+ result!(page_element, false)
61
+ end
53
62
  end
54
63
  end
55
64
 
@@ -58,6 +67,13 @@ module Ragios
58
67
  result = state ? [page_element, "exists_as_expected"] : [page_element, "does_not_exist_as_expected"]
59
68
  @result_set << result
60
69
  end
70
+
71
+ def take_screenshot
72
+ if RAGIOS_HERCULES_ENABLE_SCREENSHOTS && not(@monitor.disable_screenshots) && not(@has_screenshot)
73
+ @screenshot_url = @browser.capture_screenshot
74
+ @has_screenshot = true
75
+ end
76
+ end
61
77
  end
62
78
  end
63
79
  end
@@ -3,6 +3,8 @@ require 'watir-webdriver'
3
3
  require 'watir-webdriver-performance'
4
4
  require 'ostruct'
5
5
  require 'active_support'
6
+ require 'carrierwave'
7
+ require 'aws'
6
8
 
7
9
  def require_all(path)
8
10
  Dir.glob(File.dirname(__FILE__) + path + '/*.rb') do |file|
@@ -10,4 +12,22 @@ def require_all(path)
10
12
  end
11
13
  end
12
14
 
15
+ def setup_screenshot_dir
16
+ FileUtils.mkdir_p RAGIOS_HERCULES_SCREENSHOT_DIR
17
+ FileUtils.rm_rf(Dir.glob("#{RAGIOS_HERCULES_SCREENSHOT_DIR}/*"))
18
+ end
19
+
20
+ RAGIOS_HERCULES_SCREENSHOT_DIR = "#{Dir.pwd}/screenshots/tmp"
21
+ RAGIOS_HERCULES_ENABLE_SCREENSHOTS = ENV['RAGIOS_HERCULES_ENABLE_SCREENSHOTS'] == 'true' ? true : false
22
+
23
+ if RAGIOS_HERCULES_ENABLE_SCREENSHOTS
24
+ setup_screenshot_dir
25
+ CarrierWave.configure do |config|
26
+ config.s3_access_key_id = ENV['AWS_ACCESS_KEY_ID']
27
+ config.s3_secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
28
+ config.s3_bucket = ENV['RAGIOS_HERCULES_S3_DIR']
29
+ end
30
+ CarrierWave.clean_cached_files!
31
+ end
32
+
13
33
  require_all '/uptime_monitor'
@@ -40,6 +40,8 @@ describe Ragios::Plugin::UptimeMonitor do
40
40
  page_element = [:title]
41
41
  @uptime_monitor.exists([page_element])
42
42
  @uptime_monitor.test_result.should == {:results => [[page_element, "exists_as_expected"]]}
43
+ @uptime_monitor.has_screenshot.should == nil #since no test_command? was run
44
+ @uptime_monitor.screenshot_url.should == nil
43
45
  @uptime_monitor.success.should == nil #since no test_command? was run
44
46
  @uptime_monitor.close_browser
45
47
  end
@@ -50,6 +52,9 @@ describe Ragios::Plugin::UptimeMonitor do
50
52
  page_element = [:title, [text: "dont_exist"]]
51
53
  @uptime_monitor.exists([page_element])
52
54
  @uptime_monitor.test_result.should == {:results => [[page_element, "does_not_exist_as_expected"]]}
55
+ if @uptime_monitor.has_screenshot
56
+ !!(/^.*\.png$/.match(@uptime_monitor.screenshot_url)).should == true
57
+ end
53
58
  @uptime_monitor.success.should == false
54
59
  @uptime_monitor.close_browser
55
60
  end
@@ -62,6 +67,10 @@ describe Ragios::Plugin::UptimeMonitor do
62
67
  @uptime_monitor.init(monitor)
63
68
  @uptime_monitor.test_command?.should == true
64
69
  @uptime_monitor.test_result.should == {:results => [[page_element, "exists_as_expected"]]}
70
+ @uptime_monitor.has_screenshot.should == false
71
+ @uptime_monitor.screenshot_url.should == nil
72
+ @uptime_monitor.success.should == true
73
+ @uptime_monitor.close_browser
65
74
  end
66
75
  it "runs a test that fails" do
67
76
  page_element = [:title, [text: "dont_exist"]]
@@ -71,6 +80,26 @@ describe Ragios::Plugin::UptimeMonitor do
71
80
  }
72
81
  @uptime_monitor.init(monitor)
73
82
  @uptime_monitor.test_command?.should == false
74
- @uptime_monitor.test_result.should == {:results => [[page_element, "does_not_exist_as_expected"]]}
83
+ @uptime_monitor.test_result.should include(:results => [[page_element, "does_not_exist_as_expected"]])
84
+ if @uptime_monitor.has_screenshot
85
+ !!(/^.*\.png$/.match(@uptime_monitor.screenshot_url)).should == true
86
+ end
87
+ @uptime_monitor.success.should == false
88
+ @uptime_monitor.close_browser
89
+ end
90
+ it "can disable screenshot capture when a test fails for individual monitors" do
91
+ page_element = [:title, [text: "dont_exist"]]
92
+ monitor = {
93
+ url: "http://obi-akubue.org",
94
+ browser: ["firefox", headless: true],
95
+ exists?: [page_element],
96
+ disable_screenshots: true
97
+ }
98
+ @uptime_monitor.init(monitor)
99
+ @uptime_monitor.test_command?.should == false
100
+ @uptime_monitor.has_screenshot.should == false
101
+ @uptime_monitor.screenshot_url.should == nil
102
+ @uptime_monitor.success.should == false
103
+ @uptime_monitor.close_browser
75
104
  end
76
105
  end
@@ -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.1.1 ruby lib
5
+ # stub: uptime_monitor 0.2.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "uptime_monitor"
9
- s.version = "0.1.1"
9
+ s.version = "0.2.0"
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-03-21"
14
+ s.date = "2015-04-12"
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 = [
@@ -31,6 +31,7 @@ Gem::Specification.new do |s|
31
31
  "lib/uptime_monitor.rb",
32
32
  "lib/uptime_monitor/browser.rb",
33
33
  "lib/uptime_monitor/browser_reader.rb",
34
+ "lib/uptime_monitor/screen_shot_uploader.rb",
34
35
  "lib/uptime_monitor/uptime_monitor.rb",
35
36
  "spec/browser_reader_spec.rb",
36
37
  "spec/browser_spec.rb",
@@ -40,7 +41,7 @@ Gem::Specification.new do |s|
40
41
  ]
41
42
  s.homepage = "http://github.com/obi-a/uptime_monitor"
42
43
  s.licenses = ["MIT"]
43
- s.rubygems_version = "2.4.5"
44
+ s.rubygems_version = "2.4.6"
44
45
  s.summary = "Real browser website uptime monitoring plugin for Ragios"
45
46
 
46
47
  if s.respond_to? :specification_version then
@@ -51,6 +52,9 @@ Gem::Specification.new do |s|
51
52
  s.add_runtime_dependency(%q<watir-webdriver>, [">= 0"])
52
53
  s.add_runtime_dependency(%q<watir-webdriver-performance>, ["~> 0.2.4"])
53
54
  s.add_runtime_dependency(%q<activesupport>, [">= 0"])
55
+ s.add_runtime_dependency(%q<carrierwave>, ["= 0.4.10"])
56
+ s.add_runtime_dependency(%q<aws>, [">= 0"])
57
+ s.add_runtime_dependency(%q<aws-s3>, [">= 0"])
54
58
  s.add_development_dependency(%q<rspec>, [">= 0"])
55
59
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
56
60
  s.add_development_dependency(%q<bundler>, ["~> 1.0"])
@@ -61,6 +65,9 @@ Gem::Specification.new do |s|
61
65
  s.add_dependency(%q<watir-webdriver>, [">= 0"])
62
66
  s.add_dependency(%q<watir-webdriver-performance>, ["~> 0.2.4"])
63
67
  s.add_dependency(%q<activesupport>, [">= 0"])
68
+ s.add_dependency(%q<carrierwave>, ["= 0.4.10"])
69
+ s.add_dependency(%q<aws>, [">= 0"])
70
+ s.add_dependency(%q<aws-s3>, [">= 0"])
64
71
  s.add_dependency(%q<rspec>, [">= 0"])
65
72
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
66
73
  s.add_dependency(%q<bundler>, ["~> 1.0"])
@@ -72,6 +79,9 @@ Gem::Specification.new do |s|
72
79
  s.add_dependency(%q<watir-webdriver>, [">= 0"])
73
80
  s.add_dependency(%q<watir-webdriver-performance>, ["~> 0.2.4"])
74
81
  s.add_dependency(%q<activesupport>, [">= 0"])
82
+ s.add_dependency(%q<carrierwave>, ["= 0.4.10"])
83
+ s.add_dependency(%q<aws>, [">= 0"])
84
+ s.add_dependency(%q<aws-s3>, [">= 0"])
75
85
  s.add_dependency(%q<rspec>, [">= 0"])
76
86
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
77
87
  s.add_dependency(%q<bundler>, ["~> 1.0"])
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.1.1
4
+ version: 0.2.0
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-03-21 00:00:00.000000000 Z
11
+ date: 2015-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: headless
@@ -66,6 +66,48 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: carrierwave
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 0.4.10
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 0.4.10
83
+ - !ruby/object:Gem::Dependency
84
+ name: aws
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: aws-s3
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
69
111
  - !ruby/object:Gem::Dependency
70
112
  name: rspec
71
113
  requirement: !ruby/object:Gem::Requirement
@@ -157,6 +199,7 @@ files:
157
199
  - lib/uptime_monitor.rb
158
200
  - lib/uptime_monitor/browser.rb
159
201
  - lib/uptime_monitor/browser_reader.rb
202
+ - lib/uptime_monitor/screen_shot_uploader.rb
160
203
  - lib/uptime_monitor/uptime_monitor.rb
161
204
  - spec/browser_reader_spec.rb
162
205
  - spec/browser_spec.rb
@@ -183,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
226
  version: '0'
184
227
  requirements: []
185
228
  rubyforge_project:
186
- rubygems_version: 2.4.5
229
+ rubygems_version: 2.4.6
187
230
  signing_key:
188
231
  specification_version: 4
189
232
  summary: Real browser website uptime monitoring plugin for Ragios