linodians 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circle-ruby +4 -3
- data/.prospectus +21 -7
- data/.rubocop.yml +5 -2
- data/CHANGELOG.md +4 -0
- data/Gemfile +0 -1
- data/README.md +1 -1
- data/Rakefile +1 -2
- data/bin/linodians +1 -1
- data/circle.yml +1 -0
- data/lib/linodians.rb +3 -1
- data/lib/linodians/employee.rb +4 -1
- data/lib/linodians/version.rb +2 -1
- data/linodians.gemspec +12 -10
- data/spec/linodians_spec.rb +3 -1
- metadata +43 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 46e115832ab585e649ea4b21b9dd341b0d0d631e7ffcbd35adb954455c3129b9
|
4
|
+
data.tar.gz: fd9348bb0e250ca7eac3493b4407409f7067c57c2d6ae3ba516f94c6c4940710
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a8ff9512fe013ac3c01c7fb1e0e25b5192a7147ece5533204bda25911129784164906fa3daa085932806434b6674af575766e98325337a6a32f8febfd4f684a
|
7
|
+
data.tar.gz: c29b678824884ed00a53c4fd1c9800adc43b830f895b6cb48483a6773e5258e6677cf0118820d69e1f484ab8aa1857ee41d3cdfb0395b7804c4b5f0a5d71e4d9
|
data/.circle-ruby
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
-
2.
|
2
|
-
2.
|
3
|
-
2.
|
1
|
+
2.5.1
|
2
|
+
2.4.4
|
3
|
+
2.3.7
|
4
|
+
2.2.10
|
data/.prospectus
CHANGED
@@ -1,11 +1,25 @@
|
|
1
|
+
Prospectus.extra_dep('file', 'prospectus_circleci')
|
2
|
+
|
3
|
+
my_slug = 'akerl/linodians'
|
4
|
+
|
1
5
|
item do
|
2
|
-
|
3
|
-
static
|
4
|
-
set 'green'
|
5
|
-
end
|
6
|
+
noop
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
8
|
+
deps do
|
9
|
+
item do
|
10
|
+
name 'gems'
|
11
|
+
|
12
|
+
expected do
|
13
|
+
static
|
14
|
+
set 'green'
|
15
|
+
end
|
16
|
+
|
17
|
+
actual do
|
18
|
+
gemnasium
|
19
|
+
slug my_slug
|
20
|
+
end
|
21
|
+
end
|
10
22
|
end
|
23
|
+
|
24
|
+
extend ProspectusCircleci::Build.new(my_slug)
|
11
25
|
end
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,7 @@ linodians
|
|
3
3
|
|
4
4
|
[![Gem Version](https://img.shields.io/gem/v/linodians.svg)](https://rubygems.org/gems/linodians)
|
5
5
|
[![Dependency Status](https://img.shields.io/gemnasium/akerl/linodians.svg)](https://gemnasium.com/akerl/linodians)
|
6
|
-
[![Build Status](https://img.shields.io/circleci/project/akerl/linodians.svg)](https://circleci.com/gh/akerl/linodians)
|
6
|
+
[![Build Status](https://img.shields.io/circleci/project/akerl/linodians/master.svg)](https://circleci.com/gh/akerl/linodians)
|
7
7
|
[![Coverage Status](https://img.shields.io/codecov/c/github/akerl/linodians.svg)](https://codecov.io/github/akerl/linodians)
|
8
8
|
[![Code Quality](https://img.shields.io/codacy/120497a8b57b47c2b45021c992e7b352.svg)](https://www.codacy.com/app/akerl/linodians)
|
9
9
|
[![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)
|
data/Rakefile
CHANGED
@@ -7,8 +7,7 @@ RSpec::Core::RakeTask.new(:spec)
|
|
7
7
|
|
8
8
|
desc 'Run Rubocop on the gem'
|
9
9
|
RuboCop::RakeTask.new(:rubocop) do |task|
|
10
|
-
task.patterns = ['lib/**/*.rb', 'spec/**/*.rb']
|
11
10
|
task.fail_on_error = true
|
12
11
|
end
|
13
12
|
|
14
|
-
task default: [
|
13
|
+
task default: %i[spec rubocop build install]
|
data/bin/linodians
CHANGED
data/circle.yml
CHANGED
data/lib/linodians.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
require 'open-uri'
|
3
4
|
require 'nokogiri'
|
4
5
|
|
@@ -28,7 +29,8 @@ module Linodians
|
|
28
29
|
end
|
29
30
|
|
30
31
|
def raw_data
|
31
|
-
|
32
|
+
page = open(DATA_URL) # rubocop:disable Security/Open
|
33
|
+
Nokogiri::HTML(page).css('div').map do |block|
|
32
34
|
internal_block = block.at_xpath('div/div[@class="employee-display"]')
|
33
35
|
next unless internal_block
|
34
36
|
[block[:id], internal_block]
|
data/lib/linodians/employee.rb
CHANGED
data/lib/linodians/version.rb
CHANGED
data/linodians.gemspec
CHANGED
@@ -1,13 +1,14 @@
|
|
1
|
-
|
1
|
+
require 'English'
|
2
|
+
$LOAD_PATH.unshift File.expand_path('lib', __dir__)
|
2
3
|
require 'linodians/version'
|
3
4
|
|
4
5
|
Gem::Specification.new do |s|
|
5
6
|
s.name = 'linodians'
|
6
7
|
s.version = Linodians::VERSION
|
7
|
-
s.date = Time.now.strftime(
|
8
|
+
s.date = Time.now.strftime('%Y-%m-%d')
|
8
9
|
|
9
10
|
s.summary = 'Parse Linode employees'
|
10
|
-
s.description =
|
11
|
+
s.description = 'Library for viewing public Linode employee data'
|
11
12
|
s.authors = ['Les Aker']
|
12
13
|
s.email = 'me@lesaker.org'
|
13
14
|
s.homepage = 'https://github.com/akerl/linodians'
|
@@ -17,14 +18,15 @@ Gem::Specification.new do |s|
|
|
17
18
|
s.test_files = `git ls-files spec/*`.split
|
18
19
|
s.executables = ['linodians']
|
19
20
|
|
20
|
-
s.add_dependency 'nokogiri', '~> 1.6.5'
|
21
21
|
s.add_dependency 'cymbal', '~> 1.0.0'
|
22
|
+
s.add_dependency 'nokogiri', '~> 1.8.0'
|
22
23
|
|
23
|
-
s.add_development_dependency 'rubocop', '~> 0.42.0'
|
24
|
-
s.add_development_dependency 'rake', '~> 11.2.0'
|
25
24
|
s.add_development_dependency 'codecov', '~> 0.1.1'
|
26
|
-
s.add_development_dependency '
|
27
|
-
s.add_development_dependency '
|
28
|
-
s.add_development_dependency '
|
29
|
-
s.add_development_dependency '
|
25
|
+
s.add_development_dependency 'fuubar', '~> 2.3.0'
|
26
|
+
s.add_development_dependency 'goodcop', '~> 0.4.0'
|
27
|
+
s.add_development_dependency 'rake', '~> 12.3.0'
|
28
|
+
s.add_development_dependency 'rspec', '~> 3.7.0'
|
29
|
+
s.add_development_dependency 'rubocop', '~> 0.54.0'
|
30
|
+
s.add_development_dependency 'vcr', '~> 4.0.0'
|
31
|
+
s.add_development_dependency 'webmock', '~> 3.3.0'
|
30
32
|
end
|
data/spec/linodians_spec.rb
CHANGED
@@ -12,7 +12,9 @@ describe Linodians do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
describe '#load_data' do
|
15
|
-
let(:saved_data)
|
15
|
+
let(:saved_data) do
|
16
|
+
File.open('spec/examples/data') { |fh| JSON.parse fh.read }
|
17
|
+
end
|
16
18
|
let(:new_data) { VCR.use_cassette('new_data') { Linodians.load_data } }
|
17
19
|
|
18
20
|
it 'downloads data from linode.com' do
|
metadata
CHANGED
@@ -1,141 +1,155 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linodians
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: cymbal
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: nokogiri
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.8.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.8.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: codecov
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.1.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.1.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: fuubar
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 2.3.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 2.3.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: goodcop
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.4.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.4.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 3.
|
89
|
+
version: 12.3.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 3.
|
96
|
+
version: 12.3.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 3.7.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 3.7.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: rubocop
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 0.54.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 0.54.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: vcr
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 4.0.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 4.0.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: webmock
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 3.3.0
|
132
146
|
type: :development
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
150
|
- - "~>"
|
137
151
|
- !ruby/object:Gem::Version
|
138
|
-
version: 3.
|
152
|
+
version: 3.3.0
|
139
153
|
description: Library for viewing public Linode employee data
|
140
154
|
email: me@lesaker.org
|
141
155
|
executables:
|
@@ -187,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
201
|
version: '0'
|
188
202
|
requirements: []
|
189
203
|
rubyforge_project:
|
190
|
-
rubygems_version: 2.
|
204
|
+
rubygems_version: 2.7.3
|
191
205
|
signing_key:
|
192
206
|
specification_version: 4
|
193
207
|
summary: Parse Linode employees
|