zilla 0.1.2 → 0.1.3

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: b2a5bdb6b217e29a2a4c21caa1ce01231500f2ca70c989684b6890000822f807
4
- data.tar.gz: a0ee0fb62e290e75d5ff76f604245b80ed487cf22f749fbcf69efe26addda88a
3
+ metadata.gz: 67835482c78ededdf96d80a81e748354240776a1b8d696e3f8ea61a2e9a07a00
4
+ data.tar.gz: 1bac88fb8c3db62b72163318331f770e7145b4b55b7792420bf89cf2132f2452
5
5
  SHA512:
6
- metadata.gz: e0b298023b39eef460dc2a6c5af35f744c00c0dcef12666346e5526da9afbdd290dbaf01bac969ce457abd0668822bf2baa11d492b6311e59ff6ddc8501d89ef
7
- data.tar.gz: bf3bf4a7bede9991cedc7eea25946d693387594d002efdf2650b69402658ce39d7123a08a65e118867e35b40e3f7f26d7ae667912b1475202ad6c870b2f78345
6
+ metadata.gz: 646c19b46599f6cfb5791493a5a410e7702a1a706ffa1a0b7e919c56a6b2fb88b07b5f2e2111700bc344533e6810a96023dd627dcb4f1cad27306b5071954592
7
+ data.tar.gz: 71e3293b3e08583dd862faaf95550fbb9c701c7ddfde921ad1bca13e573127191d7dcd55e0db558c4a5632798fd2152d9222aeec8f04cdf85bf88cafe024d57c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zilla (0.1.2)
4
+ zilla (0.1.3)
5
5
  faraday (~> 2.7.0)
6
6
  json_schemer (~> 0.2.0)
7
7
  memery (~> 1.4.0)
data/lib/zilla/version.rb CHANGED
@@ -4,5 +4,5 @@ module Zilla
4
4
  module Version
5
5
  end
6
6
 
7
- VERSION = "0.1.2"
7
+ VERSION = "0.1.3"
8
8
  end
data/lib/zilla.rb CHANGED
@@ -13,9 +13,12 @@ loader.inflector.inflect(
13
13
  "api" => "API"
14
14
  )
15
15
 
16
- # Your code goes here...
17
- module Zilla # rubocop:disable Style/ClassAndModuleChildren
16
+ module Zilla
18
17
  class Error < StandardError; end
18
+
19
+ def self.for(input, host: nil, scheme: nil, &)
20
+ Zilla::ClientFactory.build(input, host:, scheme:, &)
21
+ end
19
22
  end
20
23
 
21
24
  loader.setup
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zilla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Sinyavskiy