honkhonk 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 277990092878568fce69dace8a786f9eb14644c1ae99420d8dc2842c7c92ef57
4
+ data.tar.gz: 7278590c0c215ec62c700818b411ba563200d1a29031f29fe5d9639db29efad4
5
+ SHA512:
6
+ metadata.gz: a8422fff8c4a9c6178b9c531abefda367a986b57d12b9b2b64ec07cce246500a274739c2c6c12277c1267bae7316aa520441806431eda58fec833e758d4aca29
7
+ data.tar.gz: 04c225f4c53015ce801e4ba5eebd26e2f59eb8c64264e3bb389c82ef0bb68f30140969c183c085dddfca17bae0b497263ae788999219f25a01b4d0a2e042cc4c
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ gemspec
@@ -0,0 +1,20 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ honkhonk (0.0.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ rake (13.0.0)
10
+
11
+ PLATFORMS
12
+ ruby
13
+
14
+ DEPENDENCIES
15
+ bundler
16
+ honkhonk!
17
+ rake (~> 13.0)
18
+
19
+ BUNDLED WITH
20
+ 1.17.3
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
+ require "bundler/setup"
4
+ require "honk/tasks"
@@ -0,0 +1,12 @@
1
+ # Honk!
2
+
3
+ ## Usage
4
+
5
+ 1. `gem install honk`
6
+ 2. `bundle exec honk`
7
+
8
+ or
9
+
10
+ 1. `gem install honk`
11
+ 2. add `require "honk/tasks"` to `Rakefile`
12
+ 3. `rake honk`
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require 'bundler/setup'
3
+ require 'honk'
4
+ Honk.()
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "honkhonk"
7
+ spec.version = "0.0.1"
8
+ spec.required_ruby_version = ">= 2.5.0"
9
+ spec.authors = ["Jon Rowe"]
10
+ spec.email = ["hello@jonrowe.co.uk"]
11
+ spec.description = %q{Honk!}
12
+ spec.summary = %q{Honk!}
13
+ spec.homepage = "https://github.com/JonRowe/honk"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^spec})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "rake", '~> 13.0'
22
+ spec.add_development_dependency "bundler"
23
+ end
Binary file
@@ -0,0 +1,9 @@
1
+ module Honk
2
+ HONK = File.expand_path('honk.aiff', __dir__)
3
+
4
+ module_function
5
+
6
+ def call
7
+ `afplay #{HONK}`
8
+ end
9
+ end
@@ -0,0 +1,20 @@
1
+ require 'honk'
2
+ require 'rake'
3
+ require 'rake/tasklib'
4
+
5
+ module Honk
6
+ class Task < ::Rake::TaskLib
7
+ def initialize
8
+ desc "Honk!"
9
+ task :honk do
10
+ Honk.()
11
+ end
12
+
13
+ desc "Throw the rake in the lake"
14
+ task lake: :honk do
15
+ end
16
+ end
17
+ end
18
+ end
19
+
20
+ Honk::Task.new
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: honkhonk
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Jon Rowe
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-11-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '13.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '13.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
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
+ description: Honk!
42
+ email:
43
+ - hello@jonrowe.co.uk
44
+ executables:
45
+ - honk
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - Gemfile
50
+ - Gemfile.lock
51
+ - Rakefile
52
+ - Readme.md
53
+ - bin/honk
54
+ - honk.gemspec
55
+ - lib/honk.aiff
56
+ - lib/honk.rb
57
+ - lib/honk/tasks.rb
58
+ homepage: https://github.com/JonRowe/honk
59
+ licenses:
60
+ - MIT
61
+ metadata: {}
62
+ post_install_message:
63
+ rdoc_options: []
64
+ require_paths:
65
+ - lib
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 2.5.0
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ requirements: []
77
+ rubygems_version: 3.0.6
78
+ signing_key:
79
+ specification_version: 4
80
+ summary: Honk!
81
+ test_files: []