myprecious_python 0.0.4 → 0.0.5
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 +5 -5
- data/lib/myprecious_python.rb +3 -3
- metadata +28 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 355cc9fed098f33fe79f5d717a43bb6972b48d1afbf75aa3923e12bc41f140ca
|
4
|
+
data.tar.gz: 77a1a57c9345d561c443621c317a4b8e450ae432ccf7f6988ee267cc0d382aad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4391ab5f970b6c13bac4778d907ebc4bcc1e8381c04bffd34564ced4880e4bcbb6102ee82af71126a5234e4fca104f1cb4f6c191fe50c724e464fdb6af0a30b
|
7
|
+
data.tar.gz: 39c9db479f71b4e40b265b1a0feba6f0e514a02bf21e421853ab0ecacf6cedb31d683cc043116795abc84d1cb2038779b52ad9f4063b377d37ae0441c9290dcb
|
data/lib/myprecious_python.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'nokogiri'
|
2
|
-
require '
|
2
|
+
require 'httparty'
|
3
3
|
require 'date'
|
4
4
|
require 'byebug'
|
5
5
|
|
@@ -81,7 +81,7 @@ class MyPreciousPython
|
|
81
81
|
end
|
82
82
|
scrape_url = "https://pypi.org/project/" + name.to_s + "/" + current_version.to_s
|
83
83
|
begin
|
84
|
-
doc = Nokogiri::HTML(
|
84
|
+
doc = Nokogiri::HTML(httparty.get(scrape_url))
|
85
85
|
doc_data = doc.css('tr.odd td')
|
86
86
|
if !doc_data.nil?
|
87
87
|
current_build_date = doc_data[3].content
|
@@ -93,7 +93,7 @@ class MyPreciousPython
|
|
93
93
|
end
|
94
94
|
puts name.to_s + " gathering info @" + scrape_url = "https://pypi.org/project/" + name.to_s + "/" + latest_version
|
95
95
|
puts scrape_url
|
96
|
-
doc = Nokogiri::HTML(
|
96
|
+
doc = Nokogiri::HTML(httparty.get(scrape_url))
|
97
97
|
begin
|
98
98
|
doc_data = doc.css('tr.odd td')
|
99
99
|
if !doc_data.nil?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myprecious_python
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Balki Kodarapu
|
@@ -14,22 +14,22 @@ dependencies:
|
|
14
14
|
name: nokogiri
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.10'
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
19
|
version: 1.10.0
|
20
|
+
- - "~>"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '1.10'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.10'
|
30
27
|
- - ">="
|
31
28
|
- !ruby/object:Gem::Version
|
32
29
|
version: 1.10.0
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.10'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: byebug
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,6 +50,26 @@ dependencies:
|
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 9.0.6
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: httparty
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0.16'
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 0.16.4
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0.16'
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 0.16.4
|
53
73
|
description: A simple, markdown generated with information about your python dependencies
|
54
74
|
email: balki.kodarapu@gmail.com
|
55
75
|
executables:
|
@@ -78,8 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
98
|
- !ruby/object:Gem::Version
|
79
99
|
version: '0'
|
80
100
|
requirements: []
|
81
|
-
|
82
|
-
rubygems_version: 2.6.14
|
101
|
+
rubygems_version: 3.0.2
|
83
102
|
signing_key:
|
84
103
|
specification_version: 4
|
85
104
|
summary: Your precious python dependencies!
|