zircon 0.0.7 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f01d103a0a765b334709fe66a63f3af41a089c7f
4
- data.tar.gz: 19289f2022eae9da1de5837b3bfd8e7e9bb7bf30
2
+ SHA256:
3
+ metadata.gz: e32c05c8858422c9a8466ad133a9b8e74d1b4ec895a5fa748a1a109378216cb3
4
+ data.tar.gz: cbc6c25be6dd4c3b18efca4c013554d758f12e0526c4aac6750d14daaed430f4
5
5
  SHA512:
6
- metadata.gz: fabb0d76ea1a593206b7242fe65131ca89ae956b94eef57ac7fa3779cf295fefc2de16d5ff2e50421630a6a97dd69d88f65465fc550e849d29c4c913e7e99124
7
- data.tar.gz: 406d83e168766d0a7262a3dff5c68ad6c8cdaf21f4cb25e73501eca17e373aeb95e47748e402b1fd60b8efbceed4163960ee3b35329d72df9c5c5966c52b2691
6
+ metadata.gz: 913945ccffab5261758416741099aa0d8bacd360ffda2bf02eabe493ce4a5b7dd698173236423990eabbf29cf83fe88c4f4d6127d0ab04523cda720c8707529c
7
+ data.tar.gz: 8702d24e6528e12b955e523b825de40d5bc166088bb2678a262bac4d4da0a7d2bce4e2e46e10f104f1b8bfdbb982150eafedee682791f86ffa714be794ddf526
@@ -0,0 +1,23 @@
1
+ changelog:
2
+ categories:
3
+ - title: Added
4
+ labels:
5
+ - add
6
+ - title: Changed
7
+ labels:
8
+ - change
9
+ - title: Deprecated
10
+ labels:
11
+ - deprecate
12
+ - title: Fixed
13
+ labels:
14
+ - fix
15
+ - title: Removed
16
+ labels:
17
+ - remove
18
+ - title: Security
19
+ labels:
20
+ - security
21
+ - title: Others
22
+ labels:
23
+ - "*"
@@ -0,0 +1,37 @@
1
+ # This file is machine-generated by `gh actions-lock`.
2
+ # Do not edit by hand; run `gh actions-lock` to update.
3
+ # Docs: https://gh.io/actions-lockfile
4
+ version: 'v0.0.3'
5
+ workflows:
6
+ '.github/workflows/bump-request.yml':
7
+ - 'actions/checkout@v7.0.1'
8
+ - 'r7kamura/bump-request@v0.7.1'
9
+ - 'ruby/setup-ruby@v1.336.0'
10
+ '.github/workflows/ci.yml':
11
+ - 'actions/checkout@v7.0.1'
12
+ - 'ruby/setup-ruby@v1.336.0'
13
+ '.github/workflows/release.yml': []
14
+ dependencies:
15
+ 'actions/checkout@v7.0.1':
16
+ ref: 'v7.0.1'
17
+ commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
18
+ owner_id: 44036562
19
+ repo_id: 197814629
20
+ 'actions/setup-node@v7.1.0':
21
+ ref: 'v7.1.0'
22
+ commit: 'sha1-949feb2413d6458794dcd2491c4babbbce0c15c1'
23
+ owner_id: 44036562
24
+ repo_id: 189476904
25
+ 'r7kamura/bump-request@v0.7.1':
26
+ ref: 'v0.7.1'
27
+ commit: 'sha1-b27937188d404bc0c2fd442403e6de1d20f9b349'
28
+ owner_id: 111689
29
+ repo_id: 533135195
30
+ uses:
31
+ - 'actions/checkout@v7.0.1'
32
+ - 'actions/setup-node@v7.1.0'
33
+ 'ruby/setup-ruby@v1.336.0':
34
+ ref: 'v1.336.0'
35
+ commit: 'sha1-de492cf36cbab201753d720ce4f4e336cd688c94'
36
+ owner_id: 210414
37
+ repo_id: 231208785
@@ -0,0 +1,26 @@
1
+ name: bump-request
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ version:
7
+ description: Version to change to.
8
+ required: true
9
+ type: string
10
+
11
+ jobs:
12
+ run:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v7.0.1
16
+ - name: Set up Ruby
17
+ uses: ruby/setup-ruby@v1.336.0
18
+ with:
19
+ ruby-version: 3.3
20
+ bundler-cache: true
21
+ - uses: r7kamura/bump-request@v0.7.1
22
+ with:
23
+ command: |
24
+ sed -i -r 's/([0-9]+\.[0-9]+\.[0-9]+)/${{ inputs.version }}/' lib/zircon/version.rb
25
+ bundle install
26
+ version: ${{ inputs.version }}
@@ -0,0 +1,26 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ name: Ruby ${{ matrix.ruby }}
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ ruby:
17
+ - '3.3'
18
+ - '3.4'
19
+ - '4.0'
20
+ steps:
21
+ - uses: actions/checkout@v7.0.1
22
+ - uses: ruby/setup-ruby@v1.336.0
23
+ with:
24
+ ruby-version: ${{ matrix.ruby }}
25
+ bundler-cache: true
26
+ - run: bundle exec rspec
@@ -0,0 +1,11 @@
1
+ name: release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ release:
10
+ uses: r7kamura/workflows/.github/workflows/gem-release.yml@main
11
+ if: github.repository_owner == 'r7kamura'
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in zircon.gemspec
4
4
  gemspec
5
+
6
+ gem "rake"
data/README.md CHANGED
@@ -16,7 +16,8 @@ client = Zircon.new(
16
16
  :server => "example.com",
17
17
  :port => "6667",
18
18
  :channel => "#chatroid",
19
- :username => "zircon"
19
+ :username => "zircon",
20
+ :password => "optional password",
20
21
  )
21
22
 
22
23
  client.on_privmsg do |message|
@@ -15,6 +15,15 @@ class Zircon
15
15
  end
16
16
  end
17
17
 
18
+ def to_hash
19
+ {
20
+ body: body,
21
+ from: from,
22
+ to: to,
23
+ type: type,
24
+ }
25
+ end
26
+
18
27
  def type
19
28
  @type ||= @command.to_s.downcase
20
29
  end
@@ -1,3 +1,3 @@
1
1
  class Zircon
2
- VERSION = "0.0.7"
2
+ VERSION = "0.1.0"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,2 +1,3 @@
1
1
  $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
2
+ require "rspec/its"
2
3
  require "zircon"
data/spec/zircon_spec.rb CHANGED
@@ -11,7 +11,7 @@ describe Zircon do
11
11
 
12
12
  describe "#wait_message" do
13
13
  it "should trigger callback related to message type" do
14
- message = mock
14
+ message = double
15
15
  message.stub(:type).and_return("xxx")
16
16
  Zircon::Message.stub(:new).and_return(message)
17
17
  Zircon.any_instance.stub(:loop) { |&block| block.call }
data/zircon.gemspec CHANGED
@@ -8,6 +8,11 @@ Gem::Specification.new do |gem|
8
8
  gem.summary = "IRC client library written in Pure Ruby"
9
9
  gem.homepage = "https://github.com/r7kamura/zircon"
10
10
 
11
+ gem.metadata["homepage_uri"] = gem.homepage
12
+ gem.metadata["source_code_uri"] = gem.homepage
13
+ gem.metadata["changelog_uri"] = "#{gem.homepage}/releases"
14
+ gem.metadata["rubygems_mfa_required"] = "true"
15
+
11
16
  gem.files = `git ls-files`.split($\)
12
17
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
@@ -15,5 +20,8 @@ Gem::Specification.new do |gem|
15
20
  gem.require_paths = ["lib"]
16
21
  gem.version = Zircon::VERSION
17
22
 
23
+ gem.required_ruby_version = ">= 3.3"
24
+
18
25
  gem.add_development_dependency "rspec"
26
+ gem.add_development_dependency "rspec-its"
19
27
  end
metadata CHANGED
@@ -1,27 +1,40 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zircon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo NAKAMURA
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2013-10-20 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rspec
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - '>='
16
+ - - ">="
18
17
  - !ruby/object:Gem::Version
19
18
  version: '0'
20
19
  type: :development
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
- - - '>='
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec-its
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
25
38
  - !ruby/object:Gem::Version
26
39
  version: '0'
27
40
  description: Zircon is a mineral belonging to the group of nesosilicates.
@@ -31,7 +44,12 @@ executables: []
31
44
  extensions: []
32
45
  extra_rdoc_files: []
33
46
  files:
34
- - .gitignore
47
+ - ".github/release.yml"
48
+ - ".github/workflows/actions.lock"
49
+ - ".github/workflows/bump-request.yml"
50
+ - ".github/workflows/ci.yml"
51
+ - ".github/workflows/release.yml"
52
+ - ".gitignore"
35
53
  - Gemfile
36
54
  - LICENSE
37
55
  - README.md
@@ -47,29 +65,29 @@ files:
47
65
  - zircon.gemspec
48
66
  homepage: https://github.com/r7kamura/zircon
49
67
  licenses: []
50
- metadata: {}
51
- post_install_message:
68
+ metadata:
69
+ homepage_uri: https://github.com/r7kamura/zircon
70
+ source_code_uri: https://github.com/r7kamura/zircon
71
+ changelog_uri: https://github.com/r7kamura/zircon/releases
72
+ rubygems_mfa_required: 'true'
52
73
  rdoc_options: []
53
74
  require_paths:
54
75
  - lib
55
76
  required_ruby_version: !ruby/object:Gem::Requirement
56
77
  requirements:
57
- - - '>='
78
+ - - ">="
58
79
  - !ruby/object:Gem::Version
59
- version: '0'
80
+ version: '3.3'
60
81
  required_rubygems_version: !ruby/object:Gem::Requirement
61
82
  requirements:
62
- - - '>='
83
+ - - ">="
63
84
  - !ruby/object:Gem::Version
64
85
  version: '0'
65
86
  requirements: []
66
- rubyforge_project:
67
- rubygems_version: 2.0.3
68
- signing_key:
87
+ rubygems_version: 4.0.20
69
88
  specification_version: 4
70
89
  summary: IRC client library written in Pure Ruby
71
90
  test_files:
72
91
  - spec/spec_helper.rb
73
92
  - spec/zircon/message_spec.rb
74
93
  - spec/zircon_spec.rb
75
- has_rdoc: