Skip to content

Commit 5c835bf

Browse files
committed
update dependencies, rubocop -a
1 parent 4b57213 commit 5c835bf

12 files changed

+43
-91
lines changed

.rubocop.yml

+6-37
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,18 @@
11
AllCops:
2-
Exclude:
3-
- 'spec/**/*'
4-
TargetRubyVersion: 2.4
5-
6-
Rails:
7-
Enabled: true
8-
9-
HasAndBelongsToMany:
10-
Enabled: false
2+
DisplayCopNames: true
3+
DisplayStyleGuide: true
4+
StyleGuideCopsOnly: true
5+
TargetRubyVersion: 2.4
116

127
Metrics/LineLength:
138
Max: 120
149

15-
Metrics/AbcSize:
16-
Enabled: false
17-
18-
Metrics/PerceivedComplexity:
19-
Enabled: false
20-
21-
Metrics/ClassLength:
22-
Enabled: false
23-
24-
Metrics/ModuleLength:
25-
Enabled: false
26-
27-
Metrics/MethodLength:
28-
Max: 35
29-
30-
Rails/TimeZone:
31-
Enabled: false
32-
33-
Rails/Date:
34-
Enabled: false
35-
36-
Metrics/CyclomaticComplexity:
37-
Enabled: false
38-
3910
Documentation:
4011
Enabled: false
4112

42-
ClassAndModuleChildren:
43-
Enabled: false
44-
4513
FrozenStringLiteralComment:
4614
Enabled: false
4715

48-
Performance/TimesMap:
16+
Style/FileName:
4917
Enabled: false
18+

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
source "https://rubygems.org"
1+
source 'https://rubygems.org'
22

33
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
44

Gemfile.lock

+12-13
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ PATH
22
remote: .
33
specs:
44
api_struct (0.1.0)
5-
dry-configurable (>= 0.7)
6-
dry-monads (>= 0.3.1)
5+
dry-configurable (~> 0.7.0)
6+
dry-monads (~> 0.3.1)
77
hashie (~> 3.5, >= 3.5.6)
88
http (>= 2.0.3)
99

@@ -24,8 +24,8 @@ GEM
2424
dry-core (0.4.1)
2525
concurrent-ruby (~> 1.0)
2626
dry-equalizer (0.2.0)
27-
dry-monads (0.4.0)
28-
dry-core (~> 0.3, >= 0.3.3)
27+
dry-monads (0.3.1)
28+
dry-core
2929
dry-equalizer
3030
hashie (3.5.6)
3131
http (3.0.0)
@@ -49,8 +49,7 @@ GEM
4949
byebug (~> 9.1)
5050
pry (~> 0.10)
5151
public_suffix (3.0.1)
52-
rainbow (2.2.2)
53-
rake
52+
rainbow (3.0.0)
5453
rake (12.3.0)
5554
rspec (3.7.0)
5655
rspec-core (~> 3.7.0)
@@ -65,11 +64,11 @@ GEM
6564
diff-lcs (>= 1.2.0, < 2.0)
6665
rspec-support (~> 3.7.0)
6766
rspec-support (3.7.0)
68-
rubocop (0.50.0)
67+
rubocop (0.52.0)
6968
parallel (~> 1.10)
70-
parser (>= 2.3.3.1, < 3.0)
69+
parser (>= 2.4.0.2, < 3.0)
7170
powerpack (~> 0.1)
72-
rainbow (>= 2.2.2, < 3.0)
71+
rainbow (>= 2.2.2, < 4.0)
7372
ruby-progressbar (~> 1.7)
7473
unicode-display_width (~> 1.0, >= 1.0.1)
7574
ruby-progressbar (1.9.0)
@@ -84,10 +83,10 @@ PLATFORMS
8483
DEPENDENCIES
8584
api_struct!
8685
bundler (~> 1.14)
87-
pry-byebug
88-
rake (~> 12.0)
89-
rspec (>= 3.0)
90-
rubocop (~> 0.50.0)
86+
pry-byebug (~> 3.5, >= 3.5.1)
87+
rake (~> 12.3)
88+
rspec (~> 3.7)
89+
rubocop (~> 0.52.0)
9190

9291
BUNDLED WITH
9392
1.16.0

Rakefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
require "bundler/gem_tasks"
2-
require "rspec/core/rake_task"
1+
require 'bundler/gem_tasks'
2+
require 'rspec/core/rake_task'
33

44
RSpec::Core::RakeTask.new(:spec)
55

6-
task :default => :spec
6+
task default: :spec

api_struct.gemspec

+11-11
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@ require 'api_struct/version'
55
Gem::Specification.new do |spec|
66
spec.name = 'api_struct'
77
spec.version = ApiStruct::VERSION
8-
spec.authors = ['bezrukavyi', 'andy1341']
9-
8+
spec.authors = %w[bezrukavyi andy1341 kirillshevch]
9+
1010

11-
spec.summary = 'Api entities'
12-
spec.description = 'Api entities'
13-
spec.homepage = 'https://github.com/bezrukavyi'
11+
spec.summary = 'API wrapper builder with response serialization'
12+
spec.description = spec.description
13+
spec.homepage = 'https://github.com/rubygarage/api_struct'
1414
spec.license = 'MIT'
1515

1616
spec.files = `git ls-files -z`.split("\x0")
1717
spec.bindir = 'exe'
1818
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
1919
spec.require_paths = ['lib']
2020

21-
spec.add_dependency 'dry-monads', '>= 0.3.1'
22-
spec.add_dependency 'dry-configurable', '>= 0.7'
21+
spec.add_dependency 'dry-monads', '~> 0.3.1'
22+
spec.add_dependency 'dry-configurable', '~> 0.7.0'
2323
spec.add_dependency 'http', '>= 2.0.3'
2424
spec.add_dependency 'hashie', '~> 3.5', '>= 3.5.6'
2525

2626
spec.add_development_dependency 'bundler', '~> 1.14'
27-
spec.add_development_dependency 'pry-byebug'
28-
spec.add_development_dependency 'rake', '~> 12.0'
29-
spec.add_development_dependency 'rspec', '>= 3.0'
30-
spec.add_development_dependency 'rubocop', '~> 0.50.0'
27+
spec.add_development_dependency 'pry-byebug', '~> 3.5', '>= 3.5.1'
28+
spec.add_development_dependency 'rake', '~> 12.3'
29+
spec.add_development_dependency 'rspec', '~> 3.7'
30+
spec.add_development_dependency 'rubocop', '~> 0.52.0'
3131
end

bin/console

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env ruby
22

3-
require "bundler/setup"
4-
require "api_struct"
3+
require 'bundler/setup'
4+
require 'api_struct'
55

66
# You can add fixtures and/or initialization code here to make experimenting
77
# with your gem easier. You can also use a different console, if you like.
@@ -10,5 +10,5 @@ require "api_struct"
1010
# require "pry"
1111
# Pry.start
1212

13-
require "irb"
13+
require 'irb'
1414
IRB.start(__FILE__)

circle.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
machine:
2+
ruby:
3+
version: 2.4.2

lib/api_struct.rb

-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@
1414
require_relative 'api_struct/errors/entity'
1515

1616
module ApiStruct
17-
1817
end

lib/api_struct/extensions/json_api.rb

-9
This file was deleted.

lib/api_struct/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module ApiStruct
2-
VERSION = "0.1.0"
2+
VERSION = '0.1.0'
33
end

spec/api_entities_spec.rb

-9
This file was deleted.

spec/spec_helper.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
require "bundler/setup"
2-
require "api_struct"
1+
require 'bundler/setup'
2+
require 'api_struct'
33

44
RSpec.configure do |config|
55
# Enable flags like --only-failures and --next-failure
6-
config.example_status_persistence_file_path = ".rspec_status"
6+
config.example_status_persistence_file_path = '.rspec_status'
77

88
# Disable RSpec exposing methods globally on `Module` and `main`
99
config.disable_monkey_patching!

0 commit comments

Comments
 (0)