whole_number 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f756490e5fd506be66486ff562baeab52179deaeefdc391ab46cf7c55650aa4
4
- data.tar.gz: fdfdf51a49d38f88c6bfc35ea98ddf4f102e7e678670054b47a6f97d9539c869
3
+ metadata.gz: d947ac64fb8579469d6e082fb3e67105b624a3a4ae07c87ea40baeedac9cdf09
4
+ data.tar.gz: b0a6b58bf4950aba36303cea0c8d051b04f8401537cc154d38cff5add7ecb2de
5
5
  SHA512:
6
- metadata.gz: a20f8706863b443edf3546b60988a47181e42d50bc8c083c3eecb98c04134aa89c0114f6a1e109472588a537142fd03cd6c7a97f652d957955fcb244f645adf0
7
- data.tar.gz: 248f96729dd4b12e496355afe2a822d1995ca6f1bc42f6e8738fb0f35e287d6f866017058177843e78f36377451c47aedbe17f871ad3a85c9395eebc7400934c
6
+ metadata.gz: 4f7b3ed3f5494ef68b440d6a57a10d99b8db4633cda90c9aa948500ef8c3f4b0ce9c405a621d3b0fb9ed0c1543537d10f7d00ba403fa6f4958bc8bb29e45aaff
7
+ data.tar.gz: 61d7fd0afbe6dec7802fdc502811d817e8e5a90f4662c1ab5864ecf4b5d531a87f22e60878a13cd1fd949c7978dbc687de9e300450553bcae7936f45ce1e525b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- whole_number (0.1.0)
4
+ whole_number (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # WholeNumber
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/whole_number`. 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
+ Give a method to Float and Integer `to_whole_num`, that will convert number to 0,1,2,3,4,... .
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,17 +20,33 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- 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.
23
+ ```
24
+ 100.to_whole_num => 100
25
+ 3.to_whole_num => 3
26
+ 2.to_whole_num => 2
27
+ 1.to_whole_num => 1
28
+ 0.to_whole_num => 0
29
+ -1.to_whole_num => 0
30
+ -2.to_whole_num => 0
31
+ -3.to_whole_num => 0
32
+ -100.to_whole_num => 0
33
+ ```
30
34
 
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).
35
+ ```
36
+ 2.0.to_whole_num => 2
37
+ 1.9.to_whole_num => 1
38
+ 1.1.to_whole_num => 1
39
+ 1.0.to_whole_num => 1
40
+ 0.9.to_whole_num => 0
41
+ 0.0.to_whole_num => 0
42
+ -0.9.to_whole_num => 0
43
+ -1.0.to_whole_num => 0
44
+ -1.1.to_whole_num => 0
45
+ ```
32
46
 
33
47
  ## Contributing
34
48
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/whole_number. 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.
49
+ Bug reports and pull requests are welcome on GitHub at https://github.com/nao0515ki/whole_number. 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.
36
50
 
37
51
  ## License
38
52
 
@@ -40,4 +54,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
40
54
 
41
55
  ## Code of Conduct
42
56
 
43
- Everyone interacting in the WholeNumber project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/whole_number/blob/master/CODE_OF_CONDUCT.md).
57
+ Everyone interacting in the WholeNumber project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/nao0515ki/whole_number/blob/master/CODE_OF_CONDUCT.md).
@@ -1,3 +1,3 @@
1
1
  module WholeNumber
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whole_number
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nao0515ki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-26 00:00:00.000000000 Z
11
+ date: 2018-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler