losar 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6cfe98d4b78f126d5f6db1f186deccfc8d7e729ab97ca5d8b1350222bb1a1495
4
+ data.tar.gz: b5d91453abad0fe5735778f2b467bec48e761800f0061955360809429a6f5753
5
+ SHA512:
6
+ metadata.gz: 3a6f0f7aae0666832ed527be15473b4572abaf2d2811157b48e3896436712abd2381b6917a8d82e013554593a999de9c5c206816d99ea93d0029877f87147562
7
+ data.tar.gz: 83d71eb188274277ea283bc592421b2ccbcfbef8143dcf10d44f13f65bb55251407c85730cf1f366c57ef15686e11700a7d07ee93763a3395ebfc5fe4b183416
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0"
3
+ }
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,53 @@
1
+ # AllCops
2
+ AllCops:
3
+ NewCops: enable
4
+ SuggestExtensions: false
5
+ TargetRubyVersion: 3.0
6
+
7
+ # Style/FrozenStringLiteralComment
8
+ Style/FrozenStringLiteralComment:
9
+ Enabled: true
10
+ EnforcedStyle: always
11
+
12
+ # Layout/LineLength
13
+ Layout/LineLength:
14
+ Enabled: false
15
+
16
+ Style/Documentation:
17
+ Enabled: false
18
+
19
+ # Naming/FileName
20
+ Naming/FileName:
21
+ Enabled: true
22
+ Exclude:
23
+ - "spec/**/*"
24
+ - "test/**/*"
25
+
26
+ # Layout/IndentationWidth
27
+ Layout/IndentationWidth:
28
+ Width: 2
29
+
30
+ # Style/StringLiterals
31
+ Style/StringLiterals:
32
+ EnforcedStyle: double_quotes
33
+
34
+ # Lint/UselessAssignment
35
+ Lint/UselessAssignment:
36
+ Enabled: true
37
+
38
+ # Metrics/AbcSize
39
+ Metrics/AbcSize:
40
+ Max: 100
41
+
42
+ # Metrics/BlockLength
43
+ Metrics/BlockLength:
44
+ Exclude:
45
+ - "spec/**/*.rb"
46
+
47
+ # Metrics/MethodLength
48
+ Metrics/MethodLength:
49
+ Max: 100
50
+
51
+ # Naming/AccessorMethodName
52
+ Naming/AccessorMethodName:
53
+ Enabled: false
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.3.4
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2024-09-22
4
+
5
+ - Initial release
data/README.md ADDED
@@ -0,0 +1,62 @@
1
+ #
2
+
3
+ is a gem to celebrate the Bhutanese festival of , Blessed Rainy Day, with a touch of humor. It includes command-line tools that greet you and provide information about the festival. 🎉
4
+
5
+ ## Installation
6
+
7
+ To install this gem, simply add it to your Gemfile:
8
+
9
+ ```bash
10
+ bundle add
11
+ ```
12
+
13
+ Or install it manually by running:
14
+
15
+ ```
16
+ gem install losar
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ Once the gem is installed, you can use the command-line tool. Here are the available commands:
22
+
23
+ 1. Tashi Delek Greeting
24
+ To print the traditional "Tashi Delek" greeting:
25
+
26
+ ```
27
+ losar --tashidelek
28
+ ```
29
+
30
+ 2. Learn the History of Blessed Rainy Day
31
+ To learn more about the history of Bhutan's Blessed Rainy Day:
32
+
33
+ ```
34
+ losar --history
35
+ ```
36
+
37
+ This will print a brief description of the festival and its significance in Bhutan.
38
+
39
+ 3. Food and Drink for
40
+ To print the traditional food and drink served during the celebrations:
41
+
42
+ ```
43
+ losar --chang
44
+ ```
45
+
46
+ This will print: "Ja zhi, thukpa dru, chang tsheymey" – referring to the four types of tea, six varieties of soup, and special homemade alcoholic drinks.
47
+
48
+ ## Development
49
+
50
+ After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt to experiment with the code.
51
+
52
+ To install this gem onto your local machine, run:
53
+
54
+ ```
55
+ bundle exec rake install losar
56
+ ```
57
+
58
+ This will create a git tag for the version, push git commits and the tag, and push the .gem file to rubygems.org.
59
+
60
+ ## Contributing
61
+
62
+ Bug reports and pull requests are welcome on GitHub at https://github.com/bugloper/.
data/Rakefile ADDED
@@ -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
data/exe/losar ADDED
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "optparse"
5
+ require_relative "../lib/losar"
6
+
7
+ options = {}
8
+ OptionParser.new do |opts|
9
+ opts.banner = "Usage: losar [command]"
10
+
11
+ opts.on("--tashidelek", "Why not?") do
12
+ options[:tashidelek] = true
13
+ end
14
+
15
+ opts.on("--history", "Why celebrate?") do
16
+ options[:history] = true
17
+ end
18
+
19
+ opts.on("--chang", "Why drink?") do
20
+ options[:chang] = true
21
+ end
22
+ end.parse!
23
+
24
+ if options[:tashidelek]
25
+ Losar.tashidelek
26
+ elsif options[:history]
27
+ Losar.history
28
+ elsif options[:chang]
29
+ Losar.chang
30
+ else
31
+ puts "Unknown command. Available commands: --tashidelek, --history, --chang"
32
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Losar
4
+ VERSION = "0.1.0"
5
+ end
data/lib/losar.rb ADDED
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "./losar/version"
4
+
5
+ module Losar
6
+ class Error < StandardError; end
7
+
8
+ def self.tashidelek
9
+ puts "Tashi Delek"
10
+ end
11
+
12
+ def self.history
13
+ puts "Blessed Rainy Day is an annual festival in Bhutan, where people take ritual baths to cleanse their bodies and minds. It's a time for family, food, and blessings, marking the end of the monsoon season."
14
+ end
15
+
16
+ def self.chang
17
+ puts "Ja zhi, thukpa dru, chang tsheymey"
18
+ end
19
+ end
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3
+ "bump-minor-pre-major": true,
4
+ "bump-patch-for-minor-pre-major": false,
5
+ "draft": false,
6
+ "include-component-in-tag": true,
7
+ "include-v-in-tag": true,
8
+ "prerelease": false,
9
+ "skip-github-release": false,
10
+ "separate-pull-requests": true,
11
+ "tag-separator": "/",
12
+ "sequential-calls": true,
13
+ "packages": {
14
+ ".": {
15
+ "release-type": "ruby",
16
+ "package-name": "losar"
17
+ }
18
+ }
19
+ }
data/sig/losar.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Losar
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,62 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: losar
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - bugloper
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-09-22 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: " is the Bhutanese New Year, and this gem is dedicated to spreading joy
14
+ and celebration. It includes information about the traditions of and Blessed Rainy
15
+ Day in Bhutan. Wishing Tashi Delek to everyone!"
16
+ email:
17
+ - bugloper@gmail.com
18
+ executables:
19
+ - losar
20
+ extensions: []
21
+ extra_rdoc_files: []
22
+ files:
23
+ - ".release-please-manifest.json"
24
+ - ".rspec"
25
+ - ".rubocop.yml"
26
+ - ".ruby-version"
27
+ - CHANGELOG.md
28
+ - README.md
29
+ - Rakefile
30
+ - exe/losar
31
+ - lib/losar.rb
32
+ - lib/losar/version.rb
33
+ - release-please-config.json
34
+ - sig/losar.rbs
35
+ homepage: https://github.com/bugloper/
36
+ licenses: []
37
+ metadata:
38
+ allowed_push_host: https://rubygems.org
39
+ homepage_uri: https://github.com/bugloper/
40
+ source_code_uri: https://github.com/bugloper/
41
+ changelog_uri: https://github.com/bugloper//blob/main/CHANGELOG.md
42
+ rubygems_mfa_required: 'false'
43
+ post_install_message:
44
+ rdoc_options: []
45
+ require_paths:
46
+ - lib
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: 3.0.0
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ requirements: []
58
+ rubygems_version: 3.5.18
59
+ signing_key:
60
+ specification_version: 4
61
+ summary: Losar, Blessed Rainy Day is one hell of gem in Bhutan.
62
+ test_files: []