num_words 0.2.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92bd9503909fd6d11da13baeccbe68e60c86505d1cb9aabc057ca704c962af4b
4
- data.tar.gz: db689f477ab8a791fc8c09a648407b2edb3a2fa954a780034b6c5d1e2218fe10
3
+ metadata.gz: 24463f1da6ace2a42347b2e4bd275527a02510175087ebc98eaf3011ea56f4ff
4
+ data.tar.gz: e61dc04d74d11bde0825d575a5240b96790d1a156ad8048813449adf1e267e05
5
5
  SHA512:
6
- metadata.gz: 98db3a1bcf32c42384c53cd990c83e37c22d1a0bb47ad91beecf0b96009051405e18c72cec3a35ec71de49bdd127aca44cf41fa2d34c78fdae5a6acbb82bde7d
7
- data.tar.gz: 7df9d662a74480d9ae3f1b41a1153d5700726cf19f4f6572cf8e93c2224f4e90ab3f6490dd1411d70f339333cf09dd70dbc05795d4d773685a4a9e9ad521e992
6
+ metadata.gz: 9decb67c34898169365951b2c04c79449c0024ea83263ed30a8d0412ce1f6f2ac62a6423e380c9492cd87afce0841085e3f4e06900b9141a87427d4043fc8a04
7
+ data.tar.gz: 2f5fe30029e8c3ed6915c0ace3f913d3ed3ea0f47ac119f200b1a8dc4b410e0575317f5011275bc40c466e1593af21732c918829b02bfa1a47cd5ac3f0709704
data/README.md CHANGED
@@ -1,36 +1,32 @@
1
1
  # NumWords
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
3
+ **NumWords** is a Ruby gem that converts numbers into words in multiple numbering systems, including US, European, UK, French, and Indian. It supports both integer and decimal numbers and is useful for invoices, financial documents, or any application that requires converting numeric values into readable text.
4
4
 
5
- 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/num_words`. To experiment with that code, run `bin/console` for an interactive prompt.
5
+ ---
6
6
 
7
- ## Installation
8
-
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
- Install the gem and add to the application's Gemfile by executing:
12
-
13
- ```bash
14
- bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15
- ```
7
+ ## Features
16
8
 
17
- If bundler is not being used to manage dependencies, install the gem by executing:
9
+ - Convert integers and decimals to words.
10
+ - Supports multiple country numbering systems:
11
+ - **US / American** – `thousand, million, billion`
12
+ - **European** – `thousand, million, milliard, billion`
13
+ - **UK** – `thousand, million, billion`
14
+ - **France** – `mille, million, milliard`
15
+ - **India** – `thousand, lakh, crore`
16
+ - Easy to integrate into Ruby or Rails applications.
17
+ - Supports numbers up to `duovigintillion` (10^69) in the American system.
18
18
 
19
- ```bash
20
- gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
21
- ```
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
19
+ ---
26
20
 
27
- ## Development
21
+ ## Installation
28
22
 
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
+ ### Using RubyGems
30
24
 
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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
25
+ After releasing your gem to [RubyGems.org](https://rubygems.org), install it with:
32
26
 
33
- ## Contributing
27
+ ```bash
28
+ # Using Bundler
29
+ bundle add gem 'num_words'
34
30
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/num_words.
36
- # num_words
31
+ # Or install manually
32
+ gem install num_words
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NumWords
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: num_words
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mrmalvi
@@ -25,6 +25,7 @@ files:
25
25
  - lib/num_words/converter.rb
26
26
  - lib/num_words/version.rb
27
27
  - num_words-0.1.0.gem
28
+ - num_words-0.2.0.gem
28
29
  - sig/num_words.rbs
29
30
  homepage: https://github.com/mrmalvi/num_words
30
31
  licenses: []
@@ -39,7 +40,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
39
40
  requirements:
40
41
  - - ">="
41
42
  - !ruby/object:Gem::Version
42
- version: 3.2.0
43
+ version: 2.7.0
43
44
  required_rubygems_version: !ruby/object:Gem::Requirement
44
45
  requirements:
45
46
  - - ">="