-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from kyledecot/kd-rubocop
Adds Rubocop
- Loading branch information
Showing
23 changed files
with
222 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# The behavior of RuboCop can be controlled via the .rubocop.yml | ||
# configuration file. It makes it possible to enable/disable | ||
# certain cops (checks) and to alter their behavior if they accept | ||
# any parameters. The file can be placed either in your home | ||
# directory or in some project directory. | ||
# | ||
# RuboCop will start looking for the configuration file in the directory | ||
# where the inspected file is and continue its way up to the root directory. | ||
# | ||
# See https://github.com/rubocop-hq/rubocop/blob/master/manual/configuration.md | ||
# | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
Metrics/LineLength: | ||
Enabled: false | ||
|
||
Style/StructInheritance: | ||
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
source "https://rubygems.org" | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,37 @@ | ||
# frozen_string_literal: true | ||
|
||
lib = File.expand_path("../lib", __FILE__) | ||
lib = File.expand_path('lib', __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require "app_store_connect/version" | ||
require 'app_store_connect/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "app_store_connect" | ||
spec.name = 'app_store_connect' | ||
spec.version = AppStoreConnect::VERSION | ||
spec.authors = ["Kyle Decot"] | ||
spec.email = ["kyle.decot@icloud.com"] | ||
spec.authors = ['Kyle Decot'] | ||
spec.email = ['kyle.decot@icloud.com'] | ||
|
||
spec.summary = %q{Write a short summary, because RubyGems requires one.} | ||
spec.summary = 'Write a short summary, because RubyGems requires one.' | ||
# spec.description = %q{TODO: Write a longer description or delete this line.} | ||
spec.homepage = "https://github.com/kyledecot/app_store_connect" | ||
spec.license = "MIT" | ||
spec.homepage = 'https://github.com/kyledecot/app_store_connect' | ||
spec.license = 'MIT' | ||
|
||
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do | ||
spec.files = Dir.chdir(File.expand_path(__dir__)) do | ||
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } | ||
end | ||
|
||
spec.bindir = "exe" | ||
spec.bindir = 'exe' | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ["lib"] | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_runtime_dependency "httparty", "~> 0.16" | ||
spec.add_runtime_dependency "jwt", "~> 2.1" | ||
spec.add_runtime_dependency "gli", "~> 2.17" | ||
spec.add_runtime_dependency "activesupport", "~> 5.2.3" | ||
spec.add_runtime_dependency 'activesupport', '~> 5.2.3' | ||
spec.add_runtime_dependency 'gli', '~> 2.17' | ||
spec.add_runtime_dependency 'httparty', '~> 0.16' | ||
spec.add_runtime_dependency 'jwt', '~> 2.1' | ||
|
||
spec.add_development_dependency "bundler", "~> 2.0" | ||
spec.add_development_dependency "rake", "~> 10.0" | ||
spec.add_development_dependency "rspec", "~> 3.0" | ||
spec.add_development_dependency "pry", "~> 0.12" | ||
spec.add_development_dependency "factory_bot", "~> 5.0.2" | ||
spec.add_development_dependency 'bundler', '~> 2.0' | ||
spec.add_development_dependency 'factory_bot', '~> 5.0.2' | ||
spec.add_development_dependency 'pry', '~> 0.12' | ||
spec.add_development_dependency 'rake', '~> 10.0' | ||
spec.add_development_dependency 'rspec', '~> 3.0' | ||
spec.add_development_dependency 'rubocop', '~> 0.71.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
require "bundler/setup" | ||
require "app_store_connect" | ||
require "pry" | ||
require 'bundler/setup' | ||
require 'app_store_connect' | ||
require 'pry' | ||
|
||
Pry.start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#! /usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
require 'app_store_connect' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
require "jwt" | ||
require "httparty" | ||
# frozen_string_literal: true | ||
|
||
require "app_store_connect/authorization" | ||
require "app_store_connect/client" | ||
require "app_store_connect/cli" | ||
require "app_store_connect/bundle_id_create_request" | ||
require "app_store_connect/user_invitation_create_request" | ||
require "app_store_connect/version" | ||
require 'jwt' | ||
require 'httparty' | ||
|
||
require 'app_store_connect/authorization' | ||
require 'app_store_connect/client' | ||
require 'app_store_connect/cli' | ||
require 'app_store_connect/bundle_id_create_request' | ||
require 'app_store_connect/user_invitation_create_request' | ||
require 'app_store_connect/version' | ||
|
||
module AppStoreConnect | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
require_relative "./bundle_id_create_request/data" | ||
# frozen_string_literal: true | ||
|
||
require_relative './bundle_id_create_request/data' | ||
|
||
module AppStoreConnect | ||
class BundleIdCreateRequest | ||
attr_reader :data | ||
|
||
def initialize(*args) | ||
@data = Data.new(*args) | ||
end | ||
end | ||
|
||
def to_hash | ||
def to_hash | ||
{ | ||
data: data.to_hash | ||
} | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
require_relative "./data/attributes" | ||
# frozen_string_literal: true | ||
|
||
require_relative './data/attributes' | ||
|
||
module AppStoreConnect | ||
class BundleIdCreateRequest | ||
class Data | ||
TYPE = "bundleIds" | ||
class Data | ||
TYPE = 'bundleIds' | ||
|
||
attr_reader :attributes | ||
|
||
def initialize(*args) | ||
@attributes = Attributes.new(*args) | ||
end | ||
end | ||
|
||
def type | ||
def type | ||
TYPE | ||
end | ||
end | ||
|
||
def to_hash | ||
{ | ||
attributes: attributes.to_hash, | ||
type: type | ||
} | ||
end | ||
{ | ||
attributes: attributes.to_hash, | ||
type: type | ||
} | ||
end | ||
end | ||
end | ||
end | ||
end |
24 changes: 13 additions & 11 deletions
24
lib/app_store_connect/bundle_id_create_request/data/attributes.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
# frozen_string_literal: true | ||
|
||
module AppStoreConnect | ||
class BundleIdCreateRequest | ||
class Data | ||
class BundleIdCreateRequest | ||
class Data | ||
class Attributes | ||
attr_accessor :identifier, :name, :platform, :seed_id | ||
|
||
def initialize(identifier:, name:, platform:, seed_id:) | ||
self.identifier = identifier | ||
self.name = name | ||
self.platform = platform | ||
self.seed_id = seed_id | ||
end | ||
end | ||
|
||
def to_hash | ||
{ | ||
identifier: identifier, | ||
name: name, | ||
name: name, | ||
platform: platform, | ||
seed_id: seed_id | ||
} | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.