heart_of_a_developer 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86a0ef0b3f90c97f6300aac3ad38cc64b87de2b3134a5f47003dd6f4b91f1828
4
- data.tar.gz: 39b00c9d1e5b318bd279059571486816bcf4460062737b5c8f7a4a2f9074f529
3
+ metadata.gz: fbeca56f69fe5315aff8cd7768a56bfcb984edb0ce7ab5ea1caf1d4c8ba394ad
4
+ data.tar.gz: 394aceb21aca878784ccb1bc8d3b4a0e757b2c9138912f4a6a85dfd456559886
5
5
  SHA512:
6
- metadata.gz: e4b03011ff9530b169adfda4cd5100a3d2e0116285c78b75bad0c7510f13efd3a03e9c950736bc1e1a003b83b7a23caad6408480886569d6a602f899de94b626
7
- data.tar.gz: e6c4a69b9f115184a2af40b6c6976a596c2df16ba16710d136f82a99e97cfab78783ea15323c7a19c1f5cc8cc9c63bc6a38b6f2e497ca5e32932f5b968cb3c08
6
+ metadata.gz: 1899368ffe50dd25310ec0985d12833cfccdcb178b65c3df485b946db5c920e7fe2b1ec7307730964b3dc9b149ebc74c792db4ffb5b155ed418e218da968c3bd
7
+ data.tar.gz: dcd0f4fddca56dc0ed8e9c65aee6cf80d6846901adec5c08c22ab6e3ca92c06f8b5afc5cbb682cd2a809953dc31c566eadb647624ae94c5e24ca70bc5e0c7f51
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ *.gem
1
2
  /.bundle/
2
3
  /.yardoc
3
4
  /_yardoc/
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- heart_of_a_developer (0.1.0)
4
+ heart_of_a_developer (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  diff-lcs (1.3)
10
- rake (10.5.0)
10
+ rake (13.0.1)
11
11
  rspec (3.8.0)
12
12
  rspec-core (~> 3.8.0)
13
13
  rspec-expectations (~> 3.8.0)
@@ -28,7 +28,7 @@ PLATFORMS
28
28
  DEPENDENCIES
29
29
  bundler (~> 1.17)
30
30
  heart_of_a_developer!
31
- rake (~> 10.0)
31
+ rake (~> 13.0)
32
32
  rspec (~> 3.0)
33
33
 
34
34
  BUNDLED WITH
data/README.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # HeartOfADeveloper
2
2
 
3
+ Prints out a little developer phrase anywhere you want it to:
4
+
5
+ ```
6
+ _____ _____
7
+ ,ad8PPPP88b, ,d88PPPP8ba,
8
+ d8P" "Y8b, ,d8P" "Y8b
9
+ dP' "8a8" `Yd
10
+ 8( " )8
11
+ I8 Slow is smooth. Smooth is 8I
12
+ Yb, fast. ,dP
13
+ "8a, ,a8"
14
+ "8a, ,a8"
15
+ "Yba adP"
16
+ `Y8a a8P'
17
+ `88, ,88'
18
+ "8b d8"
19
+ "8b d8"
20
+ `888'
21
+ ```
22
+
23
+ Good for morale.
24
+
25
+ [view the complete phrase list.](https://github.com/officeluv/heart-of-a-developer/blob/master/lib/heart_of_a_developer.rb)
26
+
3
27
  ## Installation
4
28
 
5
29
  Add this line to your application's Gemfile:
@@ -20,6 +44,12 @@ Or install it yourself as:
20
44
 
21
45
  Call `HeartOfADeveloper.speak` to print out a random developer proverb.
22
46
 
47
+ Or, call this method in a view file, for example:
48
+
49
+ ```ruby
50
+ HeartOfADeveloper.illustration(partition_phrase(sample_phrase))
51
+ ```
52
+
23
53
  ## Development
24
54
 
25
55
  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 that will allow you to experiment.
@@ -37,6 +37,6 @@ Gem::Specification.new do |spec|
37
37
  spec.require_paths = ["lib"]
38
38
 
39
39
  spec.add_development_dependency "bundler", "~> 1.17"
40
- spec.add_development_dependency "rake", "~> 10.0"
40
+ spec.add_development_dependency "rake", "~> 13.0"
41
41
  spec.add_development_dependency "rspec", "~> 3.0"
42
42
  end
@@ -33,12 +33,17 @@ class HeartOfADeveloper
33
33
  'Make the change easy, then make the change.',
34
34
  'Have you been told lately that you rock?',
35
35
  'Slow is smooth. Smooth is fast.',
36
- 'In software, everything is possible but nothing is free.'
36
+ 'In software, everything is possible but nothing is free.',
37
+ 'There seems no plan because it is all plan.',
38
+ 'Work without a vision is toil. Vision without work is a daydream.',
39
+ 'Being enthusiastic is worth 25 IQ points.',
40
+ 'Pros are just amateurs who know how to gracefully recover.',
41
+ 'No problems, no progress.',
37
42
  ].freeze
38
43
  LINE_LENGTHS = [25, 23, 19, 15].freeze
39
44
 
40
- def self.speak
41
- puts illustration(partition_phrase(sample_phrase))
45
+ def self.speak(phrase_to_output = sample_phrase)
46
+ puts illustration(partition_phrase(phrase_to_output))
42
47
  end
43
48
 
44
49
  def self.sample_phrase
@@ -1,3 +1,3 @@
1
1
  class HeartOfADeveloper
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heart_of_a_developer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Beckman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-10-03 00:00:00.000000000 Z
12
+ date: 2020-05-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '10.0'
34
+ version: '13.0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '10.0'
41
+ version: '13.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec
44
44
  requirement: !ruby/object:Gem::Requirement