hihi 1.1.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +50 -9
  3. data/lib/hihi.rb +16 -8
  4. data/lib/hihi/version.rb +2 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 048e9c5f7a380adc5c994e4910afb739835f9b66
4
- data.tar.gz: 6c42ba46ca06e934d2b59011baf33485d5057399
3
+ metadata.gz: 71394292fadb0af1c1651074c4e203074dc9ddbb
4
+ data.tar.gz: 292562aed1f5c5ffa0df1ca8cf1562a2fc4a1216
5
5
  SHA512:
6
- metadata.gz: 0fa7a0f5eaac963fa2b09149f3df5c5985b4e391647d5780ca2358129c19a9c4d78024139e5703f124989debfcfa6742de08cbba04edf8e4f5dedaa83da48f93
7
- data.tar.gz: c132123df6de203a695ff68585ff8add309576e5ad976f02eacc47e0c9c4e0e64a01359ead87e6063ca3276e34ffa0b4a25ecac10ee161e59043c4a7185fb403
6
+ metadata.gz: 607af1decdd0d7f8e49b4fa89c0ef99b1117cb2cd4fd70708c8c30257125800677f3bec735afec2ce792a5be33498389a5f3a0d241129c205e97deee26639a14
7
+ data.tar.gz: 3f6b47f0b06942307d4b8af7b2338bdd88f5451f6498e235f704e4d5e2019ea1f20813610ac1efb6dfbb44be24efba1817f5e73e1c6a31c37e3bb11a1ab04396
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Hihi
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/hihi`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ A hello world! Gem ...
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,20 +20,63 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ Access via standard module / method calls ...
24
+
25
+ ```ruby
26
+ require "hihi/version"
27
+ require 'active_support/concern'
28
+
29
+ module Greet
30
+ include ActiveSupport::Concern
31
+ def hello
32
+ "hi hi world"
33
+ end
34
+ end
35
+
36
+ class Caser
37
+ include Greet
38
+
39
+ def one_cap(msg)
40
+ msg.capitalize
41
+ end
42
+
43
+ def all_cap(msg)
44
+ msg.upcase
45
+ end
46
+ end
47
+
48
+ class Punctuator
49
+ def bang(msg)
50
+ msg << '!'
51
+ end
52
+
53
+ def dot(msg)
54
+ msg << '.'
55
+ end
56
+ end
57
+ ```
58
+
59
+ Testing commands:
26
60
 
27
- ## Development
61
+ Module: "Greet"
62
+ - "hello" to return the message
63
+
64
+ Class: "Caser"
65
+ - one_cap(string)
66
+ - all_cap(string)
28
67
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
68
+ Class: "Punctuator"
69
+ - bang(string)
70
+ - dot(string)
30
71
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
72
 
33
73
  ## Contributing
34
74
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/Matt/hihi.
75
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Mirv/hihi.
36
76
 
37
77
 
38
78
  ## License
39
79
 
40
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
80
+ The gem is available as open source under the terms of the
81
+ [MIT License](http://opensource.org/licenses/MIT).
41
82
 
@@ -4,20 +4,28 @@ require 'active_support/concern'
4
4
  module Greet
5
5
  include ActiveSupport::Concern
6
6
  def hello
7
- puts "hi hi world"
7
+ "hi hi world"
8
8
  end
9
9
  end
10
10
 
11
- class One_cap
11
+ class Caser
12
12
  include Greet
13
- def formal(msg)
14
- puts msg.capitalize
13
+
14
+ def one_cap(msg)
15
+ msg.capitalize
16
+ end
17
+
18
+ def all_cap(msg)
19
+ msg.upcase
15
20
  end
16
21
  end
17
22
 
18
- class All_cap
19
- include Greet
20
- def formal(msg)
21
- puts msg.upcase
23
+ class Punctuator
24
+ def bang(msg)
25
+ msg << '!'
26
+ end
27
+
28
+ def dot(msg)
29
+ msg << '.'
22
30
  end
23
31
  end
@@ -1,3 +1,4 @@
1
1
  module Hihi
2
- VERSION = "1.1.1"
2
+ # 13:26 +0.0.1
3
+ VERSION = "2.2.2"
3
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hihi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mirv