aka2 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b42c6d23b25160f7d666276d36d857b4aa047ef
4
- data.tar.gz: a5002d7e07128d791043eca594a07c8cfdec78a0
3
+ metadata.gz: c944eda3c0839f19319ccde32b7681f95e66127a
4
+ data.tar.gz: 414a6d1c0be07b55c633eca283dbd3bf5f033094
5
5
  SHA512:
6
- metadata.gz: e3c58913ffefbb616c13aeea0c7441044cb4d4255d95f9e0889b00cc4b5e3b54faef0cf02b932997d921b516f7c66266c35e153f6acd61643ada7d7ddd4d33ac
7
- data.tar.gz: 9816c945c799fec31e5574941bdd4dd9a3533795c8573facbae5d79f47de2db1d447c15ed3cd7064ab4ea8eff4b1072cdf3db84b7b5cb9de59102c51a67a3d9e
6
+ metadata.gz: 5cbac23af352f49bea7c34498f2ac561b52ef29d74ddd26106f9dc679824fe77f14a035027c42fc00e1878e583985d5efdf0abb8d9c7f8d1ef7bbe4cd1cc25ad
7
+ data.tar.gz: 84651e76a6e2521fa93073a6938baf4056df9cc1ce9045045d379503bf9e5639e13c8ccc197df7009af20c4d31c56ea60e45556305d4d309b1f8ace4ab0e0de1
@@ -0,0 +1,2 @@
1
+ *.gem
2
+ pkg
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aka (0.0.1)
4
+ aka2 (0.1.0)
5
5
  colorize (~> 0)
6
6
  net-scp (~> 1.2, >= 1.2.1)
7
7
  safe_yaml (~> 1.0, >= 1.0.4)
@@ -23,7 +23,7 @@ PLATFORMS
23
23
  ruby
24
24
 
25
25
  DEPENDENCIES
26
- aka!
26
+ aka2!
27
27
  bundler (~> 1.10)
28
28
  minitest (~> 5.7)
29
29
  rake (~> 10.0)
data/README.md CHANGED
@@ -7,6 +7,7 @@ aka2 requires ruby and is built for bash and zsh users.
7
7
  ## Installation
8
8
 
9
9
  $ gem install aka2
10
+ $ aka setup2
10
11
 
11
12
  ## Usage
12
13
 
data/lib/aka.rb CHANGED
@@ -141,7 +141,7 @@ module Aka
141
141
  #
142
142
  desc "setup2", "Gem - Setup aka"
143
143
  method_options :force => :boolean
144
- def setupconfig
144
+ def setup2
145
145
  configDir = "#{Dir.home}/.aka"
146
146
  if File.exist?("#{configDir}/.config")
147
147
  # list
@@ -402,7 +402,7 @@ module Aka
402
402
  if File.exists? path
403
403
  return YAML.load_file(path)
404
404
  else
405
- puts "#{Dir.home}/.aka/.config does not exist. You need to create one, type `touch ~/.aka/.config` and copy https://github.com/ytbryan/aka/blob/master/.config".red
405
+ puts "#{Dir.home}/.aka/.config does not exist. Type `aka setup2` to setup the config file".red
406
406
  end
407
407
  end
408
408
 
@@ -723,7 +723,18 @@ trap 'sigusr2 $(cat ~/sigusr1-args)' SIGUSR2\n".pretty
723
723
  puts "Directory #{configDir}/.config exist"
724
724
  else
725
725
  FileUtils::mkdir_p("#{configDir}")
726
- FileUtils.cp("./lib/.config", "#{configDir}")
726
+ # FileUtils.cp("./lib/.config", "#{configDir}")
727
+ out_file = File.new("#{Dir.home}/.aka/.config", "w")
728
+ out_file.puts("---")
729
+ out_file.puts("dotfile: \"/home/user/.bashrc\"")
730
+ out_file.puts("history: \"/home/user/.bash_history\"")
731
+ out_file.puts("home: \"/home/user/.aka\"")
732
+ out_file.puts("install: \"/usr/local/bin\"")
733
+ out_file.puts("profile: \"/home/user/.bashrc\"")
734
+ out_file.puts("list: 50")
735
+ out_file.puts("usage: 50")
736
+ out_file.puts("remote: 12.12.12.21")
737
+ out_file.close
727
738
  end
728
739
  end
729
740
 
@@ -1,3 +1,3 @@
1
1
  module Aka
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aka2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Lim
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-14 00:00:00.000000000 Z
12
+ date: 2015-07-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-scp
@@ -130,12 +130,14 @@ executables:
130
130
  extensions: []
131
131
  extra_rdoc_files: []
132
132
  files:
133
+ - ".gitignore"
133
134
  - Gemfile
134
135
  - Gemfile.lock
135
136
  - LICENSE.txt
136
137
  - README.md
137
138
  - Rakefile
138
139
  - aka.gemspec
140
+ - aka2-0.1.0.gem
139
141
  - bin/aka
140
142
  - bin/console
141
143
  - bin/setup