sk 0.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 +7 -0
- data/LICENSE +22 -0
- data/README.md +3 -0
- data/bin/sk +8 -0
- data/lib/sk.rb +10 -0
- data/lib/sk/skeleton.rb +39 -0
- data/lib/sk/version.rb +5 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0413a3b9d09a140ecf3dfa2bedda997092c1b97d
|
4
|
+
data.tar.gz: d5683b23d275b240ad093ce1241b9ca8839c8955
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 956c88c74b78dbf12fdf9e1176411955913e7fba96b1f586d71840db9c713e043866d1f0a834e63ba23a286831562c2e198b0b4d492917bcd51e5d4c62012792
|
7
|
+
data.tar.gz: f6e8393b8e2bfd649e55dc8beeb63aff6ed453015ca4bf5c4971a63e4e6f6c73ebca40fe86f05531785fdc88df452251dfd75fc60a22694474f0a384e1983aae
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Jordan Scales
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person
|
4
|
+
obtaining a copy of this software and associated documentation
|
5
|
+
files (the "Software"), to deal in the Software without
|
6
|
+
restriction, including without limitation the rights to use,
|
7
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the
|
9
|
+
Software is furnished to do so, subject to the following
|
10
|
+
conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be
|
13
|
+
included in all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
17
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
19
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
20
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
data/bin/sk
ADDED
data/lib/sk.rb
ADDED
data/lib/sk/skeleton.rb
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
module Sk
|
6
|
+
class Skeleton
|
7
|
+
|
8
|
+
attr_accessor :name
|
9
|
+
|
10
|
+
def initialize(name, &block)
|
11
|
+
@name = name
|
12
|
+
|
13
|
+
# check if dir already exists!
|
14
|
+
FileUtils.mkdir(@name)
|
15
|
+
FileUtils.cd(@name)
|
16
|
+
|
17
|
+
block.call self
|
18
|
+
|
19
|
+
# go back!
|
20
|
+
FileUtils.cd('..')
|
21
|
+
end
|
22
|
+
|
23
|
+
def file(name, options={})
|
24
|
+
FileUtils.touch name
|
25
|
+
end
|
26
|
+
|
27
|
+
alias :touch :file
|
28
|
+
|
29
|
+
def dir(name, &block)
|
30
|
+
FileUtils.mkdir(name)
|
31
|
+
FileUtils.cd(name)
|
32
|
+
|
33
|
+
block.call if block
|
34
|
+
|
35
|
+
FileUtils.cd('..')
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
data/lib/sk/version.rb
ADDED
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sk
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jordan Scales
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-10-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: Skeleton (sk) makes it easy to fetch pre-organized project outlines from
|
28
|
+
your local machine or the internet - setting up your project directories in a cinch.
|
29
|
+
email:
|
30
|
+
- scalesjordan@gmail.com
|
31
|
+
executables:
|
32
|
+
- sk
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- bin/sk
|
37
|
+
- lib/sk/skeleton.rb
|
38
|
+
- lib/sk/version.rb
|
39
|
+
- lib/sk.rb
|
40
|
+
- LICENSE
|
41
|
+
- README.md
|
42
|
+
homepage: http://github.com/jdan/sk
|
43
|
+
licenses:
|
44
|
+
- MIT
|
45
|
+
metadata: {}
|
46
|
+
post_install_message:
|
47
|
+
rdoc_options: []
|
48
|
+
require_paths:
|
49
|
+
- lib
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - '>='
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
requirements: []
|
61
|
+
rubyforge_project:
|
62
|
+
rubygems_version: 2.0.6
|
63
|
+
signing_key:
|
64
|
+
specification_version: 4
|
65
|
+
summary: Project skeletons made easy
|
66
|
+
test_files: []
|