jets-api 0.1.1 → 0.1.2

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: ec70c78472354e87baba2a4c0353448131e4c64fbde701e23be618747acfef2f
4
- data.tar.gz: 72613b1b6fedfcd05a7b47dd6a4eb7315790105115a84c55069687a967092f99
3
+ metadata.gz: dc4e95788b9a90a96ee85f3bae26143819933de6ab691659428887e1a3fb2bf1
4
+ data.tar.gz: '0613930942f7c0f0ee61981665be280a3e38dd2f45065cbb50a982cc7420c4d4'
5
5
  SHA512:
6
- metadata.gz: 633130db69212b6ea9de71bfeb59c5af833ed3708b0b7b8ce477d81aa2a4cb8dd79d9ced4b57dd61539493f483a56a09e93647394a8e27361029ec2a727d9e75
7
- data.tar.gz: 24b5cc6866ba712de63061db95856454e0e8c2e3c6b6f66ab5485b27cb7635bc422321498314831d6423f7cd2bcc05ef69a2d95efb3de22aa9bfedd8b2d7c0fa
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
 
@@ -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://pro.rubyonjets.com/rate-limits
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://pro.rubyonjets.com/privacy
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:
@@ -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 pro.rubyonjets.com
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(token: token) # specify keys to allow
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)}"
@@ -1,5 +1,5 @@
1
1
  module Jets
2
2
  module Api
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
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.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-03 00:00:00.000000000 Z
11
+ date: 2023-12-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: