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.
- checksums.yaml +4 -4
- data/lib/texst.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43e8cefd63a979925d3aae64cd0760cdc141cb91
|
|
4
|
+
data.tar.gz: 53bbb16eaa96b7b855a42264c230dea488b70296
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b8bae67960eb75f2aace872ce2de96e1a3ad0c2289b3963104abeebdf2231c3ba0d82e2d8e28f42c56672171fab3064dce0c1f940eca61f9d20dfd2394b428fa
|
|
7
|
+
data.tar.gz: 05af98d5dcd4f9b4abc721373e5c0c5afebb226bac37b08fd455d1b0b6ca360ae9cdcd6f313dc50ec04c60bb3b83d08f82b6c0671361c72592e52ba012fd7865
|
data/lib/texst.rb
CHANGED
|
@@ -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}/
|
|
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}/
|
|
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 = "
|
|
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}/
|
|
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}/
|
|
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}/
|
|
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
|