snippet_cli 0.3.0 → 0.3.5

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: 824191e78e405fdce74b27aa579df3370f9e5548c74b209e06b838194d5ac73f
4
- data.tar.gz: 809b52ad87d9fc1c293bab6759a7d1140d132f052d19a60398c9d82f6d1a5035
3
+ metadata.gz: eecf2cdc1b2c47635644da99ed86bab885ccf82b2fca94f312a1dd10db633dac
4
+ data.tar.gz: 30af8bef8326c921eb3ed37e27eb6f64a876dfc44a642e67ad2990b2d4d68e66
5
5
  SHA512:
6
- metadata.gz: e278a7d752385f92386af8b2fb7e7f765f53ea533a5c6a7ddbbee9f3569ff728a59a5bfce82be150a693ff027c25a56a4cc55ae151549fdf8c4fe8e83385d1bb
7
- data.tar.gz: d760144e6e3e21eca03cc95a83775969634c33aa4ef1d58b02ef445f5ca5db8ca981512bd8fc1529bbb0930b54b9c39a32e364a8656d8f062170d1f984dc441c
6
+ metadata.gz: d2626f170243ad5b46c6b02e1412d0b77b44073865627ba12c3546742a8b908b23785b0bd6b7fb210f546840a363df07a27f06df6e6164a8a847e1d1cd873b13
7
+ data.tar.gz: e5a9c1a4091626052d8e08256740b21b7eaf25cb09168de3fd0344588bf37ab5410252f14dd70ca046b3f832c4ec63dcefe0746832db79da581ad4dfb88fdb6d
data/lib/Setup.rb CHANGED
@@ -62,13 +62,15 @@ class Setup
62
62
  end
63
63
 
64
64
  def generate_config()
65
- if File.exist?("#{ENV["HOME"]}/Library/Preferences/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"]}/Library/Preferences/snippet_cli_config.txt", "a") { |f| f.write "NAME = #{self.user_name}\n"}
69
- File.open("#{ENV["HOME"]}/Library/Preferences/snippet_cli_config.txt", "a") { |f| f.write "OS = #{self.user_os}\n"}
70
- File.open("#{ENV["HOME"]}/Library/Preferences/snippet_cli_config.txt", "a") { |f| f.write "STORAGE = #{self.user_storage}\n"}
71
- File.open("#{ENV["HOME"]}/Library/Preferences/snippet_cli_config.txt", "a") { |f| f.write "CONFIG_PRESENT = TRUE\n"}
68
+ FileUtils.cd("#{ENV["HOME"]}")
69
+ FileUtils.touch("#{ENV["HOME"]}\\snippet_cli_config.txt")
70
+ File.open("#{ENV["HOME"]}\\snippet_cli_config.txt", "a") { |f| f.write "NAME = #{self.user_name}\n"}
71
+ File.open("#{ENV["HOME"]}\\snippet_cli_config.txt", "a") { |f| f.write "OS = #{self.user_os}\n"}
72
+ File.open("#{ENV["HOME"]}\\snippet_cli_config.txt", "a") { |f| f.write "STORAGE = #{self.user_storage}\n"}
73
+ File.open("#{ENV["HOME"]}\\snippet_cli_config.txt", "a") { |f| f.write "CONFIG_PRESENT = TRUE\n"}
72
74
  end
73
75
  end
74
76
  end
@@ -1,3 +1,3 @@
1
1
  module SnippetCli
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.5"
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snippet_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - AJ Markow
@@ -10,20 +10,6 @@ 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