acts_as_multipart_form 0.0.1
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/CHANGELOG +3 -0
- data/Gemfile +27 -0
- data/Gemfile.lock +157 -0
- data/LICENSE.txt +20 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +65 -0
- data/VERSION +1 -0
- data/acts_as_multipart_form.gemspec +163 -0
- data/app/controllers/multipart_form/in_progress_forms_controller.rb +0 -0
- data/app/models/multipart_form/in_progress_form.rb +20 -0
- data/app/views/multipart_form/_breadcrumb.html.erb +21 -0
- data/app/views/multipart_form/_index_links.html.erb +20 -0
- data/app/views/multipart_form/in_progress_form/index.html.erb +0 -0
- data/app/views/multipart_form/in_progress_form/index.html.haml +0 -0
- data/lib/acts_as_multipart_form.rb +2 -0
- data/lib/acts_as_multipart_form/config.rb +36 -0
- data/lib/acts_as_multipart_form/engine.rb +4 -0
- data/lib/acts_as_multipart_form/multipart_form_in_controller.rb +301 -0
- data/lib/acts_as_multipart_form/multipart_form_in_model.rb +105 -0
- data/lib/acts_as_multipart_form/railtie.rb +14 -0
- data/lib/generators/acts_as_multipart_form/install_generator.rb +44 -0
- data/lib/generators/acts_as_multipart_form/templates/config.rb +6 -0
- data/lib/generators/acts_as_multipart_form/templates/migrations/install_migration.rb.erb +17 -0
- data/spec/acts_as_multipart_form_spec.rb +7 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/controllers/people_controller.rb +53 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/person.rb +5 -0
- data/spec/dummy/app/models/person_with_multiple_actsas.rb +5 -0
- data/spec/dummy/app/models/person_with_multiple_forms.rb +4 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/people/_job_info.html.erb +8 -0
- data/spec/dummy/app/views/people/_person_info.html.erb +8 -0
- data/spec/dummy/app/views/people/hire_form.html.erb +10 -0
- data/spec/dummy/app/views/people/index.html.erb +16 -0
- data/spec/dummy/app/views/people/show.html.erb +0 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +45 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +22 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +26 -0
- data/spec/dummy/config/environments/production.rb +49 -0
- data/spec/dummy/config/environments/test.rb +35 -0
- data/spec/dummy/config/initializers/acts_as_multipart_form.rb +6 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +66 -0
- data/spec/dummy/db/migrate/20110715180834_create_people.rb +13 -0
- data/spec/dummy/db/migrate/20110722130249_create_multipart_form_tables.rb +17 -0
- data/spec/dummy/db/schema.rb +31 -0
- data/spec/dummy/features/form_breadcrumb.feature +75 -0
- data/spec/dummy/features/form_submission.feature +23 -0
- data/spec/dummy/features/index_links.feature +56 -0
- data/spec/dummy/features/step_definitions/acts_as_multipart_form_steps.rb +30 -0
- data/spec/dummy/features/step_definitions/config_steps.rb +23 -0
- data/spec/dummy/features/step_definitions/web_steps.rb +214 -0
- data/spec/dummy/features/support/env.rb +15 -0
- data/spec/dummy/features/support/paths.rb +31 -0
- data/spec/dummy/features/support/selectors.rb +39 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/javascripts/application.js +2 -0
- data/spec/dummy/public/javascripts/controls.js +965 -0
- data/spec/dummy/public/javascripts/dragdrop.js +974 -0
- data/spec/dummy/public/javascripts/effects.js +1123 -0
- data/spec/dummy/public/javascripts/prototype.js +6001 -0
- data/spec/dummy/public/javascripts/rails.js +191 -0
- data/spec/dummy/public/stylesheets/.gitkeep +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/in_progress_form_spec.rb +43 -0
- data/spec/integration/navigation_spec.rb +9 -0
- data/spec/multipart_form_in_controller_integeration_spec.rb +23 -0
- data/spec/multipart_form_in_controller_spec.rb +360 -0
- data/spec/multipart_form_in_model_integration_spec.rb +30 -0
- data/spec/multipart_form_in_model_spec.rb +156 -0
- data/spec/spec_helper.rb +38 -0
- metadata +296 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
require_relative 'spec_helper'
|
|
2
|
+
|
|
3
|
+
describe Person do
|
|
4
|
+
before(:each) do
|
|
5
|
+
@person = Person.new
|
|
6
|
+
@person.multipart_form_controller_action = "personal_info"
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
it "should respond to hire_form_personal_info" do
|
|
10
|
+
@person.respond_to?(:hire_form_personal_info?).should be_true
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
it "should return true for hire_form_personal_info" do
|
|
14
|
+
@person.hire_form_personal_info?.should be_true
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it "should call the name validation if the action is set" do
|
|
18
|
+
@person.should have(1).error_on(:name)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
it "should not call the name validtion if the action does not match the if actionon the validation" do
|
|
22
|
+
@person.multipart_form_controller_action = "job_info"
|
|
23
|
+
@person.should be_valid
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
it "should not call the name validtion if the action is not set" do
|
|
27
|
+
@person.multipart_form_controller_action = nil
|
|
28
|
+
@person.should be_valid
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
require_relative 'spec_helper'
|
|
2
|
+
|
|
3
|
+
describe ActsAsMultipartForm::MultipartFormInModel do
|
|
4
|
+
describe "acts_as_multipart_form class method" do
|
|
5
|
+
it "should include instance methods" do
|
|
6
|
+
Person.new.should be_a_kind_of (ActsAsMultipartForm::MultipartFormInModel::InstanceMethods)
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
it "should make the multipart_form_controller_action instance variable accessible" do
|
|
10
|
+
Person.new.should respond_to :multipart_form_controller_action
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
it "should make the multipart_forms instance variable accessible" do
|
|
14
|
+
Person.new.should respond_to :multipart_forms
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it "should set the multipart_forms instance variable if an array is given" do
|
|
18
|
+
Person.new.multipart_forms.should == [:hire_form]
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
it "should set the multipart_forms instance variable if a single symbol is given" do
|
|
22
|
+
forms = PersonWithMultipleForms.new.multipart_forms
|
|
23
|
+
forms.should include :hire_form
|
|
24
|
+
forms.should include :fire_form
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
it "should return all results if acts_as_multipart_form is called twice" do
|
|
28
|
+
forms = PersonWithMultipleActsAs.new.multipart_forms
|
|
29
|
+
forms.should include :hire_form
|
|
30
|
+
forms.should include :fire_form
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
describe "method_missing instance method" do
|
|
35
|
+
before(:each) do
|
|
36
|
+
@person = Person.new
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
it "should return true if the form matches and the action matches " do
|
|
40
|
+
@person.stub!(:multipart_form_method?).and_return(true)
|
|
41
|
+
@person.stub!(:multipart_form_controller_action?).and_return(true)
|
|
42
|
+
@person.some_multipart_form_method.should be_true
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
it "should return false if the method includes an existing form type but the action doesn't match" do
|
|
46
|
+
@person.stub!(:multipart_form_method?).and_return(true)
|
|
47
|
+
@person.stub!(:multipart_form_controller_action?).and_return(false)
|
|
48
|
+
@person.some_multipart_form_method.should be_false
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# I am not convinced that this covers all the test cases
|
|
52
|
+
# but we are probably fine because we just need to know that super is called
|
|
53
|
+
it "should call super if the multipart form name does not match an exiting form name" do
|
|
54
|
+
@person.stub!(:multipart_form_method?).and_return(false)
|
|
55
|
+
lambda { @person.some_multipart_form_method }.should raise_error(NoMethodError)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
describe "respond_to? instance method" do
|
|
60
|
+
before(:each) do
|
|
61
|
+
@person = Person.new
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
it "should return true if the form matches and the action matches" do
|
|
65
|
+
@person.stub!(:multipart_form_method?).and_return(true)
|
|
66
|
+
@person.stub!(:multipart_form_controller_action?).and_return(true)
|
|
67
|
+
@person.respond_to?(:some_multipart_form_method).should be_true
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
it "should return false if the form matches and the action doesn't match" do
|
|
71
|
+
@person.stub!(:multipart_form_method?).and_return(true)
|
|
72
|
+
@person.stub!(:multipart_form_controller_action?).and_return(false)
|
|
73
|
+
@person.respond_to?(:some_multipart_form_method).should be_false
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
it "should call super if the method is not found" do
|
|
77
|
+
@person.stub!(:multipart_form_method?).and_return(false)
|
|
78
|
+
@person.respond_to?(:class).should be_true
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
describe "multipart_form_controller_action? instance method" do
|
|
83
|
+
before(:each) do
|
|
84
|
+
@person = Person.new
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
it "should call using_multipart_forms?" do
|
|
88
|
+
@person.should_receive(:using_multipart_forms?)
|
|
89
|
+
@person.multipart_form_controller_action?(:some_multipart_form_controller_action?)
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
it "should return true if the form_name_controller_action matches the multipart_form_controller_action" do
|
|
93
|
+
@person.multipart_form_controller_action = "personal_info"
|
|
94
|
+
@person.multipart_form_controller_action?(:hire_form_personal_info?).should be_true
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
it "should return false if the multipart_form_controller_action does not start with the form name" do
|
|
98
|
+
@person.multipart_form_controller_action = "personal_info"
|
|
99
|
+
@person.multipart_form_controller_action?(:other_form_personal_info?).should be_false
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
describe "multipart_form_method? method" do
|
|
104
|
+
before(:each) do
|
|
105
|
+
@person = Person.new
|
|
106
|
+
@person.multipart_forms = [:hire_form]
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
it "should return true if the symbol starts with a multipart form name" do
|
|
110
|
+
@person.multipart_form_method?(:hire_form_peronal_info).should be_true
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
it "should return true if the symbol does not start with a multipart form name" do
|
|
114
|
+
@person.multipart_form_method?(:some_other_form_peronal_info).should be_false
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
describe "reset_multipart_form_controller_action method" do
|
|
119
|
+
before(:each) do
|
|
120
|
+
@person = Person.new
|
|
121
|
+
@person.multipart_form_controller_action = "action"
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
it "should set the controller action to nil" do
|
|
125
|
+
@person.reset_multipart_form_controller_action
|
|
126
|
+
@person.multipart_form_controller_action.should be_nil
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
it "should be called after save" do
|
|
130
|
+
@person.save
|
|
131
|
+
@person.multipart_form_controller_action.should be_nil
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
describe "using_multipart_forms? method" do
|
|
136
|
+
before(:each) do
|
|
137
|
+
@person = Person.new
|
|
138
|
+
@person.multipart_forms = [:hire_form]
|
|
139
|
+
@person.multipart_form_controller_action = "action"
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
it "should return false if multipart forms is nil" do
|
|
143
|
+
@person.multipart_forms = nil
|
|
144
|
+
@person.using_multipart_forms?.should be_false
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
it "should return false if controller action is nil" do
|
|
148
|
+
@person.multipart_form_controller_action = nil
|
|
149
|
+
@person.using_multipart_forms?.should be_false
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
it "should return true if both are set" do
|
|
153
|
+
@person.using_multipart_forms?.should be_true
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Configure Rails Envinronment
|
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
|
3
|
+
|
|
4
|
+
require "ruby-debug"
|
|
5
|
+
|
|
6
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
|
7
|
+
require "rails/test_help"
|
|
8
|
+
require "rspec/rails"
|
|
9
|
+
|
|
10
|
+
ActionMailer::Base.delivery_method = :test
|
|
11
|
+
ActionMailer::Base.perform_deliveries = true
|
|
12
|
+
ActionMailer::Base.default_url_options[:host] = "test.com"
|
|
13
|
+
|
|
14
|
+
Rails.backtrace_cleaner.remove_silencers!
|
|
15
|
+
|
|
16
|
+
# Configure capybara for integration testing
|
|
17
|
+
require "capybara/rails"
|
|
18
|
+
Capybara.default_driver = :rack_test
|
|
19
|
+
Capybara.default_selector = :css
|
|
20
|
+
|
|
21
|
+
# Run any available migration
|
|
22
|
+
ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
|
|
23
|
+
|
|
24
|
+
RSpec.configure do |config|
|
|
25
|
+
# Remove this line if you don't want RSpec's should and should_not
|
|
26
|
+
# methods or matchers
|
|
27
|
+
require 'rspec/expectations'
|
|
28
|
+
config.include RSpec::Matchers
|
|
29
|
+
|
|
30
|
+
# == Mock Framework
|
|
31
|
+
config.mock_with :rspec
|
|
32
|
+
|
|
33
|
+
# use transactions
|
|
34
|
+
config.use_transactional_fixtures = true
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Load support files
|
|
38
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
metadata
ADDED
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: acts_as_multipart_form
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
prerelease:
|
|
5
|
+
version: 0.0.1
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- Jeremiah Hemphill
|
|
9
|
+
- Ethan Pemble
|
|
10
|
+
autorequire:
|
|
11
|
+
bindir: bin
|
|
12
|
+
cert_chain: []
|
|
13
|
+
|
|
14
|
+
date: 2011-07-28 00:00:00 Z
|
|
15
|
+
dependencies:
|
|
16
|
+
- !ruby/object:Gem::Dependency
|
|
17
|
+
name: rails
|
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
19
|
+
none: false
|
|
20
|
+
requirements:
|
|
21
|
+
- - "="
|
|
22
|
+
- !ruby/object:Gem::Version
|
|
23
|
+
version: 3.0.7
|
|
24
|
+
type: :runtime
|
|
25
|
+
prerelease: false
|
|
26
|
+
version_requirements: *id001
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: capybara
|
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
|
30
|
+
none: false
|
|
31
|
+
requirements:
|
|
32
|
+
- - ">="
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: 0.4.0
|
|
35
|
+
type: :runtime
|
|
36
|
+
prerelease: false
|
|
37
|
+
version_requirements: *id002
|
|
38
|
+
- !ruby/object:Gem::Dependency
|
|
39
|
+
name: sqlite3
|
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
|
41
|
+
none: false
|
|
42
|
+
requirements:
|
|
43
|
+
- - ">="
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: "0"
|
|
46
|
+
type: :runtime
|
|
47
|
+
prerelease: false
|
|
48
|
+
version_requirements: *id003
|
|
49
|
+
- !ruby/object:Gem::Dependency
|
|
50
|
+
name: ruby-debug19
|
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
|
52
|
+
none: false
|
|
53
|
+
requirements:
|
|
54
|
+
- - ">="
|
|
55
|
+
- !ruby/object:Gem::Version
|
|
56
|
+
version: "0"
|
|
57
|
+
type: :development
|
|
58
|
+
prerelease: false
|
|
59
|
+
version_requirements: *id004
|
|
60
|
+
- !ruby/object:Gem::Dependency
|
|
61
|
+
name: rspec
|
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
|
63
|
+
none: false
|
|
64
|
+
requirements:
|
|
65
|
+
- - ~>
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: 2.6.0
|
|
68
|
+
type: :development
|
|
69
|
+
prerelease: false
|
|
70
|
+
version_requirements: *id005
|
|
71
|
+
- !ruby/object:Gem::Dependency
|
|
72
|
+
name: rspec-rails
|
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
|
74
|
+
none: false
|
|
75
|
+
requirements:
|
|
76
|
+
- - ~>
|
|
77
|
+
- !ruby/object:Gem::Version
|
|
78
|
+
version: 2.6.1
|
|
79
|
+
type: :development
|
|
80
|
+
prerelease: false
|
|
81
|
+
version_requirements: *id006
|
|
82
|
+
- !ruby/object:Gem::Dependency
|
|
83
|
+
name: yard
|
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
|
85
|
+
none: false
|
|
86
|
+
requirements:
|
|
87
|
+
- - ~>
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: 0.6.0
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: *id007
|
|
93
|
+
- !ruby/object:Gem::Dependency
|
|
94
|
+
name: cucumber
|
|
95
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
|
96
|
+
none: false
|
|
97
|
+
requirements:
|
|
98
|
+
- - ">="
|
|
99
|
+
- !ruby/object:Gem::Version
|
|
100
|
+
version: "0"
|
|
101
|
+
type: :development
|
|
102
|
+
prerelease: false
|
|
103
|
+
version_requirements: *id008
|
|
104
|
+
- !ruby/object:Gem::Dependency
|
|
105
|
+
name: cucumber-rails
|
|
106
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
|
107
|
+
none: false
|
|
108
|
+
requirements:
|
|
109
|
+
- - ">="
|
|
110
|
+
- !ruby/object:Gem::Version
|
|
111
|
+
version: "0"
|
|
112
|
+
type: :development
|
|
113
|
+
prerelease: false
|
|
114
|
+
version_requirements: *id009
|
|
115
|
+
- !ruby/object:Gem::Dependency
|
|
116
|
+
name: database_cleaner
|
|
117
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
|
118
|
+
none: false
|
|
119
|
+
requirements:
|
|
120
|
+
- - ">="
|
|
121
|
+
- !ruby/object:Gem::Version
|
|
122
|
+
version: "0"
|
|
123
|
+
type: :development
|
|
124
|
+
prerelease: false
|
|
125
|
+
version_requirements: *id010
|
|
126
|
+
- !ruby/object:Gem::Dependency
|
|
127
|
+
name: bundler
|
|
128
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
|
129
|
+
none: false
|
|
130
|
+
requirements:
|
|
131
|
+
- - ~>
|
|
132
|
+
- !ruby/object:Gem::Version
|
|
133
|
+
version: 1.0.0
|
|
134
|
+
type: :development
|
|
135
|
+
prerelease: false
|
|
136
|
+
version_requirements: *id011
|
|
137
|
+
- !ruby/object:Gem::Dependency
|
|
138
|
+
name: jeweler
|
|
139
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
|
140
|
+
none: false
|
|
141
|
+
requirements:
|
|
142
|
+
- - ~>
|
|
143
|
+
- !ruby/object:Gem::Version
|
|
144
|
+
version: 1.6.3
|
|
145
|
+
type: :development
|
|
146
|
+
prerelease: false
|
|
147
|
+
version_requirements: *id012
|
|
148
|
+
- !ruby/object:Gem::Dependency
|
|
149
|
+
name: rcov
|
|
150
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
|
151
|
+
none: false
|
|
152
|
+
requirements:
|
|
153
|
+
- - ">="
|
|
154
|
+
- !ruby/object:Gem::Version
|
|
155
|
+
version: "0"
|
|
156
|
+
type: :development
|
|
157
|
+
prerelease: false
|
|
158
|
+
version_requirements: *id013
|
|
159
|
+
- !ruby/object:Gem::Dependency
|
|
160
|
+
name: ci_reporter
|
|
161
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
|
162
|
+
none: false
|
|
163
|
+
requirements:
|
|
164
|
+
- - ">="
|
|
165
|
+
- !ruby/object:Gem::Version
|
|
166
|
+
version: "0"
|
|
167
|
+
type: :development
|
|
168
|
+
prerelease: false
|
|
169
|
+
version_requirements: *id014
|
|
170
|
+
description: Multipart forms using custom routes
|
|
171
|
+
email: jeremiah@cloudspace.com
|
|
172
|
+
executables: []
|
|
173
|
+
|
|
174
|
+
extensions: []
|
|
175
|
+
|
|
176
|
+
extra_rdoc_files:
|
|
177
|
+
- LICENSE.txt
|
|
178
|
+
- README.rdoc
|
|
179
|
+
files:
|
|
180
|
+
- CHANGELOG
|
|
181
|
+
- Gemfile
|
|
182
|
+
- Gemfile.lock
|
|
183
|
+
- LICENSE.txt
|
|
184
|
+
- MIT-LICENSE
|
|
185
|
+
- README.rdoc
|
|
186
|
+
- Rakefile
|
|
187
|
+
- VERSION
|
|
188
|
+
- acts_as_multipart_form.gemspec
|
|
189
|
+
- app/controllers/multipart_form/in_progress_forms_controller.rb
|
|
190
|
+
- app/models/multipart_form/in_progress_form.rb
|
|
191
|
+
- app/views/multipart_form/_breadcrumb.html.erb
|
|
192
|
+
- app/views/multipart_form/_index_links.html.erb
|
|
193
|
+
- app/views/multipart_form/in_progress_form/index.html.erb
|
|
194
|
+
- app/views/multipart_form/in_progress_form/index.html.haml
|
|
195
|
+
- lib/acts_as_multipart_form.rb
|
|
196
|
+
- lib/acts_as_multipart_form/config.rb
|
|
197
|
+
- lib/acts_as_multipart_form/engine.rb
|
|
198
|
+
- lib/acts_as_multipart_form/multipart_form_in_controller.rb
|
|
199
|
+
- lib/acts_as_multipart_form/multipart_form_in_model.rb
|
|
200
|
+
- lib/acts_as_multipart_form/railtie.rb
|
|
201
|
+
- lib/generators/acts_as_multipart_form/install_generator.rb
|
|
202
|
+
- lib/generators/acts_as_multipart_form/templates/config.rb
|
|
203
|
+
- lib/generators/acts_as_multipart_form/templates/migrations/install_migration.rb.erb
|
|
204
|
+
- spec/acts_as_multipart_form_spec.rb
|
|
205
|
+
- spec/dummy/Rakefile
|
|
206
|
+
- spec/dummy/app/controllers/application_controller.rb
|
|
207
|
+
- spec/dummy/app/controllers/people_controller.rb
|
|
208
|
+
- spec/dummy/app/helpers/application_helper.rb
|
|
209
|
+
- spec/dummy/app/models/person.rb
|
|
210
|
+
- spec/dummy/app/models/person_with_multiple_actsas.rb
|
|
211
|
+
- spec/dummy/app/models/person_with_multiple_forms.rb
|
|
212
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
|
213
|
+
- spec/dummy/app/views/people/_job_info.html.erb
|
|
214
|
+
- spec/dummy/app/views/people/_person_info.html.erb
|
|
215
|
+
- spec/dummy/app/views/people/hire_form.html.erb
|
|
216
|
+
- spec/dummy/app/views/people/index.html.erb
|
|
217
|
+
- spec/dummy/app/views/people/show.html.erb
|
|
218
|
+
- spec/dummy/config.ru
|
|
219
|
+
- spec/dummy/config/application.rb
|
|
220
|
+
- spec/dummy/config/boot.rb
|
|
221
|
+
- spec/dummy/config/database.yml
|
|
222
|
+
- spec/dummy/config/environment.rb
|
|
223
|
+
- spec/dummy/config/environments/development.rb
|
|
224
|
+
- spec/dummy/config/environments/production.rb
|
|
225
|
+
- spec/dummy/config/environments/test.rb
|
|
226
|
+
- spec/dummy/config/initializers/acts_as_multipart_form.rb
|
|
227
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
228
|
+
- spec/dummy/config/initializers/inflections.rb
|
|
229
|
+
- spec/dummy/config/initializers/mime_types.rb
|
|
230
|
+
- spec/dummy/config/initializers/secret_token.rb
|
|
231
|
+
- spec/dummy/config/initializers/session_store.rb
|
|
232
|
+
- spec/dummy/config/locales/en.yml
|
|
233
|
+
- spec/dummy/config/routes.rb
|
|
234
|
+
- spec/dummy/db/migrate/20110715180834_create_people.rb
|
|
235
|
+
- spec/dummy/db/migrate/20110722130249_create_multipart_form_tables.rb
|
|
236
|
+
- spec/dummy/db/schema.rb
|
|
237
|
+
- spec/dummy/features/form_breadcrumb.feature
|
|
238
|
+
- spec/dummy/features/form_submission.feature
|
|
239
|
+
- spec/dummy/features/index_links.feature
|
|
240
|
+
- spec/dummy/features/step_definitions/acts_as_multipart_form_steps.rb
|
|
241
|
+
- spec/dummy/features/step_definitions/config_steps.rb
|
|
242
|
+
- spec/dummy/features/step_definitions/web_steps.rb
|
|
243
|
+
- spec/dummy/features/support/env.rb
|
|
244
|
+
- spec/dummy/features/support/paths.rb
|
|
245
|
+
- spec/dummy/features/support/selectors.rb
|
|
246
|
+
- spec/dummy/public/404.html
|
|
247
|
+
- spec/dummy/public/422.html
|
|
248
|
+
- spec/dummy/public/500.html
|
|
249
|
+
- spec/dummy/public/favicon.ico
|
|
250
|
+
- spec/dummy/public/javascripts/application.js
|
|
251
|
+
- spec/dummy/public/javascripts/controls.js
|
|
252
|
+
- spec/dummy/public/javascripts/dragdrop.js
|
|
253
|
+
- spec/dummy/public/javascripts/effects.js
|
|
254
|
+
- spec/dummy/public/javascripts/prototype.js
|
|
255
|
+
- spec/dummy/public/javascripts/rails.js
|
|
256
|
+
- spec/dummy/public/stylesheets/.gitkeep
|
|
257
|
+
- spec/dummy/script/rails
|
|
258
|
+
- spec/in_progress_form_spec.rb
|
|
259
|
+
- spec/integration/navigation_spec.rb
|
|
260
|
+
- spec/multipart_form_in_controller_integeration_spec.rb
|
|
261
|
+
- spec/multipart_form_in_controller_spec.rb
|
|
262
|
+
- spec/multipart_form_in_model_integration_spec.rb
|
|
263
|
+
- spec/multipart_form_in_model_spec.rb
|
|
264
|
+
- spec/spec_helper.rb
|
|
265
|
+
homepage: http://github.com/jeremiahishere/acts_as_multipart_form
|
|
266
|
+
licenses:
|
|
267
|
+
- MIT
|
|
268
|
+
post_install_message:
|
|
269
|
+
rdoc_options: []
|
|
270
|
+
|
|
271
|
+
require_paths:
|
|
272
|
+
- lib
|
|
273
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
274
|
+
none: false
|
|
275
|
+
requirements:
|
|
276
|
+
- - ">="
|
|
277
|
+
- !ruby/object:Gem::Version
|
|
278
|
+
hash: 3127382149033594227
|
|
279
|
+
segments:
|
|
280
|
+
- 0
|
|
281
|
+
version: "0"
|
|
282
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
283
|
+
none: false
|
|
284
|
+
requirements:
|
|
285
|
+
- - ">="
|
|
286
|
+
- !ruby/object:Gem::Version
|
|
287
|
+
version: "0"
|
|
288
|
+
requirements: []
|
|
289
|
+
|
|
290
|
+
rubyforge_project:
|
|
291
|
+
rubygems_version: 1.8.5
|
|
292
|
+
signing_key:
|
|
293
|
+
specification_version: 3
|
|
294
|
+
summary: Multipart form engine on rails
|
|
295
|
+
test_files: []
|
|
296
|
+
|