piston 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ task :ruby_env do
2
+ RUBY_APP = if RUBY_PLATFORM =~ /java/
3
+ "jruby"
4
+ else
5
+ "ruby"
6
+ end unless defined? RUBY_APP
7
+ end
@@ -0,0 +1,6 @@
1
+ require "cucumber/rake/task"
2
+
3
+ Cucumber::Rake::Task.new do |t|
4
+ t.cucumber_opts = "--no-source"
5
+ t.feature_list = FileList["features/*.feature"]
6
+ end
@@ -0,0 +1,4 @@
1
+ desc "Refreshes the manifest: use this instead of manifest:refresh"
2
+ task :manifest do
3
+ sh "find . -type f | grep -v ./.git/ | grep -v -e '\.log$' | sed -e 's!^\./!!' > Manifest.txt"
4
+ end
@@ -0,0 +1,62 @@
1
+ require "rake/testtask"
2
+
3
+ Rake.application.instance_variable_get("@tasks").delete("test")
4
+ Rake::TestTask.new("test") do |t|
5
+ t.libs << "test"
6
+ t.test_files = FileList['test/**/test_*.rb']
7
+ t.verbose = true
8
+ t.warning = false
9
+ end
10
+
11
+ namespace :test do
12
+ Rake::TestTask.new("units") do |t|
13
+ t.libs << "test"
14
+ t.test_files = FileList['test/unit/**/test_*.rb']
15
+ t.verbose = true
16
+ t.warning = false
17
+ end
18
+
19
+ Rake::TestTask.new("recent") do |t|
20
+ t.libs << "test"
21
+ t.verbose = true
22
+ t.warning = false
23
+
24
+ # 10 minutes ago
25
+ cutoff_at = Time.now - 10 * 60
26
+
27
+ t.test_files = FileList["test/unit/**/test_*.rb"].select do |path|
28
+ File.mtime(path) > cutoff_at
29
+ end
30
+ end
31
+
32
+ desc "Prepares an SVN and Git repository for manual testing"
33
+ task :prep do
34
+ require "pathname"
35
+ PISTON_ROOT = Pathname.new(File.expand_path(Dir.pwd))
36
+ MANUAL_ROOT = PISTON_ROOT + "tmp/manual"
37
+ rm_rf MANUAL_ROOT; mkdir MANUAL_ROOT
38
+ REPOS_ROOT = MANUAL_ROOT + "repos"
39
+ REPOS_URL = "file://#{REPOS_ROOT}"
40
+ WC_ROOT = MANUAL_ROOT + "wc"
41
+
42
+ sh "svnadmin create #{REPOS_ROOT}"
43
+ sh "svn checkout #{REPOS_URL} #{WC_ROOT}"
44
+ Dir.chdir(WC_ROOT) do
45
+ sh "svn mkdir project plugins plugins/libcalc plugins/libpower"
46
+ Dir.chdir("plugins/libcalc") do
47
+ File.open("README", "w") {|io| io.puts "libcalc\n-------\n\nThis is libcalc\n"}
48
+ File.open("libcalc.rb", "w") {|io| io.puts "# libcaclc.rb\n# Ensure this is powerful enough\n"}
49
+ end
50
+ Dir.chdir("plugins/libpower") do
51
+ File.open("README", "w") {|io| io.puts "libpower\n-------\n\nThis is libpower\n"}
52
+ end
53
+ sh "svn add plugins/libcalc/README plugins/libcalc/libcalc.rb plugins/libpower/README"
54
+ sh "svn commit -m 'Initial revision'"
55
+ sh "ruby -I#{PISTON_ROOT}/lib #{PISTON_ROOT}/bin/piston import #{REPOS_URL}"
56
+ Dir.chdir("plugins/libcalc") do
57
+ File.open("libcalc.rb", "w") {|io| io.puts "# libcalc.rb\n# Ensure this is powerful enough\n\nclass Libcalc\nend\n"}
58
+ end
59
+ sh "svn commit -m 'Implement libcalc'"
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,20 @@
1
+ namespace :website do
2
+ desc "Publishes the gh-pages branch to RubyForge"
3
+ task :publish do
4
+ repos = Dir.pwd
5
+ sh "rm -rf $TMPDIR/piston"
6
+ sh "mkdir $TMPDIR/piston"
7
+ begin
8
+ Dir.chdir(ENV["TMPDIR"] + "/piston") do
9
+ sh "git clone #{repos}"
10
+ Dir.chdir("piston") do
11
+ sh "git checkout origin/gh-pages"
12
+ sh "jekyll"
13
+ sh "rsync -avz --delete --exclude='*.psd' _site/ rubyforge.org:/var/www/gforge-projects/piston"
14
+ end
15
+ end
16
+ ensure
17
+ sh "rm -rf $TMPDIR/piston"
18
+ end
19
+ end
20
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piston
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francois Beausoleil
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-07 00:00:00 -04:00
12
+ date: 2009-07-17 00:00:00 -04:00
13
13
  default_executable: piston
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -61,76 +61,86 @@ extensions: []
61
61
  extra_rdoc_files:
62
62
  - README.txt
63
63
  files:
64
+ - .gitignore
64
65
  - History.txt
65
66
  - License.txt
66
67
  - Manifest.txt
67
68
  - README.txt
69
+ - Rakefile
70
+ - TODO
68
71
  - VERSION.yml
69
72
  - bin/piston
70
- - lib/piston
73
+ - features/import_to_git.feature
74
+ - features/import_to_svn.feature
75
+ - features/step_definitions/repository.rb
76
+ - features/support/env.rb
77
+ - features/support/svn.rb
78
+ - features/update_to_git.feature
79
+ - features/update_to_svn.feature
80
+ - lib/piston.rb
71
81
  - lib/piston/cli.rb
72
- - lib/piston/commands
82
+ - lib/piston/commands.rb
73
83
  - lib/piston/commands/base.rb
74
84
  - lib/piston/commands/convert.rb
75
85
  - lib/piston/commands/diff.rb
76
86
  - lib/piston/commands/import.rb
77
87
  - lib/piston/commands/info.rb
88
+ - lib/piston/commands/lock.rb
78
89
  - lib/piston/commands/lock_unlock.rb
79
90
  - lib/piston/commands/status.rb
91
+ - lib/piston/commands/unlock.rb
80
92
  - lib/piston/commands/update.rb
81
93
  - lib/piston/commands/upgrade.rb
82
- - lib/piston/commands.rb
83
- - lib/piston/git
94
+ - lib/piston/git.rb
84
95
  - lib/piston/git/client.rb
85
96
  - lib/piston/git/commit.rb
86
97
  - lib/piston/git/repository.rb
87
98
  - lib/piston/git/working_copy.rb
88
- - lib/piston/git.rb
89
99
  - lib/piston/repository.rb
90
100
  - lib/piston/revision.rb
91
- - lib/piston/svn
101
+ - lib/piston/svn.rb
92
102
  - lib/piston/svn/client.rb
93
103
  - lib/piston/svn/repository.rb
94
104
  - lib/piston/svn/revision.rb
95
105
  - lib/piston/svn/working_copy.rb
96
- - lib/piston/svn.rb
97
106
  - lib/piston/version.rb
98
107
  - lib/piston/working_copy.rb
99
- - lib/piston.rb
100
108
  - lib/subclass_responsibility_error.rb
109
+ - log/.gitignore
110
+ - piston.gemspec
111
+ - script/destroy
112
+ - script/generate
113
+ - script/txt2html
114
+ - setup.rb
115
+ - tasks/environment.rake
116
+ - tasks/features.rake
117
+ - tasks/manifest.rake
118
+ - tasks/test.rake
119
+ - tasks/website.rake
101
120
  - test/integration_helpers.rb
102
121
  - test/spec_suite.rb
103
122
  - test/test_helper.rb
104
- - test/unit
105
- - test/unit/git
106
- - test/unit/git/commit
107
123
  - test/unit/git/commit/test_checkout.rb
108
124
  - test/unit/git/commit/test_each.rb
109
125
  - test/unit/git/commit/test_rememberance.rb
110
126
  - test/unit/git/commit/test_validation.rb
111
- - test/unit/git/repository
112
127
  - test/unit/git/repository/test_at.rb
113
128
  - test/unit/git/repository/test_basename.rb
114
129
  - test/unit/git/repository/test_branchanme.rb
115
130
  - test/unit/git/repository/test_guessing.rb
116
- - test/unit/git/working_copy
117
131
  - test/unit/git/working_copy/test_copying.rb
118
132
  - test/unit/git/working_copy/test_creation.rb
119
133
  - test/unit/git/working_copy/test_existence.rb
120
134
  - test/unit/git/working_copy/test_finalization.rb
121
135
  - test/unit/git/working_copy/test_guessing.rb
122
136
  - test/unit/git/working_copy/test_rememberance.rb
123
- - test/unit/svn
124
- - test/unit/svn/repository
125
137
  - test/unit/svn/repository/test_at.rb
126
138
  - test/unit/svn/repository/test_basename.rb
127
139
  - test/unit/svn/repository/test_guessing.rb
128
- - test/unit/svn/revision
129
140
  - test/unit/svn/revision/test_checkout.rb
130
141
  - test/unit/svn/revision/test_each.rb
131
142
  - test/unit/svn/revision/test_rememberance.rb
132
143
  - test/unit/svn/revision/test_validation.rb
133
- - test/unit/svn/working_copy
134
144
  - test/unit/svn/working_copy/test_copying.rb
135
145
  - test/unit/svn/working_copy/test_creation.rb
136
146
  - test/unit/svn/working_copy/test_existence.rb
@@ -142,16 +152,17 @@ files:
142
152
  - test/unit/test_lock_unlock.rb
143
153
  - test/unit/test_repository.rb
144
154
  - test/unit/test_revision.rb
145
- - test/unit/working_copy
146
155
  - test/unit/working_copy/test_guessing.rb
147
156
  - test/unit/working_copy/test_info.rb
148
157
  - test/unit/working_copy/test_rememberance.rb
149
158
  - test/unit/working_copy/test_validate.rb
150
- has_rdoc: true
159
+ - tmp/.gitignore
160
+ has_rdoc: false
151
161
  homepage: http://francois.github.com/piston
162
+ licenses: []
163
+
152
164
  post_install_message:
153
165
  rdoc_options:
154
- - --inline-source
155
166
  - --charset=UTF-8
156
167
  require_paths:
157
168
  - lib
@@ -170,9 +181,47 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
181
  requirements: []
171
182
 
172
183
  rubyforge_project: piston
173
- rubygems_version: 1.3.1
184
+ rubygems_version: 1.3.2
174
185
  signing_key:
175
- specification_version: 2
186
+ specification_version: 3
176
187
  summary: Ease your vendor branch management worries
177
- test_files: []
178
-
188
+ test_files:
189
+ - test/integration_helpers.rb
190
+ - test/spec_suite.rb
191
+ - test/test_helper.rb
192
+ - test/unit/git/commit/test_checkout.rb
193
+ - test/unit/git/commit/test_each.rb
194
+ - test/unit/git/commit/test_rememberance.rb
195
+ - test/unit/git/commit/test_validation.rb
196
+ - test/unit/git/repository/test_at.rb
197
+ - test/unit/git/repository/test_basename.rb
198
+ - test/unit/git/repository/test_branchanme.rb
199
+ - test/unit/git/repository/test_guessing.rb
200
+ - test/unit/git/working_copy/test_copying.rb
201
+ - test/unit/git/working_copy/test_creation.rb
202
+ - test/unit/git/working_copy/test_existence.rb
203
+ - test/unit/git/working_copy/test_finalization.rb
204
+ - test/unit/git/working_copy/test_guessing.rb
205
+ - test/unit/git/working_copy/test_rememberance.rb
206
+ - test/unit/svn/repository/test_at.rb
207
+ - test/unit/svn/repository/test_basename.rb
208
+ - test/unit/svn/repository/test_guessing.rb
209
+ - test/unit/svn/revision/test_checkout.rb
210
+ - test/unit/svn/revision/test_each.rb
211
+ - test/unit/svn/revision/test_rememberance.rb
212
+ - test/unit/svn/revision/test_validation.rb
213
+ - test/unit/svn/working_copy/test_copying.rb
214
+ - test/unit/svn/working_copy/test_creation.rb
215
+ - test/unit/svn/working_copy/test_existence.rb
216
+ - test/unit/svn/working_copy/test_externals.rb
217
+ - test/unit/svn/working_copy/test_finalization.rb
218
+ - test/unit/svn/working_copy/test_guessing.rb
219
+ - test/unit/svn/working_copy/test_rememberance.rb
220
+ - test/unit/test_info.rb
221
+ - test/unit/test_lock_unlock.rb
222
+ - test/unit/test_repository.rb
223
+ - test/unit/test_revision.rb
224
+ - test/unit/working_copy/test_guessing.rb
225
+ - test/unit/working_copy/test_info.rb
226
+ - test/unit/working_copy/test_rememberance.rb
227
+ - test/unit/working_copy/test_validate.rb