Skip to content

Commit

Permalink
Fix pronto warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
İsmail Akbudak committed Feb 28, 2018
1 parent 80ef842 commit eb039a1
Show file tree
Hide file tree
Showing 12 changed files with 190 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .fasterer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
speedups:
hash_merge_bang_vs_hash_brackets: true

exclude_paths:
- 'tmp/**/*'
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@
.idea/

# Result package
*.gem
*.gem

# Ignore secret files
.pronto.yml
7 changes: 7 additions & 0 deletions .poper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
character_limit:
enabled: true
number: 72

summary_character_limit:
enabled: true
number: 50
19 changes: 19 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
AllCops:
Include:
- 'Rakefile'
- 'Gemfile'
Exclude:
- tmp/**/*

Documentation:
Enabled: false

Metrics/LineLength:
Max: 110
Exclude:
- 'Gemfile'
- 'smartcat_sdk.gemspec'

Metrics/MethodLength:
CountComments: false
Max: 10
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "https://rubygems.org"
source 'https://rubygems.org'

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

# Specify your gem's dependencies in smartcat_sdk.gemspec
gemspec
132 changes: 132 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
PATH
remote: .
specs:
smartcat_sdk (0.1.0)

GEM
remote: https://rubygems.org/
specs:
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
ast (2.4.0)
axiom-types (0.1.1)
descendants_tracker (~> 0.0.4)
ice_nine (~> 0.11.0)
thread_safe (~> 0.3, >= 0.3.1)
codeclimate-engine-rb (0.4.1)
virtus (~> 1.0)
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
colorize (0.8.1)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
diff-lcs (1.3)
equalizer (0.0.11)
erubis (2.7.0)
faraday (0.14.0)
multipart-post (>= 1.2, < 3)
fasterer (0.4.0)
colorize (~> 0.7)
ruby_parser (~> 3.9)
flay (2.10.0)
erubis (~> 2.7.0)
path_expander (~> 1.0)
ruby_parser (~> 3.0)
sexp_processor (~> 4.0)
gitlab (4.3.0)
httparty
terminal-table
httparty (0.15.6)
multi_xml (>= 0.5.2)
ice_nine (0.11.2)
multi_xml (0.6.0)
multipart-post (2.0.0)
octokit (4.8.0)
sawyer (~> 0.8.0, >= 0.5.3)
parallel (1.12.1)
parser (2.4.0.2)
ast (~> 2.3)
path_expander (1.0.2)
powerpack (0.1.1)
pronto (0.9.5)
gitlab (~> 4.0, >= 4.0.0)
httparty (>= 0.13.7)
octokit (~> 4.7, >= 4.7.0)
rainbow (~> 2.1)
rugged (~> 0.24, >= 0.23.0)
thor (~> 0.19.0)
pronto-fasterer (0.9.0)
fasterer (~> 0.3, >= 0.3.0)
pronto (~> 0.9.0)
pronto-flay (0.9.0)
flay (~> 2.8)
pronto (~> 0.9.0)
pronto-reek (0.9.0)
pronto (~> 0.9.0)
reek (~> 4.2)
pronto-rubocop (0.9.0)
pronto (~> 0.9.0)
rubocop (~> 0.38, >= 0.35.0)
public_suffix (3.0.1)
rainbow (2.2.2)
rake
rake (10.4.2)
reek (4.7.3)
codeclimate-engine-rb (~> 0.4.0)
parser (>= 2.4.0.0, < 2.5)
rainbow (~> 2.0)
rspec (3.5.0)
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
rspec-mocks (~> 3.5.0)
rspec-core (3.5.4)
rspec-support (~> 3.5.0)
rspec-expectations (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-mocks (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-support (3.5.0)
rubocop (0.52.1)
parallel (~> 1.10)
parser (>= 2.4.0.2, < 3.0)
powerpack (~> 0.1)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.9.0)
ruby_parser (3.10.1)
sexp_processor (~> 4.9)
rugged (0.26.0)
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0)
sexp_processor (4.10.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thor (0.19.4)
thread_safe (0.3.6)
unicode-display_width (1.3.0)
virtus (1.0.5)
axiom-types (~> 0.1)
coercible (~> 1.0)
descendants_tracker (~> 0.0, >= 0.0.3)
equalizer (~> 0.0, >= 0.0.9)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.16)
pronto (~> 0.9.5)
pronto-fasterer (~> 0.9.0)
pronto-flay (~> 0.9.0)
pronto-reek (~> 0.9.0)
pronto-rubocop (~> 0.9.0)
rake (~> 10.0)
rspec (~> 3.5)
smartcat_sdk!

BUNDLED WITH
1.16.1
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

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

task :default => :spec
task default: :spec
6 changes: 3 additions & 3 deletions bin/console
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

require "bundler/setup"
require "smartcat_sdk"
require 'bundler/setup'
require 'smartcat_sdk'

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

require "irb"
require 'irb'
IRB.start(__FILE__)
9 changes: 9 additions & 0 deletions config.reek
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
DuplicateMethodCall:
enabled: false

FeatureEnvy:
enabled: false

TooManyStatements:
enabled: true
max_statements: 6
2 changes: 1 addition & 1 deletion lib/smartcat_sdk.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "smartcat_sdk/version"
require 'smartcat_sdk/version'

module SmartcatSdk
# Your code goes here...
Expand Down
4 changes: 2 additions & 2 deletions spec/smartcat_sdk_spec.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
RSpec.describe SmartcatSdk do
it "has a version number" do
it 'has a version number' do
expect(SmartcatSdk::VERSION).not_to be nil
end

it "does something useful" do
it 'does something useful' do
expect(false).to eq(true)
end
end
6 changes: 3 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require "bundler/setup"
require "smartcat_sdk"
require 'bundler/setup'
require 'smartcat_sdk'

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

# Disable RSpec exposing methods globally on `Module` and `main`
config.disable_monkey_patching!
Expand Down

0 comments on commit eb039a1

Please sign in to comment.