autoforme 1.11.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile DELETED
@@ -1,69 +0,0 @@
1
- require "rake"
2
- require "rake/clean"
3
-
4
- CLEAN.include ["autoforme-*.gem", "rdoc", "coverage"]
5
-
6
- desc "Build autoforme gem"
7
- task :package=>[:clean] do |p|
8
- sh %{#{FileUtils::RUBY} -S gem build autoforme.gemspec}
9
- end
10
-
11
- ### Specs
12
-
13
- spec = proc do |env|
14
- env.each{|k,v| ENV[k] = v}
15
- sh "#{FileUtils::RUBY} spec/all.rb"
16
- env.each{|k,v| ENV.delete(k)}
17
- end
18
- task :default => :roda_spec
19
-
20
- desc "Run specs for all frameworks"
21
- spec_tasks = [:roda_spec, :sinatra_spec]
22
- if RUBY_VERSION >= '1.9'
23
- spec_tasks << :rails_spec
24
- end
25
- task :spec => spec_tasks
26
-
27
- %w'roda sinatra rails'.each do |framework|
28
- desc "Run specs with for #{framework} with coverage"
29
- task "#{framework}_spec" do
30
- spec.call('FRAMEWORK'=>framework)
31
- end
32
-
33
- desc "Run specs with coverage for #{framework}"
34
- task "#{framework}_spec_cov" do
35
- spec.call('FRAMEWORK'=>framework, 'COVERAGE'=>'1')
36
- end
37
-
38
- desc "Run specs with -w for #{framework}, some warnings filtered"
39
- task "#{framework}_spec_w" do
40
- spec.call('FRAMEWORK'=>framework, 'RUBYOPT'=>'-w', 'WARNING'=>'1')
41
- end
42
- end
43
-
44
- ### RDoc
45
-
46
- RDOC_DEFAULT_OPTS = ["--quiet", "--line-numbers", "--inline-source", '--title', 'AutoForme: Web Administrative Console for Sinatra/Rails and Sequel']
47
-
48
- begin
49
- gem 'hanna-nouveau'
50
- RDOC_DEFAULT_OPTS.concat(['-f', 'hanna'])
51
- rescue Gem::LoadError
52
- end
53
-
54
- rdoc_task_class = begin
55
- require "rdoc/task"
56
- RDoc::Task
57
- rescue LoadError
58
- require "rake/rdoctask"
59
- Rake::RDocTask
60
- end
61
-
62
- RDOC_OPTS = RDOC_DEFAULT_OPTS + ['--main', 'README.rdoc']
63
-
64
- rdoc_task_class.new do |rdoc|
65
- rdoc.rdoc_dir = "rdoc"
66
- rdoc.options += RDOC_OPTS
67
- rdoc.rdoc_files.add %w"README.rdoc CHANGELOG MIT-LICENSE lib/**/*.rb"
68
- end
69
-
data/spec/all.rb DELETED
@@ -1,2 +0,0 @@
1
- puts "Running specs with #{ENV['FRAMEWORK']||'roda'} framework"
2
- Dir.new(File.dirname(__FILE__)).each{|f| require_relative f if f.end_with?('_spec.rb')}