linodians 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe Linodians::Employee do
4
4
  let(:employee) do
5
- VCR.use_cassette('new_data') { Linodians::Group.new.lookup('rohara') }
5
+ VCR.use_cassette('new_data') { Linodians::Group.new.lookup('marques') }
6
6
  end
7
7
 
8
8
  describe '#photo' do
@@ -19,15 +19,15 @@ describe Linodians::Employee do
19
19
 
20
20
  describe '#[]' do
21
21
  it 'accesses the employee info' do
22
- expect(employee[:twitter]).to eql 'sirrohara'
22
+ expect(employee[:twitter]).to eql 'displague'
23
23
  end
24
24
 
25
25
  it 'supports strings as keys' do
26
- expect(employee['twitter']).to eql 'sirrohara'
26
+ expect(employee['twitter']).to eql 'displague'
27
27
  end
28
28
 
29
29
  it 'supports symbols as keys' do
30
- expect(employee[:twitter]).to eql 'sirrohara'
30
+ expect(employee[:twitter]).to eql 'displague'
31
31
  end
32
32
 
33
33
  it 'returns nil if the key does not exist' do
@@ -43,11 +43,11 @@ describe Linodians::Employee do
43
43
 
44
44
  describe '#respond_to?' do
45
45
  it 'truthfully responds for proxied methods' do
46
- expect(employee.respond_to? :twitter).to be_truthy
46
+ expect(employee.respond_to?(:twitter)).to be_truthy
47
47
  end
48
48
 
49
49
  it 'returns false for methods that it cannot handle' do
50
- expect(employee.respond_to? :other).to be_falsey
50
+ expect(employee.respond_to?(:other)).to be_falsey
51
51
  end
52
52
  end
53
53
 
@@ -65,6 +65,6 @@ describe Linodians::Employee do
65
65
  end
66
66
 
67
67
  it 'proxies methods as data hash keys' do
68
- expect(employee.twitter).to eql 'sirrohara'
68
+ expect(employee.twitter).to eql 'displague'
69
69
  end
70
70
  end
@@ -13,13 +13,13 @@ describe Linodians::Group do
13
13
  end
14
14
 
15
15
  it 'contains employees' do
16
- expect(group.members).to all(be_an_instance_of Linodians::Employee)
16
+ expect(group.members).to all(be_an_instance_of(Linodians::Employee))
17
17
  end
18
18
  end
19
19
 
20
20
  describe '#lookup' do
21
21
  it 'looks up employees' do
22
- expect(group.lookup('rohara').username).to eql 'rohara'
22
+ expect(group.lookup('jstitt').username).to eql 'jstitt'
23
23
  end
24
24
 
25
25
  it 'returns nil if no match exists' do
@@ -37,7 +37,7 @@ describe Linodians::Group do
37
37
  end
38
38
 
39
39
  it 'correctly responds to respond_to?' do
40
- expect(group.respond_to? :size).to be_truthy
41
- expect(group.respond_to? :fake).to be_falsey
40
+ expect(group.respond_to?(:size)).to be_truthy
41
+ expect(group.respond_to?(:fake)).to be_falsey
42
42
  end
43
43
  end
data/spec/spec_helper.rb CHANGED
@@ -1,9 +1,10 @@
1
- require 'simplecov'
2
- require 'coveralls'
3
-
4
- SimpleCov.formatter = Coveralls::SimpleCov::Formatter
5
- SimpleCov.start do
6
- add_filter '/spec/'
1
+ if ENV['CI'] == 'true'
2
+ require 'simplecov'
3
+ require 'codecov'
4
+ SimpleCov.formatter = SimpleCov::Formatter::Codecov
5
+ SimpleCov.start do
6
+ add_filter '/spec/'
7
+ end
7
8
  end
8
9
 
9
10
  require 'rspec'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linodians
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.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: 2015-02-13 00:00:00.000000000 Z
11
+ date: 2016-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -44,56 +44,56 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.29.0
47
+ version: 0.39.0
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.29.0
54
+ version: 0.39.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 10.4.0
61
+ version: 11.1.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: 10.4.0
68
+ version: 11.1.0
69
69
  - !ruby/object:Gem::Dependency
70
- name: coveralls
70
+ name: codecov
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.7.1
75
+ version: 0.1.1
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.7.1
82
+ version: 0.1.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 3.2.0
89
+ version: 3.4.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.2.0
96
+ version: 3.4.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: fuubar
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -114,28 +114,28 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.20.2
117
+ version: 1.24.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: 1.20.2
124
+ version: 1.24.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: 2.9.2
131
+ version: 3.0.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 2.9.2
138
+ version: 3.0.0
139
139
  description: Library for viewing public Linode employee data
140
140
  email: me@lesaker.org
141
141
  executables:
@@ -144,15 +144,16 @@ extensions: []
144
144
  extra_rdoc_files: []
145
145
  files:
146
146
  - ".gitignore"
147
+ - ".prospectus"
147
148
  - ".rspec"
148
149
  - ".rubocop.yml"
149
- - ".travis.yml"
150
150
  - CHANGELOG.md
151
151
  - Gemfile
152
152
  - LICENSE
153
153
  - README.md
154
154
  - Rakefile
155
155
  - bin/linodians
156
+ - circle.yml
156
157
  - lib/linodians.rb
157
158
  - lib/linodians/employee.rb
158
159
  - lib/linodians/group.rb
@@ -185,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
186
  version: '0'
186
187
  requirements: []
187
188
  rubyforge_project:
188
- rubygems_version: 2.4.5
189
+ rubygems_version: 2.5.1
189
190
  signing_key:
190
191
  specification_version: 4
191
192
  summary: Parse Linode employees
data/.travis.yml DELETED
@@ -1,15 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- sudo: false
4
- rvm:
5
- - 2.2.0
6
- - 2.1.5
7
- - 2.0.0-p598
8
- - 1.9.3-p551
9
- notifications:
10
- email: false
11
- irc:
12
- template:
13
- - '%{repository}/%{branch}/%{build_number}: %{message} -- %{build_url}'
14
- channels:
15
- - irc.oftc.net#akerl