be_a_dragon 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: 00bcb31ea95af9f416a097d1fcc137c0109cab97a6f4d1a4b42cd97f0ec271de
4
+ data.tar.gz: 5ecc184d9515020f28682cf6a743251c73a874aa3c1f770d67632dd48ea45b34
5
+ SHA512:
6
+ metadata.gz: cf6f71e85bdc88d741b1ea65e93ec4f2e68995d79faf15c9503097e422ae8f4f4f2084fa04f6d14f89ccf3e04a9a8f2ed901ab652600eb81e4fcad79350db977
7
+ data.tar.gz: 8c06891dc3d7ca150c18fc8869a6864fb46e0681985c7070970784088028b6e756460dd34b559f8c56b33cb82c9cb0a222dc70af0a7da3b82a50c4a55dd9bccf
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ *.gem
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in be_a_dragon.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
7
+
8
+
data/Gemfile.lock ADDED
@@ -0,0 +1,19 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ be_a_dragon (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ rake (12.3.3)
10
+
11
+ PLATFORMS
12
+ x64-mingw32
13
+
14
+ DEPENDENCIES
15
+ be_a_dragon!
16
+ rake (~> 12.0)
17
+
18
+ BUNDLED WITH
19
+ 2.1.4
data/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # Be A Dragon
2
+
3
+ Motivational sentences to help you code in peace.
4
+
5
+ Your code does not work as it should? You have only one spec to correct and you want to sleep?
6
+ Does Rubocop mistreat you? Need some extra motivational push to finish that f*** code? This is your gem.
7
+
8
+ ## Installation
9
+
10
+ Add this to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'be_a_dragon'
14
+ ```
15
+
16
+ And then add some simple CRON worker gem like
17
+
18
+ ```ruby
19
+ gem 'rufus-scheduler'
20
+ ```
21
+
22
+ Run:
23
+
24
+ $ bundle install
25
+
26
+
27
+ ## Usage
28
+
29
+ Make a new file on initalizers folder:
30
+ ```ruby
31
+ # initializers/motivational-cron.rb
32
+ require 'rufus-scheduler'
33
+
34
+ scheduler = Rufus::Scheduler.new
35
+
36
+ scheduler.cron '* * * * *' do
37
+ BeADragon::MotivateMePls.random_sentence(your_name)
38
+ end
39
+ ```
40
+
41
+ Custom cron times at https://crontab.guru/
42
+
43
+ ## Contributing
44
+
45
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/be_a_dragon.
46
+
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,29 @@
1
+ require_relative 'lib/be_a_dragon/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "be_a_dragon"
5
+ spec.version = BeADragon::VERSION
6
+ spec.authors = ["saitama1899"]
7
+ spec.email = ["eric.lorien92@gmail.com"]
8
+
9
+ spec.summary = %q{Motivational sentences to help you code in peace.}
10
+ spec.description = %q{Your code does not work as it should? You have only one spec to correct and you want to sleep?
11
+ Does Rubocop mistreat you? Need some extra motivational push to finish that f*** code? This is your gem.}
12
+ spec.homepage = "https://github.com/saitama1899/be_a_dragon"
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
+
15
+ spec.metadata["allowed_push_host"] = "https://rubygems.org/"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = "https://github.com/saitama1899/be_a_dragon"
19
+ spec.metadata["changelog_uri"] = "https://github.com/saitama1899/be_a_dragon/blob/master/README.md"
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
+ end
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "be_a_dragon"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,7 @@
1
+ require "be_a_dragon/version"
2
+ require "be_a_dragon/motivate_me_pls"
3
+
4
+ module BeADragon
5
+ class Error < StandardError; end
6
+ # Your code goes here...
7
+ end
@@ -0,0 +1,65 @@
1
+ module BeADragon
2
+ class MotivateMePls
3
+ def self.random_sentence(name)
4
+ [
5
+ "Friendly reminder: You are the best.",
6
+ "I didn’t fail the test. I just found 100 ways to do it wrong.",
7
+ "Help me rubocup, you are my only hope",
8
+ "I am so clever that sometimes I don’t understand a single word of what I am saying.",
9
+ "You can’t have everything. Where would you put it?",
10
+ "By working faithfully eight hours a day you may eventually get to be boss and work twelve hours a day.",
11
+ "The road to success is dotted with many tempting parking spaces.",
12
+ "Age is of no importance unless you’re a cheese.",
13
+ "It was a fucking semicolon!",
14
+ "Please... close that if statement",
15
+ "No, arrays start at 0, not 1",
16
+ "0101101100010111011001 = you rock!",
17
+ "When tempted to fight fire with fire, remember that the Fire Department usually uses water.",
18
+ "The question isn’t who is going to let me, it’s who is going to stop me.",
19
+ "Work until your bank account looks like a phone number.",
20
+ "If you think you are too small to make a difference, try sleeping with a mosquito.",
21
+ "Bad decisions make good stories.",
22
+ "I’ll probably never fully become what I wanted to be when I grew up, but that’s probably because I wanted to be a ninja princess.",
23
+ "When life gives you lemons, squirt someone in the eye.",
24
+ "A clear conscience is a sure sign of a bad memory.",
25
+ "I used to think I was indecisive, but now I’m not so sure.",
26
+ "Don’t worry about the world coming to an end today. It’s already tomorrow in Australia.",
27
+ "Think like a proton. Always positive.",
28
+ "Leadership is the art of getting someone else to do something you want done because he wants to do it.",
29
+ "Be happy – it drives people crazy.",
30
+ "Even a stopped clock is right twice every day. After some years, it can boast of a long series of successes.",
31
+ "Optimist: someone who figures that taking a step backward after taking a step forward is not a disaster, it’s more like a cha-cha.",
32
+ "You’re only given a little spark of madness. You mustn’t lose it.",
33
+ "A diamond is merely a lump of coal that did well under pressure.",
34
+ "Nothing is impossible, the word itself says “I’m possible!",
35
+ "If you let your head get too big, it’ll break your neck.",
36
+ "Trying is the first step toward failure.",
37
+ "Happiness is just sadness that hasn’t happened yet.",
38
+ "The best things in life are actually really expensive.",
39
+ "A few harmless flakes working together can unleash an avalanche of destruction.",
40
+ "Dreams are like rainbows. Only idiots chase them.",
41
+ "It could be that your purpose in life is to serve as a warning to others.",
42
+ "The light at the end of the tunnel has been turned off due to budget cuts.",
43
+ "Always remember that you are unique – just like everybody else.",
44
+ "That shit ain't gona do itself",
45
+ "Chuck Norris learned programming from you",
46
+ "You can do it! Well, seeing this above, I'm not sure now.",
47
+ "I eat requirements for breakfast",
48
+ "Do it, don't try It, do it or don't do it",
49
+ "Code I must",
50
+ "The programming force is strong on you",
51
+ "May the code be with you",
52
+ "BAAAAAAAARRGWGGH - Chewbacca",
53
+ "Codifilus totalus!",
54
+ "You better go for a coffe",
55
+ "JUST DO-O IT!!",
56
+ "Inhale, exhale, repeat."
57
+ "You should get fired for that #{name}...",
58
+ "You must be kidding, #{name}",
59
+ "Really, #{name}? Really?",
60
+ "Oh come on, put my fingers in my eyes, please, #{name}",
61
+ "#{name}, on the search of the lost semicolon"
62
+ ].sample
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,3 @@
1
+ module BeADragon
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,59 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: be_a_dragon
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - saitama1899
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-02-04 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: |-
14
+ Your code does not work as it should? You have only one spec to correct and you want to sleep?
15
+ Does Rubocop mistreat you? Need some extra motivational push to finish that f*** code? This is your gem.
16
+ email:
17
+ - eric.lorien92@gmail.com
18
+ executables: []
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - ".gitignore"
23
+ - Gemfile
24
+ - Gemfile.lock
25
+ - README.md
26
+ - Rakefile
27
+ - be_a_dragon.gemspec
28
+ - bin/console
29
+ - bin/setup
30
+ - lib/be_a_dragon.rb
31
+ - lib/be_a_dragon/motivate_me_pls.rb
32
+ - lib/be_a_dragon/version.rb
33
+ homepage: https://github.com/saitama1899/be_a_dragon
34
+ licenses: []
35
+ metadata:
36
+ allowed_push_host: https://rubygems.org/
37
+ homepage_uri: https://github.com/saitama1899/be_a_dragon
38
+ source_code_uri: https://github.com/saitama1899/be_a_dragon
39
+ changelog_uri: https://github.com/saitama1899/be_a_dragon/blob/master/README.md
40
+ post_install_message:
41
+ rdoc_options: []
42
+ require_paths:
43
+ - lib
44
+ required_ruby_version: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: 2.3.0
49
+ required_rubygems_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ requirements: []
55
+ rubygems_version: 3.0.3
56
+ signing_key:
57
+ specification_version: 4
58
+ summary: Motivational sentences to help you code in peace.
59
+ test_files: []