rfix 1.0.8.pre.109 → 1.1.1.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +5 -0
  3. data/.rspec +0 -1
  4. data/.rubocop.yml +46 -31
  5. data/.travis.yml +5 -11
  6. data/Gemfile.base +10 -3
  7. data/Gemfile.base.lock +172 -0
  8. data/Gemfile.lock +30 -7
  9. data/Guardfile +1 -1
  10. data/Makefile +4 -13
  11. data/Rakefile +16 -92
  12. data/ci/Gemfile.rubocop-0.80.lock +16 -1
  13. data/ci/Gemfile.rubocop-0.81.lock +16 -1
  14. data/ci/Gemfile.rubocop-0.82.lock +16 -1
  15. data/ci/Gemfile.rubocop-0.83.lock +19 -4
  16. data/ci/Gemfile.rubocop-0.84.lock +19 -4
  17. data/ci/Gemfile.rubocop-0.85.1.lock +19 -4
  18. data/ci/Gemfile.rubocop-0.85.lock +16 -1
  19. data/exe/rfix +18 -143
  20. data/lib/rfix.rb +11 -3
  21. data/lib/rfix/box.rb +112 -0
  22. data/lib/rfix/branch.rb +31 -0
  23. data/lib/rfix/branches/base.rb +29 -0
  24. data/lib/rfix/branches/head.rb +11 -0
  25. data/lib/rfix/branches/main.rb +33 -0
  26. data/lib/rfix/branches/name.rb +21 -0
  27. data/lib/rfix/branches/reference.rb +19 -0
  28. data/lib/rfix/branches/upstream.rb +11 -0
  29. data/lib/rfix/cmd.rb +9 -14
  30. data/lib/rfix/commands/branch.rb +15 -0
  31. data/lib/rfix/commands/extensions/options.rb +8 -0
  32. data/lib/rfix/commands/help.rb +7 -0
  33. data/lib/rfix/commands/helper/args.rb +137 -0
  34. data/lib/rfix/commands/helper/help.rb +6 -0
  35. data/lib/rfix/commands/helper/loader.rb +6 -0
  36. data/lib/rfix/commands/helper/option.rb +0 -0
  37. data/lib/rfix/commands/helper/params.rb +0 -0
  38. data/lib/rfix/commands/helper/rubocop.rb +17 -0
  39. data/lib/rfix/commands/info.rb +30 -0
  40. data/lib/rfix/commands/lint.rb +23 -0
  41. data/lib/rfix/commands/local.rb +12 -0
  42. data/lib/rfix/commands/origin.rb +19 -0
  43. data/lib/rfix/commands/setup.rb +29 -0
  44. data/lib/rfix/commands/welcome.rb +24 -0
  45. data/lib/rfix/deleted.rb +13 -0
  46. data/lib/rfix/error.rb +2 -0
  47. data/lib/rfix/extensions/extensions.rb +4 -26
  48. data/lib/rfix/extensions/offense.rb +2 -1
  49. data/lib/rfix/extensions/string.rb +8 -0
  50. data/lib/rfix/file.rb +46 -0
  51. data/lib/rfix/file_cache.rb +59 -0
  52. data/lib/rfix/formatter.rb +37 -10
  53. data/lib/rfix/git_helper.rb +13 -1
  54. data/lib/rfix/log.rb +104 -7
  55. data/lib/rfix/no_file.rb +13 -0
  56. data/lib/rfix/rake/paths.rb +50 -0
  57. data/lib/rfix/rake/support.rb +75 -0
  58. data/lib/rfix/repository.rb +201 -0
  59. data/lib/rfix/rfix.rb +7 -194
  60. data/lib/rfix/tracked.rb +76 -0
  61. data/lib/rfix/tracked_file.rb +1 -1
  62. data/lib/rfix/untracked.rb +13 -0
  63. data/lib/rfix/version.rb +1 -1
  64. data/rfix.gemspec +7 -2
  65. data/tasks/bump.rake +11 -0
  66. data/tasks/bundle.rake +17 -0
  67. data/tasks/complex.rake +54 -0
  68. data/tasks/simple.rake +58 -0
  69. data/tasks/travis.rake +74 -0
  70. data/tasks/vendor.rake +34 -0
  71. metadata +144 -10
  72. data/file.rb +0 -1
  73. data/lib/rfix/gem_helper.rb +0 -12
  74. data/lib/rfix/git_file.rb +0 -36
  75. data/lib/rfix/rake_helper.rb +0 -56
  76. data/lib/rfix/untracked_file.rb +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4097e2bfdc301c182d0b04d369576a35ffa391f1afa4b7e8643daa52e1dc1aeb
4
- data.tar.gz: c324d50979ea839dae4d3738971e23c69e601f05c049d72bc5ebe6cb9dc5cb53
3
+ metadata.gz: 2fd96e76cafc6a288cb5df13b2480059aa408abefab74c4fa10932d67d5f955f
4
+ data.tar.gz: e4a96eb5322a6782fe3dc2983c59789f60226a61c6b79e7e88c3805137e1cf67
5
5
  SHA512:
6
- metadata.gz: 39d7ffdf2ef3d46b6a7e5c9eb19e5942331c0dcf010524c49a8a0ff59c25290998d5196c2199f76cd80dbd5a151d5f0fe9d20d8b7d2de1527824eaeea7e0576e
7
- data.tar.gz: 7efe96eef04ec0dc1cf3344db5b5d68a2a88cd56cc2aea8211566d1350053e2a209a19e586a6559274a8853ae34cd8478109bc3d85a01ac2afdec75acaa01395
6
+ metadata.gz: 064f9537855fc01eeb0a584db2627518d6e49de21f6a057682ec18730afff08ea2abc8d1a61a5d47a812b442be711f6afca41c0cd88f381f7cd447ca8a7c03f4
7
+ data.tar.gz: 04d6c3383940faccfb95696b77fa97eaf5483b1c3c9dd579b022d2d4018e23857c081dc66aae6f3626f47fc13e22486c3e5acaaedfd8d80be68cc073383466e3
data/.gitignore CHANGED
@@ -36,3 +36,8 @@ bin/ruby-parse
36
36
  bin/ruby-rewrite
37
37
  bin/thor
38
38
  ci/vendor/
39
+ git
40
+
41
+ spec/fixtures/complex.bundle
42
+ spec/fixtures/simple.bundle
43
+ spec/support/g.rb
data/.rspec CHANGED
@@ -1,3 +1,2 @@
1
1
  --color
2
2
  --require spec_helper
3
- --format doc
@@ -1,30 +1,10 @@
1
1
  AllCops:
2
2
  Exclude:
3
- - 'Rakefile'
4
- - 'Gemfile'
3
+ - 'ci/*'
5
4
  - 'bin/*'
6
5
  - 'vendor/bundle/**/*'
7
- - 'db/**/*'
8
6
  - 'node_modules/**/*'
9
- - 'spec/rails_helper.rb'
10
- - 'lib/tasks/*'
11
-
12
- Layout/LineLength:
13
- Max: 120
14
- Exclude:
15
- - 'config/**/*'
16
-
17
- Metrics/BlockLength:
18
- Exclude:
19
- - 'config/**/*'
20
- - 'spec/**/*'
21
- - 'lib/tasks/*'
22
- - 'lib/capistrano/**/*'
23
-
24
- Metrics/ClassLength:
25
- Max: 150
26
- Exclude:
27
- - 'config/**/*'
7
+ - 'spec/fixtures/**'
28
8
 
29
9
  Metrics/MethodLength:
30
10
  Enabled: false
@@ -38,15 +18,6 @@ Style/Documentation:
38
18
  Style/FrozenStringLiteralComment:
39
19
  Enabled: false
40
20
 
41
- Style/HashEachMethods:
42
- Enabled: true
43
-
44
- Style/HashTransformKeys:
45
- Enabled: true
46
-
47
- Style/HashTransformValues:
48
- Enabled: true
49
-
50
21
  Style/NumericLiterals:
51
22
  Enabled: false
52
23
 
@@ -70,3 +41,47 @@ Lint/AmbiguousBlockAssociation:
70
41
  Enabled: false
71
42
  Style/Semicolon:
72
43
  Enabled: false
44
+ Style/StructInheritance:
45
+ Enabled: false
46
+ Style/IfUnlessModifier:
47
+ Enabled: false
48
+ Layout/LineLength:
49
+ Enabled: false
50
+ Style/SymbolArray:
51
+ EnforcedStyle: brackets
52
+
53
+ Style/RedundantReturn:
54
+ Enabled: false
55
+ Style/EmptyLiteral:
56
+ Enabled: false
57
+
58
+ # TODOs
59
+ Metrics/BlockLength:
60
+ Enabled: false
61
+ Metrics/ClassLength:
62
+ Enabled: false
63
+ Style/MixinUsage:
64
+ Enabled: false
65
+ Naming/AccessorMethodName:
66
+ Enabled: false
67
+ Security/Eval:
68
+ Enabled: false
69
+ Style/OptionalArguments:
70
+ Enabled: false
71
+ Metrics/PerceivedComplexity:
72
+ Enabled: false
73
+ Metrics/ParameterLists:
74
+ Enabled: false
75
+ Metrics/CyclomaticComplexity:
76
+ Enabled: false
77
+ Style/FormatStringToken:
78
+ Enabled: false
79
+ Style/StderrPuts:
80
+ Enabled: false
81
+
82
+
83
+ Layout/ParameterAlignment:
84
+ EnforcedStyle: with_fixed_indentation
85
+ Layout/HashAlignment:
86
+ Enabled: false
87
+ EnforcedColonStyle: key
@@ -1,11 +1,4 @@
1
1
  language: ruby
2
- # cache:
3
- # bundler: true
4
- # directories:
5
- # - $HOME/.rvm
6
- # - $HOME/Library/Caches/Homebrew
7
- before_cache:
8
- - brew cleanup
9
2
  rvm:
10
3
  - 2.5.0
11
4
  - 2.6.2
@@ -23,13 +16,14 @@ gemfile:
23
16
  - ci/Gemfile.rubocop-0.85.1
24
17
  before_install:
25
18
  - yes | gem update --system --force
26
- - make dir fetch
27
19
  install:
28
20
  - bundle install
21
+ - gem install colorize
22
+ - gem install rake
23
+ - rake travis:setup
29
24
  script:
30
- - bundle exec rake spec
31
- - bundle exec rake install
32
- - rfix info
25
+ - bundle exec rake travis:spec
26
+ - bundle exec rake travis:verify
33
27
  jobs:
34
28
  include:
35
29
  deploy:
@@ -1,7 +1,14 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "guard", require: false
4
- gem "guard-rspec", require: false
5
- gem "gem-release", require: false
3
+
4
+ group :development do
5
+ gem "pry"
6
+ gem "colorize"
7
+ gem "faker"
8
+ gem "gem-release", require: false
9
+ gem "guard", require: false
10
+ gem "guard-rspec", require: false
11
+ gem "jsonpath"
12
+ end
6
13
 
7
14
  gemspec path: __dir__
@@ -0,0 +1,172 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rfix (1.0.20)
5
+ cri (~> 2.15.10)
6
+ listen (~> 3.0)
7
+ rainbow (~> 3.0)
8
+ rouge (~> 3.20)
9
+ rubocop (>= 0.80)
10
+ rugged (~> 1.0.0)
11
+
12
+ GEM
13
+ remote: https://rubygems.org/
14
+ specs:
15
+ activesupport (6.0.3.2)
16
+ concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ i18n (>= 0.7, < 2)
18
+ minitest (~> 5.1)
19
+ tzinfo (~> 1.1)
20
+ zeitwerk (~> 2.2, >= 2.2.2)
21
+ aruba (1.0.2)
22
+ childprocess (>= 2.0, < 5.0)
23
+ contracts (~> 0.16.0)
24
+ cucumber (>= 2.4, < 5.0)
25
+ ffi (~> 1.9)
26
+ rspec-expectations (~> 3.4)
27
+ thor (~> 1.0)
28
+ ast (2.4.1)
29
+ builder (3.2.4)
30
+ childprocess (4.0.0)
31
+ coderay (1.1.3)
32
+ colorize (0.8.1)
33
+ concurrent-ruby (1.1.6)
34
+ contracts (0.16.0)
35
+ cri (2.15.10)
36
+ cucumber (4.0.1)
37
+ builder (~> 3.2, >= 3.2.3)
38
+ cucumber-core (~> 7.0, >= 7.0.0)
39
+ cucumber-cucumber-expressions (~> 10.1, >= 10.1.0)
40
+ cucumber-gherkin (~> 13.0, >= 13.0.0)
41
+ cucumber-html-formatter (~> 6.0, >= 6.0.1)
42
+ cucumber-messages (~> 12.1, >= 12.1.1)
43
+ cucumber-wire (~> 3.0, >= 3.0.0)
44
+ diff-lcs (~> 1.3, >= 1.3, < 1.4)
45
+ multi_test (~> 0.1, >= 0.1.2)
46
+ sys-uname (~> 1.0, >= 1.0.2)
47
+ cucumber-core (7.0.0)
48
+ cucumber-gherkin (~> 13.0, >= 13.0.0)
49
+ cucumber-messages (~> 12.1, >= 12.1.1)
50
+ cucumber-tag-expressions (~> 2.0, >= 2.0.4)
51
+ cucumber-cucumber-expressions (10.2.1)
52
+ cucumber-gherkin (13.0.0)
53
+ cucumber-messages (~> 12.0, >= 12.0.0)
54
+ cucumber-html-formatter (6.0.3)
55
+ cucumber-messages (~> 12.1, >= 12.1.1)
56
+ cucumber-messages (12.2.0)
57
+ protobuf-cucumber (~> 3.10, >= 3.10.8)
58
+ cucumber-tag-expressions (2.0.4)
59
+ cucumber-wire (3.0.0)
60
+ cucumber-core (~> 7.0, >= 7.0.0)
61
+ cucumber-cucumber-expressions (~> 10.1, >= 10.1.0)
62
+ cucumber-messages (~> 12.1, >= 12.1.1)
63
+ diff-lcs (1.3)
64
+ faker (2.13.0)
65
+ i18n (>= 1.6, < 2)
66
+ ffi (1.13.1)
67
+ formatador (0.2.5)
68
+ gem-release (2.1.1)
69
+ git (1.7.0)
70
+ rchardet (~> 1.8)
71
+ guard (2.16.2)
72
+ formatador (>= 0.2.4)
73
+ listen (>= 2.7, < 4.0)
74
+ lumberjack (>= 1.0.12, < 2.0)
75
+ nenv (~> 0.1)
76
+ notiffany (~> 0.0)
77
+ pry (>= 0.9.12)
78
+ shellany (~> 0.0)
79
+ thor (>= 0.18.1)
80
+ guard-compat (1.2.1)
81
+ guard-rspec (4.7.3)
82
+ guard (~> 2.1)
83
+ guard-compat (~> 1.1)
84
+ rspec (>= 2.99.0, < 4.0)
85
+ i18n (1.8.3)
86
+ concurrent-ruby (~> 1.0)
87
+ listen (3.2.1)
88
+ rb-fsevent (~> 0.10, >= 0.10.3)
89
+ rb-inotify (~> 0.9, >= 0.9.10)
90
+ lumberjack (1.2.6)
91
+ method_source (1.0.0)
92
+ middleware (0.1.0)
93
+ minitest (5.14.1)
94
+ multi_test (0.1.2)
95
+ nenv (0.3.0)
96
+ notiffany (0.1.3)
97
+ nenv (~> 0.1)
98
+ shellany (~> 0.0)
99
+ parallel (1.19.2)
100
+ parser (2.7.1.4)
101
+ ast (~> 2.4.1)
102
+ protobuf-cucumber (3.10.8)
103
+ activesupport (>= 3.2)
104
+ middleware
105
+ thor
106
+ thread_safe
107
+ pry (0.13.1)
108
+ coderay (~> 1.1)
109
+ method_source (~> 1.0)
110
+ rainbow (3.0.0)
111
+ rake (12.3.3)
112
+ rb-fsevent (0.10.4)
113
+ rb-inotify (0.10.1)
114
+ ffi (~> 1.0)
115
+ rchardet (1.8.0)
116
+ regexp_parser (1.7.1)
117
+ rexml (3.2.4)
118
+ rouge (3.20.0)
119
+ rspec (3.9.0)
120
+ rspec-core (~> 3.9.0)
121
+ rspec-expectations (~> 3.9.0)
122
+ rspec-mocks (~> 3.9.0)
123
+ rspec-core (3.9.2)
124
+ rspec-support (~> 3.9.3)
125
+ rspec-expectations (3.9.2)
126
+ diff-lcs (>= 1.2.0, < 2.0)
127
+ rspec-support (~> 3.9.0)
128
+ rspec-mocks (3.9.1)
129
+ diff-lcs (>= 1.2.0, < 2.0)
130
+ rspec-support (~> 3.9.0)
131
+ rspec-support (3.9.3)
132
+ rubocop (0.86.0)
133
+ parallel (~> 1.10)
134
+ parser (>= 2.7.0.1)
135
+ rainbow (>= 2.2.2, < 4.0)
136
+ regexp_parser (>= 1.7)
137
+ rexml
138
+ rubocop-ast (>= 0.0.3, < 1.0)
139
+ ruby-progressbar (~> 1.7)
140
+ unicode-display_width (>= 1.4.0, < 2.0)
141
+ rubocop-ast (0.1.0)
142
+ parser (>= 2.7.0.1)
143
+ ruby-progressbar (1.10.1)
144
+ rugged (1.0.1)
145
+ shellany (0.0.1)
146
+ sys-uname (1.2.1)
147
+ ffi (>= 1.0.0)
148
+ thor (1.0.1)
149
+ thread_safe (0.3.6)
150
+ tzinfo (1.2.7)
151
+ thread_safe (~> 0.1)
152
+ unicode-display_width (1.7.0)
153
+ zeitwerk (2.3.0)
154
+
155
+ PLATFORMS
156
+ ruby
157
+
158
+ DEPENDENCIES
159
+ aruba (~> 1.0)
160
+ colorize
161
+ faker
162
+ gem-release
163
+ git (~> 1.7.0)
164
+ guard
165
+ guard-rspec
166
+ pry
167
+ rake (~> 12.3)
168
+ rfix!
169
+ rspec (~> 3.0)
170
+
171
+ BUNDLED WITH
172
+ 2.1.4
@@ -1,10 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rfix (1.0.8)
4
+ rfix (1.1.1.pre)
5
+ cri (~> 2.15.10)
6
+ listen (~> 3.0)
5
7
  rainbow (~> 3.0)
8
+ require_all (~> 3.0.0)
6
9
  rouge (~> 3.20)
7
10
  rubocop (>= 0.80)
11
+ rugged (~> 1.0.0)
8
12
 
9
13
  GEM
10
14
  remote: https://rubygems.org/
@@ -26,9 +30,11 @@ GEM
26
30
  builder (3.2.4)
27
31
  childprocess (4.0.0)
28
32
  coderay (1.1.3)
33
+ colorize (0.8.1)
29
34
  concurrent-ruby (1.1.6)
30
35
  contracts (0.16.0)
31
- cucumber (4.0.0)
36
+ cri (2.15.10)
37
+ cucumber (4.0.1)
32
38
  builder (~> 3.2, >= 3.2.3)
33
39
  cucumber-core (~> 7.0, >= 7.0.0)
34
40
  cucumber-cucumber-expressions (~> 10.1, >= 10.1.0)
@@ -36,14 +42,14 @@ GEM
36
42
  cucumber-html-formatter (~> 6.0, >= 6.0.1)
37
43
  cucumber-messages (~> 12.1, >= 12.1.1)
38
44
  cucumber-wire (~> 3.0, >= 3.0.0)
39
- diff-lcs (~> 1.3, >= 1.3)
45
+ diff-lcs (~> 1.3, >= 1.3, < 1.4)
40
46
  multi_test (~> 0.1, >= 0.1.2)
41
47
  sys-uname (~> 1.0, >= 1.0.2)
42
48
  cucumber-core (7.0.0)
43
49
  cucumber-gherkin (~> 13.0, >= 13.0.0)
44
50
  cucumber-messages (~> 12.1, >= 12.1.1)
45
51
  cucumber-tag-expressions (~> 2.0, >= 2.0.4)
46
- cucumber-cucumber-expressions (10.2.0)
52
+ cucumber-cucumber-expressions (10.2.1)
47
53
  cucumber-gherkin (13.0.0)
48
54
  cucumber-messages (~> 12.0, >= 12.0.0)
49
55
  cucumber-html-formatter (6.0.3)
@@ -56,9 +62,13 @@ GEM
56
62
  cucumber-cucumber-expressions (~> 10.1, >= 10.1.0)
57
63
  cucumber-messages (~> 12.1, >= 12.1.1)
58
64
  diff-lcs (1.3)
65
+ faker (2.13.0)
66
+ i18n (>= 1.6, < 2)
59
67
  ffi (1.13.1)
60
68
  formatador (0.2.5)
61
69
  gem-release (2.1.1)
70
+ git (1.7.0)
71
+ rchardet (~> 1.8)
62
72
  guard (2.16.2)
63
73
  formatador (>= 0.2.4)
64
74
  listen (>= 2.7, < 4.0)
@@ -75,6 +85,9 @@ GEM
75
85
  rspec (>= 2.99.0, < 4.0)
76
86
  i18n (1.8.3)
77
87
  concurrent-ruby (~> 1.0)
88
+ jsonpath (1.0.5)
89
+ multi_json
90
+ to_regexp (~> 0.2.1)
78
91
  listen (3.2.1)
79
92
  rb-fsevent (~> 0.10, >= 0.10.3)
80
93
  rb-inotify (~> 0.9, >= 0.9.10)
@@ -82,6 +95,7 @@ GEM
82
95
  method_source (1.0.0)
83
96
  middleware (0.1.0)
84
97
  minitest (5.14.1)
98
+ multi_json (1.14.1)
85
99
  multi_test (0.1.2)
86
100
  nenv (0.3.0)
87
101
  notiffany (0.1.3)
@@ -103,9 +117,11 @@ GEM
103
117
  rb-fsevent (0.10.4)
104
118
  rb-inotify (0.10.1)
105
119
  ffi (~> 1.0)
120
+ rchardet (1.8.0)
106
121
  regexp_parser (1.7.1)
122
+ require_all (3.0.0)
107
123
  rexml (3.2.4)
108
- rouge (3.20.0)
124
+ rouge (3.21.0)
109
125
  rspec (3.9.0)
110
126
  rspec-core (~> 3.9.0)
111
127
  rspec-expectations (~> 3.9.0)
@@ -119,23 +135,25 @@ GEM
119
135
  diff-lcs (>= 1.2.0, < 2.0)
120
136
  rspec-support (~> 3.9.0)
121
137
  rspec-support (3.9.3)
122
- rubocop (0.85.1)
138
+ rubocop (0.86.0)
123
139
  parallel (~> 1.10)
124
140
  parser (>= 2.7.0.1)
125
141
  rainbow (>= 2.2.2, < 4.0)
126
142
  regexp_parser (>= 1.7)
127
143
  rexml
128
- rubocop-ast (>= 0.0.3)
144
+ rubocop-ast (>= 0.0.3, < 1.0)
129
145
  ruby-progressbar (~> 1.7)
130
146
  unicode-display_width (>= 1.4.0, < 2.0)
131
147
  rubocop-ast (0.0.3)
132
148
  parser (>= 2.7.0.1)
133
149
  ruby-progressbar (1.10.1)
150
+ rugged (1.0.1)
134
151
  shellany (0.0.1)
135
152
  sys-uname (1.2.1)
136
153
  ffi (>= 1.0.0)
137
154
  thor (1.0.1)
138
155
  thread_safe (0.3.6)
156
+ to_regexp (0.2.1)
139
157
  tzinfo (1.2.7)
140
158
  thread_safe (~> 0.1)
141
159
  unicode-display_width (1.7.0)
@@ -146,9 +164,14 @@ PLATFORMS
146
164
 
147
165
  DEPENDENCIES
148
166
  aruba (~> 1.0)
167
+ colorize
168
+ faker
149
169
  gem-release
170
+ git (~> 1.7.0)
150
171
  guard
151
172
  guard-rspec
173
+ jsonpath
174
+ pry
152
175
  rake (~> 12.3)
153
176
  rfix!
154
177
  rspec (~> 3.0)