texst 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/texst.rb +6 -6
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce06e044ecb7e6c9e3ff785635daf3e14bae327f
4
- data.tar.gz: 06702a9a033333d7dfa03d3da4a2b71f92173011
3
+ metadata.gz: 43e8cefd63a979925d3aae64cd0760cdc141cb91
4
+ data.tar.gz: 53bbb16eaa96b7b855a42264c230dea488b70296
5
5
  SHA512:
6
- metadata.gz: cb780d507dba2a837cc1aa255cacd8fdab208a810ca765b6ef0ce1e27f49925516f448ae4eb820b4d438425120eac3924c6e3c9292b730fa445ba55af8c9ffce
7
- data.tar.gz: c2ccf23e4b4f6489eff16683911d8d4e4159244b320bb397f63dc521a58045fa4f77fcd8281cb26f11800512d80c58f3577e96ecb270c2668af31f82fb0af338
6
+ metadata.gz: b8bae67960eb75f2aace872ce2de96e1a3ad0c2289b3963104abeebdf2231c3ba0d82e2d8e28f42c56672171fab3064dce0c1f940eca61f9d20dfd2394b428fa
7
+ data.tar.gz: 05af98d5dcd4f9b4abc721373e5c0c5afebb226bac37b08fd455d1b0b6ca360ae9cdcd6f313dc50ec04c60bb3b83d08f82b6c0671361c72592e52ba012fd7865
@@ -15,14 +15,14 @@ module Texst
15
15
  # For Create Folder For Langs
16
16
  def self.folder
17
17
  filer = Dir.pwd
18
- Dir.mkdir("#{filer}/texst")
18
+ Dir.mkdir("#{filer}/Texst-Pro") unless File.exists?("#{filer}/Texst-Pro")
19
19
  folders = ["c", "lisp", "c++", "java", "cobol",
20
20
  "cs", "d", "exilir", "haskell", "erlang", "clujure",
21
21
  "matlab", "pascal", "r", "scala", "swift",
22
22
  "python", "php", "perl", "lua", "ruby"]
23
23
  folders.each do |fld|
24
24
  path = Dir.pwd
25
- Dir.mkdir("#{path}/texst/#{fld}") unless File.exists?("#{path}/texst/#{fld}")
25
+ Dir.mkdir("#{path}/Texst-Pro/#{fld}") unless File.exists?("#{path}/Texst-Pro/#{fld}")
26
26
  end
27
27
  end
28
28
  # For Begin Get Type And Lang If Was Right First Time
@@ -84,7 +84,7 @@ module Texst
84
84
  # This Function For Get Inputs
85
85
  def initialize(lang, type)
86
86
  @type = type
87
- @filename = "texst/#{$lang}/"
87
+ @filename = "Texst-Pro/#{$lang}/"
88
88
  if lang == "functional"
89
89
  @lang = lang
90
90
 
@@ -100,11 +100,11 @@ module Texst
100
100
  print "Enter Project Name : "
101
101
  @project_name = gets.chomp
102
102
  make = Dir.pwd
103
- if File.exists?("#{make}/texst/#{$lang}/#{@project_name}")
103
+ if File.exists?("#{make}/Texst-Pro/#{$lang}/#{@project_name}")
104
104
  print "Project Exist Do You Want To Merge?[y/n] : "
105
105
  answer = gets.chomp
106
106
  if answer == "y"
107
- Dir.mkdir("#{make}/texst/#{$lang}/#{@project_name}") unless File.exists?("#{make}/texst/#{$lang}/#{@project_name}")
107
+ Dir.mkdir("#{make}/Texst-Pro/#{$lang}/#{@project_name}") unless File.exists?("#{make}/Texst-Pro/#{$lang}/#{@project_name}")
108
108
  @filename += @project_name + "/"
109
109
  print "Enter Main Filename :"
110
110
  elsif answer == "n"
@@ -113,7 +113,7 @@ module Texst
113
113
  project_dir
114
114
  end
115
115
  else
116
- Dir.mkdir("#{make}/texst/#{$lang}/#{@project_name}") unless File.exists?("#{make}/texst/#{$lang}/#{@project_name}")
116
+ Dir.mkdir("#{make}/Texst-Pro/#{$lang}/#{@project_name}") unless File.exists?("#{make}/Texst-Pro/#{$lang}/#{@project_name}")
117
117
  @filename += @project_name + "/"
118
118
  print "Enter Main Filename :"
119
119
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: texst
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amin Abbasiy