Skip to content

Commit b5eef9e

Browse files
committed
Update gems and RubyMotion, add rubocop
1 parent 1c0c92f commit b5eef9e

16 files changed

+198
-130
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.repl_history
22
build
3+
build-log
34
tags
45
app/pixate_code.rb
56
resources/*.nib
@@ -12,6 +13,7 @@ nbproject
1213
#*#
1314
*~
1415
*.sw[po]
16+
.bundle
1517
.eprj
1618
.sass-cache
1719
.idea

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
inherit_from: .rubocop_todo.yml
2+
3+
require: rubocop-performance

.rubocop_todo.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# This configuration was generated by
2+
# `rubocop --auto-gen-config`
3+
# on 2022-06-19 15:04:54 UTC using RuboCop version 1.30.1.
4+
# The point is for the user to remove these configuration records
5+
# one by one as the offenses are removed from the code base.
6+
# Note that changes in the inspected code, or installation of new
7+
# versions of RuboCop, may require this file to be generated again.
8+
9+
# Offense count: 1
10+
# Configuration parameters: AllowComments, AllowNil.
11+
Lint/SuppressedException:
12+
Exclude:
13+
- 'Rakefile'
14+
15+
# Offense count: 3
16+
Lint/UselessAssignment:
17+
Exclude:
18+
- 'app/destination_view.rb'
19+
20+
# Offense count: 4
21+
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
22+
Metrics/AbcSize:
23+
Max: 83
24+
25+
# Offense count: 3
26+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
27+
Metrics/MethodLength:
28+
Max: 74
29+
30+
# Offense count: 14
31+
# Configuration parameters: EnforcedStyle, AllowedPatterns, IgnoredPatterns.
32+
# SupportedStyles: snake_case, camelCase
33+
Naming/MethodName:
34+
Exclude:
35+
- 'app/app_delegate.rb'
36+
- 'app/destination_view.rb'
37+
- 'app/main_controller.rb'
38+
- 'app/menu.rb'
39+
40+
# Offense count: 7
41+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
42+
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
43+
Naming/MethodParameterName:
44+
Exclude:
45+
- 'app/destination_view.rb'
46+
- 'app/menu.rb'
47+
48+
# Offense count: 24
49+
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns.
50+
# SupportedStyles: snake_case, camelCase
51+
Naming/VariableName:
52+
Exclude:
53+
- 'app/destination_view.rb'
54+
- 'app/menu.rb'
55+
56+
# Offense count: 5
57+
# Configuration parameters: AllowedConstants.
58+
Style/Documentation:
59+
Exclude:
60+
- 'spec/**/*'
61+
- 'test/**/*'
62+
- 'app/main_controller.rb'
63+
- 'app/main_layout.rb'
64+
- 'app/menu.rb'
65+
- 'app/window_controller.rb'
66+
- 'app/window_layout.rb'

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.7.5

Gemfile

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1+
# frozen_string_literal: true
2+
13
source 'https://rubygems.org'
24

35
gem 'rake'
4-
# Add your dependencies here:
56

6-
gem 'motion_print', '~> 1.2.0'
7-
gem 'motion-cocoapods', '~> 1.8'
8-
gem 'bubble-wrap', '~> 1.9'
9-
gem 'sugarcube', '~> 3.4'
107
gem 'motion-kit', '~> 1.1'
8+
gem 'motion_print', '~> 1.2.0'
9+
gem 'sugarcube', '~> 4.0'
10+
11+
gem 'pry-byebug', '~> 3.9.0', platform: :mri
12+
gem 'rubocop'
13+
gem 'rubocop-performance'
14+
gem 'rubocop-rake'
15+
gem 'rubocop-rspec'
1116

1217
group :spec do
13-
gem 'bacon-expect'
18+
gem 'bacon-expect', git: 'https://github.com/eamonn-webster/bacon-expect'
1419
end
15-

Gemfile.lock

Lines changed: 51 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,69 @@
1+
GIT
2+
remote: https://github.com/eamonn-webster/bacon-expect
3+
revision: a54805ca2b8cdbcbb81a298fc3c1d4dff38d2a80
4+
specs:
5+
bacon-expect (1.0.3)
6+
17
GEM
28
remote: https://rubygems.org/
39
specs:
4-
CFPropertyList (2.3.5)
5-
activesupport (4.2.9)
6-
i18n (~> 0.7)
7-
minitest (~> 5.1)
8-
thread_safe (~> 0.3, >= 0.3.4)
9-
tzinfo (~> 1.1)
10-
bacon-expect (1.0.3)
11-
bubble-wrap (1.9.6)
12-
claide (1.0.2)
13-
cocoapods (1.3.1)
14-
activesupport (>= 4.0.2, < 5)
15-
claide (>= 1.0.2, < 2.0)
16-
cocoapods-core (= 1.3.1)
17-
cocoapods-deintegrate (>= 1.0.1, < 2.0)
18-
cocoapods-downloader (>= 1.1.3, < 2.0)
19-
cocoapods-plugins (>= 1.0.0, < 2.0)
20-
cocoapods-search (>= 1.0.0, < 2.0)
21-
cocoapods-stats (>= 1.0.0, < 2.0)
22-
cocoapods-trunk (>= 1.2.0, < 2.0)
23-
cocoapods-try (>= 1.1.0, < 2.0)
24-
colored2 (~> 3.1)
25-
escape (~> 0.0.4)
26-
fourflusher (~> 2.0.1)
27-
gh_inspector (~> 1.0)
28-
molinillo (~> 0.5.7)
29-
nap (~> 1.0)
30-
ruby-macho (~> 1.1)
31-
xcodeproj (>= 1.5.1, < 2.0)
32-
cocoapods-core (1.3.1)
33-
activesupport (>= 4.0.2, < 6)
34-
fuzzy_match (~> 2.0.4)
35-
nap (~> 1.0)
36-
cocoapods-deintegrate (1.0.1)
37-
cocoapods-downloader (1.1.3)
38-
cocoapods-plugins (1.0.0)
39-
nap
40-
cocoapods-search (1.0.0)
41-
cocoapods-stats (1.0.0)
42-
cocoapods-trunk (1.2.0)
43-
nap (>= 0.8, < 2.0)
44-
netrc (= 0.7.8)
45-
cocoapods-try (1.1.0)
46-
colored2 (3.1.2)
10+
ast (2.4.2)
11+
byebug (11.1.3)
12+
coderay (1.1.3)
4713
dbt (1.2.0)
48-
escape (0.0.4)
49-
fourflusher (2.0.1)
50-
fuzzy_match (2.0.4)
51-
gh_inspector (1.0.3)
52-
i18n (0.8.6)
53-
minitest (5.10.3)
54-
molinillo (0.5.7)
55-
motion-cocoapods (1.9.0)
56-
cocoapods (>= 1.0.0)
14+
method_source (1.0.0)
5715
motion-kit (1.1.1)
5816
dbt (~> 1.1, >= 1.1.5)
5917
motion_print (1.2.0)
60-
nanaimo (0.2.3)
61-
nap (1.1.0)
62-
netrc (0.7.8)
18+
parallel (1.22.1)
19+
parser (3.1.2.0)
20+
ast (~> 2.4.1)
21+
pry (0.13.1)
22+
coderay (~> 1.1)
23+
method_source (~> 1.0)
24+
pry-byebug (3.9.0)
25+
byebug (~> 11.0)
26+
pry (~> 0.13.0)
27+
rainbow (3.1.1)
6328
rake (12.0.0)
64-
ruby-macho (1.1.0)
65-
sugarcube (3.4.0)
66-
thread_safe (0.3.6)
67-
tzinfo (1.2.3)
68-
thread_safe (~> 0.1)
69-
xcodeproj (1.5.1)
70-
CFPropertyList (~> 2.3.3)
71-
claide (>= 1.0.2, < 2.0)
72-
colored2 (~> 3.1)
73-
nanaimo (~> 0.2.3)
29+
regexp_parser (2.5.0)
30+
rexml (3.2.5)
31+
rubocop (1.30.1)
32+
parallel (~> 1.10)
33+
parser (>= 3.1.0.0)
34+
rainbow (>= 2.2.2, < 4.0)
35+
regexp_parser (>= 1.8, < 3.0)
36+
rexml (>= 3.2.5, < 4.0)
37+
rubocop-ast (>= 1.18.0, < 2.0)
38+
ruby-progressbar (~> 1.7)
39+
unicode-display_width (>= 1.4.0, < 3.0)
40+
rubocop-ast (1.18.0)
41+
parser (>= 3.1.1.0)
42+
rubocop-performance (1.14.2)
43+
rubocop (>= 1.7.0, < 2.0)
44+
rubocop-ast (>= 0.4.0)
45+
rubocop-rake (0.6.0)
46+
rubocop (~> 1.0)
47+
rubocop-rspec (2.11.1)
48+
rubocop (~> 1.19)
49+
ruby-progressbar (1.11.0)
50+
sugarcube (4.0.0)
51+
unicode-display_width (2.1.0)
7452

7553
PLATFORMS
7654
ruby
7755

7856
DEPENDENCIES
79-
bacon-expect
80-
bubble-wrap (~> 1.9)
81-
motion-cocoapods (~> 1.8)
57+
bacon-expect!
8258
motion-kit (~> 1.1)
8359
motion_print (~> 1.2.0)
60+
pry-byebug (~> 3.9.0)
8461
rake
85-
sugarcube (~> 3.4)
62+
rubocop
63+
rubocop-performance
64+
rubocop-rake
65+
rubocop-rspec
66+
sugarcube (~> 4.0)
8667

8768
BUNDLED WITH
88-
1.14.6
69+
2.3.6

Rakefile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
# -*- coding: utf-8 -*-
2-
$:.unshift("/Library/RubyMotion/lib")
1+
# frozen_string_literal: true
2+
3+
$LOAD_PATH.unshift('/Library/RubyMotion/lib')
4+
$LOAD_PATH.unshift('~/.rubymotion/rubymotion-templates')
35
require 'motion/project/template/osx'
46

57
begin
68
require 'bundler'
7-
Bundler.require
9+
ARGV.join(' ').include?('spec') ? Bundler.require(:default, :spec) : Bundler.require
810
rescue LoadError
911
end
1012

@@ -15,8 +17,8 @@ Motion::Project::App.setup do |app|
1517
app.name = 'dragdrop-tester'
1618
app.identifier = 'com.digitalmoksha.dragdrop-tester'
1719
app.copyright = "Copyright © 2017 digitalMoksha LLC\nAll Rights Reserved"
18-
app.short_version = '0.1' # CFBundleShortVersionString
20+
app.short_version = '0.1' # CFBundleShortVersionString
1921
app.version = `git rev-list --all | wc -l`.strip.to_i.to_s # the build number
20-
app.sdk_version = '10.12'
21-
app.deployment_target = '10.10'
22+
app.sdk_version = '12.3'
23+
app.deployment_target = '10.14'
2224
end

app/app_delegate.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
# frozen_string_literal: true
2+
13
# App for testing different drag/drop scenarios and the information available.
24
#------------------------------------------------------------------------------
35
class AppDelegate
46
#------------------------------------------------------------------------------
5-
def applicationDidFinishLaunching(notification)
7+
def applicationDidFinishLaunching(_notification)
68
buildMenu
79
buildWindow
810
end

0 commit comments

Comments
 (0)