uk-hs_code 0.1.0 → 0.1.2

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: f9119bf354ad934444ceb102a5b135e57ae29bb932dd04ae79fde3a4a162a12f
4
- data.tar.gz: 524441f8f9ac14ee6fdd22e9a5784ec459afe32d552bdc7b9cb9901d91bdf74f
3
+ metadata.gz: 4b1b52e93fe6030f5caa8a3b2da29d7eec5e162a35aeebf91666433941c41f58
4
+ data.tar.gz: fc7c3a5197f249f23150563555f42842389922b8d9141f2131a3195da19aeaeb
5
5
  SHA512:
6
- metadata.gz: 1d1d1a00af50905816c584315afa8f2797923dcfd5beff9b8dd99797598622b80c33ff4fc772a70c9093d831ce78092e81524d2fcb54686313c0bea682435030
7
- data.tar.gz: 347e36b41777a46a239194cdf85a65404a4585dd6ab72967bf2d73ffc01616c7965530955f59df86f098a7c9c89e83127d8fba4f78fef8d69718c6b6762d2509
6
+ metadata.gz: 476b71a60ff70e5945d0cd6ba5b820d58eaedf1de8b31a8788160be549aa6228ee07d0ac3c16d8319d15da5204153df9c6cf022322f1af33eaa5e54fa5536cfc
7
+ data.tar.gz: 66d3efeff1efa29f000bbedd402fe6e1d67089e8b8093a1e2cb9554bfc8788e4921ec47199647155079f7a609c8daac4f886fb86a60bb5dba053487afe84aec6
data/Gemfile.lock CHANGED
@@ -1,9 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- uk-hs_code (0.1.0)
5
- rake (~> 13.0)
6
- rspec (~> 3.0)
4
+ uk-hs_code (0.1.2)
7
5
 
8
6
  GEM
9
7
  remote: https://rubygems.org/
@@ -56,6 +54,8 @@ PLATFORMS
56
54
 
57
55
  DEPENDENCIES
58
56
  pry
57
+ rake (~> 13.0)
58
+ rspec (~> 3.0)
59
59
  rubocop
60
60
  uk-hs_code!
61
61
 
data/README.md CHANGED
@@ -8,7 +8,7 @@ The repository is here: https://github.com/enigmatt-pl/uk-hs_code.git
8
8
 
9
9
  Add to your Gemfile:
10
10
 
11
- $ gem 'uk-hs_code', git: 'https://github.com/enigmatt-pl/uk-hs_code.git'
11
+ $ gem 'uk-hs_code'
12
12
 
13
13
  And:
14
14
 
@@ -34,6 +34,8 @@ And:
34
34
 
35
35
  > refs = Uk::HsCode.search_hs_codes('carpet')
36
36
 
37
+ > refs.inspect
38
+
37
39
  # => [#<Uk::HsCode::Record code="8451808000", title="carpet cleaning machines liquid injection">,
38
40
  #<Uk::HsCode::Record code="4008000000", title="carpet underlay, rubber">,
39
41
  #<Uk::HsCode::Record code="5402000000", title="carpet yarn, of man-made filaments">]
@@ -42,13 +44,13 @@ And:
42
44
 
43
45
  ## Development
44
46
 
45
- 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.
47
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. To test with static code analyzer, run `rake rubocop`. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
46
48
 
47
49
  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).
48
50
 
49
51
  ## Contributing
50
52
 
51
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/uk-hs_code.
53
+ Bug reports and pull requests are welcome on GitHub at https://github.com/enigmatt-pl/uk-hs_code.
52
54
 
53
55
  ## License
54
56
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Uk
4
4
  module HsCode
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/uk/hs_code/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "uk-hs_code"
7
+ spec.version = Uk::HsCode::VERSION
8
+ spec.authors = ["Mateusz Michalski"]
9
+ spec.email = ["enigmatt.priv@gmail.com"]
10
+
11
+ spec.summary = "Enables communication with Trade Tariff Public API V2."
12
+ spec.description = "Trade Tariff Public API V2 communicator."
13
+ spec.homepage = "https://github.com/enigmatt-pl/uk-hs_code.git"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.6.0"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = spec.homepage
19
+ spec.metadata["changelog_uri"] = spec.homepage
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(__dir__) do
24
+ `git ls-files -z`.split("\x0").reject do |f|
25
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
26
+ end
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ spec.add_development_dependency "pry"
33
+ spec.add_development_dependency "rubocop"
34
+
35
+ spec.add_development_dependency "rake", "~> 13.0"
36
+ spec.add_development_dependency "rspec", "~> 3.0"
37
+
38
+ # Uncomment to register a new dependency of your gem
39
+ # spec.add_dependency "example-gem", "~> 1.0"
40
+
41
+ # For more information and examples about making a new gem, check out our
42
+ # guide at: https://bundler.io/guides/creating_gem.html
43
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uk-hs_code
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Michalski
@@ -45,7 +45,7 @@ dependencies:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '13.0'
48
- type: :runtime
48
+ type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
@@ -59,7 +59,7 @@ dependencies:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.0'
62
- type: :runtime
62
+ type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
@@ -85,6 +85,7 @@ files:
85
85
  - lib/uk/hs_code/record.rb
86
86
  - lib/uk/hs_code/version.rb
87
87
  - sig/uk/hs_code.rbs
88
+ - uk-hs_code.gemspec
88
89
  homepage: https://github.com/enigmatt-pl/uk-hs_code.git
89
90
  licenses:
90
91
  - MIT