pingr 0.1.1 → 0.2.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
  SHA256:
3
- metadata.gz: 202bec9aa3e4a90f435d5d66eb1fd319a7356e885d68d9fa226ae064188647c1
4
- data.tar.gz: 2b2fe5e03ae5f8cd563dc464be12f58eb371ab4777ef6474bf11aa00e260eb20
3
+ metadata.gz: f4489ba3b7b8c39ee1e18bbd9e80d366d13020aa790b8bf6b0f332cac8376018
4
+ data.tar.gz: 60ef57d71a99b5ca892c45cf419eb8af039f4a1a94eed3bd50b30f57b00344f4
5
5
  SHA512:
6
- metadata.gz: c2b29b545c208d2f5e981fe14da19932f92aca1848c622f8600a5f624a3beeadcb737cebfa26fa5395b4c835659663f8e70019eed52c01cbd810b09f09a48680
7
- data.tar.gz: 3e08b3f97fae4f82fe9753670a0948f79f099c99290d208b0464d0fcc6f39ca353fecf0e794aa7ea2c011a25a0489c9ef0bdc33a1a401fae9cda85b4bc13f9e5
6
+ metadata.gz: 9cb214d121f3f557641963bccf2ae67cfbb9fbf190c7f1f2e57a4dc6735d381fa3aa27fed29decba46c6b3b3708254489d38d1dcaf28e581106adddd5b2dcba6
7
+ data.tar.gz: 2c452f2ccf7e495de33d63f1ec38140c156ebe32f28cb4b914fb5038fc6336adeb38fb146e8ca5f22a215b4019c526b34c23de8272a0e55f4cdf7a721493aa4f
data/Rakefile CHANGED
@@ -1,8 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ import "./lib/tasks/pingr.rake"
5
7
 
6
8
  RSpec::Core::RakeTask.new(:spec)
7
9
 
8
10
  task default: :spec
11
+
12
+ Bundler::GemHelper.install_tasks
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pingr
4
- VERSION = '0.1.1'
4
+ VERSION = '0.2.2'
5
5
  end
@@ -0,0 +1,19 @@
1
+ require "dotenv/tasks"
2
+
3
+ namespace :pingr do
4
+ require "pingr"
5
+
6
+ desc "Request search engines crawl the sitemap again"
7
+ task :ping => :dotenv do |t, args|
8
+ sitemap_url = ENV.fetch('SITEMAP_URL')
9
+ if sitemap_url.nil?
10
+ warn("Please provide SITEMAP_URL")
11
+ exit(1)
12
+ else
13
+ puts("Pinging search engines...")
14
+ Pingr::Request.new(sitemap_url)
15
+ puts("Done!")
16
+ end
17
+ end
18
+
19
+ end
@@ -18,6 +18,8 @@ Gem::Specification.new do |gem|
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ['lib']
20
20
 
21
- gem.add_development_dependency 'rake'
21
+ gem.add_runtime_dependency 'dotenv'
22
+ gem.add_runtime_dependency 'rake'
23
+
22
24
  gem.add_development_dependency 'rspec'
23
25
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pingr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bodacious
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-29 00:00:00.000000000 Z
11
+ date: 2020-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: dotenv
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rake
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -17,7 +31,7 @@ dependencies:
17
31
  - - ">="
18
32
  - !ruby/object:Gem::Version
19
33
  version: '0'
20
- type: :development
34
+ type: :runtime
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
@@ -62,6 +76,7 @@ files:
62
76
  - lib/pingr/search_engines/bing.rb
63
77
  - lib/pingr/search_engines/google.rb
64
78
  - lib/pingr/version.rb
79
+ - lib/tasks/pingr.rake
65
80
  - pingr.gemspec
66
81
  - spec/pingr_spec.rb
67
82
  - spec/spec_helper.rb
@@ -83,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
98
  - !ruby/object:Gem::Version
84
99
  version: '0'
85
100
  requirements: []
86
- rubygems_version: 3.0.3
101
+ rubygems_version: 3.1.3
87
102
  signing_key:
88
103
  specification_version: 4
89
104
  summary: Ping search engines with your XML Sitemap