hello_mako 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: 9cd0ba5b1023bd127c9a078a8deb3428d6f8a86f2384e63377e8b401a58b54e7
4
- data.tar.gz: 20cd7a73bf8b95f8b1d8c7f734b56c447c4259358d17ad0989bd0e204f4e7c8a
3
+ metadata.gz: e43c7f394ca2706a99c388b93221dffb1c02b61dd463973a8f291151136cd2c6
4
+ data.tar.gz: f2c3814f006537fc43574d34b4335e414274bd00c2d3e5135d33e6183b64fb7d
5
5
  SHA512:
6
- metadata.gz: 576efa5813e156c0bdcff0a5c0fc9c13588648b5cf6c0b2e4f4f027869a849af049e5a9a1a302de5397818957848ccc0f95a21055d2b6e35bb703e00654d4580
7
- data.tar.gz: 8f7fc843ac115211654200b5183f6561b054d5213918f41b0c3db9dc3ad501a5ce6f38bbc002d0195b59766fa598ba2b8b6b9810628f69256e6b54c48048a2b1
6
+ metadata.gz: 45216225c2177463c76313c48a2437d987342f859fcc8e45df4bd85a5cc227e1ab8160956b30c8e440b546f044d4419826ad44b739afb6ae655bce9544cdb851
7
+ data.tar.gz: dc53caefdcf1ed8d31ddc0303dd7466adf8fc6346a610888ee85db2d7018c0cbf3226d2a6265e2562644bbcce870064e9e8b5ab197a9f352f329b02f708b5a23
data/.gitignore CHANGED
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ *.gem
data/README.md CHANGED
@@ -1,43 +1,68 @@
1
- # HelloMako
1
+ # hola mako
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/hello_mako`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ My very first ruby gem.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ ## Description
6
6
 
7
- ## Installation
7
+ An exercise on how to create a ruby gem and publish to [RubyGems](https://rubygems.org/).
8
+ This gem will also help me learn about `rails generate`.
8
9
 
9
- Add this line to your application's Gemfile:
10
+ This gem was creating using the command:
10
11
 
11
- ```ruby
12
- gem 'hello_mako'
12
+ ```
13
+ $ bundle gem hello_mako
13
14
  ```
14
15
 
15
- And then execute:
16
+ ### Installing
16
17
 
17
- $ bundle
18
+ Install gem
18
19
 
19
- Or install it yourself as:
20
+ ```
21
+ $ gem install hola_mako
22
+ ```
20
23
 
21
- $ gem install hello_mako
24
+ ### Updating the Gem
22
25
 
23
- ## Usage
26
+ Clone repository
27
+ ```
28
+ $ git clone https://github.com/mlsaito/hola_mako.git
29
+ ```
24
30
 
25
- TODO: Write usage instructions here
31
+ Build and Test on Local
32
+ ```
33
+ $ cd hola_mako
34
+ $ gem build hola_mako.gemspec
35
+ $ gem install ./hola_mako-0.0.0.gem
36
+ ```
26
37
 
27
- ## Development
38
+ Test on IRB
39
+ ```
40
+ $ irb
41
+ >> require 'hola_mako'
42
+ => true
43
+ >> Hola.hi
44
+ Hello world!
45
+ ```
28
46
 
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
47
+ Reference: [http://guides.rubygems.org/make-your-own-gem/](http://guides.rubygems.org/make-your-own-gem/)
30
48
 
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).
49
+ ### Deployment
32
50
 
33
- ## Contributing
51
+ Build the gem
34
52
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello_mako. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
53
+ ```
54
+ $ gem build hola_mako.gemspec
55
+ ```
36
56
 
37
- ## License
57
+ Deploy to RubyGems
58
+
59
+ ```
60
+ $ gem push hola_mako-0.0.0.gem
61
+ ```
38
62
 
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
63
+ ## Running the tests
40
64
 
41
- ## Code of Conduct
42
65
 
43
- Everyone interacting in the HelloMako project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/hello_mako/blob/master/CODE_OF_CONDUCT.md).
66
+ ## License
67
+
68
+ This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
@@ -2,6 +2,6 @@ require "hello_mako/version"
2
2
 
3
3
  module HelloMako
4
4
  def self.hi
5
- puts "Hello world!"
5
+ "Hello world!"
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module HelloMako
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: hello_mako
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
  - Makoto Saito