rails_app_generator 0.0.12 → 0.0.13

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0470af9a31da0f8b53b53c9fb7f4dbe832ecd8d778adea006047d933e17e056f
4
- data.tar.gz: b4889acbaaaa9fb37af410fedd68a3368213e40efdf7af72d81d47b28a6ec7a2
3
+ metadata.gz: 92848a2f101d1eacb68fced1c5f1a3ab28b4c8314a24d34b2cf7bec51212bce6
4
+ data.tar.gz: 1028fb8c5a896879cdca537b6efd4d631504ddeddc2faa5dcd02e0fabbefcf43
5
5
  SHA512:
6
- metadata.gz: d1de0b5079f06786e8872ee9302fb25a020c58d6c5b82b82759800c439c48627f32fd3db642a7fcc1b1df821fdc97385b951824248ca6da9d87cebc24d86deed
7
- data.tar.gz: 7e885bdbf52d97ef963a45a57cca5f4ff557434ba0c93dd5699bfe69d60329257901bf07f22bd381ecb10ef8f50b45a2d9d1c0c5a40a8c0e2d1188a775f50c2f
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, lhs_absolute_file: File.join(lhs_path, file)) }
77
- @rhs_only = rhs_only.map { |file| FilePair.new(file, rhs_absolute_file: File.join(rhs_path, 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
- lhs_absolute_file: File.join(lhs_path, file),
83
- rhs_absolute_file: File.join(rhs_path, file)
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 :lhs_absolute_file
9
- attr_reader :rhs_absolute_file
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, lhs_absolute_file: nil, rhs_absolute_file: nil)
11
+ def initialize(file, lhs_file: nil, rhs_file: nil)
12
12
  @file = file
13
- @lhs_absolute_file = lhs_absolute_file
14
- @rhs_absolute_file = rhs_absolute_file
13
+ @lhs_file = lhs_file
14
+ @rhs_file = rhs_file
15
15
  end
16
16
  end
17
17
  end
@@ -31,7 +31,7 @@ module RailsAppGenerator
31
31
 
32
32
  def open_files(files)
33
33
  files.map do |f|
34
- system("code --diff #{f.lhs_absolute_file} #{f.rhs_absolute_file}")
34
+ system("code --diff #{f.lhs_file} #{f.rhs_file}")
35
35
  end
36
36
  end
37
37
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsAppGenerator
4
- VERSION = '0.0.12'
4
+ VERSION = '0.0.13'
5
5
  end
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "rails_app_generator",
3
- "version": "0.0.12",
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.12",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rails_app_generator",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Create new Rails Application with custom opinions",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_app_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys