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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4b352fc5ab59e20a89b77ef0c7e266d2a664772f
4
- data.tar.gz: faa52aa1f6ff9cdac67b8917a99a084b6c48fe4d
2
+ SHA256:
3
+ metadata.gz: 46e115832ab585e649ea4b21b9dd341b0d0d631e7ffcbd35adb954455c3129b9
4
+ data.tar.gz: fd9348bb0e250ca7eac3493b4407409f7067c57c2d6ae3ba516f94c6c4940710
5
5
  SHA512:
6
- metadata.gz: 0987cd54ceac4c430789b9eb539e73367c934e70f55748ecbcdacbcbb82d86af3fa13ed5b0e0962bd6a9a23c30cec1f57bc32c02ffe2de558b56b88a0731cfc1
7
- data.tar.gz: 9bd4600038b4ab69af85e99e3a03e83374085d1768fdabe1e8351f3df6d0f1ea2d4ce06ab57b8368093e844a2fd80699295efa22cec9bb682e5e12845376bdee
6
+ metadata.gz: 0a8ff9512fe013ac3c01c7fb1e0e25b5192a7147ece5533204bda25911129784164906fa3daa085932806434b6674af575766e98325337a6a32f8febfd4f684a
7
+ data.tar.gz: c29b678824884ed00a53c4fd1c9800adc43b830f895b6cb48483a6773e5258e6677cf0118820d69e1f484ab8aa1857ee41d3cdfb0395b7804c4b5f0a5d71e4d9
data/.circle-ruby CHANGED
@@ -1,3 +1,4 @@
1
- 2.3.1
2
- 2.2.5
3
- 2.1.10
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
- expected do
3
- static
4
- set 'green'
5
- end
6
+ noop
6
7
 
7
- actual do
8
- gemnasium
9
- slug 'akerl/linodians'
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
@@ -1,2 +1,5 @@
1
- Encoding:
2
- Enabled: false
1
+ inherit_gem:
2
+ goodcop: .rubocop.yml
3
+ AllCops:
4
+ Include:
5
+ - 'bin/*'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.1.1 / 2016-09-12
2
+
3
+ * [ENHANCEMENT] Update nokogiri dependency
4
+
1
5
  # 1.1.0 / 2016-09-12
2
6
 
3
7
  * [BUGFIX] Updated to use the new format of upstream page CSS
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
-
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: [:spec, :rubocop, :build, :install]
13
+ task default: %i[spec rubocop build install]
data/bin/linodians CHANGED
@@ -7,7 +7,7 @@ require 'optparse'
7
7
  options = {
8
8
  format: :plain
9
9
  }
10
- opt = OptionParser.new do |opts|
10
+ OptionParser.new do |opts|
11
11
  opts.banner = 'Usage: linodians [-v] [-j]'
12
12
  opts.on('-j', '--json', 'Output as json') do
13
13
  options[:format] = :json
data/circle.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  dependencies:
2
2
  override:
3
+ - 'for i in $(cat .circle-ruby) ; do rvm-exec $i gem update --system --no-doc || exit 1 ; done'
3
4
  - 'for i in $(cat .circle-ruby) ; do rvm-exec $i bundle install || exit 1 ; done'
4
5
  test:
5
6
  override:
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
- Nokogiri::HTML(open(DATA_URL)).css('div').map do |block|
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]
@@ -11,7 +11,10 @@ module Linodians
11
11
  end
12
12
 
13
13
  def photo
14
- @photo ||= open(PHOTO_URL % username, &:read)
14
+ @photo ||= open( # rubocop:disable Security/Open
15
+ PHOTO_URL % username,
16
+ &:read
17
+ )
15
18
  end
16
19
 
17
20
  def [](value)
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  ##
3
4
  # Define the version
4
5
  module Linodians
5
- VERSION = '1.1.0'.freeze
6
+ VERSION = '1.1.1'.freeze
6
7
  end
data/linodians.gemspec CHANGED
@@ -1,13 +1,14 @@
1
- $:.unshift File.expand_path('../lib/', __FILE__)
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("%Y-%m-%d")
8
+ s.date = Time.now.strftime('%Y-%m-%d')
8
9
 
9
10
  s.summary = 'Parse Linode employees'
10
- s.description = "Library for viewing public Linode employee data"
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 'rspec', '~> 3.5.0'
27
- s.add_development_dependency 'fuubar', '~> 2.2.0'
28
- s.add_development_dependency 'webmock', '~> 2.1.0'
29
- s.add_development_dependency 'vcr', '~> 3.0.0'
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
@@ -12,7 +12,9 @@ describe Linodians do
12
12
  end
13
13
 
14
14
  describe '#load_data' do
15
- let(:saved_data) { File.open('spec/examples/data') { |fh| JSON.load fh } }
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.0
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: 2016-09-12 00:00:00.000000000 Z
11
+ date: 2018-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: nokogiri
14
+ name: cymbal
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.6.5
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.6.5
26
+ version: 1.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: cymbal
28
+ name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.0
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.0.0
40
+ version: 1.8.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: rubocop
42
+ name: codecov
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.42.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.42.0
54
+ version: 0.1.1
55
55
  - !ruby/object:Gem::Dependency
56
- name: rake
56
+ name: fuubar
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 11.2.0
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: 11.2.0
68
+ version: 2.3.0
69
69
  - !ruby/object:Gem::Dependency
70
- name: codecov
70
+ name: goodcop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.1.1
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.1.1
82
+ version: 0.4.0
83
83
  - !ruby/object:Gem::Dependency
84
- name: rspec
84
+ name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 3.5.0
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.5.0
96
+ version: 12.3.0
97
97
  - !ruby/object:Gem::Dependency
98
- name: fuubar
98
+ name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 2.2.0
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: 2.2.0
110
+ version: 3.7.0
111
111
  - !ruby/object:Gem::Dependency
112
- name: webmock
112
+ name: rubocop
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 2.1.0
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: 2.1.0
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: 3.0.0
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.0.0
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.5.1
204
+ rubygems_version: 2.7.3
191
205
  signing_key:
192
206
  specification_version: 4
193
207
  summary: Parse Linode employees