autoforme 1.11.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +16 -0
- data/MIT-LICENSE +1 -1
- data/README.rdoc +8 -10
- data/autoforme.js +97 -56
- data/lib/autoforme/action.rb +21 -21
- data/lib/autoforme/frameworks/rails.rb +5 -1
- data/lib/autoforme/frameworks/roda.rb +10 -4
- data/lib/autoforme/frameworks/sinatra.rb +8 -3
- data/lib/autoforme/models/sequel.rb +12 -2
- data/lib/autoforme/version.rb +1 -1
- data/lib/roda/plugins/autoforme.rb +1 -1
- metadata +6 -18
- data/Rakefile +0 -69
- data/spec/all.rb +0 -2
- data/spec/associations_spec.rb +0 -802
- data/spec/basic_spec.rb +0 -1168
- data/spec/mtm_spec.rb +0 -621
- data/spec/rails_spec_helper.rb +0 -108
- data/spec/roda_spec.rb +0 -72
- data/spec/roda_spec_helper.rb +0 -86
- data/spec/sequel_spec_helper.rb +0 -42
- data/spec/sinatra_spec_helper.rb +0 -54
- data/spec/spec_helper.rb +0 -78
- data/spec/unit_spec.rb +0 -511
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