jeffp-enumerated_attribute 0.1.7 → 0.2.0.2
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/.gitignore +8 -1
- data/README.rdoc +146 -32
- data/Rakefile +29 -14
- data/lib/enumerated_attribute.rb +0 -1
- data/lib/enumerated_attribute/attribute.rb +28 -26
- data/lib/enumerated_attribute/attribute/attribute_descriptor.rb +50 -0
- data/lib/enumerated_attribute/integrations/active_record.rb +6 -3
- data/lib/enumerated_attribute/integrations/object.rb +2 -1
- data/lib/enumerated_attribute/method_definition_dsl.rb +21 -11
- data/lib/enumerated_attribute/rails_helpers.rb +73 -0
- data/spec/active_record/active_record_spec.rb +49 -2
- data/spec/active_record/association_test_classes.rb +40 -0
- data/spec/active_record/associations_spec.rb +130 -0
- data/spec/active_record/test_in_memory.rb +40 -0
- data/spec/poro_spec.rb +32 -4
- data/spec/rails/README +243 -0
- data/spec/rails/Rakefile +10 -0
- data/spec/rails/app/controllers/application_controller.rb +10 -0
- data/spec/rails/app/controllers/form_test_controller.rb +38 -0
- data/spec/rails/app/helpers/application_helper.rb +3 -0
- data/spec/rails/app/helpers/form_test_helper.rb +2 -0
- data/spec/rails/app/models/user.rb +9 -0
- data/spec/rails/app/views/form_test/form.html.erb +1 -0
- data/spec/rails/app/views/form_test/form_for.html.erb +10 -0
- data/spec/rails/app/views/form_test/form_tag.html.erb +9 -0
- data/spec/rails/app/views/form_test/index.html.erb +6 -0
- data/spec/rails/app/views/layouts/application.html.erb +11 -0
- data/spec/rails/config/boot.rb +110 -0
- data/spec/rails/config/database.yml +22 -0
- data/spec/rails/config/environment.rb +45 -0
- data/spec/rails/config/environments/development.rb +17 -0
- data/spec/rails/config/environments/production.rb +28 -0
- data/spec/rails/config/environments/test.rb +28 -0
- data/spec/rails/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails/config/initializers/inflections.rb +10 -0
- data/spec/rails/config/initializers/mime_types.rb +5 -0
- data/spec/rails/config/initializers/new_rails_defaults.rb +19 -0
- data/spec/rails/config/initializers/session_store.rb +15 -0
- data/spec/rails/config/locales/en.yml +5 -0
- data/spec/rails/config/routes.rb +43 -0
- data/spec/rails/db/development.sqlite3 +0 -0
- data/spec/rails/db/migrate/20090804230221_create_sessions.rb +16 -0
- data/spec/rails/db/migrate/20090804230546_create_users.rb +21 -0
- data/spec/rails/db/schema.rb +35 -0
- data/spec/rails/db/test.sqlite3 +0 -0
- data/spec/rails/public/404.html +30 -0
- data/spec/rails/public/422.html +30 -0
- data/spec/rails/public/500.html +30 -0
- data/spec/rails/public/favicon.ico +0 -0
- data/spec/rails/public/images/rails.png +0 -0
- data/spec/rails/public/index.html +275 -0
- data/spec/rails/public/javascripts/application.js +2 -0
- data/spec/rails/public/javascripts/controls.js +963 -0
- data/spec/rails/public/javascripts/dragdrop.js +973 -0
- data/spec/rails/public/javascripts/effects.js +1128 -0
- data/spec/rails/public/javascripts/prototype.js +4320 -0
- data/spec/rails/public/robots.txt +5 -0
- data/spec/rails/public/stylesheets/scaffold.css +54 -0
- data/spec/rails/script/about +4 -0
- data/spec/rails/script/autospec +6 -0
- data/spec/rails/script/console +3 -0
- data/spec/rails/script/dbconsole +3 -0
- data/spec/rails/script/destroy +3 -0
- data/spec/rails/script/generate +3 -0
- data/spec/rails/script/performance/benchmarker +3 -0
- data/spec/rails/script/performance/profiler +3 -0
- data/spec/rails/script/plugin +3 -0
- data/spec/rails/script/runner +3 -0
- data/spec/rails/script/server +3 -0
- data/spec/rails/script/spec +10 -0
- data/spec/rails/script/spec_server +9 -0
- data/spec/rails/spec/controllers/form_test_controller_spec.rb +41 -0
- data/spec/rails/spec/integrations/enum_select_spec.rb +73 -0
- data/spec/rails/spec/matchers.rb +12 -0
- data/spec/rails/spec/rcov.opts +2 -0
- data/spec/rails/spec/spec.opts +4 -0
- data/spec/rails/spec/spec_helper.rb +38 -0
- data/spec/rails/spec/views/form_test/form.html.erb_spec.rb +12 -0
- data/spec/rails/spec/views/form_test/form_for.html.erb_spec.rb +12 -0
- data/spec/rails/spec/views/form_test/form_tag.html.erb_spec.rb +12 -0
- data/spec/rcov.opts +2 -0
- data/spec/spec.opts +4 -0
- data/spec/tractor.rb +4 -1
- metadata +103 -5
@@ -0,0 +1,54 @@
|
|
1
|
+
body { background-color: #fff; color: #333; }
|
2
|
+
|
3
|
+
body, p, ol, ul, td {
|
4
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
5
|
+
font-size: 13px;
|
6
|
+
line-height: 18px;
|
7
|
+
}
|
8
|
+
|
9
|
+
pre {
|
10
|
+
background-color: #eee;
|
11
|
+
padding: 10px;
|
12
|
+
font-size: 11px;
|
13
|
+
}
|
14
|
+
|
15
|
+
a { color: #000; }
|
16
|
+
a:visited { color: #666; }
|
17
|
+
a:hover { color: #fff; background-color:#000; }
|
18
|
+
|
19
|
+
.fieldWithErrors {
|
20
|
+
padding: 2px;
|
21
|
+
background-color: red;
|
22
|
+
display: table;
|
23
|
+
}
|
24
|
+
|
25
|
+
#errorExplanation {
|
26
|
+
width: 400px;
|
27
|
+
border: 2px solid red;
|
28
|
+
padding: 7px;
|
29
|
+
padding-bottom: 12px;
|
30
|
+
margin-bottom: 20px;
|
31
|
+
background-color: #f0f0f0;
|
32
|
+
}
|
33
|
+
|
34
|
+
#errorExplanation h2 {
|
35
|
+
text-align: left;
|
36
|
+
font-weight: bold;
|
37
|
+
padding: 5px 5px 5px 15px;
|
38
|
+
font-size: 12px;
|
39
|
+
margin: -7px;
|
40
|
+
background-color: #c00;
|
41
|
+
color: #fff;
|
42
|
+
}
|
43
|
+
|
44
|
+
#errorExplanation p {
|
45
|
+
color: #333;
|
46
|
+
margin-bottom: 0;
|
47
|
+
padding: 5px;
|
48
|
+
}
|
49
|
+
|
50
|
+
#errorExplanation ul li {
|
51
|
+
font-size: 12px;
|
52
|
+
list-style: square;
|
53
|
+
}
|
54
|
+
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
|
3
|
+
ENV['RSPEC'] = 'true' # allows autotest to discover rspec
|
4
|
+
ENV['AUTOTEST'] = 'true' # allows autotest to run w/ color on linux
|
5
|
+
system((RUBY_PLATFORM =~ /mswin|mingw/ ? 'autotest.bat' : 'autotest'), *ARGV) ||
|
6
|
+
$stderr.puts("Unable to find autotest. Please install ZenTest or fix your PATH")
|
@@ -0,0 +1,10 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
if ARGV.any? {|arg| %w[--drb -X --generate-options -G --help -h --version -v].include?(arg)}
|
3
|
+
require 'rubygems' unless ENV['NO_RUBYGEMS']
|
4
|
+
else
|
5
|
+
gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
|
6
|
+
ENV["RAILS_ENV"] ||= 'test'
|
7
|
+
require File.expand_path(File.dirname(__FILE__) + "/../config/environment") unless defined?(RAILS_ROOT)
|
8
|
+
end
|
9
|
+
require 'spec/autorun'
|
10
|
+
exit ::Spec::Runner::CommandLine.run
|
@@ -0,0 +1,9 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
|
3
|
+
|
4
|
+
puts "Loading Rails environment"
|
5
|
+
ENV["RAILS_ENV"] ||= 'test'
|
6
|
+
require File.expand_path(File.dirname(__FILE__) + "/../config/environment") unless defined?(RAILS_ROOT)
|
7
|
+
|
8
|
+
require 'optparse'
|
9
|
+
require 'spec/rails/spec_server'
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
describe FormTestController do
|
4
|
+
|
5
|
+
#Delete these examples and add some real ones
|
6
|
+
it "should use FormTestController" do
|
7
|
+
controller.should be_an_instance_of(FormTestController)
|
8
|
+
end
|
9
|
+
|
10
|
+
describe "GET 'form'" do
|
11
|
+
it "should return gender with male and female choices" do
|
12
|
+
get 'form'
|
13
|
+
response.should be_success
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "POST 'form'" do
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "GET 'form_for'" do
|
22
|
+
it "should be successful" do
|
23
|
+
get 'form_for'
|
24
|
+
response.should be_success
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe "POST 'form_for'" do
|
29
|
+
end
|
30
|
+
|
31
|
+
describe "GET 'form_tag'" do
|
32
|
+
it "should be successful" do
|
33
|
+
get 'form_tag'
|
34
|
+
response.should be_success
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe "POST 'form_tag'" do
|
39
|
+
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../spec_helper.rb'
|
2
|
+
|
3
|
+
shared_examples_for "enum_select form" do
|
4
|
+
it "should have select boxes for gender, status and degree initially set blank" do
|
5
|
+
visit form_page
|
6
|
+
select_option('', /gender/)
|
7
|
+
select_option('', /status/)
|
8
|
+
select_option('None', /degree/)
|
9
|
+
end
|
10
|
+
it "should verify all options for each enumeration" do
|
11
|
+
visit form_page
|
12
|
+
%w(Male Female).each {|e| select e, :from=>/gender/}
|
13
|
+
%w(Single Married Widowed Divorced).each {|e| select e, :from=>/status/}
|
14
|
+
["None", "High school", "College", "Graduate"].each {|e| select e, :from=>/degree/}
|
15
|
+
end
|
16
|
+
it "should submit and keep values when form is invalid" do
|
17
|
+
visit form_page
|
18
|
+
select 'Male', :from=>/gender/
|
19
|
+
select 'Single', :from=>/status/
|
20
|
+
select 'College', :from=>/degree/
|
21
|
+
click_button 'Save'
|
22
|
+
select_option('Male', /gender/)
|
23
|
+
select_option('Single', /status/)
|
24
|
+
select_option('College', /degree/)
|
25
|
+
end
|
26
|
+
it "should select values and submit without validation errors and create an object with those values" do
|
27
|
+
User.delete_all
|
28
|
+
visit form_page
|
29
|
+
select 'Male', :from=>/gender/
|
30
|
+
select 'Single', :from=>/status/
|
31
|
+
select 'College', :from=>/degree/
|
32
|
+
fill_in(/first_name/, :with=>'john')
|
33
|
+
fill_in(/age/, :with=>'30')
|
34
|
+
click_button 'Save'
|
35
|
+
#response.code.should be_success
|
36
|
+
u = User.find(:first)
|
37
|
+
u.first_name.should == 'john'
|
38
|
+
u.age.should == 30
|
39
|
+
u.gender.should == :male
|
40
|
+
u.status.should == :single
|
41
|
+
u.degree.should == :college
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
describe "Form using form_for and FormBuilder" do
|
46
|
+
def form_page; '/form_test/form_for'; end
|
47
|
+
|
48
|
+
it_should_behave_like "enum_select form"
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
describe "Form using option_helper_tags" do
|
53
|
+
def form_page; '/form_test/form_tag'; end
|
54
|
+
|
55
|
+
it_should_behave_like "enum_select form"
|
56
|
+
|
57
|
+
end
|
58
|
+
|
59
|
+
describe "Form using ActiveRecord helpers" do
|
60
|
+
def form_page; '/form_test/form'; end
|
61
|
+
puts
|
62
|
+
puts "*****************************************************"
|
63
|
+
puts "warning: there's a bug in ActionView::Helpers::ActiveRecord 'form' method"
|
64
|
+
puts "must change in active_record_helper.rb 'form' method"
|
65
|
+
puts "contents = form_tag(:action=>action, :method =>(options[:method] || 'post'), :enctype => options[:multipart] ? 'multipart/form-data': nil)"
|
66
|
+
puts "to"
|
67
|
+
puts "contents = form_tag(action, :method =>(options[:method] || 'post'), :enctype => options[:multipart] ? 'multipart/form-data': nil)"
|
68
|
+
puts "*****************************************************"
|
69
|
+
puts
|
70
|
+
|
71
|
+
it_should_behave_like "enum_select form"
|
72
|
+
|
73
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
|
2
|
+
# from the project root directory.
|
3
|
+
ENV["RAILS_ENV"] ||= 'test'
|
4
|
+
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
|
5
|
+
#require 'enumerated_attribute'
|
6
|
+
require 'spec/autorun'
|
7
|
+
require 'spec/rails'
|
8
|
+
require 'webrat'
|
9
|
+
require 'matchers'
|
10
|
+
|
11
|
+
# Requires supporting files with custom matchers and macros, etc,
|
12
|
+
# in ./support/ and its subdirectories.
|
13
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
14
|
+
|
15
|
+
Webrat.configure do |config|
|
16
|
+
config.mode = :rails
|
17
|
+
end
|
18
|
+
|
19
|
+
Spec::Runner.configure do |config|
|
20
|
+
end
|
21
|
+
|
22
|
+
#setup for integrating webrat with rspec
|
23
|
+
module Spec::Rails::Example
|
24
|
+
class IntegrationExampleGroup < ActionController::IntegrationTest
|
25
|
+
|
26
|
+
def initialize(defined_description, options={}, &implementation)
|
27
|
+
defined_description.instance_eval do
|
28
|
+
def to_s
|
29
|
+
self
|
30
|
+
end
|
31
|
+
end
|
32
|
+
super(defined_description)
|
33
|
+
end
|
34
|
+
|
35
|
+
Spec::Example::ExampleGroupFactory.register(:integration, self)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
2
|
+
|
3
|
+
describe "/dog/bark" do
|
4
|
+
before(:each) do
|
5
|
+
render 'dog/bark'
|
6
|
+
end
|
7
|
+
|
8
|
+
#Delete this example and add some real ones or delete this file
|
9
|
+
it "should tell you where to find the file" do
|
10
|
+
response.should have_tag('p', %r[Find me in app/views/dog/bark])
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
2
|
+
|
3
|
+
describe "/dog/bark" do
|
4
|
+
before(:each) do
|
5
|
+
render 'dog/bark'
|
6
|
+
end
|
7
|
+
|
8
|
+
#Delete this example and add some real ones or delete this file
|
9
|
+
it "should tell you where to find the file" do
|
10
|
+
response.should have_tag('p', %r[Find me in app/views/dog/bark])
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
2
|
+
|
3
|
+
describe "/dog/bark" do
|
4
|
+
before(:each) do
|
5
|
+
render 'dog/bark'
|
6
|
+
end
|
7
|
+
|
8
|
+
#Delete this example and add some real ones or delete this file
|
9
|
+
it "should tell you where to find the file" do
|
10
|
+
response.should have_tag('p', %r[Find me in app/views/dog/bark])
|
11
|
+
end
|
12
|
+
end
|
data/spec/rcov.opts
ADDED
data/spec/spec.opts
ADDED
data/spec/tractor.rb
CHANGED
@@ -12,7 +12,7 @@ class Tractor
|
|
12
12
|
@name = 'old faithful'
|
13
13
|
end
|
14
14
|
|
15
|
-
enumerated_attribute :gear, %w(reverse ^neutral first second over_drive) do
|
15
|
+
enumerated_attribute :gear, %w(reverse ^neutral first second over_drive), :nil=>false do
|
16
16
|
parked? is :neutral
|
17
17
|
driving? is [:first, :second, :over_drive]
|
18
18
|
not_parked? is_not :neutral
|
@@ -37,6 +37,9 @@ class Tractor
|
|
37
37
|
enums_accessor :side_light_enums
|
38
38
|
incrementor :side_light_up
|
39
39
|
decrementor :side_light_down
|
40
|
+
label :off=>'OFF'
|
41
|
+
labels :low => 'LOW DIM', :high => 'HIGH BEAM'
|
42
|
+
labels :super_high => 'SUPER BEAM'
|
40
43
|
end
|
41
44
|
|
42
45
|
#enum_attr_reader :temperature, %w(low med high)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jeffp-enumerated_attribute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Patmon
|
@@ -9,11 +9,11 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-08-06 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description:
|
16
|
+
description: Enumerated model attributes and view helpers
|
17
17
|
email: jpatmon@yahoo.com
|
18
18
|
executables: []
|
19
19
|
|
@@ -23,6 +23,8 @@ extra_rdoc_files: []
|
|
23
23
|
|
24
24
|
files:
|
25
25
|
- lib/enumerated_attribute
|
26
|
+
- lib/enumerated_attribute/attribute
|
27
|
+
- lib/enumerated_attribute/attribute/attribute_descriptor.rb
|
26
28
|
- lib/enumerated_attribute/attribute.rb
|
27
29
|
- lib/enumerated_attribute/integrations
|
28
30
|
- lib/enumerated_attribute/integrations/active_record.rb
|
@@ -31,9 +33,12 @@ files:
|
|
31
33
|
- lib/enumerated_attribute/integrations/object.rb
|
32
34
|
- lib/enumerated_attribute/integrations.rb
|
33
35
|
- lib/enumerated_attribute/method_definition_dsl.rb
|
36
|
+
- lib/enumerated_attribute/rails_helpers.rb
|
34
37
|
- lib/enumerated_attribute.rb
|
35
38
|
- spec/active_record
|
36
39
|
- spec/active_record/active_record_spec.rb
|
40
|
+
- spec/active_record/associations_spec.rb
|
41
|
+
- spec/active_record/association_test_classes.rb
|
37
42
|
- spec/active_record/cfg.rb
|
38
43
|
- spec/active_record/race_car.rb
|
39
44
|
- spec/active_record/single_table_inheritance_spec.rb
|
@@ -43,6 +48,98 @@ files:
|
|
43
48
|
- spec/new_and_method_missing_spec.rb
|
44
49
|
- spec/plural.rb
|
45
50
|
- spec/poro_spec.rb
|
51
|
+
- spec/rails
|
52
|
+
- spec/rails/app
|
53
|
+
- spec/rails/app/controllers
|
54
|
+
- spec/rails/app/controllers/application_controller.rb
|
55
|
+
- spec/rails/app/controllers/form_test_controller.rb
|
56
|
+
- spec/rails/app/helpers
|
57
|
+
- spec/rails/app/helpers/application_helper.rb
|
58
|
+
- spec/rails/app/helpers/form_test_helper.rb
|
59
|
+
- spec/rails/app/models
|
60
|
+
- spec/rails/app/models/user.rb
|
61
|
+
- spec/rails/app/views
|
62
|
+
- spec/rails/app/views/form_test
|
63
|
+
- spec/rails/app/views/form_test/form.html.erb
|
64
|
+
- spec/rails/app/views/form_test/form_for.html.erb
|
65
|
+
- spec/rails/app/views/form_test/form_tag.html.erb
|
66
|
+
- spec/rails/app/views/form_test/index.html.erb
|
67
|
+
- spec/rails/app/views/layouts
|
68
|
+
- spec/rails/app/views/layouts/application.html.erb
|
69
|
+
- spec/rails/config
|
70
|
+
- spec/rails/config/boot.rb
|
71
|
+
- spec/rails/config/database.yml
|
72
|
+
- spec/rails/config/environment.rb
|
73
|
+
- spec/rails/config/environments
|
74
|
+
- spec/rails/config/environments/development.rb
|
75
|
+
- spec/rails/config/environments/production.rb
|
76
|
+
- spec/rails/config/environments/test.rb
|
77
|
+
- spec/rails/config/initializers
|
78
|
+
- spec/rails/config/initializers/backtrace_silencers.rb
|
79
|
+
- spec/rails/config/initializers/inflections.rb
|
80
|
+
- spec/rails/config/initializers/mime_types.rb
|
81
|
+
- spec/rails/config/initializers/new_rails_defaults.rb
|
82
|
+
- spec/rails/config/initializers/session_store.rb
|
83
|
+
- spec/rails/config/locales
|
84
|
+
- spec/rails/config/locales/en.yml
|
85
|
+
- spec/rails/config/routes.rb
|
86
|
+
- spec/rails/db
|
87
|
+
- spec/rails/db/development.sqlite3
|
88
|
+
- spec/rails/db/migrate
|
89
|
+
- spec/rails/db/migrate/20090804230221_create_sessions.rb
|
90
|
+
- spec/rails/db/migrate/20090804230546_create_users.rb
|
91
|
+
- spec/rails/db/schema.rb
|
92
|
+
- spec/rails/db/test.sqlite3
|
93
|
+
- spec/rails/public
|
94
|
+
- spec/rails/public/404.html
|
95
|
+
- spec/rails/public/422.html
|
96
|
+
- spec/rails/public/500.html
|
97
|
+
- spec/rails/public/favicon.ico
|
98
|
+
- spec/rails/public/images
|
99
|
+
- spec/rails/public/images/rails.png
|
100
|
+
- spec/rails/public/index.html
|
101
|
+
- spec/rails/public/javascripts
|
102
|
+
- spec/rails/public/javascripts/application.js
|
103
|
+
- spec/rails/public/javascripts/controls.js
|
104
|
+
- spec/rails/public/javascripts/dragdrop.js
|
105
|
+
- spec/rails/public/javascripts/effects.js
|
106
|
+
- spec/rails/public/javascripts/prototype.js
|
107
|
+
- spec/rails/public/robots.txt
|
108
|
+
- spec/rails/public/stylesheets
|
109
|
+
- spec/rails/public/stylesheets/scaffold.css
|
110
|
+
- spec/rails/Rakefile
|
111
|
+
- spec/rails/README
|
112
|
+
- spec/rails/script
|
113
|
+
- spec/rails/script/about
|
114
|
+
- spec/rails/script/autospec
|
115
|
+
- spec/rails/script/console
|
116
|
+
- spec/rails/script/dbconsole
|
117
|
+
- spec/rails/script/destroy
|
118
|
+
- spec/rails/script/generate
|
119
|
+
- spec/rails/script/performance
|
120
|
+
- spec/rails/script/performance/benchmarker
|
121
|
+
- spec/rails/script/performance/profiler
|
122
|
+
- spec/rails/script/plugin
|
123
|
+
- spec/rails/script/runner
|
124
|
+
- spec/rails/script/server
|
125
|
+
- spec/rails/script/spec
|
126
|
+
- spec/rails/script/spec_server
|
127
|
+
- spec/rails/spec
|
128
|
+
- spec/rails/spec/controllers
|
129
|
+
- spec/rails/spec/controllers/form_test_controller_spec.rb
|
130
|
+
- spec/rails/spec/integrations
|
131
|
+
- spec/rails/spec/integrations/enum_select_spec.rb
|
132
|
+
- spec/rails/spec/matchers.rb
|
133
|
+
- spec/rails/spec/rcov.opts
|
134
|
+
- spec/rails/spec/spec.opts
|
135
|
+
- spec/rails/spec/spec_helper.rb
|
136
|
+
- spec/rails/spec/views
|
137
|
+
- spec/rails/spec/views/form_test
|
138
|
+
- spec/rails/spec/views/form_test/form.html.erb_spec.rb
|
139
|
+
- spec/rails/spec/views/form_test/form_for.html.erb_spec.rb
|
140
|
+
- spec/rails/spec/views/form_test/form_tag.html.erb_spec.rb
|
141
|
+
- spec/rcov.opts
|
142
|
+
- spec/spec.opts
|
46
143
|
- spec/tractor.rb
|
47
144
|
- CHANGELOG.rdoc
|
48
145
|
- init.rb
|
@@ -52,6 +149,7 @@ files:
|
|
52
149
|
- .gitignore
|
53
150
|
has_rdoc: false
|
54
151
|
homepage: http://github.com/jeffp/enumerated_attribute/tree/master
|
152
|
+
licenses:
|
55
153
|
post_install_message:
|
56
154
|
rdoc_options: []
|
57
155
|
|
@@ -72,10 +170,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
170
|
requirements: []
|
73
171
|
|
74
172
|
rubyforge_project:
|
75
|
-
rubygems_version: 1.
|
173
|
+
rubygems_version: 1.3.5
|
76
174
|
signing_key:
|
77
175
|
specification_version: 3
|
78
|
-
summary: Add enumerated attributes
|
176
|
+
summary: Add enumerated attributes to your models and expose them in drop-down lists in your views
|
79
177
|
test_files:
|
80
178
|
- spec/new_and_method_missing_spec.rb
|
81
179
|
- spec/poro_spec.rb
|