si_units 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: '0880bdc72fdda852385d2b611b14ca4d7e4d535cc5d1146311f9de5705548517'
4
+ data.tar.gz: 5b8e6092a10ae63e94a2efc4cbcbf80b3d79709816054b0378af1d0b99c1a7ad
5
+ SHA512:
6
+ metadata.gz: 9544d4b7a0b1d38dd3f22ea5da35fe52e2539c8be759d0fb82c51ca19a93588ba5edf9b9b064ec6bbc746f3a7fb17b77a8eccb23f58d911ab377047dad8554c2
7
+ data.tar.gz: ee18ef11406318e95ee25b955059b625dbaf0f3cee80031554fed62062130b1739b6b3e6436d55e62c005b5e9a4ba5783dfda884b4752c4461592614aa60c13c
@@ -0,0 +1,30 @@
1
+ name: Ruby
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ pull_request:
7
+ branches:
8
+ - main
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ env:
13
+ RAILS_ENV: test
14
+ CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
15
+ name: Ruby ${{ matrix.ruby }}
16
+ strategy:
17
+ matrix:
18
+ ruby:
19
+ - "3.2.2"
20
+ steps:
21
+ - uses: actions/checkout@v3
22
+ - name: Set up Ruby
23
+ uses: ruby/setup-ruby@v1
24
+ with:
25
+ ruby-version: ${{ matrix.ruby }}
26
+ bundler-cache: true
27
+ - name: Run test cases
28
+ run: bundle exec rake
29
+ - name: Publish code coverage
30
+ uses: paambaati/codeclimate-action@v5.0.0
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [0.1.0] - 2023-08-07
2
+
3
+ - Initial release
4
+
5
+ ## [Unreleased]
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # -*- frozen_string_literal: true -*-
3
+ # -*- warn_indent: true -*-
4
+
5
+ source "https://rubygems.org"
6
+
7
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,44 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ si_units (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ byebug (11.1.3)
10
+ diff-lcs (1.5.0)
11
+ docile (1.4.0)
12
+ rake (13.0.6)
13
+ rspec (3.12.0)
14
+ rspec-core (~> 3.12.0)
15
+ rspec-expectations (~> 3.12.0)
16
+ rspec-mocks (~> 3.12.0)
17
+ rspec-core (3.12.2)
18
+ rspec-support (~> 3.12.0)
19
+ rspec-expectations (3.12.3)
20
+ diff-lcs (>= 1.2.0, < 2.0)
21
+ rspec-support (~> 3.12.0)
22
+ rspec-mocks (3.12.6)
23
+ diff-lcs (>= 1.2.0, < 2.0)
24
+ rspec-support (~> 3.12.0)
25
+ rspec-support (3.12.1)
26
+ simplecov (0.22.0)
27
+ docile (~> 1.1)
28
+ simplecov-html (~> 0.11)
29
+ simplecov_json_formatter (~> 0.1)
30
+ simplecov-html (0.12.3)
31
+ simplecov_json_formatter (0.1.4)
32
+
33
+ PLATFORMS
34
+ x86_64-linux
35
+
36
+ DEPENDENCIES
37
+ byebug (~> 11)
38
+ rake (~> 13.0)
39
+ rspec (~> 3.0)
40
+ si_units!
41
+ simplecov (~> 0.21, >= 0.21.2)
42
+
43
+ BUNDLED WITH
44
+ 2.4.10
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Harshal LADHE
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # -*- frozen_string_literal: true -*-
3
+ # -*- warn_indent: true -*-
4
+
5
+ require "bundler/gem_tasks"
6
+ require "rspec/core/rake_task"
7
+
8
+ RSpec::Core::RakeTask.new(:spec)
9
+
10
+ task default: :spec
@@ -0,0 +1,7 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # -*- frozen_string_literal: true -*-
3
+ # -*- warn_indent: true -*-
4
+
5
+ module SIUnits
6
+ VERSION = "0.1.0"
7
+ end
data/lib/si_units.rb ADDED
@@ -0,0 +1,6 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # -*- frozen_string_literal: true -*-
3
+ # -*- warn_indent: true -*-
4
+
5
+ module SIUnits
6
+ end
data/readme.md ADDED
@@ -0,0 +1,8 @@
1
+ # SIUnits
2
+
3
+ A library that encapsulate si units and their conversions.
4
+
5
+ [![Ruby](https://github.com/shivam091/si_units/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/shivam091/si_units/actions/workflows/main.yml)
6
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/cffe803a209d7c667f1a/test_coverage)](https://codeclimate.com/github/shivam091/si_units/test_coverage)
7
+ [![Maintainability](https://api.codeclimate.com/v1/badges/cffe803a209d7c667f1a/maintainability)](https://codeclimate.com/github/shivam091/si_units/maintainability)
8
+ [![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/shivam091/si_units/blob/main/LICENSE)
data/si_units.gemspec ADDED
@@ -0,0 +1,41 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # -*- frozen_string_literal: true -*-
3
+ # -*- warn_indent: true -*-
4
+
5
+ lib = File.expand_path("../lib", __FILE__)
6
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7
+
8
+ require "si_units/version"
9
+
10
+ Gem::Specification.new do |spec|
11
+ spec.name = "si_units"
12
+ spec.version = SIUnits::VERSION
13
+ spec.authors = ["Harshal LADHE"]
14
+ spec.email = ["harshal.ladhe.1@gmail.com"]
15
+
16
+ spec.description = "A library that encapsulate si units and their conversions."
17
+ spec.summary = spec.description
18
+ spec.homepage = "https://github.com/shivam091/si_units"
19
+ spec.license = "MIT"
20
+ spec.required_ruby_version = ">= 3.2.2"
21
+
22
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
23
+
24
+ spec.metadata["homepage_uri"] = spec.homepage
25
+ spec.metadata["source_code_uri"] = "https://github.com/shivam091/si_units"
26
+ spec.metadata["changelog_uri"] = "https://github.com/shivam091/si_units/blob/main/CHANGELOG.md"
27
+ spec.metadata["documentation_uri"] = "https://shivam091.github.io/si_units/index.html"
28
+ spec.metadata["bug_tracker_uri"] = "https://github.com/shivam091/si_units/issues"
29
+
30
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
31
+ f.match(%r{^(test|spec|features)/})
32
+ end
33
+ spec.bindir = "exe"
34
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
35
+ spec.require_paths = ["lib"]
36
+
37
+ spec.add_development_dependency "rake", "~> 13.0"
38
+ spec.add_development_dependency "rspec", "~> 3.0"
39
+ spec.add_development_dependency "simplecov", "~> 0.21", ">= 0.21.2"
40
+ spec.add_development_dependency "byebug", "~> 11"
41
+ end
metadata ADDED
@@ -0,0 +1,123 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: si_units
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Harshal LADHE
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-08-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '13.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '13.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: simplecov
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.21'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 0.21.2
51
+ type: :development
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '0.21'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 0.21.2
61
+ - !ruby/object:Gem::Dependency
62
+ name: byebug
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '11'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '11'
75
+ description: A library that encapsulate si units and their conversions.
76
+ email:
77
+ - harshal.ladhe.1@gmail.com
78
+ executables: []
79
+ extensions: []
80
+ extra_rdoc_files: []
81
+ files:
82
+ - ".github/workflows/main.yml"
83
+ - ".gitignore"
84
+ - ".rspec"
85
+ - CHANGELOG.md
86
+ - Gemfile
87
+ - Gemfile.lock
88
+ - LICENSE
89
+ - Rakefile
90
+ - lib/si_units.rb
91
+ - lib/si_units/version.rb
92
+ - readme.md
93
+ - si_units.gemspec
94
+ homepage: https://github.com/shivam091/si_units
95
+ licenses:
96
+ - MIT
97
+ metadata:
98
+ allowed_push_host: https://rubygems.org
99
+ homepage_uri: https://github.com/shivam091/si_units
100
+ source_code_uri: https://github.com/shivam091/si_units
101
+ changelog_uri: https://github.com/shivam091/si_units/blob/main/CHANGELOG.md
102
+ documentation_uri: https://shivam091.github.io/si_units/index.html
103
+ bug_tracker_uri: https://github.com/shivam091/si_units/issues
104
+ post_install_message:
105
+ rdoc_options: []
106
+ require_paths:
107
+ - lib
108
+ required_ruby_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 3.2.2
113
+ required_rubygems_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ requirements: []
119
+ rubygems_version: 3.4.10
120
+ signing_key:
121
+ specification_version: 4
122
+ summary: A library that encapsulate si units and their conversions.
123
+ test_files: []