git-topic 0.1.6.4 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,121 @@
1
+ require 'spec_helper'
2
+
3
+
4
+ describe GitTopic do
5
+
6
+ describe "#work_on" do
7
+
8
+ share_examples_for "#work_on general cases" do
9
+
10
+ it "
11
+ should trim namespaces from args and output a warning
12
+ ".oneline do
13
+
14
+ git_branch.should_not == "wip/#{@user}/topic"
15
+ GitTopic.work_on "wip/#{@user}/topic"
16
+ git_branch.should == "wip/#{@user}/topic"
17
+ end
18
+
19
+ it "should trim partial namespaces (with implicit ‘user’)" do
20
+ git_branch.should_not == "wip/#{@user}/topic"
21
+ GitTopic.work_on "wip/topic"
22
+ git_branch.should == "wip/#{@user}/topic"
23
+ end
24
+
25
+ end
26
+
27
+ describe "in fresh" do
28
+ before( :each ) { use_repo( 'fresh' )}
29
+ after( :each ) { Dir.chdir( '..' )}
30
+
31
+ it_should_behave_like "#work_on general cases"
32
+
33
+ it "
34
+ should create (and switch to) a new branch with a name that matches the
35
+ given topic, in the wip namespace. A remote tracking branch should also
36
+ be set up.
37
+ ".oneline do
38
+
39
+ GitTopic.work_on( 'topic' )
40
+ git_branch.should == "wip/#{@user}/topic"
41
+ git_branch_remote.should == 'origin'
42
+ git_branch_merge.should == "refs/heads/wip/#{@user}/topic"
43
+ end
44
+
45
+ it "should fail if no topic is given" do
46
+ lambda { GitTopic.work_on( nil )}.should raise_error
47
+ end
48
+
49
+ it "should provide feedback to the user" do
50
+ GitTopic.work_on( 'topic' )
51
+ $?.success?.should == true
52
+ @output.should_not be_nil
53
+ @output.should_not be_empty
54
+ end
55
+
56
+ end
57
+
58
+ describe "in in-progress" do
59
+
60
+ before( :each ) { use_repo( 'in-progress' )}
61
+ after( :each ) { Dir.chdir( '..' )}
62
+
63
+ it_should_behave_like "#work_on general cases"
64
+
65
+ it "should switch to (rather than create) an existing topic branch" do
66
+ git_branches.should include( "wip/#{@user}/zombie-basic" )
67
+ lambda{ GitTopic.work_on 'zombie-basic' }.should_not raise_error
68
+
69
+ git_branch.should == "wip/#{@user}/zombie-basic"
70
+ end
71
+
72
+ it "should accept upstream as an argument" do
73
+ git_remote_branches.should include( "review/#{@user}/pirates" )
74
+ lambda do
75
+ GitTopic.work_on 'pirates-etc',
76
+ :upstream => "origin/review/#{@user}/pirates"
77
+ end.should_not raise_error
78
+
79
+ git_branch.should == "wip/#{@user}/pirates-etc"
80
+ git_head.should == 'c0838ed2ee8f2e83c8bda859fc5e332b92f0a5a3'
81
+ end
82
+
83
+ it "
84
+ should use (and then destroy) the rejected branch for the topic, if one
85
+ exists
86
+ ".oneline do
87
+
88
+ git_remote_branches.should include( "rejected/#{@user}/krakens" )
89
+ GitTopic.work_on 'krakens'
90
+ git_branch.should == "wip/#{@user}/krakens"
91
+ git_remote_branches.should_not include( "rejected/#{@user}/krakens" )
92
+ git_remote_branches.should include( "wip/#{@user}/krakens" )
93
+ git_head.should == '44ffd9c9c8b52b201659e3ad318cdad6ec836b46'
94
+ end
95
+
96
+ it "
97
+ should report the presence of comments to the user, when the topic has
98
+ been rejected.
99
+ ".oneline do
100
+
101
+ git_remote_branches.should include( "rejected/#{@user}/krakens" )
102
+ GitTopic.work_on 'krakens'
103
+ @output.should =~ /comments/
104
+ end
105
+
106
+ it "
107
+ should use (and then destroy) the review branch for the topic, if one
108
+ exists
109
+ ".oneline do
110
+
111
+ git_remote_branches.should include( "rejected/#{@user}/krakens" )
112
+ GitTopic.work_on 'krakens'
113
+ git_branch.should == "wip/#{@user}/krakens"
114
+ git_remote_branches.should_not include( "rejected/#{@user}/krakens" )
115
+ git_remote_branches.should include( "wip/#{@user}/krakens" )
116
+ git_head.should == '44ffd9c9c8b52b201659e3ad318cdad6ec836b46'
117
+ end
118
+
119
+ end
120
+ end
121
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,12 @@
1
1
  # encoding: utf-8
2
+
3
+ require 'fileutils'
4
+
2
5
  require 'git_topic'
3
6
 
4
7
 
8
+ # Testing-specific monkeypatching # {{{
9
+
5
10
  # Disable caching on GitTopic for specs since we're calling the methods directly
6
11
  # rather than assuming atmoic invocations.
7
12
  class << GitTopic
@@ -24,6 +29,14 @@ class << GitTopic
24
29
  end
25
30
  end
26
31
  alias_method_chain :git, :implicit_capture
32
+
33
+ def invoke_git_editor( file )
34
+ raise "
35
+ invoke_git_editor invoked with (#{file}). If you expect this method to be
36
+ called, mock or stub it.
37
+ ".oneline
38
+ end
39
+
27
40
  end
28
41
 
29
42
 
@@ -52,3 +65,126 @@ class Object
52
65
  debugger
53
66
  end
54
67
  end
68
+
69
+ # }}}
70
+
71
+
72
+ Rspec.configure do |c|
73
+
74
+ c.before( :all ) do
75
+ @starting_dir = Dir.pwd
76
+ @user = ENV['USER'] || `whoami`
77
+ end
78
+
79
+ c.before( :each ) do
80
+ # setup the directories
81
+ FileUtils.rm_rf './tmp'
82
+ FileUtils.mkdir './tmp'
83
+
84
+ # Copy our repos into tmp
85
+ %w(fresh in-progress).each do |d|
86
+ FileUtils.mkdir "./tmp/#{d}"
87
+ FileUtils.cp_r "spec/template/#{d}", "./tmp/#{d}/.git"
88
+ end
89
+ FileUtils.cp_r "spec/template/origin", './tmp'
90
+ FileUtils.cp_r "spec/template/origin-fresh", './tmp'
91
+
92
+ %w(origin origin-fresh fresh in-progress).each do |repo|
93
+ # set template branches to their proper name (i.e. matching @user)
94
+ Dir.chdir "./tmp/#{repo}"
95
+ git_branches.each do |orig_name|
96
+ new_name = orig_name.gsub( 'USER', @user )
97
+ system(
98
+ "git branch -m #{orig_name} #{new_name}"
99
+ ) unless orig_name == new_name
100
+ system "git fetch --prune > /dev/null 2> /dev/null"
101
+ end
102
+ if File.exists? ".git/refs/notes/reviews/USER"
103
+ FileUtils.mv ".git/refs/notes/reviews/USER",
104
+ ".git/refs/notes/reviews/#{@user}"
105
+ end
106
+ Dir.chdir @starting_dir
107
+ end
108
+ Dir.chdir './tmp'
109
+
110
+ # capture output
111
+ @output = ''
112
+ @err = ''
113
+ $stdout.stub!( :write ) { |*args| @output.<<( *args )}
114
+ $stderr.stub!( :write ) { |*args| @err.<<( *args )}
115
+ end
116
+
117
+ c.after( :each ) { Dir.chdir @starting_dir }
118
+ end
119
+
120
+
121
+ # helpers # {{{
122
+
123
+ def use_repo( repo )
124
+ Dir.chdir( repo )
125
+ # Exit if e.g. GIT_DIR is set
126
+ raise "Spec error" unless `git rev-parse --git-dir`.chomp == '.git'
127
+ end
128
+
129
+
130
+ def git_branch
131
+ all_branches = `git branch --no-color`.split( "\n" )
132
+ current_branch = all_branches.find{|b| b =~ /^\*/}
133
+
134
+ current_branch[ 2..-1 ] unless current_branch.nil?
135
+ end
136
+
137
+ def git_head
138
+ `git rev-parse HEAD`.chomp
139
+ end
140
+
141
+ def git_origin_master
142
+ `git rev-parse origin/master`.chomp
143
+ end
144
+
145
+ def git_config( key )
146
+ `git config #{key}`.chomp
147
+ end
148
+
149
+ def git_branch_merge
150
+ git_config "branch.#{git_branch}.merge"
151
+ end
152
+
153
+ def git_branch_remote
154
+ git_config "branch.#{git_branch}.remote"
155
+ end
156
+
157
+ def git_branches
158
+ `git branch --no-color`.split( "\n" ).map do |bn|
159
+ bn.gsub /^\*?\s*/, ''
160
+ end
161
+ end
162
+
163
+ def git_remote_branches
164
+ `git branch -r --no-color`.split( "\n" ).map do |bn|
165
+ bn.gsub! %r{^\s*origin/}, ''
166
+ bn.gsub! %r{ ->.*$}, ''
167
+ bn
168
+ end
169
+ end
170
+
171
+ def git_notes_list( ref )
172
+ `git notes --ref #{ref}`.split( "\n" )
173
+ end
174
+
175
+ def git_notes_show( ref, commit='HEAD' )
176
+ `git notes --ref #{ref} show #{commit}`.chomp
177
+ end
178
+
179
+ def git_diff
180
+ `git diff --no-color`.chomp
181
+ end
182
+
183
+
184
+ def dirty_branch!
185
+ File.open( 'dirty', 'w' ){|f| f.puts "some content" }
186
+ system "git add -N dirty"
187
+ end
188
+
189
+ # }}}
190
+
metadata CHANGED
@@ -4,10 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
+ - 2
7
8
  - 1
8
- - 6
9
- - 4
10
- version: 0.1.6.4
9
+ version: 0.2.1
11
10
  platform: ruby
12
11
  authors:
13
12
  - David J. Hamilton
@@ -15,8 +14,8 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-07-21 00:00:00 -07:00
19
- default_executable: git-topic
17
+ date: 2010-07-23 00:00:00 -07:00
18
+ default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: activesupport
@@ -142,10 +141,11 @@ dependencies:
142
141
  type: :development
143
142
  prerelease: false
144
143
  version_requirements: *id009
145
- description: "\n gem command around reviewed topic branches. Supports workflow of the form:\n\n # alexander:\n git work-on <topic>\n git done\n\n # bismarck:\n git status # notice a review branch\n git review <topic>\n # happy, merge into master, push and cleanup\n git accept\n\n git review <topic2>\n # unhappy\n git reject\n\n # alexander:\n git status # notice rejected topic\n git work-on <topic>\n\n see README.rdoc for more (any) details.\n "
144
+ description: "\n gem command around reviewed topic branches. Supports workflow of the form:\n\n # alexander:\n git work-on <topic>\n git done\n\n # bismarck:\n git status # notice a review branch\n git review <topic>\n # happy, merge into master, push and cleanup\n git accept\n\n git review <topic2>\n # unhappy\n git reject\n\n # alexander:\n git status # notice rejected topic\n git work-on <topic>\n\n see README.rdoc for more (any) details.\n\n\n To make use of bash autocompletion, you must do the following:\n\n 1. Make sure you source share/completion.bash before you source git's completion.\n 2. Optionally, copy git-topic-completion to your gem's bin directory.\n This is to sidestep ruby issue 3465 which makes loading gems far too\n slow for autocompletion.\n "
146
145
  email: git-topic@hjdivad.com
147
146
  executables:
148
147
  - git-topic
148
+ - git-topic-completion
149
149
  extensions: []
150
150
 
151
151
  extra_rdoc_files:
@@ -159,6 +159,8 @@ files:
159
159
  - .rvmrc
160
160
  - .vimproject
161
161
  - .vimrc
162
+ - .vimspell.utf8.add
163
+ - .vimspell.utf8.add.spl
162
164
  - Gemfile
163
165
  - Gemfile.lock
164
166
  - History.txt
@@ -167,16 +169,25 @@ files:
167
169
  - Rakefile
168
170
  - VERSION.yml
169
171
  - autotest/discover.rb
170
- - bin/git-topic
171
- - git-topic
172
- - git-topic.gemspec
173
172
  - lib/core_ext.rb
174
173
  - lib/git_topic.rb
175
174
  - lib/git_topic/cli.rb
175
+ - lib/git_topic/comment.rb
176
176
  - lib/git_topic/git.rb
177
177
  - lib/git_topic/naming.rb
178
178
  - lib/tasks/annotations.rake
179
- - spec/git_topic_spec.rb
179
+ - share/completion.bash
180
+ - spec/bash_completion.rb
181
+ - spec/comment_spec.rb
182
+ - spec/git_topic_accept_spec.rb
183
+ - spec/git_topic_comment_spec.rb
184
+ - spec/git_topic_comments_spec.rb
185
+ - spec/git_topic_done_spec.rb
186
+ - spec/git_topic_install_aliases_spec.rb
187
+ - spec/git_topic_reject_spec.rb
188
+ - spec/git_topic_review_spec.rb
189
+ - spec/git_topic_status_spec.rb
190
+ - spec/git_topic_work_on_spec.rb
180
191
  - spec/spec_helper.rb
181
192
  - spec/template/origin-fresh/HEAD
182
193
  - spec/template/origin-fresh/RENAMED-REF
@@ -250,6 +261,8 @@ files:
250
261
  - spec/template/origin/refs/heads/wip/USER/pirates-advanced
251
262
  - spec/template/origin/refs/heads/wip/USER/zombie-basic
252
263
  - spec/template/origin/refs/heads/wip/prevent-ff
264
+ - bin/git-topic
265
+ - bin/git-topic-completion
253
266
  has_rdoc: true
254
267
  homepage: http://github.com/hjdivad/git-topic
255
268
  licenses: []
@@ -283,5 +296,15 @@ signing_key:
283
296
  specification_version: 3
284
297
  summary: git command around reviewed topic branches
285
298
  test_files:
299
+ - spec/git_topic_reject_spec.rb
300
+ - spec/comment_spec.rb
301
+ - spec/git_topic_comment_spec.rb
286
302
  - spec/spec_helper.rb
287
- - spec/git_topic_spec.rb
303
+ - spec/git_topic_work_on_spec.rb
304
+ - spec/git_topic_done_spec.rb
305
+ - spec/bash_completion.rb
306
+ - spec/git_topic_comments_spec.rb
307
+ - spec/git_topic_install_aliases_spec.rb
308
+ - spec/git_topic_status_spec.rb
309
+ - spec/git_topic_accept_spec.rb
310
+ - spec/git_topic_review_spec.rb
data/git-topic DELETED
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # encoding: utf-8
3
-
4
-
5
- # Do not run this file. It is for developer testing only. Use bin/git-topic.
6
-
7
- $:.unshift "#{File.dirname(__FILE__)}/lib"
8
- require 'git_topic'
9
- require 'git_topic/cli'
10
-
11
- require 'ruby-debug'
12
-
13
- GitTopic::run
data/git-topic.gemspec DELETED
@@ -1,190 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{git-topic}
8
- s.version = "0.1.6.4"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["David J. Hamilton"]
12
- s.date = %q{2010-07-21}
13
- s.default_executable = %q{git-topic}
14
- s.description = %q{
15
- gem command around reviewed topic branches. Supports workflow of the form:
16
-
17
- # alexander:
18
- git work-on <topic>
19
- git done
20
-
21
- # bismarck:
22
- git status # notice a review branch
23
- git review <topic>
24
- # happy, merge into master, push and cleanup
25
- git accept
26
-
27
- git review <topic2>
28
- # unhappy
29
- git reject
30
-
31
- # alexander:
32
- git status # notice rejected topic
33
- git work-on <topic>
34
-
35
- see README.rdoc for more (any) details.
36
- }
37
- s.email = %q{git-topic@hjdivad.com}
38
- s.executables = ["git-topic"]
39
- s.extra_rdoc_files = [
40
- "LICENSE",
41
- "README.rdoc"
42
- ]
43
- s.files = [
44
- ".autotest",
45
- ".gitignore",
46
- ".gvimrc",
47
- ".rspec",
48
- ".rvmrc",
49
- ".vimproject",
50
- ".vimrc",
51
- "Gemfile",
52
- "Gemfile.lock",
53
- "History.txt",
54
- "LICENSE",
55
- "README.rdoc",
56
- "Rakefile",
57
- "VERSION.yml",
58
- "autotest/discover.rb",
59
- "bin/git-topic",
60
- "git-topic",
61
- "git-topic.gemspec",
62
- "lib/core_ext.rb",
63
- "lib/git_topic.rb",
64
- "lib/git_topic/cli.rb",
65
- "lib/git_topic/git.rb",
66
- "lib/git_topic/naming.rb",
67
- "lib/tasks/annotations.rake",
68
- "spec/git_topic_spec.rb",
69
- "spec/spec_helper.rb",
70
- "spec/template/origin-fresh/HEAD",
71
- "spec/template/origin-fresh/RENAMED-REF",
72
- "spec/template/origin-fresh/config",
73
- "spec/template/origin-fresh/description",
74
- "spec/template/origin-fresh/hooks/applypatch-msg.sample",
75
- "spec/template/origin-fresh/hooks/commit-msg.sample",
76
- "spec/template/origin-fresh/hooks/post-commit.sample",
77
- "spec/template/origin-fresh/hooks/post-receive.sample",
78
- "spec/template/origin-fresh/hooks/post-update.sample",
79
- "spec/template/origin-fresh/hooks/pre-applypatch.sample",
80
- "spec/template/origin-fresh/hooks/pre-commit.sample",
81
- "spec/template/origin-fresh/hooks/pre-rebase.sample",
82
- "spec/template/origin-fresh/hooks/prepare-commit-msg.sample",
83
- "spec/template/origin-fresh/hooks/update.sample",
84
- "spec/template/origin-fresh/info/exclude",
85
- "spec/template/origin-fresh/objects/0a/da6d051b94cd0df50f5a0b7229aec26f0d2cdf",
86
- "spec/template/origin-fresh/objects/0c/e06c616769768f09f5e629cfcc68eabe3dee81",
87
- "spec/template/origin-fresh/objects/20/049991cdafdce826f5a3c01e10ffa84d6997ec",
88
- "spec/template/origin-fresh/objects/33/1d827fd47fb234af54e3a4bbf8c6705e9116cc",
89
- "spec/template/origin-fresh/objects/41/51899b742fd6b1c873b177b9d13451682089bc",
90
- "spec/template/origin-fresh/objects/44/ffd9c9c8b52b201659e3ad318cdad6ec836b46",
91
- "spec/template/origin-fresh/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904",
92
- "spec/template/origin-fresh/objects/55/eeb01bdf874d1a35870bcf24a970c475c63344",
93
- "spec/template/origin-fresh/objects/8d/09f9b8d80ce282218125cb0cbf53cccf022203",
94
- "spec/template/origin-fresh/objects/b4/8e68d5cac189af36abe48e893d11c24b7b2a19",
95
- "spec/template/origin-fresh/objects/c0/838ed2ee8f2e83c8bda859fc5e332b92f0a5a3",
96
- "spec/template/origin-fresh/objects/cd/f7b9dbc4911a0d1404db54cde2ed448f6a6afd",
97
- "spec/template/origin-fresh/objects/d2/6b33daea1ed9823a189992bba38fbc913483c1",
98
- "spec/template/origin-fresh/objects/fe/4e254557e19f338f40ccfdc00a7517771db880",
99
- "spec/template/origin-fresh/refs/heads/master",
100
- "spec/template/origin-fresh/refs/heads/wip/USER/zombie-basic",
101
- "spec/template/origin/HEAD",
102
- "spec/template/origin/ORIG_HEAD",
103
- "spec/template/origin/RENAMED-REF",
104
- "spec/template/origin/config",
105
- "spec/template/origin/description",
106
- "spec/template/origin/hooks/applypatch-msg.sample",
107
- "spec/template/origin/hooks/commit-msg.sample",
108
- "spec/template/origin/hooks/post-commit.sample",
109
- "spec/template/origin/hooks/post-receive.sample",
110
- "spec/template/origin/hooks/post-update.sample",
111
- "spec/template/origin/hooks/pre-applypatch.sample",
112
- "spec/template/origin/hooks/pre-commit.sample",
113
- "spec/template/origin/hooks/pre-rebase.sample",
114
- "spec/template/origin/hooks/prepare-commit-msg.sample",
115
- "spec/template/origin/hooks/update.sample",
116
- "spec/template/origin/info/exclude",
117
- "spec/template/origin/objects/0a/da6d051b94cd0df50f5a0b7229aec26f0d2cdf",
118
- "spec/template/origin/objects/0c/e06c616769768f09f5e629cfcc68eabe3dee81",
119
- "spec/template/origin/objects/20/049991cdafdce826f5a3c01e10ffa84d6997ec",
120
- "spec/template/origin/objects/2d/a16986c7f742f808a3a3e68108bd2e4dae009d",
121
- "spec/template/origin/objects/33/1d827fd47fb234af54e3a4bbf8c6705e9116cc",
122
- "spec/template/origin/objects/41/51899b742fd6b1c873b177b9d13451682089bc",
123
- "spec/template/origin/objects/44/ffd9c9c8b52b201659e3ad318cdad6ec836b46",
124
- "spec/template/origin/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904",
125
- "spec/template/origin/objects/55/eeb01bdf874d1a35870bcf24a970c475c63344",
126
- "spec/template/origin/objects/65/3d7112dadcacaaae6390612eac58c234f92b18",
127
- "spec/template/origin/objects/8d/09f9b8d80ce282218125cb0cbf53cccf022203",
128
- "spec/template/origin/objects/b4/8e68d5cac189af36abe48e893d11c24b7b2a19",
129
- "spec/template/origin/objects/c0/838ed2ee8f2e83c8bda859fc5e332b92f0a5a3",
130
- "spec/template/origin/objects/cd/f7b9dbc4911a0d1404db54cde2ed448f6a6afd",
131
- "spec/template/origin/objects/d2/6b33daea1ed9823a189992bba38fbc913483c1",
132
- "spec/template/origin/objects/dd/26afde91bbae18e13e4df1cd1da56a75ccc665",
133
- "spec/template/origin/objects/fe/4e254557e19f338f40ccfdc00a7517771db880",
134
- "spec/template/origin/refs/heads/master",
135
- "spec/template/origin/refs/heads/rejected/USER/krakens",
136
- "spec/template/origin/refs/heads/review/USER/pirates",
137
- "spec/template/origin/refs/heads/review/user24601/ninja-basic",
138
- "spec/template/origin/refs/heads/review/user24601/zombie-basic",
139
- "spec/template/origin/refs/heads/wip/USER/pirates-advanced",
140
- "spec/template/origin/refs/heads/wip/USER/zombie-basic",
141
- "spec/template/origin/refs/heads/wip/prevent-ff"
142
- ]
143
- s.homepage = %q{http://github.com/hjdivad/git-topic}
144
- s.rdoc_options = ["--charset=UTF-8"]
145
- s.require_paths = ["lib"]
146
- s.rubygems_version = %q{1.3.7}
147
- s.summary = %q{git command around reviewed topic branches}
148
- s.test_files = [
149
- "spec/spec_helper.rb",
150
- "spec/git_topic_spec.rb"
151
- ]
152
-
153
- if s.respond_to? :specification_version then
154
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
155
- s.specification_version = 3
156
-
157
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
158
- s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0.beta4"])
159
- s.add_runtime_dependency(%q<trollop>, [">= 0"])
160
- s.add_development_dependency(%q<jeweler>, [">= 0"])
161
- s.add_development_dependency(%q<rake>, [">= 0"])
162
- s.add_development_dependency(%q<rspec>, [">= 2.0.0.beta.16"])
163
- s.add_development_dependency(%q<ZenTest>, [">= 0"])
164
- s.add_development_dependency(%q<yard>, [">= 0"])
165
- s.add_development_dependency(%q<gemcutter>, [">= 0"])
166
- s.add_development_dependency(%q<autotest-screen>, [">= 0"])
167
- else
168
- s.add_dependency(%q<activesupport>, [">= 3.0.0.beta4"])
169
- s.add_dependency(%q<trollop>, [">= 0"])
170
- s.add_dependency(%q<jeweler>, [">= 0"])
171
- s.add_dependency(%q<rake>, [">= 0"])
172
- s.add_dependency(%q<rspec>, [">= 2.0.0.beta.16"])
173
- s.add_dependency(%q<ZenTest>, [">= 0"])
174
- s.add_dependency(%q<yard>, [">= 0"])
175
- s.add_dependency(%q<gemcutter>, [">= 0"])
176
- s.add_dependency(%q<autotest-screen>, [">= 0"])
177
- end
178
- else
179
- s.add_dependency(%q<activesupport>, [">= 3.0.0.beta4"])
180
- s.add_dependency(%q<trollop>, [">= 0"])
181
- s.add_dependency(%q<jeweler>, [">= 0"])
182
- s.add_dependency(%q<rake>, [">= 0"])
183
- s.add_dependency(%q<rspec>, [">= 2.0.0.beta.16"])
184
- s.add_dependency(%q<ZenTest>, [">= 0"])
185
- s.add_dependency(%q<yard>, [">= 0"])
186
- s.add_dependency(%q<gemcutter>, [">= 0"])
187
- s.add_dependency(%q<autotest-screen>, [">= 0"])
188
- end
189
- end
190
-