bueller 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,15 +33,12 @@ class Bueller
33
33
  if run
34
34
  repo.checkout('master')
35
35
 
36
- if release_tagged?
37
- repo.push
38
- else
36
+ unless release_tagged?
39
37
  output.puts "Tagging #{release_tag}"
40
38
  repo.add_tag release_tag
41
-
42
- output.puts "Pushing #{release_tag} to origin"
43
- repo.push 'origin', release_tag
44
39
  end
40
+ output.puts "Pushing #{release_tag} to origin"
41
+ repo.push 'origin', release_tag
45
42
  else
46
43
  raise "Release cancelled"
47
44
  end
@@ -62,9 +59,9 @@ class Bueller
62
59
  def release_tagged?
63
60
  begin
64
61
  repo.tag(release_tag)
65
- false
66
- rescue
67
62
  true
63
+ rescue
64
+ false
68
65
  end
69
66
  end
70
67
  end
@@ -59,11 +59,11 @@ describe Bueller::Commands::GitTagRelease do
59
59
  describe "#release_tagged?" do
60
60
  it 'should be true if a tag exists' do
61
61
  command.repo.stub!(:tag).and_raise RuntimeError
62
- command.release_tagged?.should be_true
62
+ command.release_tagged?.should be_false
63
63
  end
64
64
  it 'should be false if no tag exists' do
65
65
  command.repo.stub!(:tag)
66
- command.release_tagged?.should be_false
66
+ command.release_tagged?.should be_true
67
67
  end
68
68
  end
69
69
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Derek Kastner
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-19 00:00:00 -05:00
17
+ date: 2011-01-21 00:00:00 -05:00
18
18
  default_executable: bueller
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -190,7 +190,6 @@ executables:
190
190
  extensions: []
191
191
 
192
192
  extra_rdoc_files:
193
- - ChangeLog.markdown
194
193
  - LICENSE
195
194
  - README.markdown
196
195
  files:
@@ -257,7 +256,6 @@ files:
257
256
  - lib/bueller/templates/.gitignore
258
257
  - lib/bueller/templates/.document
259
258
  - lib/bueller/templates/rspec/.rspec
260
- - ChangeLog.markdown
261
259
  - LICENSE
262
260
  - README.markdown
263
261
  - spec/bueller_spec.rb
@@ -314,7 +312,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
314
312
  requirements:
315
313
  - - ">="
316
314
  - !ruby/object:Gem::Version
317
- hash: -330140273
315
+ hash: -1018017907
318
316
  segments:
319
317
  - 0
320
318
  version: "0"
data/ChangeLog.markdown DELETED
@@ -1,141 +0,0 @@
1
- # bueller 1.4.0 2009-11-19
2
-
3
- * Generator now adds gemcutter support by default. Disable it with --no-gemcutter
4
- * Generator now creates a reek task that works with the latest reek. If you have a previously generated project using it, you may need to change the require line to: require 'reek/adapters/rake_task'
5
- * Generator now exits with the correct exit code
6
- * `rake install` no longer uses `sudo` to install. If your ruby configuration needs sudo to install, use `sudo rake install` instead.
7
- * `rake install` now correctly installs dependencies as well
8
- * `rake install` should correctly figure out which `gem` binary to invoke now
9
- * `rake build` now will regenerate the gemspec as well
10
- * `rake gemspec` now eliminates duplicates for gemspec.files, gemspec.rdoc_files, etc
11
- * `rake gemspec` now automatically populates gemspec.extensions with any extconf.rb files you have in `ext`
12
- * Releasing to Rubyforge is now deprecated in favor of Gemcutter.
13
-
14
- # bueller 1.3.0
15
-
16
- * Now supports an additional version type, build. This can be used to add a fourth segment of the version that's arbitrary. One example use is having prereleases.
17
- * Jeweler now lazily loads, to avoid causing side-effects when running other rake tasks
18
- * Version can now be set explicitly on the gemspec, rather than relying on a VERSION file
19
- * Rubyforge and Gemcutter support now hooks into `rake release`
20
- * `rake build` now uses an in-memory copy of the gemspec, rather than the filesystem persisted one
21
- * Rubyforge support no longer forces the uploading of documentation
22
- * Generator:
23
- * Allow arbitrary homepage and git remotes, to decouple a bit from GitHub
24
- * Support for the riot testing framework: http://github.com/thumblemonks/riot/
25
- * Support for test/spec
26
- * .gitignore now ignores emacs temporary files
27
- * rspec support now creates a spec.opts with support for color and other stuff
28
- * Updated minitest support (formally miniunit)
29
- * Improved support for autotest
30
-
31
- # bueller 1.2.0 2009-08-06
32
- * Generator now adds development dependencies appropriate to your testing framework
33
- * Added check_dependencies tasks for verifying gem dependencies are installed
34
- * Fixed typo in generated yard task
35
- * Fixed generator from having a lot of extra newlines
36
-
37
- # bueller 1.1.0 2009-08-05
38
-
39
- * Support for generating a project that uses yard instead of rdoc
40
- * Generated gemspec now includes comments about it being generated by bueller
41
- * Only use sudo for installing on non-windows platforms [#1]
42
- * Fixed rake release to be repeatable on the same version [#16]
43
- * Fixed rake rubyforge:setup to not create duplicate packages
44
- * Use a more recent version of ruby-git
45
- * Fixes various issues with reading values out of ~/.gitconfig [#26] [#21] [#19]
46
- * Experimenting with a rake task to check development time dependencies [#22]
47
- * Fixed generated rdoc task to load from VERSION instead of VERSION.yml
48
-
49
- # bueller 1.0.2 2009-07-29
50
-
51
- * Don't include git ignored files for default gemspec's files and test_files
52
- * Fixed rspec generator to allow specs to be run directly
53
- * Removed misleading docstring for version_required rake task [#17]
54
- * Includes some notes about contributed in generated README
55
- * Added support for generating a project to use reek and roodi
56
-
57
- # bueller 1.0.1 2009-05-15
58
-
59
- # bueller 0.11.1
60
-
61
- * Lots of internal refactorings to how project generation happens
62
- * Fixed missing dependency on rubyforge
63
- * Depend on a recent version of schacon-git which works on ruby 1.9
64
- * Updated cucumber support for 0.3.x
65
- * Tested on Ruby 1.9
66
-
67
- # bueller 0.11.0 2009-04-05
68
-
69
- * generator will respect JEWELER_OPTS, as a way to provide default options
70
- (pat-maddox)
71
- * Include 'examples' and 'rails' directories by default in gemspec files
72
- * generated gemspec now will only include files (not directories). also, they are listed one per line, and sorted.
73
- * Jeweler::Tasks's intializer has been improved:
74
- * You can now pass it an existing gemspec (othewise a new one will be created)
75
- * Jeweler sets its defaults before yielding the gemspec to you. This allows you to append to its defaults, so you aren't forced to entirely overwrite them just to add one value.
76
- * Managing a gemspec's files, test_files, and extra_rdoc_files is now more flexible. They are now wrapped in a FileList, so you can easily 'include' or 'exclude' patterns.
77
-
78
- # bueller 0.10.2 2009-03-26
79
-
80
- * 'rake install' now will 'rake build' first
81
- * Support for releasing to RubyForge, thanks to jtrupiano
82
- * Steps towards Ruby 1.9 support, thanks to rsanheim
83
-
84
- # bueller 0.9.1 2009-03-05
85
-
86
- * Tasks:
87
- * Fixed populating default spec's extra_rdoc_files
88
- * Removed redundant gem building/installing tasks. Use rake build and rake install
89
- * Generator:
90
- * Added support for micronaut
91
- * Generate nicer block variable names in Rakefile
92
- * Cucumber generation now places steps in features/step_features, to follow cucumber standards
93
-
94
- * shoulda and test/unit test_helpers no longer require mocha
95
- * Rakefile uses more readable block variable names
96
- * .gitignore now includes pkg and coverage directories
97
- * Avoid puts'ing in Rakefile when LoadError occurs. Instead, define a task that aborts with instructions to install.
98
- * Cucumber is now optional. Generate stories using --cucumber
99
- * Bacon's 'test' task is now 'spec'
100
- * Generate README.rdoc instead of just a plain text README
101
- * Updated year in README.rdoc and COPYRIGHT to be based on the current year instead of hardcoded
102
-
103
- # bueller 0.8.1 2009-02-03
104
-
105
- * Fixed minitest generator
106
-
107
- # bueller 0.8.0 2009-02-03
108
-
109
- * Generator:
110
- * Supports these new testing frameworks:
111
- * test/unit
112
- * minitest
113
- * rspec
114
- * Added support for cucumber
115
- * Creating a new gem is now more verbose, and will show files/directories created
116
- * Binaries will now be automatically detected in 'bin'
117
-
118
- # bueller 0.7.2 2009-01-29
119
-
120
- * Added rake task 'version:bump' which is shorthand for 'version:bump:patch'
121
- * Generated projects no longer assume RCov is installed.
122
-
123
- # bueller 0.7.1 2009-01-26
124
-
125
- * Fixed yaml not being required
126
- * Automatically add files in bin as executables in gemspec
127
-
128
- # bueller 0.7.0 2009-01-19
129
-
130
- * Added support to generator for specifying a description
131
- * Condensed README.markdown to be less novel-like
132
- * RDoc is now included in your gemspec
133
- * Rescue errors that raise in the generator, and display better error message, and exit with a non-zero exit status
134
-
135
- # bueller 0.6.5 2009-01-14
136
-
137
- * `bueller --create-repo foo` now enables gem creation in addition to creating the repository
138
-
139
- # bueller 0.6.4 2009-01-13
140
-
141
- * Added tasks `build` and `install` as shortcuts for `gem:build` and `gem:install`