Skip to content

Commit a7f693e

Browse files
committed
Initial commit
0 parents  commit a7f693e

File tree

12 files changed

+159
-0
lines changed

12 files changed

+159
-0
lines changed

.github/workflows/main.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Ruby
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
name: Ruby ${{ matrix.ruby }}
14+
strategy:
15+
matrix:
16+
ruby:
17+
- '3.2.0'
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Set up Ruby
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby }}
25+
bundler-cache: true
26+
- name: Run the default task
27+
run: bundle exec rake

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/doc/
6+
/pkg/
7+
/spec/reports/
8+
/tmp/

.rubocop.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
AllCops:
2+
TargetRubyVersion: 2.6
3+
4+
Style/StringLiterals:
5+
Enabled: true
6+
EnforcedStyle: double_quotes
7+
8+
Style/StringLiteralsInInterpolation:
9+
Enabled: true
10+
EnforcedStyle: double_quotes
11+
12+
Layout/LineLength:
13+
Max: 120

Gemfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
# Specify your gem's dependencies in shopfiy_ruby_definitions.gemspec
6+
gemspec
7+
8+
gem "rake", "~> 13.0"
9+
10+
gem "minitest", "~> 5.0"
11+
12+
gem "rubocop", "~> 1.21"

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2023 Peter Zhu
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Whitespace-only changes.

Rakefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# frozen_string_literal: true
2+
3+
require "bundler/gem_tasks"
4+
require "rake/testtask"
5+
6+
Rake::TestTask.new(:test) do |t|
7+
t.libs << "test"
8+
t.libs << "lib"
9+
t.test_files = FileList["test/**/test_*.rb"]
10+
end
11+
12+
require "rubocop/rake_task"
13+
14+
RuboCop::RakeTask.new
15+
16+
task default: %i[test rubocop]

lib/shopify_ruby_definitions.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# frozen_string_literal: true
2+
3+
require_relative "shopify_ruby_definitions/version"
4+
5+
module ShopifyRubyDefinitions
6+
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# frozen_string_literal: true
2+
3+
module ShopifyRubyDefinitions
4+
VERSION = "0.0.1"
5+
end

shopify-ruby-definitions.gemspec

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# frozen_string_literal: true
2+
3+
require_relative "lib/shopify_ruby_definitions/version"
4+
5+
Gem::Specification.new do |spec|
6+
spec.name = "shopify-ruby-definitions"
7+
spec.version = ShopifyRubyDefinitions::VERSION
8+
spec.authors = ["Peter Zhu"]
9+
spec.email = ["[email protected]"]
10+
11+
spec.summary = "TODO: Write a short summary, because RubyGems requires one."
12+
spec.description = "TODO: Write a longer description or delete this line."
13+
spec.homepage = "TODO: Put your gem's website or public repo URL here."
14+
spec.license = "MIT"
15+
spec.required_ruby_version = ">= 2.6.0"
16+
17+
spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
18+
19+
spec.metadata["homepage_uri"] = spec.homepage
20+
spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
21+
spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
22+
23+
# Specify which files should be added to the gem when it is released.
24+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25+
spec.files = Dir.chdir(__dir__) do
26+
`git ls-files -z`.split("\x0").reject do |f|
27+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
28+
end
29+
end
30+
spec.bindir = "exe"
31+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32+
spec.require_paths = ["lib"]
33+
34+
# Uncomment to register a new dependency of your gem
35+
# spec.add_dependency "example-gem", "~> 1.0"
36+
37+
# For more information and examples about making a new gem, check out our
38+
# guide at: https://bundler.io/guides/creating_gem.html
39+
end

0 commit comments

Comments
 (0)