vimius 0.0.1.beta1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,24 @@
1
+ $:.push File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ require 'rspec'
3
+ require 'vimius'
4
+
5
+ include TechnoGate
6
+ include Vimius
7
+
8
+ RSpec.configure do |config|
9
+ def config.escaped_path(*parts)
10
+ Regexp.compile(parts.join('[\\\/]'))
11
+ end unless config.respond_to? :escaped_path
12
+
13
+ # == Mock Framework
14
+ #
15
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
16
+ #
17
+ config.mock_with :mocha
18
+ # config.mock_with :flexmock
19
+ # config.mock_with :rr
20
+ # config.mock_with :rspec
21
+ end
22
+
23
+ # Include support files.
24
+ Dir["#{VIMIUS_SPEC_PATH}/support/**/*.rb"].each { |f| require f }
@@ -0,0 +1,56 @@
1
+ require 'singleton'
2
+
3
+ module CliSupport
4
+ class Output
5
+ include Singleton
6
+ attr_accessor :messages
7
+
8
+ def initialize
9
+ @messages = []
10
+ end
11
+
12
+ def puts(messages)
13
+ if messages.respond_to? :each
14
+ messages.each { |m| @messages << m }
15
+ else
16
+ @messages << messages
17
+ end
18
+ end
19
+ end
20
+
21
+ RSpec::Matchers.define :be_in_output do
22
+ match do |actual|
23
+ Output.instance.messages.include?(actual).should be_true
24
+ end
25
+
26
+ failure_message_for_should do |actual|
27
+ "expected #{actual} to be in output, Got:"
28
+ Output.instance.messages.each do |message|
29
+ puts "\t#{message}"
30
+ end
31
+ end
32
+ end
33
+ end
34
+
35
+ RSpec.configure do |config|
36
+ cli_specs = { :file_path => config.escaped_path(%w[spec lib vimius cli]) }
37
+
38
+ config.include CliSupport, :example_group => cli_specs
39
+ config.before :each, :example_group => cli_specs do
40
+ subject.class_eval <<-END, __FILE__, __LINE__ + 1
41
+ include CliSupport
42
+
43
+ no_tasks do
44
+ define_method :puts do |*args|
45
+ Output.instance.puts(*args)
46
+ return true
47
+ end
48
+
49
+ define_method :abort do |*args|
50
+ Output.instance.puts(*args)
51
+ return false
52
+ end
53
+ end
54
+ END
55
+ end
56
+ end
data/vimius.gemspec ADDED
@@ -0,0 +1,67 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "vimius/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "vimius"
7
+ s.version = TechnoGate::Vimius.version
8
+ s.authors = ["Wael Nasreddine"]
9
+ s.email = ["wael.nasreddine@gmail.com"]
10
+ s.homepage = ""
11
+ s.summary = %q{Vimius support files}
12
+ s.description = s.summary
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
+ s.require_paths = ["lib"]
18
+
19
+ s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
20
+
21
+ ####
22
+ # Run-time dependencies
23
+ ####
24
+
25
+ # Bundler
26
+ s.add_dependency 'bundler', '~>1.0.0'
27
+
28
+ # Thor
29
+ s.add_dependency 'thor', '~>0.14.6'
30
+
31
+ # TgConfig
32
+ s.add_dependency 'tg_config', '~>0.1.2'
33
+
34
+ # Rake
35
+ s.add_dependency 'rake', '~>0.9.2'
36
+
37
+ # Active Support
38
+ s.add_dependency 'activesupport', '~>3.1.1'
39
+ s.add_dependency 'i18n', '~>0.6.0'
40
+
41
+ ####
42
+ # Development dependencies
43
+ ####
44
+
45
+ # Guard
46
+ s.add_development_dependency 'guard', '~>0.8.4'
47
+ s.add_development_dependency 'guard-bundler', '~>0.1.3'
48
+ s.add_development_dependency 'guard-rspec', '~>0.4.5'
49
+
50
+ # Documentation
51
+ s.add_development_dependency 'yard', '~>0.7.2'
52
+
53
+ ####
54
+ # Development / Test dependencies
55
+ ####
56
+
57
+ # RSpec / Capybara
58
+ s.add_development_dependency 'rspec', '~>2.6.0'
59
+
60
+ # Mocha
61
+ s.add_development_dependency 'mocha', '~>0.10.0'
62
+
63
+ ####
64
+ # Debugging
65
+ ####
66
+ s.add_development_dependency 'pry', '~>0.9.6.2'
67
+ end
metadata ADDED
@@ -0,0 +1,230 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vimius
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.beta1
5
+ prerelease: 6
6
+ platform: ruby
7
+ authors:
8
+ - Wael Nasreddine
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-11-13 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: &8200600 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 1.0.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *8200600
25
+ - !ruby/object:Gem::Dependency
26
+ name: thor
27
+ requirement: &8199920 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 0.14.6
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *8199920
36
+ - !ruby/object:Gem::Dependency
37
+ name: tg_config
38
+ requirement: &9265200 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 0.1.2
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *9265200
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: &9275620 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.9.2
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *9275620
58
+ - !ruby/object:Gem::Dependency
59
+ name: activesupport
60
+ requirement: &9275000 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ~>
64
+ - !ruby/object:Gem::Version
65
+ version: 3.1.1
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *9275000
69
+ - !ruby/object:Gem::Dependency
70
+ name: i18n
71
+ requirement: &9274500 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ~>
75
+ - !ruby/object:Gem::Version
76
+ version: 0.6.0
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: *9274500
80
+ - !ruby/object:Gem::Dependency
81
+ name: guard
82
+ requirement: &9273980 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ~>
86
+ - !ruby/object:Gem::Version
87
+ version: 0.8.4
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *9273980
91
+ - !ruby/object:Gem::Dependency
92
+ name: guard-bundler
93
+ requirement: &9273000 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ~>
97
+ - !ruby/object:Gem::Version
98
+ version: 0.1.3
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *9273000
102
+ - !ruby/object:Gem::Dependency
103
+ name: guard-rspec
104
+ requirement: &9272140 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 0.4.5
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: *9272140
113
+ - !ruby/object:Gem::Dependency
114
+ name: yard
115
+ requirement: &9270880 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: 0.7.2
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: *9270880
124
+ - !ruby/object:Gem::Dependency
125
+ name: rspec
126
+ requirement: &9405020 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ~>
130
+ - !ruby/object:Gem::Version
131
+ version: 2.6.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: *9405020
135
+ - !ruby/object:Gem::Dependency
136
+ name: mocha
137
+ requirement: &9402220 !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ~>
141
+ - !ruby/object:Gem::Version
142
+ version: 0.10.0
143
+ type: :development
144
+ prerelease: false
145
+ version_requirements: *9402220
146
+ - !ruby/object:Gem::Dependency
147
+ name: pry
148
+ requirement: &9399980 !ruby/object:Gem::Requirement
149
+ none: false
150
+ requirements:
151
+ - - ~>
152
+ - !ruby/object:Gem::Version
153
+ version: 0.9.6.2
154
+ type: :development
155
+ prerelease: false
156
+ version_requirements: *9399980
157
+ description: Vimius support files
158
+ email:
159
+ - wael.nasreddine@gmail.com
160
+ executables:
161
+ - vimius
162
+ extensions: []
163
+ extra_rdoc_files: []
164
+ files:
165
+ - .gitignore
166
+ - .rspec
167
+ - .travis.yml
168
+ - Gemfile
169
+ - Guardfile
170
+ - README.md
171
+ - Rakefile
172
+ - bin/vimius
173
+ - lib/vimius.rb
174
+ - lib/vimius/cli.rb
175
+ - lib/vimius/cli/install.rb
176
+ - lib/vimius/cli/submodules.rb
177
+ - lib/vimius/cli/version.rb
178
+ - lib/vimius/errors.rb
179
+ - lib/vimius/gems.rb
180
+ - lib/vimius/git.rb
181
+ - lib/vimius/github.rb
182
+ - lib/vimius/plugins.rb
183
+ - lib/vimius/shell.rb
184
+ - lib/vimius/submodules.rb
185
+ - lib/vimius/version.rb
186
+ - lib/vimius/vim.rb
187
+ - lib/vimius/vimius_ascii.txt
188
+ - spec/lib/vimius/cli/install_spec.rb
189
+ - spec/lib/vimius/cli/submodules_spec.rb
190
+ - spec/lib/vimius/cli/version_spec.rb
191
+ - spec/lib/vimius/cli_spec.rb
192
+ - spec/lib/vimius/shell_spec.rb
193
+ - spec/lib/vimius/submodules_spec.rb
194
+ - spec/spec_helper.rb
195
+ - spec/support/cli_matchers.rb
196
+ - vimius.gemspec
197
+ homepage: ''
198
+ licenses: []
199
+ post_install_message:
200
+ rdoc_options: []
201
+ require_paths:
202
+ - lib
203
+ required_ruby_version: !ruby/object:Gem::Requirement
204
+ none: false
205
+ requirements:
206
+ - - ! '>='
207
+ - !ruby/object:Gem::Version
208
+ version: 1.8.7
209
+ required_rubygems_version: !ruby/object:Gem::Requirement
210
+ none: false
211
+ requirements:
212
+ - - ! '>'
213
+ - !ruby/object:Gem::Version
214
+ version: 1.3.1
215
+ requirements: []
216
+ rubyforge_project:
217
+ rubygems_version: 1.8.11
218
+ signing_key:
219
+ specification_version: 3
220
+ summary: Vimius support files
221
+ test_files:
222
+ - spec/lib/vimius/cli/install_spec.rb
223
+ - spec/lib/vimius/cli/submodules_spec.rb
224
+ - spec/lib/vimius/cli/version_spec.rb
225
+ - spec/lib/vimius/cli_spec.rb
226
+ - spec/lib/vimius/shell_spec.rb
227
+ - spec/lib/vimius/submodules_spec.rb
228
+ - spec/spec_helper.rb
229
+ - spec/support/cli_matchers.rb
230
+ has_rdoc: