nilac 0.0.4.1.6 → 0.0.4.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/nilac +47 -4
- data/lib/nilac/version.rb +1 -1
- data/src/nilac.rb +46 -2
- metadata +2 -2
data/bin/nilac
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
require 'slop'
|
9
9
|
require 'fileutils'
|
10
10
|
|
11
|
+
|
11
12
|
def compile(input_file_path,*output_file_name)
|
12
13
|
|
13
14
|
def read_file_line_by_line(input_path)
|
@@ -3134,7 +3135,7 @@ def find_file_path(input_path,file_extension)
|
|
3134
3135
|
|
3135
3136
|
end
|
3136
3137
|
|
3137
|
-
nilac_version = "0.0.4.1.
|
3138
|
+
nilac_version = "0.0.4.1.7"
|
3138
3139
|
|
3139
3140
|
opts = Slop.parse do
|
3140
3141
|
on :c, :compile=, 'Compile Nila File', as:Array, delimiter:":"
|
@@ -3172,14 +3173,13 @@ opts = Slop.parse do
|
|
3172
3173
|
puts nilac_version
|
3173
3174
|
|
3174
3175
|
end
|
3176
|
+
|
3175
3177
|
on :r, :run=, 'Run Nila File', as:Array
|
3176
3178
|
|
3177
|
-
on :
|
3179
|
+
on :b, :build, 'Build Nilac for Linux/Mac/Rubygems' do
|
3178
3180
|
|
3179
3181
|
file_path = Dir.pwd + "/src/nilac.rb"
|
3180
3182
|
|
3181
|
-
puts file_path
|
3182
|
-
|
3183
3183
|
create_mac_executable(file_path)
|
3184
3184
|
|
3185
3185
|
FileUtils.mv("#{file_path[0...-3]}","#{Dir.pwd}/bin/nilac")
|
@@ -3187,6 +3187,49 @@ opts = Slop.parse do
|
|
3187
3187
|
puts "Build Successful!"
|
3188
3188
|
|
3189
3189
|
end
|
3190
|
+
|
3191
|
+
on :u, :update, 'Check if Nilac is up to date.' do
|
3192
|
+
|
3193
|
+
outdated_gems = `gem outdated`
|
3194
|
+
|
3195
|
+
outdated_gems = outdated_gems.split("\n")
|
3196
|
+
|
3197
|
+
outdated = false
|
3198
|
+
|
3199
|
+
old_version = ""
|
3200
|
+
|
3201
|
+
new_version = ""
|
3202
|
+
|
3203
|
+
outdated_gems.each do |gem_name|
|
3204
|
+
|
3205
|
+
if gem_name.include?("nilac")
|
3206
|
+
|
3207
|
+
outdated = true
|
3208
|
+
|
3209
|
+
old_version = gem_name.split("(")[1].split(")")[0].split("<")[0].lstrip
|
3210
|
+
|
3211
|
+
new_version = gem_name.split("(")[1].split(")")[0].split("<")[1].lstrip.rstrip
|
3212
|
+
|
3213
|
+
break
|
3214
|
+
|
3215
|
+
end
|
3216
|
+
|
3217
|
+
end
|
3218
|
+
|
3219
|
+
if outdated
|
3220
|
+
|
3221
|
+
exec = `gem update nilac`
|
3222
|
+
|
3223
|
+
puts "Your version of Nilac (#{old_version}) was outdated! We have automatically updated you to the latest version (#{new_version})."
|
3224
|
+
|
3225
|
+
|
3226
|
+
else
|
3227
|
+
|
3228
|
+
puts "Your version of Nilac is up to date!"
|
3229
|
+
|
3230
|
+
end
|
3231
|
+
|
3232
|
+
end
|
3190
3233
|
end
|
3191
3234
|
|
3192
3235
|
opts = opts.to_hash
|
data/lib/nilac/version.rb
CHANGED
data/src/nilac.rb
CHANGED
@@ -3133,7 +3133,7 @@ def find_file_path(input_path,file_extension)
|
|
3133
3133
|
|
3134
3134
|
end
|
3135
3135
|
|
3136
|
-
nilac_version = "0.0.4.1.
|
3136
|
+
nilac_version = "0.0.4.1.7"
|
3137
3137
|
|
3138
3138
|
opts = Slop.parse do
|
3139
3139
|
on :c, :compile=, 'Compile Nila File', as:Array, delimiter:":"
|
@@ -3171,9 +3171,10 @@ opts = Slop.parse do
|
|
3171
3171
|
puts nilac_version
|
3172
3172
|
|
3173
3173
|
end
|
3174
|
+
|
3174
3175
|
on :r, :run=, 'Run Nila File', as:Array
|
3175
3176
|
|
3176
|
-
on :
|
3177
|
+
on :b, :build, 'Build Nilac for Linux/Mac/Rubygems' do
|
3177
3178
|
|
3178
3179
|
file_path = Dir.pwd + "/src/nilac.rb"
|
3179
3180
|
|
@@ -3184,6 +3185,49 @@ opts = Slop.parse do
|
|
3184
3185
|
puts "Build Successful!"
|
3185
3186
|
|
3186
3187
|
end
|
3188
|
+
|
3189
|
+
on :u, :update, 'Check if Nilac is up to date.' do
|
3190
|
+
|
3191
|
+
outdated_gems = `gem outdated`
|
3192
|
+
|
3193
|
+
outdated_gems = outdated_gems.split("\n")
|
3194
|
+
|
3195
|
+
outdated = false
|
3196
|
+
|
3197
|
+
old_version = ""
|
3198
|
+
|
3199
|
+
new_version = ""
|
3200
|
+
|
3201
|
+
outdated_gems.each do |gem_name|
|
3202
|
+
|
3203
|
+
if gem_name.include?("nilac")
|
3204
|
+
|
3205
|
+
outdated = true
|
3206
|
+
|
3207
|
+
old_version = gem_name.split("(")[1].split(")")[0].split("<")[0].lstrip
|
3208
|
+
|
3209
|
+
new_version = gem_name.split("(")[1].split(")")[0].split("<")[1].lstrip.rstrip
|
3210
|
+
|
3211
|
+
break
|
3212
|
+
|
3213
|
+
end
|
3214
|
+
|
3215
|
+
end
|
3216
|
+
|
3217
|
+
if outdated
|
3218
|
+
|
3219
|
+
exec = `gem update nilac`
|
3220
|
+
|
3221
|
+
puts "Your version of Nilac (#{old_version}) was outdated! We have automatically updated you to the latest version (#{new_version})."
|
3222
|
+
|
3223
|
+
|
3224
|
+
else
|
3225
|
+
|
3226
|
+
puts "Your version of Nilac is up to date!"
|
3227
|
+
|
3228
|
+
end
|
3229
|
+
|
3230
|
+
end
|
3187
3231
|
end
|
3188
3232
|
|
3189
3233
|
opts = opts.to_hash
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nilac
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.4.1.
|
4
|
+
version: 0.0.4.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: shark
|