neocities 0.0.17 → 0.0.18

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: 2e868d70dd0564036428471413481d66f764cde75087d25a4aef0ec945d5792b
4
- data.tar.gz: 9d180d291b6169253110534aef62a48ec3ee8b43a8f50dc6a4635695d1ce525a
3
+ metadata.gz: 322b624aea971dd7a650eac8a9b6011e0f3d13ff8e4a5bb2f1a423b87bb446ac
4
+ data.tar.gz: c28f4d3296f36bb8a556fa210cc79a19a765e511fbf3b45111f93738b26014d4
5
5
  SHA512:
6
- metadata.gz: d2a884cc70d5ffb3521a472e2f1a582963f44b3e390f171486c6c3d08125041779cf65e562decc6a3aeaafbfa2d7e956efbb22ee77cd7b5cb3e3f096d7d15e11
7
- data.tar.gz: aab95d2837cdcdfa49b35cabf4a4b57fae898f2189bcd16f34b16e5729b9f415491fe4c7a024376d0b0e5eb24c98cea2c5743269fa6d21431876bd2b4f58e157
6
+ metadata.gz: ec195af25579bd74b8763ec1bc2d997ede505157fb2e6da9e27bfc4854a03526c57d8d05c593e9a10bfa8c0597649f75be03962d338933cbf763c9c75be9e110
7
+ data.tar.gz: 45ea7e5ff1bc0addafe30ca5bb9a8e3b23dabd168b01b0169ab254895d8041bb098687cfb982c5161d2d5a9d4ed2634937064c87b1f3b0bcb76b8ea1d944d031
data/lib/neocities/cli.rb CHANGED
@@ -48,6 +48,8 @@ module Neocities
48
48
  if !@api_key
49
49
  begin
50
50
  @api_key = File.read @app_config_path
51
+ # Remove any trailing whitespace causing HTTP requests to fail
52
+ @api_key = @api_key.strip
51
53
  rescue Errno::ENOENT
52
54
  @api_key = nil
53
55
  end
@@ -213,7 +215,7 @@ module Neocities
213
215
  end
214
216
 
215
217
  Dir.chdir(root_path) do
216
- paths = Dir.glob(File.join('**', '*'))
218
+ paths = Dir.glob(File.join('**', '*'), File::FNM_DOTMATCH)
217
219
 
218
220
  if @no_gitignore == false
219
221
  begin
@@ -365,6 +367,8 @@ HERE
365
367
  #{@pastel.green '$ neocities push --no-gitignore .'} Don't use .gitignore to exclude files
366
368
 
367
369
  #{@pastel.green '$ neocities push --dry-run .'} Just show what would be uploaded
370
+
371
+ #{@pastel.green '$ neocities push --prune .'} Delete site files not in dir (be careful!)
368
372
 
369
373
  HERE
370
374
  exit
@@ -1,3 +1,3 @@
1
1
  module Neocities
2
- VERSION = '0.0.17'
2
+ VERSION = '0.0.18'
3
3
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neocities
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Drake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-02 00:00:00.000000000 Z
11
+ date: 2023-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tty-table
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
18
- - !ruby/object:Gem::Version
19
- version: 0.10.0
20
17
  - - "~>"
21
18
  - !ruby/object:Gem::Version
22
19
  version: '0.10'
20
+ - - '='
21
+ - !ruby/object:Gem::Version
22
+ version: 0.10.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - '='
28
- - !ruby/object:Gem::Version
29
- version: 0.10.0
30
27
  - - "~>"
31
28
  - !ruby/object:Gem::Version
32
29
  version: '0.10'
30
+ - - '='
31
+ - !ruby/object:Gem::Version
32
+ version: 0.10.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: tty-prompt
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - '='
38
- - !ruby/object:Gem::Version
39
- version: 0.12.0
40
37
  - - "~>"
41
38
  - !ruby/object:Gem::Version
42
39
  version: '0.12'
40
+ - - '='
41
+ - !ruby/object:Gem::Version
42
+ version: 0.12.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - '='
48
- - !ruby/object:Gem::Version
49
- version: 0.12.0
50
47
  - - "~>"
51
48
  - !ruby/object:Gem::Version
52
49
  version: '0.12'
50
+ - - '='
51
+ - !ruby/object:Gem::Version
52
+ version: 0.12.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: pastel
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0'
150
150
  requirements: []
151
- rubygems_version: 3.0.3
151
+ rubygems_version: 3.3.26
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: Neocities.org CLI and API client