firim 0.2.6 → 0.2.9

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: 99d4a5e75424bb3b1bbfdccf40ccaf363ad04a2bdccc92912da706716a63119c
4
- data.tar.gz: 5a185dc631b20f68dc485c6d877c153568e175be7e4e99ab0cb0518de3a0b728
3
+ metadata.gz: 820fd1cd175fbd30167d2fc1ea6b595f87fe1bf8b270397df6aad4a000e9eb46
4
+ data.tar.gz: 7a7a443df5dbd1d219b3c62864e1a9363a25410dc3b34e755e31f8701e3a8f29
5
5
  SHA512:
6
- metadata.gz: 6f9d2e3d57c1b69f97ba74e26a2e27fe21754c897eb01d9ac07540293d0dff486cbbc8dbe7671c70c2b5020701bc33aabd3f03bc977a426b07b51841e7cb5cde
7
- data.tar.gz: ce37927d5f4dea8127b5fc3c04e386252d6f5aa24c0d40432c64a14ddd19f2c5d1cbf9be120bc6d05654c2def91d19fd85303fba571f0ff11db09a11784a268f
6
+ metadata.gz: 07dee067a7052c72816afa97c1a9b77758ce088d9536f2c153410eee35fea66e9e2f8d491be909f86b229de466ebfa4f30829a16c28347424fec4f4642aee2b7
7
+ data.tar.gz: 38a894a90d75e20bf3ace028b3dbe7f40ee0103da217681618b9c56e3b1cc93ccbff1deb72f8bdc13fb3093cf77b9bc570b1de0a8b62519a105ecb1d4f93f5b4
data/README.md CHANGED
@@ -1,9 +1,10 @@
1
1
  ***Important***
2
2
 
3
- ***For the reason of fir.im had changed the Base URL, pls set `firim_api_url` to `http://fir-api.fircli.cn/` or `http://api.bq04.com`.*** [issue](https://github.com/whlsxl/firim/issues/26)
3
+ ***For the reason of fir.im had changed the Base URL, pls set `firim_api_url` to `https://fir-api.fircli.cn/` or `https://api.bq04.com`.*** [issue](https://github.com/whlsxl/firim/issues/26)
4
4
 
5
- From v0.2.5, the default `firim_api_url` set to `http://api.bq04.com`.
5
+ From v0.2.5, the default `firim_api_url` set to `https://api.bq04.com`.
6
6
 
7
+ From firim v0.2.6, add show download url in terminal. [issue](https://github.com/whlsxl/firim/issues/32)
7
8
  # Firim
8
9
 
9
10
  Firim is a command tool to directly upload ipa and change app infomation on fir.im. fir.im is a Beta APP host website, you can upload ipa for AdHoc or InHouse distribution for testing.
@@ -28,7 +29,7 @@ Or install it yourself as:
28
29
 
29
30
  * `cd [your_project_folder]`
30
31
  * `firim init`
31
- * Enter your fir.im API Token (From [Fir.im](http://fir.im/apps))
32
+ * Enter your fir.im API Token (From [Fir.im](https://fir.im/apps))
32
33
  * `firim -i [your_ipa_path]`
33
34
 
34
35
  # Usage
@@ -45,6 +46,15 @@ Upload with icon ***NOTICE: Icon must be jpg format***
45
46
 
46
47
  Use `firim_api_url` to set API URL, if `fir.im` change the Base URL. default is `https://api.fir.im`.
47
48
 
49
+ ## Export environments
50
+
51
+ After upload app to fir.im, firim will export some environment variables.
52
+
53
+ * `FIRIM_APP_SHORT` app's short path
54
+ * `FIRIM_APP_NAME` app's name
55
+ * `FIRIM_MASTER_RELEASE_ID` app's master_release_id
56
+ * `FIRIM_APP_URL` the download page of the app
57
+
48
58
  # Assign API Token
49
59
 
50
60
  There are three ways to assign Firim API Token
@@ -72,7 +82,6 @@ The gem is available as open source under the terms of the [MIT License](http://
72
82
 
73
83
  # TODO
74
84
 
75
- * Export all app infomation to a file
76
- * Generate a web page show all the app's link and infomations
77
- * Show the app list, and export all app infomations to a file
78
- * force reset icon
85
+ - [ ] Generate a web page show all the app's link and infomations
86
+ - [x] Show the app list, and export all app infomations to a file
87
+ - [ ] force reset icon
data/lib/firim/runner.rb CHANGED
@@ -64,6 +64,12 @@ module Firim
64
64
  write_app_info_to_file
65
65
  options = @app_info
66
66
  options[:download_page_url] = download_url
67
+ ENV["FIRIM_APP_URL"] = download_url
68
+ ENV["FIRIM_APP_NAME"] = options["name"]
69
+ ENV["FIRIM_APP_SHORT"] = options["short"]
70
+ ENV["FIRIM_MASTER_RELEASE_ID"] = options["master_release_id"]
71
+ options.each { |key, value| ENV["FIRIM_#{key}"] = "#{value}" }
72
+ print ENV.to_h
67
73
  FastlaneCore::PrintTable.print_values(config: options, title: "#{@app_info["name"]}'s' App Info")
68
74
  end
69
75
 
data/lib/firim/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Firim
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.9"
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.6
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - whlsxl
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-23 00:00:00.000000000 Z
11
+ date: 2022-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane
@@ -97,7 +97,7 @@ homepage: https://github.com/whlsxl/firim
97
97
  licenses:
98
98
  - MIT
99
99
  metadata: {}
100
- post_install_message:
100
+ post_install_message:
101
101
  rdoc_options: []
102
102
  require_paths:
103
103
  - lib
@@ -112,8 +112,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  requirements: []
115
- rubygems_version: 3.1.2
116
- signing_key:
115
+ rubygems_version: 3.3.11
116
+ signing_key:
117
117
  specification_version: 4
118
118
  summary: fir.im command tool
119
119
  test_files: []