bin_checker_rb 0.1.0 → 0.2.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: f6286a6ad33f7c4b11ed3324cc17e9eab2198ec07acd5cae3bb346f960ef22dc
4
- data.tar.gz: 94d47ad8a1d3bdbbbb1c0683903bf9fc4484a5415d497b82ff677270407d9202
3
+ metadata.gz: 309736ec7c5c325dcb5eb1cdb2b2bdba918068649761f7960c3fa933609bc587
4
+ data.tar.gz: 4453f9d79e7f93b0f12fb10e9928829d088bde85d39a2622cb37e34d7c2fc09d
5
5
  SHA512:
6
- metadata.gz: b4f86aaf4b185aa860cf6d5a9e81281d46881a7376b9223d157cffe68148a71076171cadd5537468270f92e2a3f8f54460bc6fdcad2fa64bdf946ba17b97d457
7
- data.tar.gz: f58f5325688b837f8484b632fc4efe3f6f054e0103119bc74f8ab67c2fc696cacb2370f43e5ebc0d9606c60ce04b359edc99b0712318599b9417868ebd1fed90
6
+ metadata.gz: 19fc797a1c60a8ba2be1bb1eb179811d4518acd687659f4b33bb76859d9727257827162c3aa2b93ee5c1744fb5d110fd7f50af2178a038b0860fefde44367ca7
7
+ data.tar.gz: 973742e2242df1da5e79c9e509851ae778a17b2150a2dbb02c22efffbb820d7420f7611a6cdcdeae17dc21bb278ec3f5ec6cffc5d0e75ed479b76ab23363c7cf
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 0.1.0
2
+ current_version = 0.2.0
3
3
  commit = True
4
4
 
5
5
  [bumpversion:file:README.md]
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bin_checker_rb (0.1.0)
4
+ bin_checker_rb (0.2.0)
5
5
  faraday (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ![Ruby](https://img.shields.io/badge/ruby-2.7.0-green.svg)
2
- ![Version](https://img.shields.io/badge/version-0.1.0-orange.svg)
2
+ ![Version](https://img.shields.io/badge/version-0.2.0-orange.svg)
3
3
 
4
4
  # Prompt API - BIN Checker - Ruby Package
5
5
 
data/Rakefile CHANGED
@@ -16,3 +16,16 @@ task :bump, [:revision] do |t, args|
16
16
  abort "Please provide valid revision: #{AVAILABLE_REVISIONS.join(',')}" unless AVAILABLE_REVISIONS.include?(args.revision)
17
17
  system "bumpversion #{args.revision}"
18
18
  end
19
+
20
+ def get_package_name
21
+ name = Dir['*.gemspec'].first.split('.').first
22
+ line = File.read("lib/#{name}/version.rb")[/^\s*VERSION\s*=\s*.*/]
23
+ version = line.match(/.*VERSION\s*=\s*['"](.*)['"]/)[1]
24
+ "#{name}-#{version}.gem"
25
+ end
26
+
27
+ desc "Push #{get_package_name} to GitHub registry"
28
+ task :push_to_github do
29
+ package_path = "pkg/#{get_package_name}"
30
+ system "gem push --key github --host https://rubygems.pkg.github.com/promptapi #{package_path}"
31
+ end
@@ -7,12 +7,12 @@ Gem::Specification.new do |spec|
7
7
  spec.email = ["hello@promptapi.com"]
8
8
 
9
9
  spec.summary = %q{Ruby wrapper for Prompt API's BIN Checker API}
10
- spec.homepage = "https://github.com/promptapi/bin-checker-rb"
10
+ spec.homepage = "https://github.com/promptapi/bin_checker_rb"
11
11
  spec.license = "MIT"
12
12
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
13
13
 
14
14
  spec.metadata["homepage_uri"] = spec.homepage
15
- spec.metadata["source_code_uri"] = "https://github.com/promptapi/bin-checker-rb"
15
+ spec.metadata["source_code_uri"] = "https://github.com/promptapi/bin_checker_rb"
16
16
 
17
17
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
18
18
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -1,3 +1,3 @@
1
1
  module BinCheckerRb
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: bin_checker_rb
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
  - Prompt API
@@ -52,12 +52,12 @@ files:
52
52
  - bin_checker_rb.gemspec
53
53
  - lib/bin_checker_rb.rb
54
54
  - lib/bin_checker_rb/version.rb
55
- homepage: https://github.com/promptapi/bin-checker-rb
55
+ homepage: https://github.com/promptapi/bin_checker_rb
56
56
  licenses:
57
57
  - MIT
58
58
  metadata:
59
- homepage_uri: https://github.com/promptapi/bin-checker-rb
60
- source_code_uri: https://github.com/promptapi/bin-checker-rb
59
+ homepage_uri: https://github.com/promptapi/bin_checker_rb
60
+ source_code_uri: https://github.com/promptapi/bin_checker_rb
61
61
  post_install_message:
62
62
  rdoc_options: []
63
63
  require_paths: