RLCoreKickstart 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +22 -0
- data/README.md +11 -0
- data/Rakefile +1 -0
- data/bin/skeleton_rl_core +49 -0
- data/lib/assets/file_listing.txt +58 -0
- data/rlcorecoursekickstarter.gemspec +17 -0
- metadata +53 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1fd17e8e9ee356aba8f66bb6527d18045c7a91dd
|
4
|
+
data.tar.gz: 5251c658880093e2f2f12c04816e153f4232450f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bcb0e4dc9edd4d7b156129945994b388f8091d5032335886b7c35bf9f666eb1ebad70758f2a4dc1c260effcfd76a6f789eb91a17eb0e60402c81a3485376e8d4
|
7
|
+
data.tar.gz: f7d9b4297c017481552fb73d9c55eddb5671379d5c8fa796aa4a32780cb21fee7da66fe48c409e6714045d56ed89e761936489ebb4a63d39a6743362ae70cca2
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Victor Goff
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# RubyLearning Core Course Kickstart
|
2
|
+
|
3
|
+
This program will create a folder structure in the current working
|
4
|
+
directory. Make sure you create the folder you want for the core
|
5
|
+
course, and then run skeleton\_rl\_core and you will find that you have
|
6
|
+
a fully populated directory structure, populated with the (empty) files
|
7
|
+
that you may want while you take the course.
|
8
|
+
|
9
|
+
You can install using gem install RLCoreKickstart and after you use it,
|
10
|
+
you can feel free to uninstall it using `gem uninstall RLCoreKickstart`
|
11
|
+
and answer 'Y' to the question about removing the binary.
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,49 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'fileutils'
|
3
|
+
|
4
|
+
option = {}
|
5
|
+
ARGV.include?('-s') || ARGV.include?('--silent') && option[:silent] = true
|
6
|
+
if ARGV.include?('-h') || ARGV.include?('--help') || ARGV.include?('/?')
|
7
|
+
puts <<-EOS.strip
|
8
|
+
The RubyLearning Skeleton
|
9
|
+
|
10
|
+
Builds folder structure suitable for easy
|
11
|
+
access from the console.
|
12
|
+
|
13
|
+
It builds the following directory structure and populates with exercise
|
14
|
+
files.
|
15
|
+
|
16
|
+
.
|
17
|
+
|-- 1_week
|
18
|
+
|-- 2_week
|
19
|
+
|-- 3_week
|
20
|
+
|-- 4_week
|
21
|
+
|-- 5_week
|
22
|
+
|-- 6_week
|
23
|
+
`-- 7_week
|
24
|
+
|
25
|
+
The options that are available from the command line are:
|
26
|
+
-s --silent : silent, no header output
|
27
|
+
-h --help : This message
|
28
|
+
EOS
|
29
|
+
exit(0)
|
30
|
+
end
|
31
|
+
|
32
|
+
puts <<-HEADER unless option[:silent]
|
33
|
+
########################################
|
34
|
+
# #
|
35
|
+
# Ruby Learning Org Skeleton Builder #
|
36
|
+
# #
|
37
|
+
########################################
|
38
|
+
HEADER
|
39
|
+
|
40
|
+
1.upto(7) do |num|
|
41
|
+
# `mkdir #{num}wk ; touch #{num}wk/.gitignore`
|
42
|
+
folder_name = "#{num}_week"
|
43
|
+
Dir.mkdir folder_name unless File.exists?(folder_name)
|
44
|
+
end
|
45
|
+
|
46
|
+
files_listing = File.open(__dir__ + '/../lib/assets/file_listing.txt', 'r')
|
47
|
+
files_listing.readlines.each do |f|
|
48
|
+
FileUtils.touch(f.chomp.downcase + '.rb')
|
49
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
1_week/1e_Operator_Precedence
|
2
|
+
1_week/2e_sprintf
|
3
|
+
1_week/3e_How_old
|
4
|
+
1_week/4e_Minutes_in_a_year
|
5
|
+
1_week/5e_value_of_a_variable
|
6
|
+
1_week/6e_convert
|
7
|
+
1_week/1c_Year_Months
|
8
|
+
1_week/2c_convert_challenge
|
9
|
+
1_week/3c_Text_Formatting
|
10
|
+
2_week/1e_split_a_string
|
11
|
+
2_week/2e_diff_in_outputs
|
12
|
+
2_week/3e_method_leap_year
|
13
|
+
2_week/4e_why_output_nil?
|
14
|
+
2_week/5e_x_=_y
|
15
|
+
2_week/6e_case_c
|
16
|
+
2_week/1c_prompt
|
17
|
+
2_week/2c_Formal_logic_challenge
|
18
|
+
2_week/3c_Column-String_Alignment
|
19
|
+
3_week/1e_Ten_for_Fifty
|
20
|
+
3_week/2e_Inserted_Word
|
21
|
+
3_week/3e_Directory_manipulation
|
22
|
+
3_week/4e_Range_well_range.
|
23
|
+
3_week/5e_Key_=_Value
|
24
|
+
3_week/6e_Deaf_Granny_Part_1
|
25
|
+
3_week/7e_Document_Stats
|
26
|
+
3_week/8e_Fizz_Buzz_Instructions_Only!
|
27
|
+
3_week/9e_Reverse_Word_Order
|
28
|
+
3_week/10e_Sum_of_Elements
|
29
|
+
3_week/11e_Odd_or_Even?
|
30
|
+
3_week/12e_Who_did_not_attempt_Quiz_1
|
31
|
+
3_week/13e_DRY:_Dont_Repeat_Yourself
|
32
|
+
3_week/14e_sample_questions
|
33
|
+
3_week/15e_Select_all_correct_outputs
|
34
|
+
3_week/16e_Select_all_correct_ascending_sort_by_string_length
|
35
|
+
4_week/1e_Dog_class
|
36
|
+
4_week/2e_Rectangle_class
|
37
|
+
4_week/3e_Deaf_Grandma_Modified
|
38
|
+
4_week/4e_Swap_Contents
|
39
|
+
4_week/5e_Dir_Inventory
|
40
|
+
4_week/1c_Adding_individual_Dog_behaviors_Challenge
|
41
|
+
4_week/2c_Statistics_Challenge_Word_Counting
|
42
|
+
5_week/1e_Unpredictable_String
|
43
|
+
5_week/2e_Shapes
|
44
|
+
5_week/2e_Spec_Change
|
45
|
+
5_week/3e_Gameboard
|
46
|
+
5_week/1c_quick_and_dirty_REPL
|
47
|
+
5_week/2c_Directory_Diff
|
48
|
+
6_week/1e_class_Person
|
49
|
+
6_week/2e_mp3_file
|
50
|
+
6_week/3e_Text_Analyser_Logging
|
51
|
+
6_week/4e_Text_Analyser_Exception
|
52
|
+
6_week/5e_Game
|
53
|
+
7_week/1e_Klass
|
54
|
+
7_week/2e_DTR_Convertor
|
55
|
+
7_week/3e_month_days
|
56
|
+
7_week/4e_last_modified
|
57
|
+
7_week/4e_last_modified
|
58
|
+
7_week/5e_repeat_call
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "RLCoreKickstart"
|
5
|
+
spec.version = '0.0.3'
|
6
|
+
spec.required_ruby_version = '>= 1.9'
|
7
|
+
spec.authors = ["Victor Goff"]
|
8
|
+
spec.email = ["keeperotphones@gmail.com"]
|
9
|
+
spec.summary = %q{Prepares a set of folders for the RubyLearning Core Ruby Course}
|
10
|
+
spec.description = %Q{Prepares a set of folders for the RubyLearning Core Ruby Course, install by issuing command "gem install #{spec.name}"}
|
11
|
+
spec.homepage = "http://rubylearning.org"
|
12
|
+
spec.license = "MIT"
|
13
|
+
|
14
|
+
spec.files = `git ls-files -z`.split("\x0")
|
15
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
16
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: RLCoreKickstart
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Victor Goff
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-04-24 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Prepares a set of folders for the RubyLearning Core Ruby Course, install
|
14
|
+
by issuing command "gem install RLCoreKickstart"
|
15
|
+
email:
|
16
|
+
- keeperotphones@gmail.com
|
17
|
+
executables:
|
18
|
+
- skeleton_rl_core
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- Gemfile
|
23
|
+
- LICENSE.txt
|
24
|
+
- README.md
|
25
|
+
- Rakefile
|
26
|
+
- bin/skeleton_rl_core
|
27
|
+
- lib/assets/file_listing.txt
|
28
|
+
- rlcorecoursekickstarter.gemspec
|
29
|
+
homepage: http://rubylearning.org
|
30
|
+
licenses:
|
31
|
+
- MIT
|
32
|
+
metadata: {}
|
33
|
+
post_install_message:
|
34
|
+
rdoc_options: []
|
35
|
+
require_paths:
|
36
|
+
- lib
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.9'
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
requirements: []
|
48
|
+
rubyforge_project:
|
49
|
+
rubygems_version: 2.1.11
|
50
|
+
signing_key:
|
51
|
+
specification_version: 4
|
52
|
+
summary: Prepares a set of folders for the RubyLearning Core Ruby Course
|
53
|
+
test_files: []
|