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 +4 -4
- data/README.md +2 -0
- data/lib/firim/options.rb +4 -0
- data/lib/firim/runner.rb +4 -3
- data/lib/firim/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ce176d8ca754c7298b4a5f2499111f266c37082aedfb1efd6bb680daca82e8b
|
4
|
+
data.tar.gz: 9a6f4c13d11a5945e39ca5c423d65059886159524fbcc10ba10d24471977c5d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
11
|
-
|
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.
|
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
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.
|
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-
|
11
|
+
date: 2020-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane
|