firim 0.2.3 → 0.2.4

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: 04ba419f4d44e1deb98fd2a54f60bfd3b3423d1e0af267be37dc0ed6e777dff6
4
- data.tar.gz: 5c37017077f788a72d88503fc90e80a3c6c18c54c7c0d7efca032664ac3d84c5
3
+ metadata.gz: 5ce176d8ca754c7298b4a5f2499111f266c37082aedfb1efd6bb680daca82e8b
4
+ data.tar.gz: 9a6f4c13d11a5945e39ca5c423d65059886159524fbcc10ba10d24471977c5d4
5
5
  SHA512:
6
- metadata.gz: 4c86ef0f93eed48e722c740b9100922e787d67aa56a6533d84226da61e1b3032db47af9139e4853b17d15adbdcc6a8eb104dc7933aada701026b81e0d707928c
7
- data.tar.gz: 8ce0799b7763a600f2a2d2fd14e0cff71930b28b3b70399ce63f995c30d3e6b061b5433462a1cbf671495a4915d4b699c85fbbc62d7d589036848c87a117ab29
6
+ metadata.gz: bd9884319ab5082143bbbb869ac125055b5ddd049b13349fc0be3ff853c8afc30b207964d37c7caf98940a9509c00f95e40d87f1189c870a500bf5677da4f1cd
7
+ data.tar.gz: a925a90df3162f6a134555a03facd5eb650a9550db3d4af6d6cf13b6652018e48169eb28b2bfedfadde109a228347670d4f0490b6f5ea0361ed67f4618145193
data/README.md CHANGED
@@ -37,6 +37,8 @@ Upload with icon ***NOTICE: Icon must be jpg format***
37
37
 
38
38
  firim -i [your_ipa_path] -l [your_icon_path]
39
39
 
40
+ Use `firim_api_url` to set API URL, if `fir.im` change the Base URL. default is `https://api.fir.im`.
41
+
40
42
  # Assgin API Token
41
43
 
42
44
  There are three ways to assgin Firim API Token
data/lib/firim/options.rb CHANGED
@@ -9,6 +9,10 @@ module Firim
9
9
  FastlaneCore::ConfigItem.new(key: :platform,
10
10
  optional: true,
11
11
  description: "The fir platform, support ios/android"),
12
+ # fir.im api url
13
+ FastlaneCore::ConfigItem.new(key: :firim_api_url,
14
+ default_value: "https://api.fir.im",
15
+ description: "fir.im api URL"),
12
16
  # firim info
13
17
  FastlaneCore::ConfigItem.new(key: :firim_api_token,
14
18
  short_option: "-a",
data/lib/firim/runner.rb CHANGED
@@ -7,8 +7,9 @@ module Firim
7
7
  attr_accessor :options
8
8
  attr_reader :firim_client
9
9
 
10
- def self.firim_hostname
11
- return "http://api.fir.im/"
10
+ def firim_hostname
11
+ api_url = self.options[:firim_api_url]
12
+ return api_url
12
13
  end
13
14
 
14
15
  def guess_platform
@@ -41,7 +42,7 @@ module Firim
41
42
  self.options[:platform] = self.guess_platform
42
43
  UI.user_error!("Platform not given --platform ios/android") if self.options[:platform] == nil
43
44
 
44
- @firim_client = Faraday.new(self.class.firim_hostname, conn_options) do |c|
45
+ @firim_client = Faraday.new(self.firim_hostname, conn_options) do |c|
45
46
  c.request :url_encoded # form-encode POST params
46
47
  c.adapter :net_http
47
48
  c.response :json, :content_type => /\bjson$/
data/lib/firim/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Firim
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - whlsxl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-04 00:00:00.000000000 Z
11
+ date: 2020-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane