update_request 0.0.6 → 0.1.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.
- checksums.yaml +4 -4
- data/Rakefile +7 -11
- data/app/models/update_request/request.rb +25 -22
- data/db/migrate/20160105123605_create_requests.rb +1 -1
- data/db/migrate/20160105123721_create_updated_files.rb +3 -1
- data/lib/update_request/engine.rb +9 -0
- data/lib/update_request/version.rb +1 -1
- data/{test → spec}/dummy/README.rdoc +0 -0
- data/{test → spec}/dummy/Rakefile +0 -0
- data/{test → spec}/dummy/app/assets/javascripts/application.js +1 -1
- data/{test → spec}/dummy/app/assets/stylesheets/application.css +1 -1
- data/{test → spec}/dummy/app/controllers/application_controller.rb +0 -0
- data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
- data/spec/dummy/app/models/admin_user.rb +3 -0
- data/spec/dummy/app/models/post.rb +4 -0
- data/spec/dummy/app/models/user.rb +5 -0
- data/{test → spec}/dummy/app/views/layouts/application.html.erb +0 -0
- data/{test → spec}/dummy/bin/bundle +0 -0
- data/{test → spec}/dummy/bin/rails +1 -1
- data/{test → spec}/dummy/bin/rake +0 -0
- data/spec/dummy/bin/setup +29 -0
- data/{test → spec}/dummy/config.ru +1 -1
- data/{test → spec}/dummy/config/application.rb +1 -0
- data/{test → spec}/dummy/config/boot.rb +0 -0
- data/{test → spec}/dummy/config/database.yml +0 -0
- data/{test → spec}/dummy/config/environment.rb +0 -0
- data/{test → spec}/dummy/config/environments/development.rb +4 -0
- data/{test → spec}/dummy/config/environments/production.rb +13 -12
- data/{test → spec}/dummy/config/environments/test.rb +5 -2
- data/{test → spec}/dummy/config/initializers/assets.rb +3 -0
- data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/{test → spec}/dummy/config/initializers/cookies_serializer.rb +1 -1
- data/{test → spec}/dummy/config/initializers/filter_parameter_logging.rb +0 -0
- data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
- data/{test → spec}/dummy/config/initializers/mime_types.rb +0 -0
- data/{test → spec}/dummy/config/initializers/session_store.rb +0 -0
- data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
- data/{test → spec}/dummy/config/locales/en.yml +0 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/{test → spec}/dummy/config/secrets.yml +2 -2
- data/spec/dummy/db/migrate/20180301065842_create_users.rb +9 -0
- data/spec/dummy/db/migrate/20180301070148_create_posts.rb +9 -0
- data/spec/dummy/db/migrate/20180301070316_create_admin_users.rb +8 -0
- data/spec/dummy/db/schema.rb +60 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +12687 -0
- data/{test → spec}/dummy/public/404.html +0 -0
- data/{test → spec}/dummy/public/422.html +0 -0
- data/{test → spec}/dummy/public/500.html +0 -0
- data/{test → spec}/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/system/update_request/updated_files/attachments/000/000/001/original/image.png +0 -0
- data/spec/dummy/public/system/update_request/updated_files/attachments/000/000/002/original/image.png +0 -0
- data/spec/dummy/public/system/users/avatars/000/000/001/original/image.png +0 -0
- data/spec/factories/admin_users.rb +5 -0
- data/spec/factories/posts.rb +11 -0
- data/spec/factories/users.rb +11 -0
- data/{test → spec}/integration/navigation_test.rb +0 -0
- data/spec/models/update_request/request/apply_bang_spec.rb +97 -0
- data/spec/models/update_request/request/apply_spec.rb +97 -0
- data/spec/models/update_request/request/save_spec.rb +104 -0
- data/spec/rails_helper.rb +20 -0
- data/spec/spec_helper.rb +33 -0
- data/spec/support/image.png +0 -0
- metadata +115 -89
- data/test/dummy/config/routes.rb +0 -56
- data/test/test_helper.rb +0 -18
- data/test/update_request_test.rb +0 -7
File without changes
|
File without changes
|
File without changes
|
File without changes
|
Binary file
|
Binary file
|
File without changes
|
@@ -0,0 +1,97 @@
|
|
1
|
+
RSpec.describe "UpdateRequest::Request#apply!:", type: :model do
|
2
|
+
let(:user) { create(:user) }
|
3
|
+
let(:post) { create(:post) }
|
4
|
+
let(:admin_user) { create(:admin_user) }
|
5
|
+
|
6
|
+
context "when a simple update" do
|
7
|
+
let(:changes) do
|
8
|
+
{
|
9
|
+
title: 'new title'
|
10
|
+
}
|
11
|
+
end
|
12
|
+
|
13
|
+
context "is applied WITHOUT an approver" do
|
14
|
+
|
15
|
+
it "then correctly applies the update" do
|
16
|
+
update_request = UpdateRequest::Request.new(requester: user, updateable: post, update_schema: changes)
|
17
|
+
|
18
|
+
update_request.save!
|
19
|
+
|
20
|
+
expect(update_request.apply!).to eql(true)
|
21
|
+
|
22
|
+
expect(post.title).to eql(changes[:title])
|
23
|
+
expect(update_request.applied).to eql(true)
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
context "is applied with an approver" do
|
29
|
+
|
30
|
+
it "then correctly applies the update" do
|
31
|
+
update_request = UpdateRequest::Request.new(requester: user, updateable: post, update_schema: changes)
|
32
|
+
|
33
|
+
update_request.save!
|
34
|
+
|
35
|
+
expect(update_request.apply!(admin_user)).to eql(true)
|
36
|
+
|
37
|
+
expect(post.title).to eql(changes[:title])
|
38
|
+
expect(update_request.approver).to eql(admin_user)
|
39
|
+
expect(update_request.applied).to eql(true)
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
context "when an update containing a file" do
|
47
|
+
let(:avatar) { Rack::Test::UploadedFile.new('spec/support/image.png', 'image/png') }
|
48
|
+
|
49
|
+
let(:changes) do
|
50
|
+
{
|
51
|
+
avatar: avatar,
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
context "is created" do
|
56
|
+
it "then correctly saves but does not apply that update" do
|
57
|
+
update_request = UpdateRequest::Request.new(requester: user, updateable: user, update_schema: changes)
|
58
|
+
|
59
|
+
# Creates correct update_request
|
60
|
+
expect{ update_request.save }.to change{ UpdateRequest::Request.count }.by(1)
|
61
|
+
|
62
|
+
expect(update_request.apply(admin_user)).to eql(true)
|
63
|
+
|
64
|
+
expect(user.avatar_file_name).to eql(avatar.original_filename)
|
65
|
+
expect(user.avatar_content_type).to eql(avatar.content_type)
|
66
|
+
expect(user.avatar_file_size).to eql(avatar.tempfile.size)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
|
72
|
+
context "when an update can't be applied due to validation errors" do
|
73
|
+
let(:changes) do
|
74
|
+
{
|
75
|
+
title: ''
|
76
|
+
}
|
77
|
+
end
|
78
|
+
|
79
|
+
it "then returns false and does not apply the changes" do
|
80
|
+
update_request = UpdateRequest::Request.new(requester: user, updateable: post, update_schema: changes)
|
81
|
+
|
82
|
+
update_request.save!
|
83
|
+
|
84
|
+
title_before = post.title
|
85
|
+
|
86
|
+
expect { update_request.apply!(admin_user) }.to raise_error(ActiveRecord::RecordInvalid)
|
87
|
+
|
88
|
+
expect(update_request.updateable.errors.messages).to eql({ title: ["is too short (minimum is 3 characters)"] })
|
89
|
+
|
90
|
+
expect(post.reload.title).to eql(title_before)
|
91
|
+
expect(update_request.approver).to eql(nil)
|
92
|
+
expect(update_request.applied).to eql(false)
|
93
|
+
end
|
94
|
+
|
95
|
+
end
|
96
|
+
|
97
|
+
end
|
@@ -0,0 +1,97 @@
|
|
1
|
+
RSpec.describe "UpdateRequest::Request#apply:", type: :model do
|
2
|
+
let(:user) { create(:user) }
|
3
|
+
let(:post) { create(:post) }
|
4
|
+
let(:admin_user) { create(:admin_user) }
|
5
|
+
|
6
|
+
context "when a simple update" do
|
7
|
+
let(:changes) do
|
8
|
+
{
|
9
|
+
title: 'new title'
|
10
|
+
}
|
11
|
+
end
|
12
|
+
|
13
|
+
context "is applied WITHOUT an approver" do
|
14
|
+
|
15
|
+
it "then correctly applies the update" do
|
16
|
+
update_request = UpdateRequest::Request.new(requester: user, updateable: post, update_schema: changes)
|
17
|
+
|
18
|
+
update_request.save!
|
19
|
+
|
20
|
+
expect(update_request.apply).to eql(true)
|
21
|
+
|
22
|
+
expect(post.title).to eql(changes[:title])
|
23
|
+
expect(update_request.applied).to eql(true)
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
context "is applied with an approver" do
|
29
|
+
|
30
|
+
it "then correctly applies the update" do
|
31
|
+
update_request = UpdateRequest::Request.new(requester: user, updateable: post, update_schema: changes)
|
32
|
+
|
33
|
+
update_request.save!
|
34
|
+
|
35
|
+
expect(update_request.apply(admin_user)).to eql(true)
|
36
|
+
|
37
|
+
expect(post.title).to eql(changes[:title])
|
38
|
+
expect(update_request.approver).to eql(admin_user)
|
39
|
+
expect(update_request.applied).to eql(true)
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
context "when an update containing a file" do
|
47
|
+
let(:avatar) { Rack::Test::UploadedFile.new('spec/support/image.png', 'image/png') }
|
48
|
+
|
49
|
+
let(:changes) do
|
50
|
+
{
|
51
|
+
avatar: avatar,
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
context "is created" do
|
56
|
+
it "then correctly saves but does not apply that update" do
|
57
|
+
update_request = UpdateRequest::Request.new(requester: user, updateable: user, update_schema: changes)
|
58
|
+
|
59
|
+
# Creates correct update_request
|
60
|
+
expect{ update_request.save }.to change{ UpdateRequest::Request.count }.by(1)
|
61
|
+
|
62
|
+
expect(update_request.apply(admin_user)).to eql(true)
|
63
|
+
|
64
|
+
expect(user.avatar_file_name).to eql(avatar.original_filename)
|
65
|
+
expect(user.avatar_content_type).to eql(avatar.content_type)
|
66
|
+
expect(user.avatar_file_size).to eql(avatar.tempfile.size)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
|
72
|
+
context "when an update can't be applied due to validation errors" do
|
73
|
+
let(:changes) do
|
74
|
+
{
|
75
|
+
title: ''
|
76
|
+
}
|
77
|
+
end
|
78
|
+
|
79
|
+
it "then returns false and does not apply the changes" do
|
80
|
+
update_request = UpdateRequest::Request.new(requester: user, updateable: post, update_schema: changes)
|
81
|
+
|
82
|
+
update_request.save!
|
83
|
+
|
84
|
+
title_before = post.title
|
85
|
+
|
86
|
+
expect(update_request.apply(admin_user)).to eql(false)
|
87
|
+
|
88
|
+
expect(update_request.updateable.errors.messages).to eql({ title: ["is too short (minimum is 3 characters)"] })
|
89
|
+
|
90
|
+
expect(post.reload.title).to eql(title_before)
|
91
|
+
expect(update_request.approver).to eql(nil)
|
92
|
+
expect(update_request.applied).to eql(false)
|
93
|
+
end
|
94
|
+
|
95
|
+
end
|
96
|
+
|
97
|
+
end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
RSpec.describe "UpdateRequest::Request#save:", type: :model do
|
2
|
+
let(:user) { create(:user) }
|
3
|
+
let(:post) { create(:post) }
|
4
|
+
let(:admin_user) { create(:admin_user) }
|
5
|
+
|
6
|
+
context "when a simple update" do
|
7
|
+
let(:changes) do
|
8
|
+
{
|
9
|
+
title: 'new title'
|
10
|
+
}
|
11
|
+
end
|
12
|
+
|
13
|
+
context "is created" do
|
14
|
+
it "then correctly saves but does not apply that update" do
|
15
|
+
post_title_before = post.title
|
16
|
+
|
17
|
+
update_request = UpdateRequest::Request.new(requester: user, updateable: post, update_schema: changes)
|
18
|
+
|
19
|
+
# Creates correct update_request
|
20
|
+
expect{ update_request.save }.to change{ UpdateRequest::Request.count }.by(1)
|
21
|
+
|
22
|
+
expect(update_request.requester).to eql(user)
|
23
|
+
expect(update_request.updateable).to eql(post)
|
24
|
+
expect(update_request.update_schema).to eql(changes)
|
25
|
+
expect(update_request.applied).to eql(false)
|
26
|
+
|
27
|
+
# Does not apply update
|
28
|
+
expect(post.reload.title).to eql(post_title_before)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
context "when an update contains characters outside of yaml's support" do
|
35
|
+
let(:changes) do
|
36
|
+
{
|
37
|
+
title: "\u0092",
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
context "is created" do
|
42
|
+
it "then correctly saves but does not apply that update" do
|
43
|
+
post_title_before = post.title
|
44
|
+
|
45
|
+
update_request = UpdateRequest::Request.new(requester: user, updateable: post, update_schema: changes)
|
46
|
+
|
47
|
+
# Creates correct update_request
|
48
|
+
expect{ update_request.save }.to change{ UpdateRequest::Request.count }.by(1)
|
49
|
+
|
50
|
+
expect(update_request.requester).to eql(user)
|
51
|
+
expect(update_request.updateable).to eql(post)
|
52
|
+
expect(update_request.update_schema).to eql(changes)
|
53
|
+
expect(update_request.applied).to eql(false)
|
54
|
+
|
55
|
+
# Does not apply update
|
56
|
+
expect(post.reload.title).to eql(post_title_before)
|
57
|
+
|
58
|
+
begin
|
59
|
+
UpdateRequest::Request.last.update_schema
|
60
|
+
rescue Psych::SyntaxError
|
61
|
+
fail
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
|
68
|
+
context "when an update containing a file" do
|
69
|
+
let(:avatar) { Rack::Test::UploadedFile.new('spec/support/image.png', 'image/png') }
|
70
|
+
|
71
|
+
let(:changes) do
|
72
|
+
{
|
73
|
+
avatar: avatar,
|
74
|
+
}
|
75
|
+
end
|
76
|
+
|
77
|
+
context "is created" do
|
78
|
+
it "then correctly saves but does not apply that update" do
|
79
|
+
update_request = UpdateRequest::Request.new(requester: user, updateable: user, update_schema: changes)
|
80
|
+
|
81
|
+
user_avatar_before = user.avatar
|
82
|
+
|
83
|
+
# Creates correct update_request
|
84
|
+
expect{ update_request.save }.to change{ UpdateRequest::Request.count }.by(1)
|
85
|
+
|
86
|
+
expect(update_request.requester).to eql(user)
|
87
|
+
expect(update_request.updateable).to eql(user)
|
88
|
+
|
89
|
+
expect(update_request.applied).to eql(false)
|
90
|
+
|
91
|
+
uploaded_file = update_request.update_schema['avatar'].instance
|
92
|
+
|
93
|
+
expect(uploaded_file.attachment_file_name).to eql(avatar.original_filename)
|
94
|
+
expect(uploaded_file.attachment_content_type).to eql(avatar.content_type)
|
95
|
+
expect(uploaded_file.attachment_file_size).to eql(avatar.tempfile.size)
|
96
|
+
|
97
|
+
# Does not apply update
|
98
|
+
expect(user.reload.avatar).to eql(user_avatar_before)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
end
|
103
|
+
|
104
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
ENV["RAILS_ENV"] ||= "test"
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
|
5
|
+
# Add this to load your dummy app's environment file. This file will require
|
6
|
+
# the application.rb file in the dummy directory, and initialise the dummy app.
|
7
|
+
# Very simple, now you have your dummy application in memory for your specs.
|
8
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
9
|
+
|
10
|
+
require "rspec/rails"
|
11
|
+
|
12
|
+
ActiveRecord::Migration.maintain_test_schema!
|
13
|
+
|
14
|
+
RSpec.configure do |config|
|
15
|
+
|
16
|
+
config.use_transactional_fixtures = true
|
17
|
+
|
18
|
+
config.infer_spec_type_from_file_location!
|
19
|
+
|
20
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'awesome_print'
|
2
|
+
require 'factory_bot_rails'
|
3
|
+
|
4
|
+
ENV['RAILS_ENV'] ||= 'test'
|
5
|
+
|
6
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
7
|
+
|
8
|
+
Rails.backtrace_cleaner.remove_silencers!
|
9
|
+
|
10
|
+
# Load support files
|
11
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
12
|
+
|
13
|
+
Dir["#{File.dirname(__FILE__)}/factories/**/*.rb"].each { |f| require f }
|
14
|
+
|
15
|
+
RSpec.configure do |config|
|
16
|
+
config.order = "random"
|
17
|
+
|
18
|
+
config.expect_with :rspec do |expectations|
|
19
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
20
|
+
end
|
21
|
+
|
22
|
+
config.mock_with :rspec do |mocks|
|
23
|
+
mocks.verify_partial_doubles = true
|
24
|
+
end
|
25
|
+
|
26
|
+
config.disable_monkey_patching!
|
27
|
+
|
28
|
+
config.filter_run :focus
|
29
|
+
config.run_all_when_everything_filtered = true
|
30
|
+
|
31
|
+
# Include FactoryBot methods so you can use build instead of FactoryBot.build
|
32
|
+
config.include FactoryBot::Syntax::Methods
|
33
|
+
end
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: update_request
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aleck Greenham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 4.0.0
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: sqlite3
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
41
|
description: Rails engine for allowing approvable resource updates that support file
|
56
42
|
uploads
|
57
43
|
email:
|
@@ -70,42 +56,62 @@ files:
|
|
70
56
|
- lib/update_request.rb
|
71
57
|
- lib/update_request/engine.rb
|
72
58
|
- lib/update_request/version.rb
|
73
|
-
-
|
74
|
-
-
|
75
|
-
-
|
76
|
-
-
|
77
|
-
-
|
78
|
-
-
|
79
|
-
-
|
80
|
-
-
|
81
|
-
-
|
82
|
-
-
|
83
|
-
-
|
84
|
-
-
|
85
|
-
-
|
86
|
-
-
|
87
|
-
-
|
88
|
-
-
|
89
|
-
-
|
90
|
-
-
|
91
|
-
-
|
92
|
-
-
|
93
|
-
-
|
94
|
-
-
|
95
|
-
-
|
96
|
-
-
|
97
|
-
-
|
98
|
-
-
|
99
|
-
-
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
-
|
104
|
-
-
|
105
|
-
-
|
106
|
-
-
|
107
|
-
-
|
108
|
-
-
|
59
|
+
- spec/dummy/README.rdoc
|
60
|
+
- spec/dummy/Rakefile
|
61
|
+
- spec/dummy/app/assets/javascripts/application.js
|
62
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
63
|
+
- spec/dummy/app/controllers/application_controller.rb
|
64
|
+
- spec/dummy/app/helpers/application_helper.rb
|
65
|
+
- spec/dummy/app/models/admin_user.rb
|
66
|
+
- spec/dummy/app/models/post.rb
|
67
|
+
- spec/dummy/app/models/user.rb
|
68
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
69
|
+
- spec/dummy/bin/bundle
|
70
|
+
- spec/dummy/bin/rails
|
71
|
+
- spec/dummy/bin/rake
|
72
|
+
- spec/dummy/bin/setup
|
73
|
+
- spec/dummy/config.ru
|
74
|
+
- spec/dummy/config/application.rb
|
75
|
+
- spec/dummy/config/boot.rb
|
76
|
+
- spec/dummy/config/database.yml
|
77
|
+
- spec/dummy/config/environment.rb
|
78
|
+
- spec/dummy/config/environments/development.rb
|
79
|
+
- spec/dummy/config/environments/production.rb
|
80
|
+
- spec/dummy/config/environments/test.rb
|
81
|
+
- spec/dummy/config/initializers/assets.rb
|
82
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
83
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
84
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
85
|
+
- spec/dummy/config/initializers/inflections.rb
|
86
|
+
- spec/dummy/config/initializers/mime_types.rb
|
87
|
+
- spec/dummy/config/initializers/session_store.rb
|
88
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
89
|
+
- spec/dummy/config/locales/en.yml
|
90
|
+
- spec/dummy/config/routes.rb
|
91
|
+
- spec/dummy/config/secrets.yml
|
92
|
+
- spec/dummy/db/migrate/20180301065842_create_users.rb
|
93
|
+
- spec/dummy/db/migrate/20180301070148_create_posts.rb
|
94
|
+
- spec/dummy/db/migrate/20180301070316_create_admin_users.rb
|
95
|
+
- spec/dummy/db/schema.rb
|
96
|
+
- spec/dummy/db/test.sqlite3
|
97
|
+
- spec/dummy/log/test.log
|
98
|
+
- spec/dummy/public/404.html
|
99
|
+
- spec/dummy/public/422.html
|
100
|
+
- spec/dummy/public/500.html
|
101
|
+
- spec/dummy/public/favicon.ico
|
102
|
+
- spec/dummy/public/system/update_request/updated_files/attachments/000/000/001/original/image.png
|
103
|
+
- spec/dummy/public/system/update_request/updated_files/attachments/000/000/002/original/image.png
|
104
|
+
- spec/dummy/public/system/users/avatars/000/000/001/original/image.png
|
105
|
+
- spec/factories/admin_users.rb
|
106
|
+
- spec/factories/posts.rb
|
107
|
+
- spec/factories/users.rb
|
108
|
+
- spec/integration/navigation_test.rb
|
109
|
+
- spec/models/update_request/request/apply_bang_spec.rb
|
110
|
+
- spec/models/update_request/request/apply_spec.rb
|
111
|
+
- spec/models/update_request/request/save_spec.rb
|
112
|
+
- spec/rails_helper.rb
|
113
|
+
- spec/spec_helper.rb
|
114
|
+
- spec/support/image.png
|
109
115
|
homepage: https://github.com/greena13/update_request
|
110
116
|
licenses:
|
111
117
|
- MIT
|
@@ -126,44 +132,64 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
132
|
version: '0'
|
127
133
|
requirements: []
|
128
134
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.2.
|
135
|
+
rubygems_version: 2.5.2.1
|
130
136
|
signing_key:
|
131
137
|
specification_version: 4
|
132
138
|
summary: Rails engine for approvable resource updates
|
133
139
|
test_files:
|
134
|
-
-
|
135
|
-
-
|
136
|
-
-
|
137
|
-
-
|
138
|
-
-
|
139
|
-
-
|
140
|
-
-
|
141
|
-
-
|
142
|
-
-
|
143
|
-
-
|
144
|
-
-
|
145
|
-
-
|
146
|
-
-
|
147
|
-
-
|
148
|
-
-
|
149
|
-
-
|
150
|
-
-
|
151
|
-
-
|
152
|
-
-
|
153
|
-
-
|
154
|
-
-
|
155
|
-
-
|
156
|
-
-
|
157
|
-
-
|
158
|
-
-
|
159
|
-
-
|
160
|
-
-
|
161
|
-
-
|
162
|
-
-
|
163
|
-
-
|
164
|
-
-
|
165
|
-
-
|
166
|
-
-
|
167
|
-
-
|
168
|
-
-
|
169
|
-
- test
|
140
|
+
- spec/dummy/app/assets/javascripts/application.js
|
141
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
142
|
+
- spec/dummy/app/controllers/application_controller.rb
|
143
|
+
- spec/dummy/app/helpers/application_helper.rb
|
144
|
+
- spec/dummy/app/models/admin_user.rb
|
145
|
+
- spec/dummy/app/models/post.rb
|
146
|
+
- spec/dummy/app/models/user.rb
|
147
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
148
|
+
- spec/dummy/bin/bundle
|
149
|
+
- spec/dummy/bin/rails
|
150
|
+
- spec/dummy/bin/rake
|
151
|
+
- spec/dummy/bin/setup
|
152
|
+
- spec/dummy/config/application.rb
|
153
|
+
- spec/dummy/config/boot.rb
|
154
|
+
- spec/dummy/config/database.yml
|
155
|
+
- spec/dummy/config/environment.rb
|
156
|
+
- spec/dummy/config/environments/development.rb
|
157
|
+
- spec/dummy/config/environments/production.rb
|
158
|
+
- spec/dummy/config/environments/test.rb
|
159
|
+
- spec/dummy/config/initializers/assets.rb
|
160
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
161
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
162
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
163
|
+
- spec/dummy/config/initializers/inflections.rb
|
164
|
+
- spec/dummy/config/initializers/mime_types.rb
|
165
|
+
- spec/dummy/config/initializers/session_store.rb
|
166
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
167
|
+
- spec/dummy/config/locales/en.yml
|
168
|
+
- spec/dummy/config/routes.rb
|
169
|
+
- spec/dummy/config/secrets.yml
|
170
|
+
- spec/dummy/config.ru
|
171
|
+
- spec/dummy/db/migrate/20180301065842_create_users.rb
|
172
|
+
- spec/dummy/db/migrate/20180301070148_create_posts.rb
|
173
|
+
- spec/dummy/db/migrate/20180301070316_create_admin_users.rb
|
174
|
+
- spec/dummy/db/schema.rb
|
175
|
+
- spec/dummy/db/test.sqlite3
|
176
|
+
- spec/dummy/log/test.log
|
177
|
+
- spec/dummy/public/404.html
|
178
|
+
- spec/dummy/public/422.html
|
179
|
+
- spec/dummy/public/500.html
|
180
|
+
- spec/dummy/public/favicon.ico
|
181
|
+
- spec/dummy/public/system/update_request/updated_files/attachments/000/000/001/original/image.png
|
182
|
+
- spec/dummy/public/system/update_request/updated_files/attachments/000/000/002/original/image.png
|
183
|
+
- spec/dummy/public/system/users/avatars/000/000/001/original/image.png
|
184
|
+
- spec/dummy/Rakefile
|
185
|
+
- spec/dummy/README.rdoc
|
186
|
+
- spec/factories/admin_users.rb
|
187
|
+
- spec/factories/posts.rb
|
188
|
+
- spec/factories/users.rb
|
189
|
+
- spec/integration/navigation_test.rb
|
190
|
+
- spec/models/update_request/request/apply_bang_spec.rb
|
191
|
+
- spec/models/update_request/request/apply_spec.rb
|
192
|
+
- spec/models/update_request/request/save_spec.rb
|
193
|
+
- spec/rails_helper.rb
|
194
|
+
- spec/spec_helper.rb
|
195
|
+
- spec/support/image.png
|