Skip to content

Commit

Permalink
added colorpicker
Browse files Browse the repository at this point in the history
  • Loading branch information
dnagir committed Aug 14, 2011
1 parent cfefa8d commit 76afe98
Show file tree
Hide file tree
Showing 106 changed files with 682 additions and 128 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Expand Up @@ -2,6 +2,6 @@
log/*.log
pkg/
*.swp
test/dummy/db/*.sqlite3
test/dummy/log/*.log
test/dummy/tmp/
spec/dummy/db/*.sqlite3
spec/dummy/log/*.log
spec/dummy/tmp/
29 changes: 29 additions & 0 deletions spec/colorpicker_spec.rb
@@ -0,0 +1,29 @@
require 'spec_helper'

describe 'Assets for Colorpicker' do
subject { assets }

it { should serve 'pakunok/colorpicker.js' }
it { should serve 'pakunok/colorpicker.css' }
it "should not look like it has hardcoded image links" do
asset_for('pakunok/colorpicker.css').to_s.should_not include '/images/'
end


%w{
colorpicker_background.png
colorpicker_hex.png
colorpicker_hsb_b.png
colorpicker_hsb_h.png
colorpicker_hsb_s.png
colorpicker_indic.gif
colorpicker_overlay.png
colorpicker_rgb_b.png
colorpicker_rgb_g.png
colorpicker_rgb_r.png
colorpicker_select.gif
colorpicker_submit.png
}.each do |image_name|
it { should serve "pakunok/colorpicker/#{image_name}" }
end
end
123 changes: 0 additions & 123 deletions spec/dummy/log/test.log

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 0 additions & 2 deletions spec/jquery-ui_spec.rb
@@ -1,7 +1,5 @@
require 'spec_helper'



describe 'Assets for jQuery-UI' do
subject { assets }
everything = %w{core.js accordion.js autocomplete.js button.js datepicker.js dialog.js
Expand Down
5 changes: 5 additions & 0 deletions spec/support/global.rb
Expand Up @@ -5,3 +5,8 @@ def assets
def asset_for(name)
assets[name]
end

def extract_image_urls_from str
# Could be better of course, but does the job for now
str.scan(/url\((.+)\)/).map {|g| g[0]}
end
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 76afe98

Please sign in to comment.