itamae-plugin-recipe-bitlbee 0.1.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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: bc9bf7438840c3e6db3a9d66949cedf55ec6824109ed1d5fec528126f29f2779
4
+ data.tar.gz: 320eb01aee116121c866e3355b72f092c9234a2426abe7bd8c52b910d7197378
5
+ SHA512:
6
+ metadata.gz: 22f761162d73df4c0a08ebf8d1c7ff2ad4f04c1f020ea1477788ba10d6ee953f01fd0593f831c766385e3bea3e5cdc0b27e376ebe71dd92cb59f7400004ccef7
7
+ data.tar.gz: 2504975278622413db4b574f27b58b0b2018c189f205fc9a49345cf089b5a5c9c2bd7c0399825f4e72317caa9e14ffb52fd8d46498289ac32614ca998e10059f
data/.rubocop.yml ADDED
@@ -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
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2023-12-09
4
+
5
+ - Initial release
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in itamae-plugin-recipe-bitlbee.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "test-unit", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 1.21"
data/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # Itamae::Plugin::Recipe::Bitlbee
2
+
3
+ ## Installation
4
+
5
+ Install the gem and add to the application's `Gemfile` by executing: `bundle add itamae-plugin-recipe-bitlbee`.
6
+ If Bundler is not being used to manage dependencies, install the gem by executing: `gem install itamae-plugin-recipe-bitlbee`.
7
+
8
+ ## Usage
9
+
10
+ ```ruby
11
+ include_recipe "bitlbee"
12
+ ```
13
+
14
+ ## Development
15
+
16
+ After checking out the repo, run `bin/setup` to install dependencies.
17
+ Then, run `rake test` to run the tests.
18
+ You can also run `bin/console` for an interactive prompt that will allow you to experiment.
19
+
20
+ To install this gem onto your local machine, run `bundle exec rake install`.
21
+ 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
22
+
23
+ ## Contributing
24
+
25
+ Bug reports and pull requests are welcome.
data/Rakefile ADDED
@@ -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]
@@ -0,0 +1,43 @@
1
+ node.reverse_merge!(
2
+ {
3
+ bitlbee: {
4
+ mastodon: {
5
+ enable: false
6
+ },
7
+ discord: {
8
+ enable: false
9
+ },
10
+ service: {
11
+ name: "bitlbee",
12
+ actions: [:start, :enable]
13
+ }
14
+ }
15
+ }
16
+ )
17
+
18
+ node.validate! do
19
+ {
20
+ bitlbee: {
21
+ mastodon: {
22
+ enable: boolean
23
+ },
24
+ discord: {
25
+ enable: boolean
26
+ },
27
+ service: {
28
+ name: string,
29
+ actions: array_of(symbol)
30
+ }
31
+ }
32
+ }
33
+ end
34
+
35
+ include_recipe "package"
36
+
37
+ package "bitlbee-plugin-mastodon" if node[:bitlbee][:mastodon][:enable]
38
+
39
+ include_recipe "discord" if node[:bitlbee][:discord][:enable]
40
+
41
+ service node[:bitlbee][:service][:name] do
42
+ action node[:bitlbee][:service][:actions]
43
+ end
@@ -0,0 +1,59 @@
1
+ node.reverse_merge!(
2
+ {
3
+ bitlbee: {
4
+ discord: {
5
+ repo: "/tmp/bitlbee-discord"
6
+ }
7
+ }
8
+ }
9
+ )
10
+
11
+ node.validate! do
12
+ {
13
+ bitlbee: {
14
+ discord: {
15
+ repo: string
16
+ }
17
+ }
18
+ }
19
+ end
20
+
21
+ # bitlbee-discord / Build dependencies [1]
22
+ #
23
+ # [1] https://github.com/sm00th/bitlbee-discord/#build-dependencies
24
+
25
+ include_recipe "package"
26
+ package "bitlbee-dev"
27
+
28
+ package "libglib2.0-0"
29
+ package "libglib2.0-dev"
30
+
31
+ package "autotools-dev"
32
+
33
+ git node[:bitlbee][:discord][:repo] do
34
+ repository "https://github.com/sm00th/bitlbee-discord"
35
+ end
36
+
37
+ # bitlbee-discord / Building and Installing [2]
38
+ #
39
+ # [2] https://github.com/sm00th/bitlbee-discord/#building-and-installing
40
+
41
+ execute "generate autotools configuration" do
42
+ command "./autogen.sh"
43
+ cwd node[:bitlbee][:discord][:repo]
44
+ end
45
+
46
+ execute "configure" do
47
+ command "./configure"
48
+ cwd node[:bitlbee][:discord][:repo]
49
+ end
50
+
51
+ execute "build" do
52
+ command "make"
53
+ cwd node[:bitlbee][:discord][:repo]
54
+ end
55
+
56
+ execute "install" do
57
+ command "make install"
58
+ cwd node[:bitlbee][:discord][:repo]
59
+ end
@@ -0,0 +1 @@
1
+ package "bitlbee"
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Itamae
4
+ module Plugin
5
+ module Recipe
6
+ module Bitlbee
7
+ VERSION = "0.1.0"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "bitlbee/version"
4
+
5
+ module Itamae
6
+ module Plugin
7
+ module Recipe
8
+ module Bitlbee
9
+ class Error < StandardError; end
10
+ # Your code goes here...
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,10 @@
1
+ module Itamae
2
+ module Plugin
3
+ module Recipe
4
+ module Bitlbee
5
+ VERSION: String
6
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
7
+ end
8
+ end
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: itamae-plugin-recipe-bitlbee
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - gemmaro
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-12-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: itamae
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Itamae plugin recipe Bitlbee is a Itamae plugin, for installing Bitlbee
28
+ and its plugins and starting its service.
29
+ email:
30
+ - gemmaro.dev@gmail.com
31
+ executables: []
32
+ extensions: []
33
+ extra_rdoc_files: []
34
+ files:
35
+ - ".rubocop.yml"
36
+ - CHANGELOG.md
37
+ - Gemfile
38
+ - README.md
39
+ - Rakefile
40
+ - lib/itamae/plugin/recipe/bitlbee.rb
41
+ - lib/itamae/plugin/recipe/bitlbee/default.rb
42
+ - lib/itamae/plugin/recipe/bitlbee/discord.rb
43
+ - lib/itamae/plugin/recipe/bitlbee/package.rb
44
+ - lib/itamae/plugin/recipe/bitlbee/version.rb
45
+ - sig/itamae/plugin/recipe/bitlbee.rbs
46
+ homepage: https://codeberg.org/gemmaro/itamae-plugin-recipe-bitlbee
47
+ licenses: []
48
+ metadata:
49
+ homepage_uri: https://codeberg.org/gemmaro/itamae-plugin-recipe-bitlbee
50
+ source_code_uri: https://codeberg.org/gemmaro/itamae-plugin-recipe-bitlbee.git
51
+ changelog_uri: https://codeberg.org/gemmaro/itamae-plugin-recipe-bitlbee/src/branch/main/CHANGELOG.md
52
+ post_install_message:
53
+ rdoc_options: []
54
+ require_paths:
55
+ - lib
56
+ required_ruby_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 2.6.0
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ requirements: []
67
+ rubygems_version: 3.3.26
68
+ signing_key:
69
+ specification_version: 4
70
+ summary: Itamae plugin for Bitlbee
71
+ test_files: []