snippet_cli 0.2.9 → 0.3.4

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: 8961277f704443a6959fcfe92a396e72724ac2f439aeaea9456f9a803b165e6d
4
- data.tar.gz: 54241c7cc79cdd9c3fb86588ac55116bdef42053a9adc403d185334cac7989f6
3
+ metadata.gz: 3af1891fae029016fe4e16ea86eb8a9b8d90558a7a8155a2460f05db576d7be9
4
+ data.tar.gz: 8271587e3e436a4295710175a65c5953096379a20637e02bddca31648a4f814d
5
5
  SHA512:
6
- metadata.gz: be4aa64bd286ef6593b3e008321966bebad41a64fb560fcfb2480e1a45ea933190a8e36a2d59c896838b5352d030bcade664cfcf4d6a83b7533083b46ce495b3
7
- data.tar.gz: 525d825a3d0ba43b4dde72907be85196c54e1ec0d017ca74398721255e51dd14a18ee200657ac86224b4c78df2d2e7ebce96944d517eb9478a31236f9b141966
6
+ metadata.gz: 21ea01ea0d8fb71ff6299c337c039655edd6aa3c9a91c9e3a375cd83ed85467f1b4ff32e898eee933a2d7d74768c64bf91e14e5c60f53fa8386fb3fc5085bd1c
7
+ data.tar.gz: '0954726dd0427ef698bc56689315d45a55affe85f3f1d7e87517cf3bf9fd3c1cc06c7a3934db52039798386f5290a592bed92e582393227d625d3ee16b744773'
data/lib/Setup.rb CHANGED
@@ -62,13 +62,14 @@ class Setup
62
62
  end
63
63
 
64
64
  def generate_config()
65
- if File.exist?("#{ENV["HOME"]}/snippet_cli_config.txt") then
65
+ if File.exist?("#{ENV["HOME"]}\\snippet_cli_config.txt") then
66
66
 
67
67
  else
68
- File.open("#{ENV["HOME"]}/snippet_cli_config.txt", "a") { |f| f.write "NAME = #{self.user_name}\n"}
69
- File.open("#{ENV["HOME"]}/snippet_cli_config.txt", "a") { |f| f.write "OS = #{self.user_os}\n"}
70
- File.open("#{ENV["HOME"]}/snippet_cli_config.txt", "a") { |f| f.write "STORAGE = #{self.user_storage}\n"}
71
- File.open("#{ENV["HOME"]}/snippet_cli_config.txt", "a") { |f| f.write "CONFIG_PRESENT = TRUE\n"}
68
+ File.new("#{ENV["HOME"]}\\snippet_cli_config.txt", "w+")
69
+ File.open("#{ENV["HOME"]}\\snippet_cli_config.txt", "a") { |f| f.write "NAME = #{self.user_name}\n"}
70
+ File.open("#{ENV["HOME"]}\\snippet_cli_config.txt", "a") { |f| f.write "OS = #{self.user_os}\n"}
71
+ File.open("#{ENV["HOME"]}\\snippet_cli_config.txt", "a") { |f| f.write "STORAGE = #{self.user_storage}\n"}
72
+ File.open("#{ENV["HOME"]}\\snippet_cli_config.txt", "a") { |f| f.write "CONFIG_PRESENT = TRUE\n"}
72
73
  end
73
74
  end
74
75
  end
@@ -1,3 +1,3 @@
1
1
  module SnippetCli
2
- VERSION = "0.2.9"
2
+ VERSION = "0.3.4"
3
3
  end
data/snippet_cli.gemspec CHANGED
@@ -11,7 +11,6 @@ Gem::Specification.new do |spec|
11
11
  spec.description = "You can write to your espanso config directly using this gem"
12
12
  spec.homepage = "https://github.com/ajmarkow/snippet_cli"
13
13
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
- spec.add_runtime_dependency "thor"
15
14
  spec.add_runtime_dependency "tty-prompt"
16
15
  spec.add_runtime_dependency "tty-box"
17
16
  spec.add_runtime_dependency "tty-platform"
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snippet_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - AJ Markow
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2021-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: thor
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: tty-prompt
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -212,7 +198,7 @@ metadata:
212
198
  homepage_uri: https://github.com/ajmarkow/snippet_cli
213
199
  source_code_uri: https://github.com/ajmarkow/snippet_cli
214
200
  changelog_uri: https://github.com/ajmarkow/snippet_cli
215
- post_install_message:
201
+ post_install_message:
216
202
  rdoc_options: []
217
203
  require_paths:
218
204
  - lib
@@ -227,9 +213,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
213
  - !ruby/object:Gem::Version
228
214
  version: '0'
229
215
  requirements: []
230
- rubyforge_project:
216
+ rubyforge_project:
231
217
  rubygems_version: 2.7.6.2
232
- signing_key:
218
+ signing_key:
233
219
  specification_version: 4
234
220
  summary: Allows you to add snippets to Espanso Config from CLI
235
221
  test_files: []