git-style-binaries 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,13 @@
1
+ class Test::Unit::TestCase
2
+ def output_should_match(regexp)
3
+ assert_match regexp, @stdout + @stderr
4
+ end
5
+ alias_method :output_matches, :output_should_match
6
+
7
+ def stdout_should_match(regexp)
8
+ assert_match regexp, @stdout
9
+ end
10
+ def stderr_should_match(regexp)
11
+ assert_match regexp, @stderr
12
+ end
13
+ end
@@ -0,0 +1,28 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+ begin require 'redgreen'; rescue LoadError; end
5
+ require 'open3'
6
+
7
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
8
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
9
+ Dir[File.join(File.dirname(__FILE__), "shoulda_macros", "*.rb")].each {|f| require f}
10
+ ENV['NO_COLOR'] = "true"
11
+
12
+ require 'git-style-binary'
13
+ GitStyleBinary.run = true
14
+
15
+ class Test::Unit::TestCase
16
+ def fixtures_dir
17
+ File.join(File.dirname(__FILE__), "fixtures")
18
+ end
19
+ end
20
+
21
+ module RunsBinaryFixtures
22
+ # run the specified cmd returning the string values of [stdout,stderr]
23
+ def bin(cmd)
24
+ stdin, stdout, stderr = Open3.popen3("#{fixtures_dir}/#{cmd}")
25
+ [stdout.read, stderr.read]
26
+ end
27
+ end
28
+
metadata ADDED
@@ -0,0 +1,111 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: git-style-binaries
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 10
9
+ version: 0.1.10
10
+ platform: ruby
11
+ authors:
12
+ - Nate Murray
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-03-07 00:00:00 -08:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: trollop
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ type: :runtime
31
+ version_requirements: *id001
32
+ - !ruby/object:Gem::Dependency
33
+ name: shoulda
34
+ prerelease: false
35
+ requirement: &id002 !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ segments:
40
+ - 0
41
+ version: "0"
42
+ type: :runtime
43
+ version_requirements: *id002
44
+ description: Ridiculously easy git-style binaries
45
+ email: nate@natemurray.com
46
+ executables: []
47
+
48
+ extensions: []
49
+
50
+ extra_rdoc_files:
51
+ - README.markdown
52
+ files:
53
+ - README.markdown
54
+ - Rakefile
55
+ - VERSION.yml
56
+ - lib/ext/colorize.rb
57
+ - lib/ext/core.rb
58
+ - lib/git-style-binary.rb
59
+ - lib/git-style-binary/autorunner.rb
60
+ - lib/git-style-binary/command.rb
61
+ - lib/git-style-binary/commands/help.rb
62
+ - lib/git-style-binary/helpers/name_resolver.rb
63
+ - lib/git-style-binary/helpers/pager.rb
64
+ - lib/git-style-binary/parser.rb
65
+ - test/fixtures/flickr
66
+ - test/fixtures/flickr-download
67
+ - test/fixtures/wordpress
68
+ - test/fixtures/wordpress-categories
69
+ - test/fixtures/wordpress-list
70
+ - test/fixtures/wordpress-post
71
+ - test/git-style-binary/command_test.rb
72
+ - test/git_style_binary_test.rb
73
+ - test/running_binaries_test.rb
74
+ - test/shoulda_macros/matching_stdio.rb
75
+ - test/test_helper.rb
76
+ has_rdoc: true
77
+ homepage: http://github.com/jashmenn/git-style-binaries
78
+ licenses: []
79
+
80
+ post_install_message:
81
+ rdoc_options:
82
+ - --charset=UTF-8
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ segments:
90
+ - 0
91
+ version: "0"
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ segments:
97
+ - 0
98
+ version: "0"
99
+ requirements: []
100
+
101
+ rubyforge_project:
102
+ rubygems_version: 1.3.6
103
+ signing_key:
104
+ specification_version: 3
105
+ summary: Add git-style binaries to your project easily.
106
+ test_files:
107
+ - test/git-style-binary/command_test.rb
108
+ - test/git_style_binary_test.rb
109
+ - test/running_binaries_test.rb
110
+ - test/shoulda_macros/matching_stdio.rb
111
+ - test/test_helper.rb