check_super_calls 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/check_super_calls/languages/swift.rb +1 -1
- data/lib/check_super_calls/version.rb +1 -1
- metadata +2 -13
- data/.gitignore +0 -8
- data/Gemfile +0 -6
- data/README.md +0 -35
- data/Rakefile +0 -19
- data/check_super_calls.gemspec +0 -41
- data/fixtures/ObjC/compliantFile.m +0 -44
- data/fixtures/ObjC/file.h +0 -0
- data/fixtures/ObjC/offendingFile.m +0 -28
- data/fixtures/swift/compliantFile.swift +0 -32
- data/fixtures/swift/nestedDirectory/anotherFile.swift +0 -8
- data/fixtures/swift/offendingFile.swift +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fffeebd6de7104804fb82b76fafe36caf753ad38
|
4
|
+
data.tar.gz: 327165d03ff3efc22a7505cfc74474f96623417d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3ec8b1c91f7f853570449e0af86e25227072408e749a2a18766ae5f0bd06188443a5529c2c9f352167f22fd5e8a27c5535735ee5e063055395a7e0a77d53f50
|
7
|
+
data.tar.gz: 3a7d7d2f4a8a71c673dbc0ce6a6edb65c135040c0c3b2400fcdc9f8a47a70c25b85d1d8f0ff5c3b21c18947a891f4a7292312f2cb5f0ef8cba7c19c98bdec195
|
@@ -86,7 +86,7 @@ class Swift
|
|
86
86
|
regex_any_spaces_between(
|
87
87
|
['override', 'init', '\(nibName nibNameOrNil: String\?,' \
|
88
88
|
' bundle nibBundleOrNil: Bundle\?\) \{',
|
89
|
-
'super', '.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)']
|
89
|
+
'super', '.init\(nibName: nibNameOrNil, bundle: nibBundleOrNil\)']
|
90
90
|
)
|
91
91
|
)
|
92
92
|
]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: check_super_calls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrei Nagy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -61,20 +61,9 @@ executables:
|
|
61
61
|
extensions: []
|
62
62
|
extra_rdoc_files: []
|
63
63
|
files:
|
64
|
-
- ".gitignore"
|
65
|
-
- Gemfile
|
66
|
-
- README.md
|
67
|
-
- Rakefile
|
68
64
|
- bin/check-super-calls
|
69
65
|
- bin/console
|
70
66
|
- bin/setup
|
71
|
-
- check_super_calls.gemspec
|
72
|
-
- fixtures/ObjC/compliantFile.m
|
73
|
-
- fixtures/ObjC/file.h
|
74
|
-
- fixtures/ObjC/offendingFile.m
|
75
|
-
- fixtures/swift/compliantFile.swift
|
76
|
-
- fixtures/swift/nestedDirectory/anotherFile.swift
|
77
|
-
- fixtures/swift/offendingFile.swift
|
78
67
|
- lib/check_super_calls.rb
|
79
68
|
- lib/check_super_calls/arguments_parser.rb
|
80
69
|
- lib/check_super_calls/helpers.rb
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/README.md
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
# CheckSuperCalls
|
2
|
-
|
3
|
-
Script that checks if Swift and Objective C subclasses call specific superclass methods.
|
4
|
-
|
5
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/check_super_calls`. To experiment with that code, run `bin/console` for an interactive prompt.
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'check_super_calls'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install check_super_calls
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
Run check-super-calls path/to/project/directory.
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/check_super_calls.
|
data/Rakefile
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
require 'bundler/gem_tasks'
|
2
|
-
require 'rake/testtask'
|
3
|
-
|
4
|
-
desc 'Make tests output references'
|
5
|
-
task :make_test_references do
|
6
|
-
require_relative 'test/make_test_references'
|
7
|
-
make_test_references
|
8
|
-
puts
|
9
|
-
puts 'Finished generating test references, inspect them for correctness.'
|
10
|
-
puts
|
11
|
-
end
|
12
|
-
|
13
|
-
Rake::TestTask.new(:test) do |t|
|
14
|
-
t.libs << 'test'
|
15
|
-
t.libs << 'lib'
|
16
|
-
t.test_files = FileList['test/**/*_test.rb']
|
17
|
-
end
|
18
|
-
|
19
|
-
task default: :test
|
data/check_super_calls.gemspec
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
lib = File.expand_path('lib', __dir__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require 'check_super_calls/version'
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = 'check_super_calls'
|
7
|
-
spec.version = CheckSuperCalls::VERSION
|
8
|
-
spec.authors = ['Andrei Nagy']
|
9
|
-
spec.email = ['nagy.andrei@gmail.com']
|
10
|
-
|
11
|
-
spec.summary = 'Check calls to superclasses in iOS code.'
|
12
|
-
spec.description = 'Script that checks if Swift and Objective C subclasses call specific superclass methods.'
|
13
|
-
spec.homepage = 'https://github.com/andreinagy/check-super-calls'
|
14
|
-
spec.license = 'MIT'
|
15
|
-
|
16
|
-
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
|
-
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
|
-
if spec.respond_to?(:metadata)
|
19
|
-
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
20
|
-
|
21
|
-
# spec.metadata['homepage_uri'] = spec.homepage
|
22
|
-
# spec.metadata["source_code_uri"] = "Put your gem's public repo URL here."
|
23
|
-
# spec.metadata["changelog_uri"] = "Put your gem's CHANGELOG.md URL here."
|
24
|
-
else
|
25
|
-
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
26
|
-
'public gem pushes.'
|
27
|
-
end
|
28
|
-
|
29
|
-
# Specify which files should be added to the gem when it is released.
|
30
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
31
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
32
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
33
|
-
end
|
34
|
-
spec.bindir = 'bin'
|
35
|
-
spec.executables = 'check-super-calls'
|
36
|
-
spec.require_paths = ['lib']
|
37
|
-
|
38
|
-
spec.add_development_dependency 'bundler', '~> 2.0'
|
39
|
-
spec.add_development_dependency 'minitest', '~> 5.0'
|
40
|
-
spec.add_development_dependency 'rake', '~> 10.0'
|
41
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
|
2
|
-
- (void)viewDidLoad {
|
3
|
-
[super viewDidLoad];
|
4
|
-
}
|
5
|
-
|
6
|
-
- (void)viewWillAppear:(BOOL)animated {
|
7
|
-
[super viewWillAppear:animated];
|
8
|
-
}
|
9
|
-
|
10
|
-
- (void)viewWillDisappear:(BOOL)animated {
|
11
|
-
[super viewWillDisappear:animated];
|
12
|
-
}
|
13
|
-
|
14
|
-
- (void)viewDidAppear:(BOOL)animated {
|
15
|
-
[super viewDidAppear:animated];
|
16
|
-
}
|
17
|
-
|
18
|
-
- (void)viewDidDisappear:(BOOL)animated {
|
19
|
-
[super viewDidDisappear:animated];
|
20
|
-
}
|
21
|
-
|
22
|
-
- (void)viewWillLayoutSubviews {
|
23
|
-
[super viewWillLayoutSubviews];
|
24
|
-
}
|
25
|
-
|
26
|
-
- (void)viewDidLayoutSubviews {
|
27
|
-
[super viewDidLayoutSubviews];
|
28
|
-
}
|
29
|
-
|
30
|
-
- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
|
31
|
-
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
32
|
-
if (self) {
|
33
|
-
|
34
|
-
}
|
35
|
-
return self;
|
36
|
-
}
|
37
|
-
|
38
|
-
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
|
39
|
-
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
40
|
-
if (self) {
|
41
|
-
|
42
|
-
}
|
43
|
-
return self;
|
44
|
-
}
|
data/fixtures/ObjC/file.h
DELETED
File without changes
|
@@ -1,28 +0,0 @@
|
|
1
|
-
|
2
|
-
- (void)viewDidLoad {
|
3
|
-
}
|
4
|
-
|
5
|
-
- (void)viewWillAppear:(BOOL)animated {
|
6
|
-
}
|
7
|
-
|
8
|
-
- (void)viewWillDisappear:(BOOL)animated {
|
9
|
-
}
|
10
|
-
|
11
|
-
- (void)viewDidAppear:(BOOL)animated {
|
12
|
-
}
|
13
|
-
|
14
|
-
- (void)viewDidDisappear:(BOOL)animated {
|
15
|
-
}
|
16
|
-
|
17
|
-
- (void)viewWillLayoutSubviews {
|
18
|
-
}
|
19
|
-
|
20
|
-
- (void)viewDidLayoutSubviews {
|
21
|
-
}
|
22
|
-
|
23
|
-
- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
|
24
|
-
if (self) {
|
25
|
-
|
26
|
-
}
|
27
|
-
return self;
|
28
|
-
}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
|
2
|
-
override func viewDidLoad() {
|
3
|
-
super.viewDidLoad()
|
4
|
-
}
|
5
|
-
|
6
|
-
override func viewWillAppear(_ animated: Bool) {
|
7
|
-
super.viewWillAppear(animated)
|
8
|
-
}
|
9
|
-
|
10
|
-
override func viewWillDisappear(_ animated: Bool) {
|
11
|
-
super.viewWillDisappear(animated)
|
12
|
-
}
|
13
|
-
|
14
|
-
override func viewDidAppear(_ animated: Bool) {
|
15
|
-
super.viewDidAppear(animated)
|
16
|
-
}
|
17
|
-
|
18
|
-
override func viewDidDisappear(_ animated: Bool) {
|
19
|
-
super.viewDidDisappear(animated)
|
20
|
-
}
|
21
|
-
|
22
|
-
override func viewWillLayoutSubviews() {
|
23
|
-
super.viewWillLayoutSubviews()
|
24
|
-
}
|
25
|
-
|
26
|
-
override func viewDidLayoutSubviews() {
|
27
|
-
super.viewDidLayoutSubviews()
|
28
|
-
}
|
29
|
-
|
30
|
-
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
|
31
|
-
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
|
32
|
-
}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
override func viewDidLoad() {
|
2
|
-
}
|
3
|
-
|
4
|
-
override func viewWillAppear(_ animated: Bool) {
|
5
|
-
}
|
6
|
-
|
7
|
-
override func viewWillDisappear(_ animated: Bool) {
|
8
|
-
}
|
9
|
-
|
10
|
-
override func viewDidAppear(_ animated: Bool) {
|
11
|
-
}
|
12
|
-
|
13
|
-
override func viewDidDisappear(_ animated: Bool) {
|
14
|
-
}
|
15
|
-
|
16
|
-
override func viewWillLayoutSubviews() {
|
17
|
-
}
|
18
|
-
|
19
|
-
override func viewDidLayoutSubviews() {
|
20
|
-
}
|
21
|
-
|
22
|
-
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
|
23
|
-
}
|