shopify_toolkit 0.3.0 → 0.3.1

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: 5b5096d0e8a69b382a17ac046866f2386e2c1b06cf5b8c657138dafc1efef67b
4
- data.tar.gz: 85d2b5e79156013fcd95a8aa35e21eb6db331d287ffab98d3cfc759ca76f1e98
3
+ metadata.gz: 196eef035351804fd3640e1ff995bc853b6e5c026ae9c301762620225e2967ed
4
+ data.tar.gz: 2cbeb8412d7659732136eb0f4d152f9b1df766561b8a203ac594aac7dcadf656
5
5
  SHA512:
6
- metadata.gz: 3eeed116a762958bc570bc258f7b22982130becad873278303249b1fddb29fc807ffe1ebbac00f8cff2d96602389e7a39f4a980cdfe97c9bb61cc54c92e38e09
7
- data.tar.gz: b7b6f2de4725cc821bfd3f7c6fdac9172491ddfd7b8b70d89ab1c73707608c8b52afb150b50a2bb835e3d107586b19ba976d0526ea0b74bd6d8ca2c89debe0ff
6
+ metadata.gz: c5d3071a0cddfcccd0b9b534a2c0c0c3f3cc86b3b6e1fedb8bc8fa70dafa74444f65b723c9ca08a9c091a5c4e1d07677bf4f0a95eaae48bc971e482e4085489d
7
+ data.tar.gz: 2001bf1e1ecae528a91131a5ea07502cb2fe9bb6f71534c504100560912ad0cabcff5b9eebc1ecfa01241aae6ff42ec433ac2769ba6e6ad9606af15161300dd2
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --require spec_helper
2
+ --format documentation
3
+ --color
data/Rakefile CHANGED
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "bundler/gem_tasks"
4
- require "minitest/test_task"
4
+ require "rspec/core/rake_task"
5
5
 
6
- Minitest::TestTask.create
6
+ RSpec::Core::RakeTask.new(:spec)
7
7
 
8
- task default: :test
8
+ task default: :spec
data/exe/shopify-toolkit CHANGED
@@ -4,6 +4,7 @@ require 'csv'
4
4
  require 'active_record'
5
5
  require 'thor'
6
6
  require 'tmpdir'
7
+ require 'shopify_toolkit'
7
8
 
8
9
  class ShopifyToolkit::CommandLine < Thor
9
10
  RESERVED_COLUMN_NAMES = %w[select type id]
@@ -75,7 +75,19 @@ module ShopifyToolkit::Schema
75
75
 
76
76
  def generate_schema_content
77
77
  definitions = fetch_definitions
78
- content = ["ShopifyToolkit::Schema.define do"]
78
+
79
+ content = [
80
+ <<~RUBY
81
+ # This file is auto-generated from the current state of the Shopify metafields.
82
+ # Instead of editing this file, please use the metafields migration feature of ShopifyToolkit
83
+ # to incrementally modify your metafields, and then regenerate this schema definition.
84
+ #
85
+ # This file is the source used to define your metafields when running `bin/rails shopify:schema:load`.
86
+ #
87
+ # It's strongly recommended that you check this file into your version control system.
88
+ ShopifyToolkit::Schema.define do
89
+ RUBY
90
+ ]
79
91
 
80
92
  definitions.each do |defn|
81
93
  owner_type = defn["ownerType"].downcase.pluralize.to_sym
@@ -111,6 +123,7 @@ module ShopifyToolkit::Schema
111
123
  end
112
124
 
113
125
  content << "end"
126
+ content << "\n"
114
127
  content.join("\n")
115
128
  end
116
129
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ShopifyToolkit
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elia Schito
8
8
  - Nebulab Team
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-04-11 00:00:00.000000000 Z
11
+ date: 2025-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -101,6 +101,7 @@ executables:
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
+ - ".rspec"
104
105
  - CHANGELOG.md
105
106
  - LICENSE.txt
106
107
  - README.md