scide 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc CHANGED
@@ -4,7 +4,7 @@
4
4
  # development environment upon cd'ing into the directory
5
5
 
6
6
  # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
7
- environment_id="ruby-1.9.3@scide"
7
+ environment_id="ruby-1.9.2@scide"
8
8
 
9
9
  #
10
10
  # First we attempt to load the desired environment directly from the environment
data/Gemfile CHANGED
@@ -4,6 +4,7 @@ source "http://rubygems.org"
4
4
  # gem "activesupport", ">= 2.3.5"
5
5
 
6
6
  gem 'upoj-rb', '~> 0.0.4'
7
+ gem 'which_works', '~> 0.1.0'
7
8
 
8
9
  # Add dependencies to develop your gem here.
9
10
  # Include everything needed to run rake, tests, features, etc.
data/Gemfile.lock CHANGED
@@ -37,6 +37,7 @@ GEM
37
37
  upoj-rb (0.0.5)
38
38
  active_support (>= 2)
39
39
  paint
40
+ which_works (0.1.0)
40
41
  yard (0.7.5)
41
42
 
42
43
  PLATFORMS
@@ -52,4 +53,5 @@ DEPENDENCIES
52
53
  simplecov
53
54
  travis-lint (~> 1.3.0)
54
55
  upoj-rb (~> 0.0.4)
56
+ which_works (~> 0.1.0)
55
57
  yard
data/README.md CHANGED
@@ -5,6 +5,11 @@ GNU Screen IDE.
5
5
  The purpose of this tool is to generate several GNU screen configurations from a single YAML configuration file.
6
6
  This can be used to easily setup a multi-windows development environment with screen.
7
7
 
8
+ Tested with <a href="https://www.relishapp.com/rspec">RSpec</a>, <a href="https://github.com/thoughtbot/shoulda">shoulda</a> and <a href="http://travis-ci.org/#!/AlphaHydrae/scide">Travis CI</a>.
9
+
10
+ * master [![Build Status](https://secure.travis-ci.org/AlphaHydrae/scide.png?branch=master)](http://travis-ci.org/AlphaHydrae/scide)
11
+ * develop [![Build Status](https://secure.travis-ci.org/AlphaHydrae/scide.png?branch=develop)](http://travis-ci.org/AlphaHydrae/scide)
12
+
8
13
  ## Using
9
14
 
10
15
  You can install scide with:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.11
1
+ 0.0.12
data/lib/scide/screen.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'which_works'
2
+
1
3
  module Scide
2
4
 
3
5
  # Configuration of a GNU Screen session (windows for a specific project).
@@ -41,7 +43,7 @@ module Scide
41
43
  # Verifies that the screen binary is there. If not, causes scide
42
44
  # to fail with a <tt>screen_not_found</tt> error (see {Scide.fail}).
43
45
  def check_binary
44
- Scide.fail :screen_not_found, "ERROR: #{binary} not found" unless system("which #{binary} &>/dev/null")
46
+ Scide.fail :screen_not_found, "ERROR: #{binary} not found" unless Which.which(binary)
45
47
  end
46
48
 
47
49
  # Returns a representation of this configuration as a string.
data/scide.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "scide"
8
- s.version = "0.0.11"
8
+ s.version = "0.0.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["AlphaHydrae"]
@@ -74,6 +74,7 @@ Gem::Specification.new do |s|
74
74
 
75
75
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
76
76
  s.add_runtime_dependency(%q<upoj-rb>, ["~> 0.0.4"])
77
+ s.add_runtime_dependency(%q<which_works>, ["~> 0.1.0"])
77
78
  s.add_development_dependency(%q<rspec>, [">= 0"])
78
79
  s.add_development_dependency(%q<shoulda>, [">= 0"])
79
80
  s.add_development_dependency(%q<bundler>, [">= 0"])
@@ -84,6 +85,7 @@ Gem::Specification.new do |s|
84
85
  s.add_development_dependency(%q<travis-lint>, ["~> 1.3.0"])
85
86
  else
86
87
  s.add_dependency(%q<upoj-rb>, ["~> 0.0.4"])
88
+ s.add_dependency(%q<which_works>, ["~> 0.1.0"])
87
89
  s.add_dependency(%q<rspec>, [">= 0"])
88
90
  s.add_dependency(%q<shoulda>, [">= 0"])
89
91
  s.add_dependency(%q<bundler>, [">= 0"])
@@ -95,6 +97,7 @@ Gem::Specification.new do |s|
95
97
  end
96
98
  else
97
99
  s.add_dependency(%q<upoj-rb>, ["~> 0.0.4"])
100
+ s.add_dependency(%q<which_works>, ["~> 0.1.0"])
98
101
  s.add_dependency(%q<rspec>, [">= 0"])
99
102
  s.add_dependency(%q<shoulda>, [">= 0"])
100
103
  s.add_dependency(%q<bundler>, [">= 0"])
data/spec/screen_spec.rb CHANGED
@@ -70,8 +70,15 @@ describe Scide::Screen do
70
70
  screen.options.should_not equal(options)
71
71
  end
72
72
 
73
+ it "should not raise any error if the screen binary is found" do
74
+ screen = '/usr/bin/screen'
75
+ Which.stub!(:which){ |name| screen } unless File.executable?(screen)
76
+ lambda{ SpecHelper.silence{ Scide::Screen.new(@project, :binary => screen).check_binary } }.should_not raise_error
77
+ end
78
+
73
79
  it "should exit with status 4 if the screen binary is not found" do
74
- bad_binary = "IHateYouIfYouAddedThisBinaryJustToMakeMyTestFail"
80
+ bad_binary = "unknown"
81
+ Which.stub!(:which){ |name| nil }
75
82
  lambda{ SpecHelper.silence{ Scide::Screen.new(@project, :binary => bad_binary).check_binary } }.should raise_error(SystemExit){ |err| err.status.should == 4 }
76
83
  end
77
84
 
metadata CHANGED
@@ -1,164 +1,135 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: scide
3
- version: !ruby/object:Gem::Version
4
- hash: 9
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.12
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 11
10
- version: 0.0.11
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - AlphaHydrae
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-03-09 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- version_requirements: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-03-09 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: upoj-rb
16
+ requirement: &70204075390320 !ruby/object:Gem::Requirement
22
17
  none: false
23
- requirements:
18
+ requirements:
24
19
  - - ~>
25
- - !ruby/object:Gem::Version
26
- hash: 23
27
- segments:
28
- - 0
29
- - 0
30
- - 4
20
+ - !ruby/object:Gem::Version
31
21
  version: 0.0.4
32
- name: upoj-rb
33
- prerelease: false
34
22
  type: :runtime
35
- requirement: *id001
36
- - !ruby/object:Gem::Dependency
37
- version_requirements: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
46
- name: rspec
47
23
  prerelease: false
48
- type: :development
49
- requirement: *id002
50
- - !ruby/object:Gem::Dependency
51
- version_requirements: &id003 !ruby/object:Gem::Requirement
24
+ version_requirements: *70204075390320
25
+ - !ruby/object:Gem::Dependency
26
+ name: which_works
27
+ requirement: &70204075386800 !ruby/object:Gem::Requirement
52
28
  none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- hash: 3
57
- segments:
58
- - 0
59
- version: "0"
60
- name: shoulda
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 0.1.0
33
+ type: :runtime
61
34
  prerelease: false
35
+ version_requirements: *70204075386800
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec
38
+ requirement: &70204075386160 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
62
44
  type: :development
63
- requirement: *id003
64
- - !ruby/object:Gem::Dependency
65
- version_requirements: &id004 !ruby/object:Gem::Requirement
45
+ prerelease: false
46
+ version_requirements: *70204075386160
47
+ - !ruby/object:Gem::Dependency
48
+ name: shoulda
49
+ requirement: &70204075385540 !ruby/object:Gem::Requirement
66
50
  none: false
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- hash: 3
71
- segments:
72
- - 0
73
- version: "0"
74
- name: bundler
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
75
56
  prerelease: false
57
+ version_requirements: *70204075385540
58
+ - !ruby/object:Gem::Dependency
59
+ name: bundler
60
+ requirement: &70204075384820 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
76
66
  type: :development
77
- requirement: *id004
78
- - !ruby/object:Gem::Dependency
79
- version_requirements: &id005 !ruby/object:Gem::Requirement
67
+ prerelease: false
68
+ version_requirements: *70204075384820
69
+ - !ruby/object:Gem::Dependency
70
+ name: jeweler
71
+ requirement: &70204075384240 !ruby/object:Gem::Requirement
80
72
  none: false
81
- requirements:
73
+ requirements:
82
74
  - - ~>
83
- - !ruby/object:Gem::Version
84
- hash: 7
85
- segments:
86
- - 1
87
- - 6
88
- - 4
75
+ - !ruby/object:Gem::Version
89
76
  version: 1.6.4
90
- name: jeweler
91
- prerelease: false
92
77
  type: :development
93
- requirement: *id005
94
- - !ruby/object:Gem::Dependency
95
- version_requirements: &id006 !ruby/object:Gem::Requirement
96
- none: false
97
- requirements:
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- hash: 3
101
- segments:
102
- - 0
103
- version: "0"
104
- name: simplecov
105
78
  prerelease: false
106
- type: :development
107
- requirement: *id006
108
- - !ruby/object:Gem::Dependency
109
- version_requirements: &id007 !ruby/object:Gem::Requirement
79
+ version_requirements: *70204075384240
80
+ - !ruby/object:Gem::Dependency
81
+ name: simplecov
82
+ requirement: &70204075383620 !ruby/object:Gem::Requirement
110
83
  none: false
111
- requirements:
112
- - - ">="
113
- - !ruby/object:Gem::Version
114
- hash: 3
115
- segments:
116
- - 0
117
- version: "0"
118
- name: yard
119
- prerelease: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
120
88
  type: :development
121
- requirement: *id007
122
- - !ruby/object:Gem::Dependency
123
- version_requirements: &id008 !ruby/object:Gem::Requirement
89
+ prerelease: false
90
+ version_requirements: *70204075383620
91
+ - !ruby/object:Gem::Dependency
92
+ name: yard
93
+ requirement: &70204075382980 !ruby/object:Gem::Requirement
124
94
  none: false
125
- requirements:
126
- - - ">="
127
- - !ruby/object:Gem::Version
128
- hash: 3
129
- segments:
130
- - 0
131
- version: "0"
132
- name: rdiscount
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :development
133
100
  prerelease: false
101
+ version_requirements: *70204075382980
102
+ - !ruby/object:Gem::Dependency
103
+ name: rdiscount
104
+ requirement: &70204075382300 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
134
110
  type: :development
135
- requirement: *id008
136
- - !ruby/object:Gem::Dependency
137
- version_requirements: &id009 !ruby/object:Gem::Requirement
111
+ prerelease: false
112
+ version_requirements: *70204075382300
113
+ - !ruby/object:Gem::Dependency
114
+ name: travis-lint
115
+ requirement: &70204075381460 !ruby/object:Gem::Requirement
138
116
  none: false
139
- requirements:
117
+ requirements:
140
118
  - - ~>
141
- - !ruby/object:Gem::Version
142
- hash: 27
143
- segments:
144
- - 1
145
- - 3
146
- - 0
119
+ - !ruby/object:Gem::Version
147
120
  version: 1.3.0
148
- name: travis-lint
149
- prerelease: false
150
121
  type: :development
151
- requirement: *id009
122
+ prerelease: false
123
+ version_requirements: *70204075381460
152
124
  description: Utility to generate GNU screen configuration files.
153
125
  email: hydrae.alpha@gmail.com
154
- executables:
126
+ executables:
155
127
  - scide
156
128
  extensions: []
157
-
158
- extra_rdoc_files:
129
+ extra_rdoc_files:
159
130
  - LICENSE.txt
160
131
  - README.md
161
- files:
132
+ files:
162
133
  - .document
163
134
  - .rspec
164
135
  - .rvmrc
@@ -204,37 +175,31 @@ files:
204
175
  - spec/version_spec.rb
205
176
  - spec/window_spec.rb
206
177
  homepage: http://github.com/AlphaHydrae/scide
207
- licenses:
178
+ licenses:
208
179
  - MIT
209
180
  post_install_message:
210
181
  rdoc_options: []
211
-
212
- require_paths:
182
+ require_paths:
213
183
  - lib
214
- required_ruby_version: !ruby/object:Gem::Requirement
184
+ required_ruby_version: !ruby/object:Gem::Requirement
215
185
  none: false
216
- requirements:
217
- - - ">="
218
- - !ruby/object:Gem::Version
219
- hash: 3
220
- segments:
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ segments:
221
191
  - 0
222
- version: "0"
223
- required_rubygems_version: !ruby/object:Gem::Requirement
192
+ hash: -4477489654140745728
193
+ required_rubygems_version: !ruby/object:Gem::Requirement
224
194
  none: false
225
- requirements:
226
- - - ">="
227
- - !ruby/object:Gem::Version
228
- hash: 3
229
- segments:
230
- - 0
231
- version: "0"
195
+ requirements:
196
+ - - ! '>='
197
+ - !ruby/object:Gem::Version
198
+ version: '0'
232
199
  requirements: []
233
-
234
200
  rubyforge_project:
235
201
  rubygems_version: 1.8.17
236
202
  signing_key:
237
203
  specification_version: 3
238
204
  summary: GNU Screen IDE.
239
205
  test_files: []
240
-