Skip to content

Commit

Permalink
Update gems and RubyMotion, add rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalmoksha committed Jun 19, 2022
1 parent 1c0c92f commit b5eef9e
Show file tree
Hide file tree
Showing 16 changed files with 198 additions and 130 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.repl_history
build
build-log
tags
app/pixate_code.rb
resources/*.nib
Expand All @@ -12,6 +13,7 @@ nbproject
#*#
*~
*.sw[po]
.bundle
.eprj
.sass-cache
.idea
Expand Down
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
inherit_from: .rubocop_todo.yml

require: rubocop-performance
66 changes: 66 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2022-06-19 15:04:54 UTC using RuboCop version 1.30.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
# Configuration parameters: AllowComments, AllowNil.
Lint/SuppressedException:
Exclude:
- 'Rakefile'

# Offense count: 3
Lint/UselessAssignment:
Exclude:
- 'app/destination_view.rb'

# Offense count: 4
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 83

# Offense count: 3
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
Metrics/MethodLength:
Max: 74

# Offense count: 14
# Configuration parameters: EnforcedStyle, AllowedPatterns, IgnoredPatterns.
# SupportedStyles: snake_case, camelCase
Naming/MethodName:
Exclude:
- 'app/app_delegate.rb'
- 'app/destination_view.rb'
- 'app/main_controller.rb'
- 'app/menu.rb'

# Offense count: 7
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
Exclude:
- 'app/destination_view.rb'
- 'app/menu.rb'

# Offense count: 24
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, camelCase
Naming/VariableName:
Exclude:
- 'app/destination_view.rb'
- 'app/menu.rb'

# Offense count: 5
# Configuration parameters: AllowedConstants.
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'app/main_controller.rb'
- 'app/main_layout.rb'
- 'app/menu.rb'
- 'app/window_controller.rb'
- 'app/window_layout.rb'
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.7.5
18 changes: 11 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# frozen_string_literal: true

source 'https://rubygems.org'

gem 'rake'
# Add your dependencies here:

gem 'motion_print', '~> 1.2.0'
gem 'motion-cocoapods', '~> 1.8'
gem 'bubble-wrap', '~> 1.9'
gem 'sugarcube', '~> 3.4'
gem 'motion-kit', '~> 1.1'
gem 'motion_print', '~> 1.2.0'
gem 'sugarcube', '~> 4.0'

gem 'pry-byebug', '~> 3.9.0', platform: :mri
gem 'rubocop'
gem 'rubocop-performance'
gem 'rubocop-rake'
gem 'rubocop-rspec'

group :spec do
gem 'bacon-expect'
gem 'bacon-expect', git: 'https://github.com/eamonn-webster/bacon-expect'
end

121 changes: 51 additions & 70 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,88 +1,69 @@
GIT
remote: https://github.com/eamonn-webster/bacon-expect
revision: a54805ca2b8cdbcbb81a298fc3c1d4dff38d2a80
specs:
bacon-expect (1.0.3)

GEM
remote: https://rubygems.org/
specs:
CFPropertyList (2.3.5)
activesupport (4.2.9)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
bacon-expect (1.0.3)
bubble-wrap (1.9.6)
claide (1.0.2)
cocoapods (1.3.1)
activesupport (>= 4.0.2, < 5)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.3.1)
cocoapods-deintegrate (>= 1.0.1, < 2.0)
cocoapods-downloader (>= 1.1.3, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-stats (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.2.0, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (~> 2.0.1)
gh_inspector (~> 1.0)
molinillo (~> 0.5.7)
nap (~> 1.0)
ruby-macho (~> 1.1)
xcodeproj (>= 1.5.1, < 2.0)
cocoapods-core (1.3.1)
activesupport (>= 4.0.2, < 6)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
cocoapods-deintegrate (1.0.1)
cocoapods-downloader (1.1.3)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-trunk (1.2.0)
nap (>= 0.8, < 2.0)
netrc (= 0.7.8)
cocoapods-try (1.1.0)
colored2 (3.1.2)
ast (2.4.2)
byebug (11.1.3)
coderay (1.1.3)
dbt (1.2.0)
escape (0.0.4)
fourflusher (2.0.1)
fuzzy_match (2.0.4)
gh_inspector (1.0.3)
i18n (0.8.6)
minitest (5.10.3)
molinillo (0.5.7)
motion-cocoapods (1.9.0)
cocoapods (>= 1.0.0)
method_source (1.0.0)
motion-kit (1.1.1)
dbt (~> 1.1, >= 1.1.5)
motion_print (1.2.0)
nanaimo (0.2.3)
nap (1.1.0)
netrc (0.7.8)
parallel (1.22.1)
parser (3.1.2.0)
ast (~> 2.4.1)
pry (0.13.1)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.9.0)
byebug (~> 11.0)
pry (~> 0.13.0)
rainbow (3.1.1)
rake (12.0.0)
ruby-macho (1.1.0)
sugarcube (3.4.0)
thread_safe (0.3.6)
tzinfo (1.2.3)
thread_safe (~> 0.1)
xcodeproj (1.5.1)
CFPropertyList (~> 2.3.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.2.3)
regexp_parser (2.5.0)
rexml (3.2.5)
rubocop (1.30.1)
parallel (~> 1.10)
parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.18.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.18.0)
parser (>= 3.1.1.0)
rubocop-performance (1.14.2)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (2.11.1)
rubocop (~> 1.19)
ruby-progressbar (1.11.0)
sugarcube (4.0.0)
unicode-display_width (2.1.0)

PLATFORMS
ruby

DEPENDENCIES
bacon-expect
bubble-wrap (~> 1.9)
motion-cocoapods (~> 1.8)
bacon-expect!
motion-kit (~> 1.1)
motion_print (~> 1.2.0)
pry-byebug (~> 3.9.0)
rake
sugarcube (~> 3.4)
rubocop
rubocop-performance
rubocop-rake
rubocop-rspec
sugarcube (~> 4.0)

BUNDLED WITH
1.14.6
2.3.6
14 changes: 8 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
# frozen_string_literal: true

$LOAD_PATH.unshift('/Library/RubyMotion/lib')
$LOAD_PATH.unshift('~/.rubymotion/rubymotion-templates')
require 'motion/project/template/osx'

begin
require 'bundler'
Bundler.require
ARGV.join(' ').include?('spec') ? Bundler.require(:default, :spec) : Bundler.require
rescue LoadError
end

Expand All @@ -15,8 +17,8 @@ Motion::Project::App.setup do |app|
app.name = 'dragdrop-tester'
app.identifier = 'com.digitalmoksha.dragdrop-tester'
app.copyright = "Copyright © 2017 digitalMoksha LLC\nAll Rights Reserved"
app.short_version = '0.1' # CFBundleShortVersionString
app.short_version = '0.1' # CFBundleShortVersionString
app.version = `git rev-list --all | wc -l`.strip.to_i.to_s # the build number
app.sdk_version = '10.12'
app.deployment_target = '10.10'
app.sdk_version = '12.3'
app.deployment_target = '10.14'
end
4 changes: 3 additions & 1 deletion app/app_delegate.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# frozen_string_literal: true

# App for testing different drag/drop scenarios and the information available.
#------------------------------------------------------------------------------
class AppDelegate
#------------------------------------------------------------------------------
def applicationDidFinishLaunching(notification)
def applicationDidFinishLaunching(_notification)
buildMenu
buildWindow
end
Expand Down
Loading

0 comments on commit b5eef9e

Please sign in to comment.