sqlpkg 0.2.3.2-x86_64-linux → 0.3.0-x86_64-linux

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: 3db5e86ae379465b5e0c48a7c99ede552b0edf57b83af3ffa76881c2c70a07c0
4
- data.tar.gz: b0b7642193f7af3b4abb3abd95454d5440b98b215f3a23bf4da92ce3ad97b7a6
3
+ metadata.gz: bcee7ca1e25d95c7b60ca23161c58b74bddf91d42ae6437744f329affb829e8a
4
+ data.tar.gz: 64646c9ac7e7bb74f72bdf11cde4ddd7fc63c906468e8b7c574154f4ae7cab21
5
5
  SHA512:
6
- metadata.gz: 2e98b872bf729a48e84a0b59e785cf7d8cfccd26ba739acc778f510445457abf093e9a94d9f68637273f4c55762ce16bca46d7f1c663e2954870a2a6af6a3e26
7
- data.tar.gz: bfd76e3bb4f82358e33b4906099b34e99512ed23478b7e142690d91886df212b6954418ac3c5ab56c56e3ebd4a96a0aac5424f59804b14819e915cf7098331af
6
+ metadata.gz: c9b5257382e1fc0ea18f5906aa5ad72bd590cf6467df81d0ec682fc555e4d9baa28cd27fbf3a33355b6498c017a20ea121a07c8fe67f2f0f2b0de735d2334738
7
+ data.tar.gz: cd7511892bd08d0454a0144aa9994bae326ccfda65f9d5da774499cce62a518c7da0efbffaa21d705bcb231294538f57fee6bff2e233f4eaa8c9627b47ab71d1
@@ -11,6 +11,13 @@ module Sqlpkg
11
11
  empty_directory ".sqlpkg"
12
12
  end
13
13
 
14
+ def create_gitignore_in_sqlpkg_project_scope_directory
15
+ create_file ".sqlpkg/.gitignore", <<~CONTENT
16
+ *
17
+ !.gitignore
18
+ CONTENT
19
+ end
20
+
14
21
  def create_empty_sqlpkg_lockfile
15
22
  create_file "sqlpkg.lock", <<~CONTENT
16
23
  {
@@ -1,7 +1,7 @@
1
1
  module Sqlpkg
2
- # constants describing the upstream tailwindcss project
2
+ # constants describing the upstream sqlpkg-cli project
3
3
  module Upstream
4
- VERSION = "0.2.3"
4
+ VERSION = "0.3.0"
5
5
 
6
6
  # rubygems platform name => upstream release filename
7
7
  NATIVE_PLATFORMS = {
@@ -1,3 +1,3 @@
1
1
  module Sqlpkg
2
- VERSION = "0.2.3.2"
2
+ VERSION = "0.3.0"
3
3
  end
data/lib/sqlpkg.rb CHANGED
@@ -19,9 +19,13 @@ module Sqlpkg
19
19
  alias_method :[], :path_for
20
20
 
21
21
  # The directory where `sqlpkg` stores installed extensions
22
- # => "./.sqlpkg"
22
+ # => "#{Rails.root}/.sqlpkg" or "./.sqlpkg"
23
23
  def file_dir
24
- File.join(__dir__, DIR)
24
+ if defined?(Rails) && Rails.respond_to?(:root) && Dir.exist?(Rails.root.join(DIR))
25
+ Rails.root.join(DIR)
26
+ else
27
+ File.join(__dir__, DIR)
28
+ end
25
29
  end
26
30
 
27
31
  # List of file paths for all installed extensions
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlpkg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3.2
4
+ version: 0.3.0
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Stephen Margheim
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-12-08 00:00:00.000000000 Z
10
+ date: 2025-06-03 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rubyzip
@@ -52,7 +51,6 @@ dependencies:
52
51
  - - ">="
53
52
  - !ruby/object:Gem::Version
54
53
  version: '0'
55
- description:
56
54
  email:
57
55
  - stephen.margheim@gmail.com
58
56
  executables:
@@ -81,7 +79,6 @@ metadata:
81
79
  rubygems_mfa_required: 'true'
82
80
  source_code_uri: https://github.com/fractaledmind/sqlpkg-ruby
83
81
  changelog_uri: https://github.com/fractaledmind/sqlpkg-ruby/CHANGELOG.md
84
- post_install_message:
85
82
  rdoc_options: []
86
83
  require_paths:
87
84
  - lib
@@ -96,8 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
93
  - !ruby/object:Gem::Version
97
94
  version: '0'
98
95
  requirements: []
99
- rubygems_version: 3.5.23
100
- signing_key:
96
+ rubygems_version: 3.6.3
101
97
  specification_version: 4
102
98
  summary: Integrate sqlpkg with the RubyGems infrastructure.
103
99
  test_files: []