Skip to content

Commit 166245a

Browse files
committed
Updated gemfiles to include test unit from ruby gems since ruby 2.2 removed it from stdlib and bumped minor release for ruby 2.2 fix
1 parent 0a01c72 commit 166245a

File tree

7 files changed

+32
-2
lines changed

7 files changed

+32
-2
lines changed

.gitignore

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

Rakefile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,31 @@ task :test do
1111
end
1212
end
1313

14+
desc "build gems"
15+
task :build_gems => [:test] do
16+
GEMS.each do |gem|
17+
chdir gem do
18+
if gem == 'cli'
19+
sh "gem build compass.gemspec"
20+
else
21+
sh "gem build compass-#{gem}.gemspec"
22+
end
23+
end
24+
end
25+
end
26+
27+
desc "publish gems"
28+
task :publish_gems => [:build_gems] do
29+
GEMS.each do |gem|
30+
chdir gem do
31+
if gem == 'cli'
32+
sh "gem push compass.gemspec"
33+
else
34+
sh "gem push compass-#{gem}.gemspec"
35+
end
36+
end
37+
end
38+
end
1439

1540
desc "Clean up all test files"
1641
task :test_cleanup do

cli/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ unless ENV['PKG']
1919
gem 'rake'
2020
gem 'json', '~> 1.7.7', :platforms => :ruby_18
2121
gem 'true', "~> 0.2.3"
22+
gem 'test-unit', '~> 3.0.9'
2223

2324
# Warning be carful adding OS dependant gems above this line it will break the CI server please
2425
# place them below so they are excluded

cli/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.1
1+
1.0.2

core/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ gem 'pry'
77
gem 'diff-lcs', '~> 1.1.2'
88
gem 'true', "~> 0.2.3"
99
gem 'timecop', "~> 0.5.9.2"
10+
gem 'test-unit', '~> 3.0.9'

core/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.1
1+
1.0.2

import-once/Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
source 'https://rubygems.org'
22

3+
gem 'test-unit', '~> 3.0.9'
4+
35
gemspec

0 commit comments

Comments
 (0)