hackademic 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3744ff6d466b6c68ad98ee43ec86732c19b8555f
4
+ data.tar.gz: de0f5c9d1d47e57da387297643c087ec114b232d
5
+ SHA512:
6
+ metadata.gz: 13e3e4af14ea021785feef11363177f6de4dc4c052fd36914a09528e1024d006fe849d5cee6e032603f390a1e9d88063f30c2de17a8b1a2b6dc8ef2007997416
7
+ data.tar.gz: f67965cdaa147142d9ebc1566e0cf3b0c1a0bff431611e00c648513ff9f654cc4649cc174c8b120c18990486b67e265cd0ce86cea321cef2bd801061f97608d5
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "thor"
4
+ gem "activesupport"
data/Gemfile.lock ADDED
@@ -0,0 +1,26 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ activesupport (4.2.5)
5
+ i18n (~> 0.7)
6
+ json (~> 1.7, >= 1.7.7)
7
+ minitest (~> 5.1)
8
+ thread_safe (~> 0.3, >= 0.3.4)
9
+ tzinfo (~> 1.1)
10
+ i18n (0.7.0)
11
+ json (1.8.3)
12
+ minitest (5.8.3)
13
+ thor (0.19.1)
14
+ thread_safe (0.3.5)
15
+ tzinfo (1.2.2)
16
+ thread_safe (~> 0.1)
17
+
18
+ PLATFORMS
19
+ ruby
20
+
21
+ DEPENDENCIES
22
+ activesupport
23
+ thor
24
+
25
+ BUNDLED WITH
26
+ 1.10.6
data/README.md ADDED
@@ -0,0 +1,10 @@
1
+ # Hackademic
2
+
3
+ ## Create and manage your academic workflow
4
+
5
+ ### Hackademic manages your plain-text academic workflow
6
+
7
+
8
+ © 2016 Kizmeta and Matthew Petty [\@lodestone](https://git.io/lodestone)
9
+
10
+ LICENSE MIT
data/bin/hackademic ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../lib/hackademic'
3
+
4
+ if __FILE__ == $0; Hackademic.start end
@@ -0,0 +1,15 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'hackademic'
3
+ s.version = '0.1.2'
4
+ s.date = '2016-01-03'
5
+ s.summary = "Create and manage your academic workflow"
6
+ s.description = "Hackademic manages your plain-text academic workflow."
7
+ s.authors = ["Matthew Petty"]
8
+ s.email = 'matt@kizmeta.com'
9
+ s.homepage = 'http://github.com/kizmeta/hackademic'
10
+ s.license = 'MIT'
11
+ s.files = `git ls-files`.split($/)
12
+ s.bindir = "bin"
13
+ s.executables = ["hackademic"]
14
+ s.require_paths = ["lib"]
15
+ end
data/lib/hackademic.rb ADDED
@@ -0,0 +1,28 @@
1
+ require "rubygems"
2
+ require "yaml"
3
+ require "thor"
4
+ require 'active_support'
5
+
6
+ class Hackademic < Thor
7
+
8
+ include Thor::Actions
9
+
10
+ Hackademic.source_root('$HOME')
11
+
12
+ desc "setup [DIRECTORY]", "Setup a new Hackademic repository at [DIRECTORY]"
13
+ def setup(directory)
14
+
15
+ say "--------------------------------------------------------------", :blue
16
+ say "Hackademic Setup:", :blue
17
+ say directory
18
+
19
+ empty_directory(directory)
20
+ empty_directory("#{directory}/Libraries")
21
+ empty_directory("#{directory}/Libraries/_MINE")
22
+ empty_directory("#{directory}/Meta")
23
+ empty_directory("#{directory}/Notes")
24
+ empty_directory("#{directory}/Projects")
25
+
26
+ end
27
+
28
+ end
@@ -0,0 +1,33 @@
1
+ require_relative 'setup'
2
+
3
+ module Hackademy
4
+
5
+ # class Config
6
+ #
7
+ # def self.config
8
+ # @@config ||= Config.new
9
+ # end
10
+ #
11
+ # def initialize
12
+ # raw_config = File.read("Resources/config.yml")
13
+ # erb_config = ERB.new(raw_config).result
14
+ # settings = YAML.load(erb_config)["hackademic"]
15
+ # if settings
16
+ # settings.each { |name, value|
17
+ # instance_variable_set("@#{name}", ENV[name.upcase] || value)
18
+ # self.class.class_eval { attr_reader name.intern }
19
+ # }
20
+ # end
21
+ # end
22
+ #
23
+ # end
24
+ #
25
+ # def self.config; Hackademy::Config.config; end
26
+ #
27
+ # def self.master_file
28
+ # file = "#{config.output_directory}/#{config.transcluded_draft}"
29
+ # FileUtils.touch(file) unless File.exists?(file)
30
+ # file
31
+ # end
32
+
33
+ end
@@ -0,0 +1,36 @@
1
+ module Hackademy
2
+ class Setup < Thor
3
+
4
+ namespace :setup
5
+
6
+ include Thor::Actions
7
+
8
+ # desc "set_environment_path!", "setup shell $PATH variable to allow running \"hackademic\" commands"
9
+ # def set_environment_path!
10
+ # answer = ask("Set your environment $PATH to include bin? This is important and allows you to just run \"hackademic\" commands more easily.\nSetup? [Y/n]", :green)
11
+ # if !answer
12
+ # say "Updating your shell to find writing commands...", :green
13
+ # config_files = ["#{ENV['HOME']}/.zshrc", "#{ENV['HOME']}/.bash_profile"]
14
+ # config_files.each do |config_file|
15
+ # append_to_file config_file, "export PATH=.bin:$PATH\n"
16
+ # end
17
+ # say "Updated shell config files!"
18
+ # else
19
+ # say "Skipping $PATH setup..."
20
+ # end
21
+ # end
22
+
23
+ # desc "install_git_hooks!", "install a git hook to auto-compile master draft before committing to repository"
24
+ # def install_git_hooks!
25
+ # if !no?("Install the git pre-commit hook?\nThis automatically compiles a fresh pdf upon commits. [y/N]", :green)
26
+ # say "Installing git pre-commit..."
27
+ # copy_file ".config/git/pre-commit", ".git/hooks/pre-commit"
28
+ # say "Done!"
29
+ # else
30
+ # say "Skipping git hooks..."
31
+ # end
32
+ # say "--------------------------------------------------------------", :blue
33
+ # end
34
+
35
+ end
36
+ end
metadata ADDED
@@ -0,0 +1,52 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hackademic
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ platform: ruby
6
+ authors:
7
+ - Matthew Petty
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-01-03 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Hackademic manages your plain-text academic workflow.
14
+ email: matt@kizmeta.com
15
+ executables:
16
+ - hackademic
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - Gemfile
21
+ - Gemfile.lock
22
+ - README.md
23
+ - bin/hackademic
24
+ - hackademic.gemspec
25
+ - lib/hackademic.rb
26
+ - lib/hackademy/hackademy.rb
27
+ - lib/hackademy/setup.rb
28
+ homepage: http://github.com/kizmeta/hackademic
29
+ licenses:
30
+ - MIT
31
+ metadata: {}
32
+ post_install_message:
33
+ rdoc_options: []
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ requirements: []
47
+ rubyforge_project:
48
+ rubygems_version: 2.4.5.1
49
+ signing_key:
50
+ specification_version: 4
51
+ summary: Create and manage your academic workflow
52
+ test_files: []