salsify_devx_test_gem 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 26ccca793a20732f53efabc500cc02283b7e3bb841369c9f9b7456e17ef7c89e
4
+ data.tar.gz: 16ad25761dd3ec69eb0c8297d948a025881b2a2d48c4ad82d1edc5f8c9ba655f
5
+ SHA512:
6
+ metadata.gz: 9ef53bcb81daf054e5d28bdb2e63242b579513deaf0f61543d0e6f081f4e69db4770d4c589e5a7db8c62b3f68a6ee8260e65326524500d41bbe43fc105a292a2
7
+ data.tar.gz: 8fda9150ba9553c6774c8d7f6c98f9ea873eaff529f5481f2773e3bee61a386aae183690b5795ce951f6bff9ca2df2853aea6b0f448bf73ea6cbacc00f313d08
@@ -0,0 +1,50 @@
1
+ version: 2.1
2
+ workflows:
3
+ version: 2
4
+ salsify_devx_test_gem:
5
+ jobs:
6
+ - build:
7
+ context: Salsify
8
+ matrix:
9
+ parameters:
10
+ ruby_version: [ "2.6.5", "2.7.2", "3.0.0" ]
11
+ jobs:
12
+ build:
13
+ parameters:
14
+ ruby_version:
15
+ type: string
16
+ docker:
17
+ - image: salsify/ruby_ci:<< parameters.ruby_version >>
18
+ environment:
19
+ RACK_ENV: "test"
20
+ RAILS_ENV: "test"
21
+ CIRCLE_TEST_REPORTS: "test-results"
22
+ working_directory: ~/salsify_devx_test_gem
23
+ steps:
24
+ - checkout
25
+ - restore_cache:
26
+ keys:
27
+ - v1-gems-ruby-<< parameters.ruby_version >>-{{ checksum "salsify_devx_test_gem.gemspec" }}-{{ checksum "Gemfile" }}
28
+ - v1-gems-ruby-<< parameters.ruby_version >>-
29
+ - run:
30
+ name: Install Gems
31
+ command: |
32
+ if ! bundle check --path=vendor/bundle; then
33
+ bundle config set --local path 'vendor/bundle'
34
+ bundle install --jobs=4 --retry=3
35
+ bundle clean
36
+ fi
37
+ - save_cache:
38
+ key: v1-gems-ruby-<< parameters.ruby_version >>-{{ checksum "salsify_devx_test_gem.gemspec" }}-{{ checksum "Gemfile" }}
39
+ paths:
40
+ - "vendor/bundle"
41
+ - "gemfiles/vendor/bundle"
42
+ - run:
43
+ name: Run Rubocop
44
+ command: bundle exec rubocop
45
+ - run:
46
+ name: Run Tests
47
+ command: |
48
+ bundle exec rspec --format RspecJunitFormatter --out $CIRCLE_TEST_REPORTS/rspec/junit.xml --format progress spec
49
+ - store_test_results:
50
+ path: "test-results"
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.overcommit.yml ADDED
@@ -0,0 +1,13 @@
1
+ PreCommit:
2
+ RuboCop:
3
+ enabled: true
4
+ required: false
5
+ on_warn: fail
6
+
7
+ HardTabs:
8
+ enabled: true
9
+ required: false
10
+
11
+ CommitMsg:
12
+ TrailingPeriod:
13
+ enabled: false
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,11 @@
1
+ inherit_gem:
2
+ salsify_rubocop: conf/rubocop.yml
3
+
4
+ AllCops:
5
+ TargetRubyVersion: 2.6
6
+ Exclude:
7
+ - 'vendor/**/*'
8
+ - 'gemfiles/vendor/**/*'
9
+
10
+ Style/FrozenStringLiteralComment:
11
+ Enabled: true
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ salsify_devx_test_gem
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.6.5
data/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
6
+
7
+ ## Unreleased
8
+
9
+ ## 0.0.0 - 2021-11-18
10
+ ### Added
11
+ - Initial version
12
+ - When ready for release, bump `version.rb` to allow the release automation described in the README
13
+ to detect the change. Note: this requires at least 1 commit to the default branch with this
14
+ initial version.
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+
4
+ source 'https://rubygems.org'
5
+
6
+
7
+ # override the :github shortcut to be secure by using HTTPS
8
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}.git" }
9
+
10
+ # Specify your gem's dependencies in salsify_devx_test_gem.gemspec
11
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Salsify, Inc
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.
22
+
data/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # DevxTestGem
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be
4
+ able to package up your Ruby library into a gem. Put your Ruby code in the file
5
+ `lib/salsify_devx_test_gem`. To experiment with that code, run
6
+ `bin/console` for an interactive prompt.
7
+
8
+ TODO: Delete this and the text above, and describe your gem
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ ```ruby
15
+ gem 'salsify_devx_test_gem'
16
+ ```
17
+
18
+ And then execute:
19
+
20
+ $ bundle
21
+
22
+ Or install it yourself as:
23
+
24
+ $ gem install salsify_devx_test_gem
25
+
26
+ ## Compatibility
27
+
28
+ This gem is compatible with and tested on:
29
+
30
+ * Ruby 2.6.5
31
+ * Ruby 2.7.2
32
+ * Ruby 3.0.0
33
+
34
+ ## Usage
35
+
36
+ TODO: Write usage instructions here
37
+
38
+ ## Development
39
+
40
+ After checking out the repo, run `bin/setup` to install dependencies. Then,
41
+ run `rake spec` to run the tests. You can also run `bin/console` for an
42
+ interactive prompt that will allow you to experiment.
43
+
44
+ To install this gem onto your local machine, run `bundle exec rake install`.
45
+
46
+ To release a new version, update the version number in `version.rb`. When merged
47
+ to the default branch, [a GitHub action](.github/workflows/release.yml) will
48
+ automatically will create a git tag for the version, push git commits and tags,
49
+ and push the `.gem` file to
50
+ [rubygems.org](https://rubygems.org)
51
+ .
52
+
53
+ ## Contributing
54
+
55
+ Bug reports and pull requests are welcome on GitHub at
56
+ https://github.com/salsify/salsify_devx_test_gem.## License
57
+
58
+ The gem is available as open source under the terms of the
59
+ [MIT License](http://opensource.org/licenses/MIT).
60
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+
5
+
6
+ require 'rspec/core/rake_task'
7
+
8
+ RSpec::Core::RakeTask.new(:spec)
9
+
10
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'salsify_devx_test_gem'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -v
5
+
6
+ bundle update
7
+
8
+ overcommit --install
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DevxTestGem
4
+ VERSION = '0.0.0'
5
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'salsify_devx_test_gem/version'
4
+
5
+ # Top-level gem module
6
+ module DevxTestGem
7
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'salsify_devx_test_gem/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'salsify_devx_test_gem'
9
+ spec.version = DevxTestGem::VERSION
10
+ spec.authors = ['Salsify, Inc']
11
+ spec.email = ['engineering@salsify.com']
12
+
13
+ spec.summary = 'Public gem to test release tooling for rubygems.org'
14
+ spec.description = spec.summary
15
+ spec.homepage = 'https://github.com/salsify/salsify_devx_test_gem'
16
+
17
+ spec.license = 'MIT'
18
+
19
+
20
+ # Set 'allowed_push_post' to control where this gem can be published.
21
+ if spec.respond_to?(:metadata)
22
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
23
+ spec.metadata['rubygems_mfa_required'] = 'true'
24
+ else
25
+ raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
26
+ end
27
+
28
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
29
+ spec.bindir = 'bin'
30
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
31
+ spec.require_paths = ['lib']
32
+
33
+ spec.required_ruby_version = '>= 2.6.5'
34
+
35
+ spec.add_development_dependency 'bundler', '~> 2.0'
36
+ spec.add_development_dependency 'overcommit'
37
+ spec.add_development_dependency 'rake', '~> 13.0'
38
+ spec.add_development_dependency 'rspec', '~> 3.9'
39
+ spec.add_development_dependency 'rspec_junit_formatter', '~> 0.4.1'
40
+
41
+ spec.add_development_dependency 'salsify_rubocop', '~> 1.0'
42
+ end
metadata ADDED
@@ -0,0 +1,148 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: salsify_devx_test_gem
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Salsify, Inc
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: overcommit
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '13.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '13.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.9'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.9'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec_junit_formatter
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.4.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.4.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: salsify_rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.0'
97
+ description: Public gem to test release tooling for rubygems.org
98
+ email:
99
+ - engineering@salsify.com
100
+ executables:
101
+ - console
102
+ - setup
103
+ extensions: []
104
+ extra_rdoc_files: []
105
+ files:
106
+ - ".circleci/config.yml"
107
+ - ".gitignore"
108
+ - ".overcommit.yml"
109
+ - ".rspec"
110
+ - ".rubocop.yml"
111
+ - ".ruby-gemset"
112
+ - ".ruby-version"
113
+ - CHANGELOG.md
114
+ - Gemfile
115
+ - LICENSE.txt
116
+ - README.md
117
+ - Rakefile
118
+ - bin/console
119
+ - bin/setup
120
+ - lib/salsify_devx_test_gem.rb
121
+ - lib/salsify_devx_test_gem/version.rb
122
+ - salsify_devx_test_gem.gemspec
123
+ homepage: https://github.com/salsify/salsify_devx_test_gem
124
+ licenses:
125
+ - MIT
126
+ metadata:
127
+ allowed_push_host: https://rubygems.org
128
+ rubygems_mfa_required: 'true'
129
+ post_install_message:
130
+ rdoc_options: []
131
+ require_paths:
132
+ - lib
133
+ required_ruby_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: 2.6.5
138
+ required_rubygems_version: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ requirements: []
144
+ rubygems_version: 3.2.31
145
+ signing_key:
146
+ specification_version: 4
147
+ summary: Public gem to test release tooling for rubygems.org
148
+ test_files: []