danger-the_coding_love 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/Gemfile.lock +24 -22
- data/lib/the_coding_love/gem_version.rb +1 -1
- data/lib/the_coding_love/plugin.rb +7 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23aeb56cda3b0073c6f179ed2af2f688b7c4518f
|
4
|
+
data.tar.gz: 5eda7adf073dc0e3b02772b62090f5dec4ad0f22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c27cff9c34bceffc61c176a6d9dfdb0870ace4aed2711e68569a1e271bf3c87576943203efc520f723465e4d9932c37bbdd15251d1e3f7905c3ec56f5cebf37e
|
7
|
+
data.tar.gz: ad73778a67959a6719e9a23afec2146a14ae5b26d11c7b86d156a88a85e99018f9784de177726971748ff376625492cb82091ed3e97680ed61245ff180664e78
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,45 +1,46 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
danger-the_coding_love (0.0.
|
4
|
+
danger-the_coding_love (0.0.5)
|
5
5
|
danger-plugin-api (~> 1.0)
|
6
6
|
nokogiri
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.5.
|
12
|
-
public_suffix (
|
13
|
-
claide (1.0.
|
11
|
+
addressable (2.5.2)
|
12
|
+
public_suffix (>= 2.0.2, < 4.0)
|
13
|
+
claide (1.0.2)
|
14
14
|
claide-plugins (0.9.2)
|
15
15
|
cork
|
16
16
|
nap
|
17
17
|
open4 (~> 1.3)
|
18
18
|
coderay (1.1.1)
|
19
|
-
|
20
|
-
cork (0.
|
21
|
-
|
22
|
-
danger (
|
19
|
+
colored2 (3.1.2)
|
20
|
+
cork (0.3.0)
|
21
|
+
colored2 (~> 3.1)
|
22
|
+
danger (5.6.1)
|
23
23
|
claide (~> 1.0)
|
24
24
|
claide-plugins (>= 0.9.2)
|
25
|
-
|
25
|
+
colored2 (~> 3.1)
|
26
26
|
cork (~> 0.1)
|
27
27
|
faraday (~> 0.9)
|
28
28
|
faraday-http-cache (~> 1.0)
|
29
29
|
git (~> 1)
|
30
30
|
kramdown (~> 1.5)
|
31
|
-
|
31
|
+
no_proxy_fix
|
32
|
+
octokit (~> 4.7)
|
32
33
|
terminal-table (~> 1)
|
33
34
|
danger-plugin-api (1.0.0)
|
34
35
|
danger (> 2.0)
|
35
36
|
diff-lcs (1.2.5)
|
36
|
-
faraday (0.
|
37
|
+
faraday (0.15.2)
|
37
38
|
multipart-post (>= 1.2, < 3)
|
38
39
|
faraday-http-cache (1.3.1)
|
39
40
|
faraday (~> 0.8)
|
40
41
|
ffi (1.9.14)
|
41
42
|
formatador (0.2.5)
|
42
|
-
git (1.
|
43
|
+
git (1.4.0)
|
43
44
|
guard (2.14.0)
|
44
45
|
formatador (>= 0.2.4)
|
45
46
|
listen (>= 2.7, < 4.0)
|
@@ -54,29 +55,30 @@ GEM
|
|
54
55
|
guard (~> 2.1)
|
55
56
|
guard-compat (~> 1.1)
|
56
57
|
rspec (>= 2.99.0, < 4.0)
|
57
|
-
kramdown (1.
|
58
|
+
kramdown (1.16.2)
|
58
59
|
listen (3.0.7)
|
59
60
|
rb-fsevent (>= 0.9.3)
|
60
61
|
rb-inotify (>= 0.9.7)
|
61
62
|
lumberjack (1.0.10)
|
62
63
|
method_source (0.8.2)
|
63
|
-
mini_portile2 (2.
|
64
|
+
mini_portile2 (2.3.0)
|
64
65
|
multipart-post (2.0.0)
|
65
66
|
nap (1.1.0)
|
66
67
|
nenv (0.3.0)
|
67
|
-
|
68
|
-
|
68
|
+
no_proxy_fix (0.1.2)
|
69
|
+
nokogiri (1.8.2)
|
70
|
+
mini_portile2 (~> 2.3.0)
|
69
71
|
notiffany (0.1.1)
|
70
72
|
nenv (~> 0.1)
|
71
73
|
shellany (~> 0.0)
|
72
|
-
octokit (4.
|
74
|
+
octokit (4.9.0)
|
73
75
|
sawyer (~> 0.8.0, >= 0.5.3)
|
74
76
|
open4 (1.3.4)
|
75
77
|
pry (0.10.4)
|
76
78
|
coderay (~> 1.1.0)
|
77
79
|
method_source (~> 0.8.1)
|
78
80
|
slop (~> 3.4)
|
79
|
-
public_suffix (2.0.
|
81
|
+
public_suffix (2.0.5)
|
80
82
|
rake (10.5.0)
|
81
83
|
rb-fsevent (0.9.8)
|
82
84
|
rb-inotify (0.9.7)
|
@@ -99,10 +101,10 @@ GEM
|
|
99
101
|
faraday (~> 0.8, < 1.0)
|
100
102
|
shellany (0.0.1)
|
101
103
|
slop (3.6.0)
|
102
|
-
terminal-table (1.
|
103
|
-
unicode-display_width (~> 1.1.1)
|
104
|
+
terminal-table (1.8.0)
|
105
|
+
unicode-display_width (~> 1.1, >= 1.1.1)
|
104
106
|
thor (0.19.4)
|
105
|
-
unicode-display_width (1.
|
107
|
+
unicode-display_width (1.3.3)
|
106
108
|
yard (0.9.5)
|
107
109
|
|
108
110
|
PLATFORMS
|
@@ -120,4 +122,4 @@ DEPENDENCIES
|
|
120
122
|
yard (~> 0.8)
|
121
123
|
|
122
124
|
BUNDLED WITH
|
123
|
-
1.
|
125
|
+
1.16.1
|
@@ -18,11 +18,14 @@ module Danger
|
|
18
18
|
require 'open-uri'
|
19
19
|
require 'nokogiri'
|
20
20
|
|
21
|
-
@
|
22
|
-
|
21
|
+
@main_page_doc = Nokogiri::HTML(open("https://thecodinglove.com"))
|
22
|
+
random_gif_page_url = @main_page_doc.at_xpath("//a[@class='nav-link']/@href").to_s
|
23
|
+
|
24
|
+
@doc = Nokogiri::HTML(open(random_gif_page_url))
|
25
|
+
@doc = @doc.at_xpath("//div[@class='blog-post']")
|
23
26
|
|
24
|
-
text = @doc.at_xpath("//
|
25
|
-
image_url = @doc.at_xpath("//div[@class='
|
27
|
+
text = @doc.at_xpath("//h1").text
|
28
|
+
image_url = @doc.at_xpath("//div[@class='blog-post-content']/p/img/@src").to_s
|
26
29
|
|
27
30
|
markdown("------\n#{text}\n--\n![alt text](#{image_url} \"thecodinglove.com\")")
|
28
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger-the_coding_love
|
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
|
- Valerio Mazzeo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger-plugin-api
|
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
192
|
version: '0'
|
193
193
|
requirements: []
|
194
194
|
rubyforge_project:
|
195
|
-
rubygems_version: 2.
|
195
|
+
rubygems_version: 2.6.13
|
196
196
|
signing_key:
|
197
197
|
specification_version: 4
|
198
198
|
summary: Prints markdown containing a random post from thecodinglove.com.
|