jets-api 0.1.0 → 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: ba93fd08108eb85d4cae6dfa1a37f2702213e111d35d09762c8dc30148f0b9c2
4
- data.tar.gz: 528480b2fa8c3b4635295ac717778bf4d4fb628b97e8fef805df3b946d1029ae
3
+ metadata.gz: dc4e95788b9a90a96ee85f3bae26143819933de6ab691659428887e1a3fb2bf1
4
+ data.tar.gz: '0613930942f7c0f0ee61981665be280a3e38dd2f45065cbb50a982cc7420c4d4'
5
5
  SHA512:
6
- metadata.gz: 51b3904fcfbce1d669a45a7692dbbc4c48652ea296890b8ff74a8328a0cdadd2c489fca79fff760d12a99c94c3787c06bc331bd45ad0dcee1289504326a41656
7
- data.tar.gz: 335178b7d6b2af40a25db803dd9b5aa0974c537f4354776f1c753bcb61d5143e18d9dbf4eeaedc4ec67f0dd7ae447ba585ad605389a7ee4620f45bd90c4ab2f1
6
+ metadata.gz: f3044367c395b6a9bc397fc6e3241221f34a8adb990a1b5eb9300a5abec59d48c8d1a4baf14467fcd60b3fff61a967a32b53af1bf903500d2e8fd64b26160a6e
7
+ data.tar.gz: 6d6769a1ec035b97254d8e3ae2c38c7c484bed695f4683a1e0a0a0ef6ade5259823dedbe8d51c04344e957bd396d8abe86799af1681356b0b3190215cd416302
data/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
+
6
+ ## [0.1.2] - 2023-12-04
7
+ - use key field for token
8
+
9
+ ## [0.1.1] - 2023-12-03
10
+ - use Jets.project_name
11
+
12
+ ## [0.1.0]
13
+ - Initial release
@@ -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)}"
@@ -9,7 +9,7 @@ module Jets::Api::Gems::Extract
9
9
  @name = name
10
10
  @options = options
11
11
  ruby_folder = Jets::Api::Gems.ruby_folder
12
- @downloads_root = options[:downloads_root] || "/tmp/jets/#{Jets.config.project_name}/jets-api/#{ruby_folder}"
12
+ @downloads_root = options[:downloads_root] || "/tmp/jets/#{Jets.project_name}/jets-api/#{ruby_folder}"
13
13
  end
14
14
 
15
15
  def clean_downloads(folder)
@@ -1,5 +1,5 @@
1
1
  module Jets
2
2
  module Api
3
- VERSION = "0.1.0"
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.0
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-02 00:00:00.000000000 Z
11
+ date: 2023-12-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -17,6 +17,7 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - CHANGELOG.md
20
21
  - LICENSE.txt
21
22
  - README.md
22
23
  - Rakefile