pirat 0.0.3 → 0.0.4

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: 71a02ddaa1eddb9a6fe71892a625aab74ec6a2f2497037c5e9a7bab417b854e9
4
- data.tar.gz: 0741db2c9774b039b0b009864f843bb5e77d644669a1208eae3822d2c55a6d09
3
+ metadata.gz: 86a69433d2184bd54960c2fe3135690e4e68aec69d72bff0cabcdaa88eccb7c0
4
+ data.tar.gz: ddf0db23341a52205858e55962abcf37af139cc6e9ffffb52db12a9687ac0741
5
5
  SHA512:
6
- metadata.gz: 39d1e2047fcc932e109e1309f2974769b7596a6d180aea97047c57f4dac1ad6cf7d10ac138292b4afaba761d201541292e12076311d417c61b61250680719ab5
7
- data.tar.gz: e1e8604c0291d6891ae7eb775e5a0cbd6443320dbf55367acf0d5ac83e173ac687e027da6eaf42198559ad69719aee984328af9713c1340116c3959ccf2a2e78
6
+ metadata.gz: d50a438ed3d88f7b43711999c2d92c8eb0c3b183dca196c92b8e850800d36146ed611d24cbbf8199d1d9a35aa7abb939bea55cb6285528c58b0065f783b5f4b1
7
+ data.tar.gz: 733b29f38a83355a458d8163fd533dab604affbbdf5917cfdf6f3368625f6d932ab3fcf0d6099f8bb1499fb9d7702f0e8db303a88569b434f00dddd32ddee09d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pirat (0.0.3)
4
+ pirat (0.0.4)
5
5
  nokogiri (~> 1.10, >= 1.10.4)
6
6
  open_uri_redirections (~> 0.2.1)
7
7
 
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Pirat
2
2
 
3
- Its modified "pirata" gem. I just needed to add some change to use it.
3
+ It's modified "pirata" gem. I just needed to add some changes (newer version of dependency) to use it.
4
+ https://rubygems.org/gems/pirata/
4
5
 
5
6
 
data/lib/pirata/search.rb CHANGED
@@ -61,14 +61,14 @@ module Pirata
61
61
  # Parse HTML body of a supplied URL
62
62
  class << self
63
63
  def parse_html(url)
64
- response = open(url, :allow_redirections => Pirata.config[:redirect])
64
+ response = open(url,'User-Agent' => 'ruby')
65
65
  Nokogiri::HTML(response)
66
66
  end
67
67
  end
68
68
 
69
69
  # Parse HTML body of a supplied URL
70
70
  def parse_html(url)
71
- response = open(url, :allow_redirections => Pirata.config[:redirect])
71
+ response = open(url,'User-Agent' => 'ruby')
72
72
  Nokogiri::HTML(response)
73
73
  end
74
74
 
@@ -42,7 +42,7 @@ module Pirata
42
42
  # Parse HTML body of a supplied URL
43
43
  class << self
44
44
  def parse_html(url)
45
- response = open(url, :allow_redirections => Pirata.config[:redirect])
45
+ response = open(url,'User-Agent' => 'ruby')
46
46
  Nokogiri::HTML(response)
47
47
  end
48
48
  end
data/pirat.gemspec CHANGED
@@ -3,12 +3,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "pirat"
6
- spec.version = "0.0.3"
6
+ spec.version = "0.0.4"
7
7
  spec.authors = ["jazin32"]
8
8
  spec.email = ["majster1020@wp.pl"]
9
9
 
10
10
  spec.summary = "aasdasd"
11
- spec.description = "edited pirata gem"
11
+ spec.description = "edited pirata gem - https://rubygems.org/gems/pirata/"
12
12
  spec.homepage = "https://github.com/jazin32/pirat"
13
13
  spec.license = "GPL-3.0"
14
14
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pirat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - jazin32
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-22 00:00:00.000000000 Z
11
+ date: 2019-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -92,7 +92,7 @@ dependencies:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
94
  version: '10.0'
95
- description: edited pirata gem
95
+ description: edited pirata gem - https://rubygems.org/gems/pirata/
96
96
  email:
97
97
  - majster1020@wp.pl
98
98
  executables: []