discord 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: 70401036dccd020159fea88e54204dcebf9ae354aa22b13d0b3dc2f9fe9fdaba
4
+ data.tar.gz: 428e5946bebc533016388e8380e69c8f1eed469682c51e0703cc7a0e3f0a65bc
5
+ SHA512:
6
+ metadata.gz: 7411e1fe26ed25d22f42fa2280b1d1daec3de8decd0cbce5cc0c83376184cccb6b87281ae1bc02783fde4ba9ecd43ff74e35d27cc12b54805e142fe7062af802
7
+ data.tar.gz: 4ab64720d14539ac12aef00300ba7c5bb1d1cc78d217171e3676672db592d756e2061534f1f51b5e1f1d8a60227efcaf2d9213e2c94bcecc855330f643cf2feb
data/.bundle/config ADDED
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_FORCE_RUBY_PLATFORM: "true"
data/.envrc ADDED
@@ -0,0 +1 @@
1
+ use flake
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] - 2022-10-17
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 discord.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "minitest", "~> 5.0"
11
+
12
+ gem "rubocop", "~> 1.21"
data/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # Discord
2
+
3
+ experimental discord api wrapper
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'discord'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install discord
20
+
21
+ ## Usage
22
+
23
+ TODO: Write usage instructions here
24
+
25
+ ## Development
26
+
27
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
28
+
29
+ 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
30
+
31
+ ## Contributing
32
+
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/discord.
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]
data/default.nix ADDED
@@ -0,0 +1,15 @@
1
+ { buildRubyGem
2
+ , ruby_3_1
3
+ , git
4
+ }:
5
+
6
+ buildRubyGem {
7
+ ruby = ruby_3_1;
8
+
9
+ gemName = "discord";
10
+ version = "0.1";
11
+
12
+ src = ./.;
13
+
14
+ nativeBuildInputs = [ git ];
15
+ }
data/flake.lock ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "nodes": {
3
+ "flake-utils": {
4
+ "locked": {
5
+ "lastModified": 1659877975,
6
+ "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
7
+ "owner": "numtide",
8
+ "repo": "flake-utils",
9
+ "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
10
+ "type": "github"
11
+ },
12
+ "original": {
13
+ "owner": "numtide",
14
+ "repo": "flake-utils",
15
+ "type": "github"
16
+ }
17
+ },
18
+ "nixpkgs": {
19
+ "locked": {
20
+ "lastModified": 1666726448,
21
+ "narHash": "sha256-7p/vPB1I0AFCwAc3sHcBui7x3qKm8KclwGoCHTlx0A4=",
22
+ "path": "/nix/store/dks90x2yk9zhg6ybcjvc1rgnn5k0qz3s-source",
23
+ "rev": "3689a76637f9b233529ec79d0927142ff28b0a5a",
24
+ "type": "path"
25
+ },
26
+ "original": {
27
+ "id": "nixpkgs",
28
+ "type": "indirect"
29
+ }
30
+ },
31
+ "root": {
32
+ "inputs": {
33
+ "flake-utils": "flake-utils",
34
+ "nixpkgs": "nixpkgs"
35
+ }
36
+ }
37
+ },
38
+ "root": "root",
39
+ "version": 7
40
+ }
data/flake.nix ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ description = "ruby discord";
3
+
4
+ inputs = {
5
+ # nixpkgs.url = github:nixos/nixpkgs;
6
+
7
+ flake-utils.url = github:numtide/flake-utils;
8
+ };
9
+
10
+ outputs = { self
11
+ , nixpkgs
12
+ , flake-utils
13
+ }: flake-utils.lib.eachDefaultSystem (system: let
14
+ pkgs = nixpkgs.legacyPackages.${system};
15
+
16
+ pkgName = "ruby-discord";
17
+
18
+ pkg = pkgs.callPackage ./default.nix { };
19
+ shell = import ./shell.nix { inherit pkgs; };
20
+ in {
21
+ packages.${pkgName} = pkg;
22
+ packages.default = pkg;
23
+
24
+ devShells.${pkgName} = shell;
25
+ devShells.default = shell;
26
+ });
27
+ }
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Discord
4
+ VERSION = "0.1.0"
5
+ end
data/lib/discord.rb ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "discord/version"
4
+
5
+ module Discord
6
+ class Error < StandardError; end
7
+ # Your code goes here...
8
+ end
data/shell.nix ADDED
@@ -0,0 +1,3 @@
1
+ { pkgs ? import <nixpkgs> { } }:
2
+
3
+ (pkgs.callPackage ./. { }).overrideAttrs (attrs: { })
data/sig/discord.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Discord
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,61 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: discord
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Anna Kudriavtsev
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 1980-01-01 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ - anna328p@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".bundle/config"
21
+ - ".envrc"
22
+ - ".rubocop.yml"
23
+ - CHANGELOG.md
24
+ - Gemfile
25
+ - README.md
26
+ - Rakefile
27
+ - default.nix
28
+ - flake.lock
29
+ - flake.nix
30
+ - lib/discord.rb
31
+ - lib/discord/version.rb
32
+ - shell.nix
33
+ - sig/discord.rbs
34
+ homepage: https://github.com/arch-community/ruby-discord
35
+ licenses:
36
+ - AGPL-3.0-or-later
37
+ metadata:
38
+ allowed_push_host: https://rubygems.org
39
+ homepage_uri: https://github.com/arch-community/ruby-discord
40
+ source_code_uri: https://github.com/arch-community/ruby-discord
41
+ changelog_uri: https://github.com/arch-community/ruby-discord/blob/main/CHANGELOG.md
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 3.1.0
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ requirements: []
57
+ rubygems_version: 3.3.20
58
+ signing_key:
59
+ specification_version: 4
60
+ summary: Discord API abstraction layer
61
+ test_files: []