xnano 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/xnano +25 -0
- metadata +73 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a6c5e67f9eceee231c03f54739b80e46103a768e
|
4
|
+
data.tar.gz: 6887def00e4c5f84b95ef76ea4c4e72300123012
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4548b53350a39d96ade6e18d2c1cba29ec9548264cf576c4c04969d337761a7ce79aabc5b9a75dab41bd2c42ef2ec1a3b30ed42544cc064fd3adb1ffdcd8d4e2
|
7
|
+
data.tar.gz: 5e9e42141f78e157dfdb520953ffa7e98b2e21b91060bf9ee7e768e5f4f4ac6fbcf9e9536c1a156a33db8fe55b486c072cde34f6e8082ddae3513a3e83f35e6a
|
data/bin/xnano
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
if ARGV.length != 1
|
4
|
+
puts "xnano: 1 argument expected (" + ARGV.length.to_s + " arguments given)"
|
5
|
+
exit
|
6
|
+
end
|
7
|
+
|
8
|
+
filename = ARGV[0].to_s
|
9
|
+
|
10
|
+
system("nano " + filename)
|
11
|
+
|
12
|
+
if not FileTest.exists?(filename)
|
13
|
+
exit
|
14
|
+
end
|
15
|
+
|
16
|
+
if not FileTest.executable?(filename)
|
17
|
+
print "Setting executable bit on '" + filename + "'"
|
18
|
+
system("chmod +x " + filename)
|
19
|
+
|
20
|
+
sleep(0.5)
|
21
|
+
|
22
|
+
puts " \u2713"
|
23
|
+
else
|
24
|
+
puts "Executable bit has been already set"
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: xnano
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Yamboy1
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-12-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
description:
|
42
|
+
email:
|
43
|
+
executables:
|
44
|
+
- xnano
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- bin/xnano
|
49
|
+
homepage: https://github.com/yamboy1/xnano
|
50
|
+
licenses:
|
51
|
+
- MIT
|
52
|
+
metadata: {}
|
53
|
+
post_install_message:
|
54
|
+
rdoc_options: []
|
55
|
+
require_paths:
|
56
|
+
- lib
|
57
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
requirements: []
|
68
|
+
rubyforge_project:
|
69
|
+
rubygems_version: 2.6.14
|
70
|
+
signing_key:
|
71
|
+
specification_version: 4
|
72
|
+
summary: Gives execute permissions after editing with nano
|
73
|
+
test_files: []
|