jets-api 0.1.1 → 0.1.2
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/jets/api/agree.rb +2 -2
- data/lib/jets/api/config.rb +2 -3
- data/lib/jets/api/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: dc4e95788b9a90a96ee85f3bae26143819933de6ab691659428887e1a3fb2bf1
|
|
4
|
+
data.tar.gz: '0613930942f7c0f0ee61981665be280a3e38dd2f45065cbb50a982cc7420c4d4'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3044367c395b6a9bc397fc6e3241221f34a8adb990a1b5eb9300a5abec59d48c8d1a4baf14467fcd60b3fff61a967a32b53af1bf903500d2e8fd64b26160a6e
|
|
7
|
+
data.tar.gz: 6d6769a1ec035b97254d8e3ae2c38c7c484bed695f4683a1e0a0a0ef6ade5259823dedbe8d51c04344e957bd396d8abe86799af1681356b0b3190215cd416302
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
|
5
5
|
|
|
6
|
+
## [0.1.2] - 2023-12-04
|
|
7
|
+
- use key field for token
|
|
8
|
+
|
|
6
9
|
## [0.1.1] - 2023-12-03
|
|
7
10
|
- use Jets.project_name
|
|
8
11
|
|
data/lib/jets/api/agree.rb
CHANGED
|
@@ -16,13 +16,13 @@ module Jets::Api
|
|
|
16
16
|
for unlimited gem download requests. Open Source projects may also qualify
|
|
17
17
|
for a free unlimited plan. More info:
|
|
18
18
|
|
|
19
|
-
https://
|
|
19
|
+
https://www.rubyonjets.com/rate-limits
|
|
20
20
|
|
|
21
21
|
Reporting gems to Jets Api also allows it to build new gems typically
|
|
22
22
|
within a few minutes. So if you run into missing gems, you can try deploying
|
|
23
23
|
again after a few minutes. Non-reported gems may take several days or longer.
|
|
24
24
|
Jets Api only collects the info it needs to run the service.
|
|
25
|
-
More info: https://
|
|
25
|
+
More info: https://www.rubyonjets.com/privacy
|
|
26
26
|
This message will only appear once on this machine.
|
|
27
27
|
|
|
28
28
|
You can also automatically skip this message by setting:
|
data/lib/jets/api/config.rb
CHANGED
|
@@ -34,7 +34,7 @@ module Jets::Api
|
|
|
34
34
|
def prompt
|
|
35
35
|
puts <<~EOL
|
|
36
36
|
You are about to configure your #{pretty_path(@config_path)}
|
|
37
|
-
You can get a token from
|
|
37
|
+
You can get a token from www.rubyonjets.com
|
|
38
38
|
EOL
|
|
39
39
|
print "Please provide your token: "
|
|
40
40
|
$stdin.gets.strip
|
|
@@ -43,13 +43,12 @@ module Jets::Api
|
|
|
43
43
|
# interface method: do not remove
|
|
44
44
|
def update_token(token=nil)
|
|
45
45
|
token ||= prompt
|
|
46
|
-
write(
|
|
46
|
+
write(key: token) # specify keys to allow
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
def write(values={})
|
|
50
50
|
data = load
|
|
51
51
|
data.merge!(values.deep_stringify_keys)
|
|
52
|
-
data.delete('key') if data.key?('key') # remove legacy key that used to store token
|
|
53
52
|
FileUtils.mkdir_p(File.dirname(@config_path))
|
|
54
53
|
IO.write(@config_path, YAML.dump(data))
|
|
55
54
|
puts "Updated #{pretty_path(@config_path)}"
|
data/lib/jets/api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jets-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tung Nguyen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-12-
|
|
11
|
+
date: 2023-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|