taketo 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -15,11 +15,27 @@ Taketo is known to work on:
15
15
  Important note:
16
16
  ---------------
17
17
 
18
- The project is currently actively developed, thus it may contain bugs;
19
- backward compatibility is not guaranteed.
18
+ The project is currently being actively developed, thus it may contain bugs;
19
+ backward compatibility is not guaranteed. However, I'll provide instructions on
20
+ how to migrate config file in case of breaking changes.
20
21
 
21
22
  Suggestions and contributions are highly appreciated :)
22
23
 
24
+ Installation:
25
+ -------------
26
+
27
+ The installation is as simple as typing ```gem install taketo```
28
+ However, I recommend doing a few things for better user experience:
29
+
30
+ 1. In ~/.zshrc (or ~/.bashrc if you use Bash) create an alias for taketo:
31
+ ```alias to="taketo"```
32
+ 2. In case you use RVM, I recommend to create a wrapper for taketo,
33
+ which would use newest ruby: ```rvm wrapper ruby-1.9.3-p194-perf@global --no-prefix taketo```.
34
+ Of course, you will need to install taketo for corresponding ruby and gemset.
35
+ Also, keep in mind that the fewer gems are installed into the gemset, the faster things will work.
36
+ 3. In case you use ZSH – install [taketo ZSH completion](https://raw.github.com/v-yarotsky/taketo/master/scripts/zsh/completion/_taketo).
37
+ For [Oh-My-Zsh](https://github.com/robbyrussell/oh-my-zsh) you can put it in ~/.oh-my-zsh/plugins/taketo/_taketo
38
+
23
39
  Usage:
24
40
  ------
25
41
 
@@ -142,11 +158,13 @@ Default configs are merged appropriately.
142
158
  An SSH config file can be generated from taketo config. To do so, run ```taketo --generate-ssh-config```.
143
159
 
144
160
 
145
- Taketo has autocompletion support for ZSH; completion file can be found at: scripts/zsh/completion/_taketo
146
161
 
147
162
  The Changelog:
148
163
  --------------
149
164
 
165
+ ### v0.1.2 (12.12.2012) ###
166
+ * Fix server aliases bug, bump version to 0.1.2 at 12.12.2012 :)
167
+
150
168
  ### v0.1.1 (04.12.2012) ###
151
169
  * Add basic autocompletion support for ZSH, see scripts/zsh/completion
152
170
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -24,6 +24,10 @@ module Taketo
24
24
  env(:RAILS_ENV => parent.name.to_s) if parent.is_a?(Environment)
25
25
  end
26
26
 
27
+ def global_alias=(alias_name)
28
+ @global_alias = alias_name.to_s
29
+ end
30
+
27
31
  def default_command
28
32
  if defined? @default_command
29
33
  find_command(@default_command) || Command.explicit_command(@default_command)
@@ -29,7 +29,7 @@ module Taketo
29
29
 
30
30
  def resolve_by_global_alias
31
31
  unless @path.to_s.empty?
32
- servers.select(&:global_alias).detect { |s| s.global_alias == @path.to_sym }
32
+ servers.select(&:global_alias).detect { |s| s.global_alias == @path.to_s }
33
33
  end
34
34
  end
35
35
 
@@ -15,7 +15,7 @@ describe "Server" do
15
15
  it { should have_accessor(:port) }
16
16
  it { should have_accessor(:username) }
17
17
  it { should have_accessor(:default_location) }
18
- it { should have_accessor(:global_alias) }
18
+ it { should have_accessor(:global_alias, "something") }
19
19
  it { should have_accessor(:identity_file) }
20
20
 
21
21
  module Taketo
@@ -57,6 +57,11 @@ describe "Server" do
57
57
  end
58
58
  end
59
59
 
60
+ specify "#global_alias= stores string" do
61
+ server.global_alias = :foo
62
+ expect(server.global_alias).to eq("foo")
63
+ end
64
+
60
65
  it "sets environment variables" do
61
66
  server.env :FOO => "bar"
62
67
  server.env :BAR => "baz"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taketo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-05 00:00:00.000000000 Z
12
+ date: 2012-12-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec