Skip to content

Commit f8cfbca

Browse files
committed
force push commit
1 parent 07941b3 commit f8cfbca

18 files changed

+1153
-686
lines changed

.hound.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
rubocop:
2+
config_file: .rubocop.yml
3+
fail_on_violations: true

.rubocop.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# default rule used by hound
2+
# @see https://github.com/houndci/hound/blob/master/.rubocop.yml
3+
require: rubocop-rspec
4+
5+
AllCops:
6+
Exclude:
7+
- spec/spec_helper.rb
8+
- vendor/**/*
9+
- fcm.gemspec
10+
- Gemfile
11+
- Rakefile
12+
- lib/fcm.rb
13+
14+
Metrics/LineLength:
15+
Description: 'Limit lines to 85 characters.'
16+
StyleGuide: '#80-character-limits'
17+
Max: 85
18+
Enabled: true
19+
20+
Metrics/MethodLength:
21+
Description: 'Avoid methods longer than 25 lines of code.'
22+
StyleGuide: '#short-methods'
23+
Max: 25
24+
Enabled: true
25+
26+
Metrics/BlockLength:
27+
Exclude:
28+
- spec/fcm_spec.rb
29+
30+
RSpec/MultipleMemoizedHelpers:
31+
Max: 10
32+
33+
RSpec/ExampleLength:
34+
Max: 15
35+
36+
RSpec/MultipleMemoizedHelpers:
37+
Max: 15

Gemfile

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1-
source "https://rubygems.org"
1+
source 'https://rubygems.org'
22
gemspec
33

4-
gem 'rake'
5-
gem 'rspec'
6-
gem 'webmock'
7-
gem 'ci_reporter_rspec'
4+
gem 'faraday'
5+
gem 'faraday-retry'
6+
gem 'faraday-typhoeus'
87
gem 'googleauth'
8+
gem 'rake'
9+
10+
group :development, :test do
11+
gem 'ci_reporter_rspec'
12+
gem 'pry-byebug'
13+
gem 'rspec'
14+
gem 'rubocop'
15+
gem 'rubocop-rspec', require: false
16+
gem 'simplecov', require: false
17+
gem 'webmock'
18+
gem 'yard'
19+
end

Rakefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
require 'rspec/core/rake_task'
2-
require "bundler/gem_tasks"
3-
require "rake/tasklib"
2+
require 'bundler/gem_tasks'
3+
require 'rake/tasklib'
44
require 'ci/reporter/rake/rspec'
55

6-
RSpec::Core::RakeTask.new(:spec => ["ci:setup:rspec"]) do |t|
6+
RSpec::Core::RakeTask.new(spec: ['ci:setup:rspec']) do |t|
77
t.pattern = 'spec/**/*_spec.rb'
88
end
99

@@ -12,4 +12,4 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
1212
spec.rspec_opts = ['--format documentation']
1313
end
1414

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

fcm.gemspec

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
# -*- encoding: utf-8 -*-
2-
$:.push File.expand_path("../lib", __FILE__)
2+
lib = File.expand_path('../lib', __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
5+
require 'fcm/version'
36

47
Gem::Specification.new do |s|
5-
s.name = "fcm"
6-
s.version = "1.0.8"
8+
s.name = 'fcm'
9+
s.version = Fcm::VERSION
710
s.platform = Gem::Platform::RUBY
8-
s.authors = ["Kashif Rasul", "Shoaib Burq"]
9-
s.email = ["kashif@decision-labs.com", "shoaib@decision-labs.com"]
10-
s.homepage = "https://github.com/decision-labs/fcm"
11+
s.authors = ['Kashif Rasul', 'Shoaib Burq']
12+
s.email = ['kashif@decision-labs.com', 'shoaib@decision-labs.com']
13+
s.homepage = 'https://github.com/decision-labs/fcm'
1114
s.summary = %q{Reliably deliver messages and notifications via FCM}
1215
s.description = %q{fcm provides ruby bindings to Firebase Cloud Messaging (FCM) a cross-platform messaging solution that lets you reliably deliver messages and notifications at no cost to Android, iOS or Web browsers.}
13-
s.license = "MIT"
14-
15-
s.required_ruby_version = ">= 2.4.0"
16+
s.license = 'MIT'
1617

17-
s.files = `git ls-files`.split("\n")
18-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19-
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
20-
s.require_paths = ["lib"]
18+
s.required_ruby_version = '>= 2.4.0'
2119

22-
s.add_runtime_dependency("faraday", ">= 1.0.0", "< 3.0")
23-
s.add_runtime_dependency("googleauth", "~> 1")
20+
s.files = `git ls-files`.split('\n')
21+
s.test_files = `git ls-files -- {test,spec,features}/*`.split('\n')
22+
s.executables = `git ls-files -- bin/*`.split('\n').map { |f| File.basename(f) }
23+
s.require_paths = ['lib']
2424
end

0 commit comments

Comments
 (0)