Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ PATH
compass-rails
haml
i18n (~> 0.6)
jquery-rails (~> 2.2.1)
jquery-rails (~> 3.1.4)
jquery-ui-rails
json
maruku (= 0.6.1)
opencpu (~> 0.9.0)
Expand Down Expand Up @@ -74,7 +75,7 @@ GEM
launchy
childprocess (0.5.9)
ffi (~> 1.0, >= 1.0.11)
chunky_png (1.3.6)
chunky_png (1.3.7)
codeclimate-test-reporter (0.3.0)
simplecov (>= 0.7.1, < 1.0.0)
coderay (1.1.1)
Expand Down Expand Up @@ -151,9 +152,11 @@ GEM
multi_xml (>= 0.5.2)
i18n (0.7.0)
ice_nine (0.11.2)
jquery-rails (2.2.2)
jquery-rails (3.1.4)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (5.0.5)
railties (>= 3.2.16)
json (1.8.3)
launchy (2.4.2)
addressable (~> 2.3)
Expand Down
2 changes: 1 addition & 1 deletion Guardfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ guard :teaspoon, teaspoon_options do
end

guard :rubocop, all_on_start: false, cli: ['-D'] do
excludes = YAML.load_file('.rubocop.yml')['AllCops']['Excludes']
excludes = YAML.load_file('.rubocop.yml')['AllCops']['Exclude']
watch(%r{(.+\.rb)$}) { |m| m[0] unless excludes.find { |excluded| File.fnmatch(excluded, m[0]) } }
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
end
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/quby/answers/hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
$(this).dialog("close");
}
}
});
}).dialog({position: {my: 'center top', at: 'center', of: $('#content')}}); // center dialog fix
};

function handleDownHotKeys(event){
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/quby/application.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $masthead_bg: #0f72a4;
@import "partials/text.scss";
@import "screen";
@import "table/layout";
@import "redmond/jquery-ui-1.8.7.custom";
@import "redmond/jquery-ui-1.11.4.custom";

// display modes
@import "paged";
Expand Down
9 changes: 6 additions & 3 deletions gemfiles/rails40.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ PATH
compass-rails
haml
i18n (~> 0.6)
jquery-rails (~> 2.2.1)
jquery-rails (~> 3.1.4)
jquery-ui-rails
json
maruku (= 0.6.1)
opencpu (~> 0.9.0)
Expand Down Expand Up @@ -148,10 +149,12 @@ GEM
multi_xml (>= 0.5.2)
i18n (0.7.0)
ice_nine (0.11.2)
jquery-rails (2.2.2)
jquery-rails (3.1.4)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.8.3)
jquery-ui-rails (5.0.5)
railties (>= 3.2.16)
json (2.0.2)
launchy (2.4.3)
addressable (~> 2.3)
libv8 (3.16.14.15)
Expand Down
7 changes: 5 additions & 2 deletions gemfiles/rails41.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ PATH
compass-rails
haml
i18n (~> 0.6)
jquery-rails (~> 2.2.1)
jquery-rails (~> 3.1.4)
jquery-ui-rails
json
maruku (= 0.6.1)
opencpu (~> 0.9.0)
Expand Down Expand Up @@ -150,9 +151,11 @@ GEM
multi_xml (>= 0.5.2)
i18n (0.7.0)
ice_nine (0.11.2)
jquery-rails (2.2.2)
jquery-rails (3.1.4)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (5.0.5)
railties (>= 3.2.16)
json (1.8.3)
launchy (2.4.3)
addressable (~> 2.3)
Expand Down
7 changes: 5 additions & 2 deletions gemfiles/rails42.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ PATH
compass-rails
haml
i18n (~> 0.6)
jquery-rails (~> 2.2.1)
jquery-rails (~> 3.1.4)
jquery-ui-rails
json
maruku (= 0.6.1)
opencpu (~> 0.9.0)
Expand Down Expand Up @@ -161,9 +162,11 @@ GEM
multi_xml (>= 0.5.2)
i18n (0.7.0)
ice_nine (0.11.2)
jquery-rails (2.2.2)
jquery-rails (3.1.4)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (5.0.5)
railties (>= 3.2.16)
json (1.8.3)
launchy (2.4.3)
addressable (~> 2.3)
Expand Down
1 change: 1 addition & 0 deletions lib/quby/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
require 'compass'
require 'compass-rails'
require 'jquery-rails'
require 'jquery-ui-rails'
require 'susy'
require 'andand'
require 'quby/lookup_table'
Expand Down
3 changes: 2 additions & 1 deletion quby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ Gem::Specification.new do |s|
s.add_dependency "virtus", ">= 1.0.3", "< 2.0"
s.add_dependency "i18n", "~> 0.6"

s.add_dependency "jquery-rails", "~> 2.2.1"
s.add_dependency "jquery-rails", "~> 3.1.4"
s.add_dependency "jquery-ui-rails"

s.add_development_dependency 'combustion', '~> 0.5.1'
s.add_development_dependency 'rspec-rails', '~> 2.14.0'
Expand Down
28 changes: 28 additions & 0 deletions spec/features/external_links_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
require 'spec_helper'

feature 'External links' do
let(:test_page_url) do
"http://#{Capybara.current_session.server.host}:#{Capybara.current_session.server.port}/test.html"
end

let(:questionnaire) do
inject_questionnaire("test", <<-END)
allow_hotkeys :all
panel do
question :v1, type: :radio, required: true, deselectable: true do
option :a1, value: 1, description: "~~#{test_page_url}~~Testpage~~"
option :a2, value: 2, description: "Nee"
end;
end; end_panel
END
end

scenario 'show page in modal window when link is clicked', js: true do
visit_new_answer_for(questionnaire)
click_on('Testpage')
within_frame('modalFrame') do
expect(current_url).to match(test_page_url)
expect(page).to have_content('TESTING')
end
end
end
13 changes: 13 additions & 0 deletions spec/features/hotkeys_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,17 @@
page.driver.execute_script(keypress_1)
page.should have_checked_field("answer_v1_a1")
end

scenario 'show and close hotkeys dialog when help link is clicked', js: true do
visit_new_answer_for(questionnaire)

page.should have_content('Sneltoetsen Help')
page.should_not have_content('Gebruik de volgende toetsen')

page.click_link('Sneltoetsen Help')
page.should have_content('Gebruik de volgende toetsen')

page.find('button', text: 'Sluiten').trigger('click')
page.should_not have_content('Gebruik de volgende toetsen')
end
end
1 change: 1 addition & 0 deletions spec/internal/public/test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TESTING
Binary file modified vendor/assets/images/quby/ui-bg_glass_75_d0e5f5_1x400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vendor/assets/images/quby/ui-bg_glass_85_dfeffc_1x400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vendor/assets/images/quby/ui-bg_glass_95_fef1ec_1x400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vendor/assets/images/quby/ui-bg_gloss-wave_55_5c9ccc_500x100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vendor/assets/images/quby/ui-bg_inset-hard_100_f5f8f9_1x100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vendor/assets/images/quby/ui-bg_inset-hard_100_fcfdfd_1x100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vendor/assets/images/quby/ui-icons_217bc0_256x240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vendor/assets/images/quby/ui-icons_2e83ff_256x240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vendor/assets/images/quby/ui-icons_469bdd_256x240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vendor/assets/images/quby/ui-icons_6da8d5_256x240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vendor/assets/images/quby/ui-icons_cd0a0a_256x240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vendor/assets/images/quby/ui-icons_d8e7f3_256x240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vendor/assets/images/quby/ui-icons_f9bd01_256x240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading