capistrano-nobrainer 0.2.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 62570c1b0985962bdbf5a77b4295416121e06321f65b12630e83bb2ad313b755
4
+ data.tar.gz: 755bdef374a6ef621593f8de7c43679a10ffd32492cc315a1a33a4a2a0617722
5
+ SHA512:
6
+ metadata.gz: ff70b95e915bc4b3ceb8044ee5db029ff36d4f11adf62ab57414167ae2569ed6af4f3c3bb2fb2d95b7692759c58db154ae7e8dd24dd5accb3680d0b3fb198a44
7
+ data.tar.gz: 12c778bcd0d955d681519a3d6b6542b75153dc7369b49083fc28f7caaef502e39fbf8470d67d9982ffbf39fb64ea6c74aa7997540d42b86e3c449abbf8890ab5
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ *.gem
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,20 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+
10
+
11
+ ## [0.2.0] - 2020-10-23
12
+ ### Fixed
13
+ - Fixes allowed_push_host from the gemspec file
14
+
15
+ ## [0.1.0] - 2020-10-23
16
+ ### Added
17
+ - Capistrano task to create Nobrainer indexes
18
+
19
+ [Unreleased]: https://gitlab.com/zedtux/changelog-notifier/-/compare/v0.1.0...master
20
+ [0.1.0]: https://gitlab.com/zedtux/changelog-notifier/-/tags/v0.1.0
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at zedtux@zedroot.org. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in capistrano-nobrainer.gemspec
4
+ gemspec
5
+
6
+ gem 'rake', '~> 12.0'
7
+ gem 'rspec', '~> 3.0'
@@ -0,0 +1,44 @@
1
+ # Capistrano::Nobrainer
2
+
3
+ This gem adds the integration for the nobrainer gem in Capistrano.
4
+
5
+ It creates the indexes automatically.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'capistrano-nobrainer', '~> 0.2'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install capistrano-nobrainer
22
+
23
+ ## Usage
24
+
25
+ Add the following require to your `Capfile`:
26
+
27
+ ```ruby
28
+ require 'capistrano/nobrainer'
29
+ ```
30
+
31
+ ## Development
32
+
33
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
34
+
35
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
36
+
37
+ ## Contributing
38
+
39
+ Bug reports and pull requests are welcome on GitHub at https://gitlab.com/zedtux/capistrano-nobrainer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://gitlab.com/zedtux/capistrano-nobrainer/blob/master/CODE_OF_CONDUCT.md).
40
+
41
+
42
+ ## Code of Conduct
43
+
44
+ Everyone interacting in the Capistrano::Nobrainer project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://gitlab.com/zedtux/capistrano-nobrainer/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'capistrano/nobrainer'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/capistrano/nobrainer/version'
4
+
5
+ repo_url = 'https://gitlab.com/zedtux/capistrano-nobrainer'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'capistrano-nobrainer'
9
+ spec.version = Capistrano::Nobrainer::VERSION
10
+ spec.authors = ['Guillaume Hain']
11
+ spec.email = ['zedtux@zedroot.org']
12
+
13
+ spec.summary = 'Nobrainer integration for Capistrano'
14
+ spec.description = File.read('README.md').scan(
15
+ /\A#.*$\n\n([\w\W]+)\n\n##/
16
+ ).flatten
17
+
18
+ spec.homepage = repo_url
19
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
20
+
21
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
22
+
23
+ spec.metadata['homepage_uri'] = spec.homepage
24
+ spec.metadata['source_code_uri'] = repo_url
25
+ spec.metadata['changelog_uri'] = repo_url + '/-/blob/master/CHANGELOG.md'
26
+
27
+ # Specify which files should be added to the gem when it is released.
28
+ # The `git ls-files -z` loads the files in the RubyGem that have been added
29
+ # into git.
30
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
31
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
32
+ end
33
+ spec.bindir = 'exe'
34
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
+ spec.require_paths = ['lib']
36
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'capistrano/nobrainer/version'
4
+
5
+ module Capistrano
6
+ module Nobrainer
7
+ end
8
+ end
9
+
10
+ load File.expand_path('tasks/nobrainer.rake', __dir__)
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Capistrano
4
+ module Nobrainer
5
+ VERSION = '0.2.0'
6
+ end
7
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ namespace :deploy do
4
+ desc 'Runs rails nobrainer:sync_indexes'
5
+ task :create_nobrainer_indexes do
6
+ on roles(:app) do
7
+ within release_path do
8
+ with rails_env: fetch(:rails_env) do
9
+ execute :rails, 'nobrainer:sync_indexes'
10
+ end
11
+ end
12
+ end
13
+ end
14
+
15
+ after 'deploy:updated', 'deploy:create_nobrainer_indexes'
16
+ end
metadata ADDED
@@ -0,0 +1,72 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-nobrainer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Guillaume Hain
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-10-23 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: '["This gem adds the integration for the nobrainer gem in Capistrano.\n\nIt
14
+ creates the indexes automatically.\n\n## Installation\n\nAdd this line to your application''s
15
+ Gemfile:\n\n```ruby\ngem ''capistrano-nobrainer'', ''~> 0.2''\n```\n\nAnd then execute:\n\n $
16
+ bundle install\n\nOr install it yourself as:\n\n $ gem install capistrano-nobrainer\n\n##
17
+ Usage\n\nAdd the following require to your `Capfile`:\n\n```ruby\nrequire ''capistrano/nobrainer''\n```\n\n##
18
+ Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies.
19
+ You can also run `bin/console` for an interactive prompt that will allow you to
20
+ experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake
21
+ install`. To release a new version, update the version number in `version.rb`, and
22
+ then run `bundle exec rake release`, which will create a git tag for the version,
23
+ push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n##
24
+ Contributing\n\nBug reports and pull requests are welcome on GitHub at https://gitlab.com/zedtux/capistrano-nobrainer.
25
+ This project is intended to be a safe, welcoming space for collaboration, and contributors
26
+ are expected to adhere to the [code of conduct](https://gitlab.com/zedtux/capistrano-nobrainer/blob/master/CODE_OF_CONDUCT.md).\n"]'
27
+ email:
28
+ - zedtux@zedroot.org
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - ".gitignore"
34
+ - ".rspec"
35
+ - CHANGELOG.md
36
+ - CODE_OF_CONDUCT.md
37
+ - Gemfile
38
+ - README.md
39
+ - Rakefile
40
+ - bin/console
41
+ - bin/setup
42
+ - capistrano-nobrainer.gemspec
43
+ - lib/capistrano/nobrainer.rb
44
+ - lib/capistrano/nobrainer/version.rb
45
+ - lib/capistrano/tasks/nobrainer.rake
46
+ homepage: https://gitlab.com/zedtux/capistrano-nobrainer
47
+ licenses: []
48
+ metadata:
49
+ allowed_push_host: https://rubygems.org
50
+ homepage_uri: https://gitlab.com/zedtux/capistrano-nobrainer
51
+ source_code_uri: https://gitlab.com/zedtux/capistrano-nobrainer
52
+ changelog_uri: https://gitlab.com/zedtux/capistrano-nobrainer/-/blob/master/CHANGELOG.md
53
+ post_install_message:
54
+ rdoc_options: []
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 2.3.0
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ requirements: []
68
+ rubygems_version: 3.0.4
69
+ signing_key:
70
+ specification_version: 4
71
+ summary: Nobrainer integration for Capistrano
72
+ test_files: []