extract-repo 0.0.8 → 0.0.10

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: ff0ac721f57a6835cec23e2212bbda0c7e77e84159170ae987267045d4a771e9
4
- data.tar.gz: e43e0030a41ff37fea7bb88375bc772a32bb50f6e661c1713c4c6da49bc6920c
3
+ metadata.gz: 13d523a30befab4dd6c2cb12f6f74e07a713c9d938e5f024ae72960f952aac9c
4
+ data.tar.gz: c5f8d5c6a74c4c9c5557f6cc26c9d9a86bab6e5fe94a04fe0d06de2701febd51
5
5
  SHA512:
6
- metadata.gz: 4e578231b0f5dab20d385c385aefebc3c32037735766851f757be1587544ebbca5f1410499b5fa195755a139658e005f7ce9039f7f4a8efff7352aeaeaac688f
7
- data.tar.gz: 612f90e4ebf638024437ec283b5a8bf1dab9f8f839b7983deec21e9a4700142f1b33b9b7f90fd44545c6876ddcbb16044d97e284ef0cc4813cc4fff3afb5591c
6
+ metadata.gz: 6a2bc121c8991f74795309e8e99c73b160a006fdf04c292683800a853ab2e59c84f398dfb27af7b93407020f6748a92632d53ab44211ae36cecea74298c323c8
7
+ data.tar.gz: 64938b3349b3ce15791248d8a0d30deccf1deaea8e20f5ad7026687198547b9138169ce35f4a4e61c312dbf48ce3848a7ec81b7bcb8f91ab49a1bbf882192a72
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.0.10] - 2025-04-15
2
+
3
+ - Remove pry as a required dependency
4
+
5
+ ## [0.0.9] - 2025-01-07
6
+
7
+ - Bump Ruby to 3.4.1
8
+
1
9
  ## [0.0.8] - 2024-11-07
2
10
 
3
11
  - Don't give the new repository the name of the source repository
data/boot/start.rb CHANGED
@@ -7,7 +7,7 @@ if File.exist?("#{__dir__}/../Gemfile")
7
7
  require "bundler/setup"
8
8
  end
9
9
 
10
- if ENV["FOOBARA_ENV"] == "development" || ENV["FOOBARA_ENV"] == "test"
10
+ if %w[development test].include?(ENV["FOOBARA_ENV"])
11
11
  require "pry"
12
12
  require "pry-byebug"
13
13
  end
data/lib/extract_repo.rb CHANGED
@@ -1,4 +1,3 @@
1
- require "pry"
2
1
  require "uri"
3
2
  require "English"
4
3
 
@@ -6,11 +5,14 @@ require "foobara/all"
6
5
 
7
6
  # TODO: allow extracting from a local repo and default to that repo as "."
8
7
  class ExtractRepo < Foobara::Command
8
+ description "Extracts directories/files of your choosing from one repo to another"
9
+
9
10
  inputs do
10
- repo_url :string, :required
11
- paths [:string], :required
12
- output_path :string, default: "#{Dir.home}/tmp/extract"
13
- delete_extracted :boolean, default: false
11
+ repo_url_or_path :string, :required, "The source repository to extract from. Can be a URL or a local directory"
12
+ paths [:string], :required, "Paths to each directory/file to extract"
13
+ output_path :string, default: "#{Dir.home}/tmp/extract",
14
+ description: "Where to create a new repo and move the extracted files to"
15
+ delete_extracted :boolean, default: false, description: "Delete the extracted files from the source repository"
14
16
  end
15
17
 
16
18
  attr_accessor :file_paths, :absolute_repo_path
@@ -33,9 +35,9 @@ class ExtractRepo < Foobara::Command
33
35
 
34
36
  def determine_absolute_repo_path
35
37
  self.absolute_repo_path = if local_repository?
36
- File.absolute_path(repo_url)
38
+ File.absolute_path(repo_url_or_path)
37
39
  else
38
- repo_url
40
+ repo_url_or_path
39
41
  end
40
42
  end
41
43
 
@@ -56,7 +58,7 @@ class ExtractRepo < Foobara::Command
56
58
  end
57
59
 
58
60
  def local_repository?
59
- !URI.parse(repo_url).scheme
61
+ !URI.parse(repo_url_or_path).scheme
60
62
  end
61
63
 
62
64
  def remove_origin
metadata CHANGED
@@ -1,44 +1,42 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extract-repo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-11-08 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: foobara
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - ">="
16
+ - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '0'
18
+ version: 0.0.102
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
- - - ">="
23
+ - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '0'
25
+ version: 0.0.102
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: foobara-sh-cli-connector
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - ">="
30
+ - - "~>"
32
31
  - !ruby/object:Gem::Version
33
- version: '0'
32
+ version: 0.0.1
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
- - - ">="
37
+ - - "~>"
39
38
  - !ruby/object:Gem::Version
40
- version: '0'
41
- description:
39
+ version: 0.0.1
42
40
  email:
43
41
  - azimux@gmail.com
44
42
  executables:
@@ -65,7 +63,6 @@ metadata:
65
63
  source_code_uri: https://github.com/foobara/extract-repo
66
64
  changelog_uri: https://github.com/foobara/extract-repo/blob/main/CHANGELOG.md
67
65
  rubygems_mfa_required: 'true'
68
- post_install_message:
69
66
  rdoc_options: []
70
67
  require_paths:
71
68
  - lib
@@ -73,15 +70,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
73
70
  requirements:
74
71
  - - ">="
75
72
  - !ruby/object:Gem::Version
76
- version: 3.2.2
73
+ version: 3.4.0
77
74
  required_rubygems_version: !ruby/object:Gem::Requirement
78
75
  requirements:
79
76
  - - ">="
80
77
  - !ruby/object:Gem::Version
81
78
  version: '0'
82
79
  requirements: []
83
- rubygems_version: 3.5.23
84
- signing_key:
80
+ rubygems_version: 3.6.7
85
81
  specification_version: 4
86
82
  summary: Extract code from one repository into a new repository, preserving history
87
83
  of the extracted files.