rails_app_generator 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/rails_app_generator/diff/compare_info.rb +4 -30
- data/lib/rails_app_generator/diff/file_pair.rb +6 -6
- data/lib/rails_app_generator/diff/open_in_editor.rb +1 -1
- data/lib/rails_app_generator/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92848a2f101d1eacb68fced1c5f1a3ab28b4c8314a24d34b2cf7bec51212bce6
|
4
|
+
data.tar.gz: 1028fb8c5a896879cdca537b6efd4d631504ddeddc2faa5dcd02e0fabbefcf43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9617e90e25bef8a51ea05bfac6baac98561a7e376c8d25b78ad941a12349eb38063114f79b42824a776ee5b6eb7fb6a66d1b3248bacb82232890811379e41805
|
7
|
+
data.tar.gz: 5df793375d8f32e1cf33628e0370405f3ade92c6c5596277aea6062f3c4d8819d41e4ecf34e88de2e3e43d89983e315905c2119fd9ae5f138ffa9e59c34d91ee
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [0.0.12](https://github.com/klueless-io/rails_app_generator/compare/v0.0.11...v0.0.12) (2022-07-25)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* add support for open in editor in diff tool ([9d94e26](https://github.com/klueless-io/rails_app_generator/commit/9d94e261c6bac8d17c65da00d6d7d8e2907422ae))
|
7
|
+
|
1
8
|
## [0.0.11](https://github.com/klueless-io/rails_app_generator/compare/v0.0.10...v0.0.11) (2022-07-25)
|
2
9
|
|
3
10
|
|
@@ -31,32 +31,6 @@ module RailsAppGenerator
|
|
31
31
|
segment_files(lhs_path, lhs_files, rhs_path, rhs_files)
|
32
32
|
end
|
33
33
|
|
34
|
-
def lhs_file_info(type)
|
35
|
-
case type
|
36
|
-
when :lhs_only
|
37
|
-
rel_abs_file(lhs_path, lhs_only)
|
38
|
-
when :rhs_only
|
39
|
-
[] # there should be no right hand side files for the left hand path
|
40
|
-
when :same
|
41
|
-
rel_abs_file(lhs_path, same)
|
42
|
-
when :diff
|
43
|
-
rel_abs_file(lhs_path, diff)
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
def rhs_file_info(type)
|
48
|
-
case type
|
49
|
-
when :lhs_only
|
50
|
-
[] # there should be no left hand side files for the right hand path
|
51
|
-
when :rhs_only
|
52
|
-
rel_abs_file(rhs_path, rhs_only)
|
53
|
-
when :same
|
54
|
-
rel_abs_file(rhs_path, same)
|
55
|
-
when :diff
|
56
|
-
rel_abs_file(rhs_path, diff)
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
34
|
def debug
|
61
35
|
debug_stats
|
62
36
|
debug_files('left only' , lhs_only)
|
@@ -73,14 +47,14 @@ module RailsAppGenerator
|
|
73
47
|
rhs_only = rhs_files - lhs_files
|
74
48
|
matching_files = lhs_files & rhs_files
|
75
49
|
|
76
|
-
@lhs_only = lhs_only.map { |file| FilePair.new(file,
|
77
|
-
@rhs_only = rhs_only.map { |file| FilePair.new(file,
|
50
|
+
@lhs_only = lhs_only.map { |file| FilePair.new(file, lhs_file: File.join(lhs_path, file)) }
|
51
|
+
@rhs_only = rhs_only.map { |file| FilePair.new(file, rhs_file: File.join(rhs_path, file)) }
|
78
52
|
|
79
53
|
matching_files.each do |file|
|
80
54
|
file_pair = FilePair.new(
|
81
55
|
file,
|
82
|
-
|
83
|
-
|
56
|
+
lhs_file: File.join(lhs_path, file),
|
57
|
+
rhs_file: File.join(rhs_path, file)
|
84
58
|
)
|
85
59
|
|
86
60
|
if FileUtils.compare_file(File.join(lhs_path, file), File.join(rhs_path, file))
|
@@ -4,14 +4,14 @@ module RailsAppGenerator
|
|
4
4
|
module Diff
|
5
5
|
# FilePair stores the relative file path, plus the absolute file for both Left and Right site
|
6
6
|
class FilePair
|
7
|
-
attr_reader :file
|
8
|
-
attr_reader :
|
9
|
-
attr_reader :
|
7
|
+
attr_reader :file # relative file
|
8
|
+
attr_reader :lhs_file # absolute file for left hand side
|
9
|
+
attr_reader :rhs_file # absolute file for right hand side
|
10
10
|
|
11
|
-
def initialize(file,
|
11
|
+
def initialize(file, lhs_file: nil, rhs_file: nil)
|
12
12
|
@file = file
|
13
|
-
@
|
14
|
-
@
|
13
|
+
@lhs_file = lhs_file
|
14
|
+
@rhs_file = rhs_file
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
data/package-lock.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "rails_app_generator",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.13",
|
4
4
|
"lockfileVersion": 2,
|
5
5
|
"requires": true,
|
6
6
|
"packages": {
|
7
7
|
"": {
|
8
8
|
"name": "rails_app_generator",
|
9
|
-
"version": "0.0.
|
9
|
+
"version": "0.0.13",
|
10
10
|
"devDependencies": {
|
11
11
|
"@klueless-js/semantic-release-rubygem": "github:klueless-js/semantic-release-rubygem",
|
12
12
|
"@semantic-release/changelog": "^6.0.1",
|
data/package.json
CHANGED