+x on files makes no sense unless they really are executable

rails in the script dir makes no sense, use binstubs or bundler instead
This commit is contained in:
Sam 2013-05-09 17:35:15 +10:00
parent 0f0fd281a8
commit 4f328e3e45
27 changed files with 13 additions and 9 deletions

0
app/assets/fonts/FontAwesome.otf Executable file → Normal file
View file

0
app/assets/fonts/fontawesome-webfont.eot Executable file → Normal file
View file

0
app/assets/fonts/fontawesome-webfont.ttf Executable file → Normal file
View file

0
app/assets/fonts/fontawesome-webfont.woff Executable file → Normal file
View file

0
app/assets/images/d-logo-sketch.png Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View file

0
app/assets/javascripts/discourse/models/post.js Executable file → Normal file
View file

0
app/assets/javascripts/discourse/models/topic.js Executable file → Normal file
View file

View file

View file

View file

0
app/assets/stylesheets/application/compose.css.scss Executable file → Normal file
View file

0
app/assets/stylesheets/application/faqs.css.scss Executable file → Normal file
View file

0
app/assets/stylesheets/application/topic-list.css.scss Executable file → Normal file
View file

0
app/assets/stylesheets/components/badges.css.scss Executable file → Normal file
View file

0
app/assets/stylesheets/components/buttons.css.scss Executable file → Normal file
View file

0
app/assets/stylesheets/components/navs.css.scss Executable file → Normal file
View file

0
app/assets/stylesheets/foundation/base.css.scss Executable file → Normal file
View file

0
app/assets/stylesheets/foundation/helpers.css.scss Executable file → Normal file
View file

0
app/assets/stylesheets/vendor/font-awesome.css.erb vendored Executable file → Normal file
View file

0
app/assets/stylesheets/vendor/normalize.css vendored Executable file → Normal file
View file

0
app/models/category.rb Executable file → Normal file
View file

0
app/models/site_setting.rb Executable file → Normal file
View file

0
app/serializers/post_serializer.rb Executable file → Normal file
View file

View file

@ -1,6 +0,0 @@
#!/usr/bin/env ruby
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
APP_PATH = File.expand_path('../../config/application', __FILE__)
require File.expand_path('../../config/boot', __FILE__)
require 'rails/commands'

0
script/version_bump.rb Executable file → Normal file
View file

View file

@ -755,6 +755,7 @@ describe Guardian do
end
context 'can_grant_moderation?' do
it "wont allow a non logged in user to grant an moderator's access" do
Guardian.new.can_grant_moderation?(user).should be_false
end
@ -763,8 +764,8 @@ describe Guardian do
Guardian.new(user).can_grant_moderation?(moderator).should be_false
end
it 'wont allow an admin to grant their own access' do
Guardian.new(admin).can_grant_moderation?(admin).should be_false
it 'will allow an admin to grant their own moderator access' do
Guardian.new(admin).can_grant_moderation?(admin).should be_true
end
it 'wont allow an admin to grant it to an already moderator' do
@ -785,13 +786,22 @@ describe Guardian do
Guardian.new(user).can_revoke_moderation?(moderator).should be_false
end
it 'wont allow an moderator to revoke their own moderator' do
it 'wont allow a moderator to revoke their own moderator' do
Guardian.new(moderator).can_revoke_moderation?(moderator).should be_false
end
it "allows an admin to revoke a moderator's access" do
Guardian.new(admin).can_revoke_moderation?(moderator).should be_true
end
it "allows an admin to revoke a moderator's access from self" do
admin.moderator = true
Guardian.new(admin).can_revoke_moderation?(admin).should be_true
end
it "does not allow revoke from non moderators" do
Guardian.new(admin).can_revoke_moderation?(admin).should be_false
end
end
context "can_see_pending_invites_from?" do