Skip to content

Commit 4834a26

Browse files
committed
Setting up gem development environment
1 parent b758acd commit 4834a26

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed

GitVersionExe/GemAssets/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Gemfile.lock

GitVersionExe/GemAssets/.rspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--require spec_helper
2+
--tag ~@draft

GitVersionExe/GemAssets/Gemfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
source 'https://rubygems.org'
2+
3+
gemspec
4+
5+
group :development do
6+
gem 'guard-bundler', require: false
7+
gem 'guard-rspec', require: false
8+
9+
case RbConfig::CONFIG['target_os']
10+
when /windows|bccwin|cygwin|djgpp|mingw|mswin|wince/i
11+
gem 'ruby_gntp', require: false
12+
gem 'wdm', require: false
13+
when /linux/i
14+
gem 'rb-inotify', require: false
15+
when /mac|darwin/i
16+
gem 'rb-fsevent', require: false
17+
gem 'growl', require: false
18+
end
19+
end
20+
21+
group :development, :ci do
22+
gem 'rspec', '~> 3.0.0', require: false
23+
gem 'rspec-its', require: false
24+
end

GitVersionExe/GemAssets/Guardfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
case RbConfig::CONFIG['target_os']
2+
when /windows|bccwin|cygwin|djgpp|mingw|mswin|wince/i
3+
notification :gntp, :host => 'localhost'
4+
when /linux/i
5+
notification :notifysend
6+
when /mac|darwin/i
7+
notification :growl
8+
end
9+
10+
guard 'bundler' do
11+
watch('Gemfile')
12+
watch(/^.+\.gemspec/)
13+
end
14+
15+
guard 'rspec',
16+
:all_on_start => true,
17+
:all_after_pass => true,
18+
:notification => true,
19+
:cmd => 'bundle exec rspec' do
20+
watch('.rspec') { 'spec' }
21+
watch(%r{^spec/.+_spec\.rb$})
22+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
23+
watch('spec/spec_helper.rb') { 'spec' }
24+
end

0 commit comments

Comments
 (0)