gm 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +22 -0
- data/README.textile +13 -0
- data/bin/gem-make +6 -0
- data/bin/gm +6 -0
- data/gm_behaviors/author_behavior.rb +29 -0
- data/gm_behaviors/bin_files_behavior.rb +10 -0
- data/gm_behaviors/dependencies_behavior.rb +22 -0
- data/gm_behaviors/executables_behavior.rb +13 -0
- data/gm_behaviors/general_behavior.rb +41 -0
- data/gm_behaviors/github_behavior.rb +11 -0
- data/gm_behaviors/gm_files_behavior.rb +13 -0
- data/gm_behaviors/lib_files_behavior.rb +10 -0
- data/gm_behaviors/rails_behavior.rb +11 -0
- data/gm_behaviors/rdoc_behavior.rb +34 -0
- data/gm_behaviors/rspec_behavior.rb +10 -0
- data/gm_behaviors/rubigen_behavior.rb +13 -0
- data/gm_behaviors/rubyforge_behavior.rb +12 -0
- data/gm_behaviors/test_behavior.rb +10 -0
- data/gm_behaviors/text_files_behavior.rb +10 -0
- data/gm_commands/build_command.rb +25 -0
- data/gm_commands/build_gemspec_command.rb +35 -0
- data/gm_commands/clean_command.rb +14 -0
- data/gm_commands/config_command.rb +42 -0
- data/gm_commands/create_command.rb +10 -0
- data/gm_commands/gen_command.rb +31 -0
- data/gm_commands/help_command.rb +246 -0
- data/gm_commands/install_command.rb +17 -0
- data/gm_commands/publish_command.rb +33 -0
- data/gm_commands/spec_command.rb +14 -0
- data/gm_generators/bin/bin_generator.rb +22 -0
- data/gm_generators/bin/templates/bin/bin.rb +3 -0
- data/gm_generators/gem/gem_generator.rb +38 -0
- data/gm_generators/gem/templates/Gmfile +4 -0
- data/gm_generators/gem/templates/README.textile +0 -0
- data/gm_generators/gem/templates/lib/module.rb +4 -0
- data/gm_generators/mit_license/mit_license_generator.rb +17 -0
- data/gm_generators/mit_license/templates/LICENSE.txt +22 -0
- data/gm_generators/rails/rails_generator.rb +18 -0
- data/gm_generators/rails/templates/rails/init.rb +1 -0
- data/gm_generators/test/templates/test_case.rb.erb +5 -0
- data/gm_generators/test/templates/test_helper.rb.erb +7 -0
- data/gm_generators/test/test_generator.rb +26 -0
- data/gm_networks/github_network.rb +72 -0
- data/gm_networks/rubyforge_network.rb +90 -0
- data/lib/autotest/discover.rb +3 -0
- data/lib/autotest/gm.rb +37 -0
- data/lib/extentions/gem.rb +27 -0
- data/lib/gm.rb +30 -0
- data/lib/gm/app.rb +108 -0
- data/lib/gm/behavior.rb +23 -0
- data/lib/gm/command.rb +70 -0
- data/lib/gm/configuration.rb +20 -0
- data/lib/gm/documentation.rb +38 -0
- data/lib/gm/helpers.rb +20 -0
- data/lib/gm/loader.rb +84 -0
- data/lib/gm/network.rb +29 -0
- data/lib/gm/system.rb +16 -0
- data/test/command_test.rb +106 -0
- data/test/gem_extentions_test.rb +31 -0
- data/test/system_test.rb +17 -0
- data/test/test_helper.rb +12 -0
- metadata +159 -0
data/test/system_test.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/test_helper'
|
2
|
+
|
3
|
+
class SystemTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
include GM::System
|
6
|
+
|
7
|
+
should "call Kernel#system" do
|
8
|
+
GM.app.expects(:log).with('> ls -l')
|
9
|
+
GM.app.expects(:log).with('> ls -a')
|
10
|
+
|
11
|
+
expects(:system).with('ls -l')
|
12
|
+
expects(:system).with('ls -a')
|
13
|
+
|
14
|
+
sh %{ ls -l }, %{ ls -a }
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require 'rubygems'
|
3
|
+
require 'mocha' rescue puts('please install mocha') and exit(1)
|
4
|
+
require 'context' rescue puts('please install context') and exit(1)
|
5
|
+
|
6
|
+
require File.dirname(__FILE__)+'/../lib/gm'
|
7
|
+
|
8
|
+
class Test::Unit::TestCase
|
9
|
+
|
10
|
+
# put your helpers here
|
11
|
+
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,159 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gm
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Simon Menke
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-01-25 00:00:00 +01:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: simonmenke-ec
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.3
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: clip
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.0.0
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: rubigen
|
37
|
+
type: :runtime
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 1.5.1
|
44
|
+
version:
|
45
|
+
description:
|
46
|
+
email: simon.menke@gmail.com
|
47
|
+
executables:
|
48
|
+
- gem-make
|
49
|
+
- gm
|
50
|
+
extensions: []
|
51
|
+
|
52
|
+
extra_rdoc_files: []
|
53
|
+
|
54
|
+
files:
|
55
|
+
- gm_generators/bin/bin_generator.rb
|
56
|
+
- gm_generators/bin/templates/bin/bin.rb
|
57
|
+
- gm_generators/gem/gem_generator.rb
|
58
|
+
- gm_generators/gem/templates/Gmfile
|
59
|
+
- gm_generators/gem/templates/README.textile
|
60
|
+
- gm_generators/gem/templates/lib/module.rb
|
61
|
+
- gm_generators/mit_license/mit_license_generator.rb
|
62
|
+
- gm_generators/mit_license/templates/LICENSE.txt
|
63
|
+
- gm_generators/rails/rails_generator.rb
|
64
|
+
- gm_generators/rails/templates/rails/init.rb
|
65
|
+
- gm_generators/test/templates/test_case.rb.erb
|
66
|
+
- gm_generators/test/templates/test_helper.rb.erb
|
67
|
+
- gm_generators/test/test_generator.rb
|
68
|
+
- gm_commands/build_command.rb
|
69
|
+
- gm_commands/build_gemspec_command.rb
|
70
|
+
- gm_commands/clean_command.rb
|
71
|
+
- gm_commands/config_command.rb
|
72
|
+
- gm_commands/create_command.rb
|
73
|
+
- gm_commands/gen_command.rb
|
74
|
+
- gm_commands/help_command.rb
|
75
|
+
- gm_commands/install_command.rb
|
76
|
+
- gm_commands/publish_command.rb
|
77
|
+
- gm_commands/spec_command.rb
|
78
|
+
- gm_behaviors/author_behavior.rb
|
79
|
+
- gm_behaviors/bin_files_behavior.rb
|
80
|
+
- gm_behaviors/dependencies_behavior.rb
|
81
|
+
- gm_behaviors/executables_behavior.rb
|
82
|
+
- gm_behaviors/general_behavior.rb
|
83
|
+
- gm_behaviors/github_behavior.rb
|
84
|
+
- gm_behaviors/gm_files_behavior.rb
|
85
|
+
- gm_behaviors/lib_files_behavior.rb
|
86
|
+
- gm_behaviors/rails_behavior.rb
|
87
|
+
- gm_behaviors/rdoc_behavior.rb
|
88
|
+
- gm_behaviors/rspec_behavior.rb
|
89
|
+
- gm_behaviors/rubigen_behavior.rb
|
90
|
+
- gm_behaviors/rubyforge_behavior.rb
|
91
|
+
- gm_behaviors/test_behavior.rb
|
92
|
+
- gm_behaviors/text_files_behavior.rb
|
93
|
+
- gm_networks/github_network.rb
|
94
|
+
- gm_networks/rubyforge_network.rb
|
95
|
+
- gm_generators/bin
|
96
|
+
- gm_generators/bin/templates
|
97
|
+
- gm_generators/bin/templates/bin
|
98
|
+
- gm_generators/gem
|
99
|
+
- gm_generators/gem/templates
|
100
|
+
- gm_generators/gem/templates/lib
|
101
|
+
- gm_generators/mit_license
|
102
|
+
- gm_generators/mit_license/templates
|
103
|
+
- gm_generators/rails
|
104
|
+
- gm_generators/rails/templates
|
105
|
+
- gm_generators/rails/templates/rails
|
106
|
+
- gm_generators/test
|
107
|
+
- gm_generators/test/templates
|
108
|
+
- test/command_test.rb
|
109
|
+
- test/gem_extentions_test.rb
|
110
|
+
- test/system_test.rb
|
111
|
+
- test/test_helper.rb
|
112
|
+
- bin/gem-make
|
113
|
+
- bin/gm
|
114
|
+
- LICENSE.txt
|
115
|
+
- README.textile
|
116
|
+
- lib/autotest/discover.rb
|
117
|
+
- lib/autotest/gm.rb
|
118
|
+
- lib/extentions/gem.rb
|
119
|
+
- lib/gm/app.rb
|
120
|
+
- lib/gm/behavior.rb
|
121
|
+
- lib/gm/command.rb
|
122
|
+
- lib/gm/configuration.rb
|
123
|
+
- lib/gm/documentation.rb
|
124
|
+
- lib/gm/helpers.rb
|
125
|
+
- lib/gm/loader.rb
|
126
|
+
- lib/gm/network.rb
|
127
|
+
- lib/gm/system.rb
|
128
|
+
- lib/gm.rb
|
129
|
+
has_rdoc: true
|
130
|
+
homepage: http://github.com/simonmenke/gm
|
131
|
+
post_install_message:
|
132
|
+
rdoc_options: []
|
133
|
+
|
134
|
+
require_paths:
|
135
|
+
- lib
|
136
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: "0"
|
141
|
+
version:
|
142
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: "0"
|
147
|
+
version:
|
148
|
+
requirements: []
|
149
|
+
|
150
|
+
rubyforge_project: gem-make
|
151
|
+
rubygems_version: 1.3.1
|
152
|
+
signing_key:
|
153
|
+
specification_version: 2
|
154
|
+
summary: Building gems the clean way.
|
155
|
+
test_files:
|
156
|
+
- test/command_test.rb
|
157
|
+
- test/gem_extentions_test.rb
|
158
|
+
- test/system_test.rb
|
159
|
+
- test/test_helper.rb
|