rspec-apigen 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Rakefile +26 -0
- data/lib/rspec-apigen/version.rb +1 -1
- data/rspec-apigen.gemspec +20 -0
- metadata +5 -2
data/Gemfile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
gemspec
|
data/Rakefile
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
|
2
|
+
|
3
|
+
require "rspec-apigen/version"
|
4
|
+
|
5
|
+
|
6
|
+
desc "clean all, delete all files that are not in git"
|
7
|
+
task :clean_all do
|
8
|
+
|
9
|
+
system "git clean -df"
|
10
|
+
end
|
11
|
+
|
12
|
+
desc "create the gemspec"
|
13
|
+
task :build => :clean_all do
|
14
|
+
system "gem build rspec-apigen.gemspec"
|
15
|
+
end
|
16
|
+
|
17
|
+
desc "release gem to gemcutter"
|
18
|
+
task :release => :build do
|
19
|
+
assert_committed
|
20
|
+
system "gem push rspec-apigen-#{RSpec::ApiGen::VERSION}.gem"
|
21
|
+
end
|
22
|
+
|
23
|
+
def assert_committed
|
24
|
+
status = %x{git status}
|
25
|
+
fail("Can't release gem unless everything is committed") unless status =~ /nothing to commit \(working directory clean\)|nothing added to commit but untracked files present/
|
26
|
+
end
|
data/lib/rspec-apigen/version.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
lib = File.expand_path('../lib/', __FILE__)
|
2
|
+
$:.unshift lib unless $:.include?(lib)
|
3
|
+
|
4
|
+
require 'rspec-apigen/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "rspec-apigen"
|
8
|
+
s.version = RSpec::ApiGen::VERSION
|
9
|
+
s.platform = Gem::Platform::RUBY
|
10
|
+
s.authors = ["Andreas Ronge"]
|
11
|
+
s.email = ["andreas.ronge@gmail.com"]
|
12
|
+
s.homepage = "http://github.com/andreasronge/rspec-apigen"
|
13
|
+
s.summary = "A plugin for RSpec for generating an API documentation"
|
14
|
+
s.description = "Write your API documentation using a custom RSpec DSL instead of using RDoc"
|
15
|
+
s.required_rubygems_version = ">= 1.3.6"
|
16
|
+
s.add_runtime_dependency "rspec", ">= 2.0.0.beta.20"
|
17
|
+
s.rubyforge_project = 'rspec-apigen'
|
18
|
+
s.files = Dir.glob("{bin,lib}/**/*") + %w(README.rdoc Rakefile rspec-apigen.gemspec Gemfile)
|
19
|
+
s.require_path = 'lib'
|
20
|
+
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Andreas Ronge
|
@@ -54,6 +54,9 @@ files:
|
|
54
54
|
- lib/rspec-apigen/fixture.rb
|
55
55
|
- lib/rspec-apigen/version.rb
|
56
56
|
- README.rdoc
|
57
|
+
- Rakefile
|
58
|
+
- rspec-apigen.gemspec
|
59
|
+
- Gemfile
|
57
60
|
has_rdoc: true
|
58
61
|
homepage: http://github.com/andreasronge/rspec-apigen
|
59
62
|
licenses: []
|