kintsugi 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/ci.yml +25 -0
- data/.gitignore +56 -0
- data/.rspec +1 -0
- data/.rubocop.yml +221 -0
- data/CONTRIBUTING.md +23 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +51 -0
- data/Rakefile +13 -0
- data/bin/kintsugi +44 -0
- data/kintsugi.gemspec +30 -0
- data/lib/kintsugi.rb +119 -0
- data/lib/kintsugi/apply_change_to_project.rb +592 -0
- data/lib/kintsugi/utils.rb +37 -0
- data/lib/kintsugi/xcodeproj_extensions.rb +31 -0
- data/logo/kintsugi.png +0 -0
- data/spec/be_equivalent_to_project.rb +63 -0
- data/spec/kintsugi_apply_change_to_project_spec.rb +885 -0
- data/spec/spec_helper.rb +105 -0
- metadata +151 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "simplecov"
|
4
|
+
SimpleCov.start do
|
5
|
+
add_filter "spec"
|
6
|
+
end
|
7
|
+
|
8
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
9
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
10
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
11
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
12
|
+
# files.
|
13
|
+
#
|
14
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
15
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
16
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
17
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
18
|
+
# a separate helper file that requires the additional dependencies and performs
|
19
|
+
# the additional setup, and require it from the spec files that actually need
|
20
|
+
# it.
|
21
|
+
#
|
22
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
23
|
+
RSpec.configure do |config|
|
24
|
+
# rspec-expectations config goes here. You can use an alternate
|
25
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
26
|
+
# assertions if you prefer.
|
27
|
+
config.expect_with :rspec do |expectations|
|
28
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
29
|
+
# and `failure_message` of custom matchers include text for helper methods
|
30
|
+
# defined using `chain`, e.g.:
|
31
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
32
|
+
# # => "be bigger than 2 and smaller than 4"
|
33
|
+
# ...rather than:
|
34
|
+
# # => "be bigger than 2"
|
35
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
36
|
+
end
|
37
|
+
|
38
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
39
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
40
|
+
config.mock_with :rspec do |mocks|
|
41
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
42
|
+
# a real object. This is generally recommended, and will default to
|
43
|
+
# `true` in RSpec 4.
|
44
|
+
mocks.verify_partial_doubles = true
|
45
|
+
end
|
46
|
+
|
47
|
+
# This option will default to `:apply_to_host_groups` in RSpec 4 (and will
|
48
|
+
# have no way to turn it off -- the option exists only for backwards
|
49
|
+
# compatibility in RSpec 3). It causes shared context metadata to be
|
50
|
+
# inherited by the metadata hash of host groups and examples, rather than
|
51
|
+
# triggering implicit auto-inclusion in groups with matching metadata.
|
52
|
+
config.shared_context_metadata_behavior = :apply_to_host_groups
|
53
|
+
|
54
|
+
# The settings below are suggested to provide a good initial experience
|
55
|
+
# with RSpec, but feel free to customize to your heart's content.
|
56
|
+
# # This allows you to limit a spec run to individual examples or groups
|
57
|
+
# # you care about by tagging them with `:focus` metadata. When nothing
|
58
|
+
# # is tagged with `:focus`, all examples get run. RSpec also provides
|
59
|
+
# # aliases for `it`, `describe`, and `context` that include `:focus`
|
60
|
+
# # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
|
61
|
+
# config.filter_run_when_matching :focus
|
62
|
+
#
|
63
|
+
# # Allows RSpec to persist some state between runs in order to support
|
64
|
+
# # the `--only-failures` and `--next-failure` CLI options. We recommend
|
65
|
+
# # you configure your source control system to ignore this file.
|
66
|
+
# config.example_status_persistence_file_path = "spec/examples.txt"
|
67
|
+
#
|
68
|
+
# # Limits the available syntax to the non-monkey patched syntax that is
|
69
|
+
# # recommended. For more details, see:
|
70
|
+
# # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
|
71
|
+
# # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
72
|
+
# # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
|
73
|
+
# config.disable_monkey_patching!
|
74
|
+
#
|
75
|
+
# # This setting enables warnings. It's recommended, but in some cases may
|
76
|
+
# # be too noisy due to issues in dependencies.
|
77
|
+
# config.warnings = true
|
78
|
+
#
|
79
|
+
# # Many RSpec users commonly either run the entire suite or an individual
|
80
|
+
# # file, and it's useful to allow more verbose output when running an
|
81
|
+
# # individual spec file.
|
82
|
+
# if config.files_to_run.one?
|
83
|
+
# # Use the documentation formatter for detailed output,
|
84
|
+
# # unless a formatter has already been configured
|
85
|
+
# # (e.g. via a command-line flag).
|
86
|
+
# config.default_formatter = "doc"
|
87
|
+
# end
|
88
|
+
#
|
89
|
+
# # Print the 10 slowest examples and example groups at the
|
90
|
+
# # end of the spec run, to help surface which specs are running
|
91
|
+
# # particularly slow.
|
92
|
+
# config.profile_examples = 10
|
93
|
+
#
|
94
|
+
# # Run specs in random order to surface order dependencies. If you find an
|
95
|
+
# # order dependency and want to debug it, you can fix the order by providing
|
96
|
+
# # the seed, which is printed after each run.
|
97
|
+
# # --seed 1234
|
98
|
+
# config.order = :random
|
99
|
+
#
|
100
|
+
# # Seed global randomization in this process using the `--seed` CLI option.
|
101
|
+
# # Setting this allows you to use `--seed` to deterministically reproduce
|
102
|
+
# # test failures related to randomization by passing the same `--seed` value
|
103
|
+
# # as the one that triggered the failure.
|
104
|
+
# Kernel.srand config.seed
|
105
|
+
end
|
metadata
ADDED
@@ -0,0 +1,151 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: kintsugi
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ben Yohay
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-06-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: xcodeproj
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.19.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.19.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '13.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '13.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.9'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.9'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.12.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.12.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop-rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.2.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.2.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: simplecov
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.21'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.21'
|
97
|
+
description: "\n Kintsugi resolves conflicts in .pbxproj files, with the aim
|
98
|
+
to resolve 99.9% of the conflicts\n automatically.\n "
|
99
|
+
email:
|
100
|
+
- ben@lightricks.com
|
101
|
+
executables:
|
102
|
+
- kintsugi
|
103
|
+
extensions: []
|
104
|
+
extra_rdoc_files: []
|
105
|
+
files:
|
106
|
+
- ".github/workflows/ci.yml"
|
107
|
+
- ".gitignore"
|
108
|
+
- ".rspec"
|
109
|
+
- ".rubocop.yml"
|
110
|
+
- CONTRIBUTING.md
|
111
|
+
- Gemfile
|
112
|
+
- LICENSE
|
113
|
+
- README.md
|
114
|
+
- Rakefile
|
115
|
+
- bin/kintsugi
|
116
|
+
- kintsugi.gemspec
|
117
|
+
- lib/kintsugi.rb
|
118
|
+
- lib/kintsugi/apply_change_to_project.rb
|
119
|
+
- lib/kintsugi/utils.rb
|
120
|
+
- lib/kintsugi/xcodeproj_extensions.rb
|
121
|
+
- logo/kintsugi.png
|
122
|
+
- spec/be_equivalent_to_project.rb
|
123
|
+
- spec/kintsugi_apply_change_to_project_spec.rb
|
124
|
+
- spec/spec_helper.rb
|
125
|
+
homepage: https://github.com/Lightricks/Kintsugi
|
126
|
+
licenses:
|
127
|
+
- MIT
|
128
|
+
metadata: {}
|
129
|
+
post_install_message:
|
130
|
+
rdoc_options: []
|
131
|
+
require_paths:
|
132
|
+
- lib
|
133
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: 2.5.0
|
138
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
requirements: []
|
144
|
+
rubygems_version: 3.1.2
|
145
|
+
signing_key:
|
146
|
+
specification_version: 4
|
147
|
+
summary: pbxproj files git conflicts solver
|
148
|
+
test_files:
|
149
|
+
- spec/be_equivalent_to_project.rb
|
150
|
+
- spec/kintsugi_apply_change_to_project_spec.rb
|
151
|
+
- spec/spec_helper.rb
|