the_heist 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/heist/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  #
4
4
 
5
5
  module Heist
6
- Version = VERSION = '0.0.4'
6
+ Version = VERSION = '0.0.5'
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_heist
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jerry Chen
@@ -34,9 +34,6 @@ files:
34
34
  - lib/heist/version.rb
35
35
  - lib/heist.rb
36
36
  - LICENSE
37
- - tests/gemlist.txt
38
- - tests/test_the_heist.rb
39
- - tests/test_the_heist.rb~
40
37
  - bin/heist
41
38
  has_rdoc: true
42
39
  homepage: http://github.com/jcsalterego/the_heist
@@ -72,7 +69,5 @@ rubygems_version: 1.3.7
72
69
  signing_key:
73
70
  specification_version: 3
74
71
  summary: Heist allows you to clone gem configs.
75
- test_files:
76
- - tests/gemlist.txt
77
- - tests/test_the_heist.rb
78
- - tests/test_the_heist.rb~
72
+ test_files: []
73
+
data/tests/gemlist.txt DELETED
@@ -1,4 +0,0 @@
1
- aaronh-chronic (0.3.9)
2
- activemodel (3.0.6, 3.0.5, 3.0.4, 3.0.3, 3.0.1, 3.0.0, 3.0.0.rc2)
3
- acts_as_commentable (3.0.1, 3.0.0)
4
- ZenTest (4.5.0, 4.4.2, 4.4.1, 4.4.0, 4.3.3, 4.3.2, 4.3.1, 4.2.1, 4.1.4)
@@ -1,36 +0,0 @@
1
- $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
2
- require 'test/unit'
3
- require 'heist'
4
-
5
- class TestHeist < Test::Unit::TestCase
6
-
7
- def setup
8
- # load in the gemlist.txt fixture
9
- @gem_list = File.open('tests/gemlist.txt').read.split("\n")
10
- @gem_versions_count = @gem_list.to_s.count(",") + @gem_list.size
11
- end
12
-
13
- def test_heist_no_argv
14
- install_commands = %x[cat tests/gemlist.txt | bin/heist].split("\n")
15
- assert_equal(@gem_versions_count, install_commands.size)
16
- # this test assumes that we have a "rc" versioned gem
17
- assert_match(/rc/, install_commands.join(" "))
18
- end
19
-
20
- def test_heist_recent_argv
21
- install_commands = %x[cat tests/gemlist.txt | bin/heist --recent].split("\n")
22
- assert_equal(@gem_list.size, install_commands.size)
23
- # this test assumes that we have a "rc" versioned gem which isn't the most recent
24
- assert_no_match(/rc/, install_commands.join(" "))
25
- end
26
-
27
- def test_heist_recent_argv_correct_version
28
- # with each gem install command, make sure it's the newest version
29
- install_commands = %x[cat tests/gemlist.txt | bin/heist --recent].split("\n")
30
- @gem_list.each do |gemline|
31
- recent_version = gemline.match(/\((.*?)[,\)]/)[1]
32
- assert(install_commands.join("").match(recent_version))
33
- end
34
- end
35
-
36
- end
@@ -1,36 +0,0 @@
1
- $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
2
- require 'test/unit'
3
- require 'heist'
4
-
5
- class TestHeist < Test::Unit::TestCase
6
-
7
- def setup
8
- # load in the gemlist.txt fixture
9
- @gem_list = File.open('tests/gemlist.txt').read.split("\n")
10
- @gem_versions_count = @gem_list.to_s.count(",") + @gem_list.size
11
- end
12
-
13
- def test_heist_no_argv
14
- install_commands = %x[cat tests/gemlist.txt | bin/heist].split("\n")
15
- assert_equal(@gem_versions_count, install_commands.size)
16
- # this test assumes that we have a "rc" versioned gem
17
- assert_match(/rc/, install_commands.join(" "))
18
- end
19
-
20
- def test_heist_recent_argv
21
- install_commands = %x[cat tests/gemlist.txt | bin/heist --recent].split("\n")
22
- assert_equal(@gem_list.size, install_commands.size)
23
- # this test assumes that we have a "rc" versioned gem which isn't the most recent
24
- assert_no_match(/rc/, install_commands.join(" "))
25
- end
26
-
27
- def test_heist_recent_argv_correct_version
28
- # with each gem install command, make sure it's the newest version
29
- install_commands = %x[cat tests/gemlist.txt | bin/heist --recent].split("\n")
30
- @gem_list.each do |gemline|
31
- recent_version = gemline.match(/\((.*?)[,\)]/)[1]
32
- assert(install_commands.join("").match(recent_version))
33
- end
34
- end
35
-
36
- end