sprites 0.0.1.pre → 0.0.1.pre2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +0 -0
- data/Rakefile +0 -1
- data/lib/sprites/cli/command_line_option_parser.rb +3 -4
- data/lib/sprites/configuration.rb +6 -0
- data/lib/sprites/rails/railtie.rb +27 -0
- data/lib/sprites/rails.rb +3 -0
- data/lib/sprites/sprite.rb +1 -3
- data/lib/sprites/version.rb +1 -1
- data/log/development.log +0 -0
- data/log/test.log +0 -0
- data/spec/fixtures/rails_project1/Rakefile +1 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/.DS_Store +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-default-28.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-default-cap-28.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-default-cap-long.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-default.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-onclick-28.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-onclick-cap-28.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-onclick-cap-long.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-onclick.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-rollover-28.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-rollover-cap-28.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-rollover-cap-long.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-rollover.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blackarrow-default.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blackarrow-onclick.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blackarrow-rollover.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-default-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-default-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-default-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-default.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-onclick-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-onclick-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-onclick-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-onclick.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-rollover-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-rollover-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-rollover-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-rollover.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-default-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-default-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-default-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-default.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-onclick-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-onclick-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-onclick-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-onclick.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-rollover-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-rollover-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-rollover-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-rollover.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-default-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-default-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-default-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-default.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-onclick-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-onclick-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-onclick-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-onclick.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-rollover-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-rollover-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-rollover-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-rollover.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-default-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-default-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-default-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-default.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-onclick-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-onclick-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-onclick-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-onclick.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-rollover-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-rollover-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-rollover-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-rollover.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-default-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-default-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-default-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-default.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-onclick-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-onclick-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-onclick-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-onclick.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-rollover-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-rollover-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-rollover-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-rollover.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-default-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-default-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-default-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-default.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-onclick-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-onclick-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-onclick-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-onclick.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-rollover-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-rollover-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-rollover-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-rollover.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-black-default-28.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-black-default-cap-28.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-black-onclick-28.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-black-onclick-cap-28.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-black-rollover-28.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-black-rollover-cap-28.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-blue-default-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-blue-default.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-blue-onclick-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-blue-onclick.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-blue-rollover-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-blue-rollover.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-green-default-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-green-default-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-green-default-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-green-default.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-green-onclick-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-green-onclick-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-green-onclick-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-green-onclick.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-green-rollover-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-green-rollover-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-green-rollover-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-green-rollover.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-red-default-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-red-default.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-red-onclick-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-red-onclick.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-red-rollover-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-red-rollover.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-trans-default-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-trans-default-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-trans-default-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-trans-default.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-trans-onclick-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-trans-onclick-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-trans-onclick-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-trans-onclick.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-trans-rollover-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-trans-rollover-drop.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-trans-rollover-edge.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-trans-rollover.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-white-default-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-white-default.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-white-onclick-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-white-onclick.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-white-rollover-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-white-rollover.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-yellow-default-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-yellow-default.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-yellow-onclick-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-yellow-onclick.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-yellow-rollover-cap.png +0 -0
- data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/dark_background/btn-yellow-rollover.png +0 -0
- data/spec/fixtures/rails_project1/config/application.rb +58 -0
- data/spec/fixtures/rails_project1/config/boot.rb +6 -0
- data/spec/fixtures/rails_project1/config/environment.rb +9 -0
- data/spec/fixtures/rails_project1/config/sprites.rb +145 -0
- data/spec/fixtures/rails_project1/log/test.log +0 -0
- data/spec/integration/rails/rails_spec.rb +17 -0
- data/sprites.gemspec +2 -0
- metadata +344 -15
- data/lib/sprites/core_ext/pathname.rb +0 -7
- data/spec/lib/sprites/core_ext/pathname_spec.rb +0 -4
data/README.md
ADDED
File without changes
|
data/Rakefile
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'optparse'
|
2
|
-
require 'pathname'
|
3
2
|
|
4
3
|
module Sprites
|
5
4
|
class CommandLineOptionParser < OptionParser
|
@@ -23,9 +22,9 @@ module Sprites
|
|
23
22
|
|
24
23
|
def extract_sprite_definition_file_path(arguments)
|
25
24
|
sprite_def_file_pathname = if arguments[0] =~ %r{^.+\.rb}
|
26
|
-
Pathname
|
25
|
+
Pathname(arguments.shift)
|
27
26
|
elsif file_exists?('config/sprites.rb')
|
28
|
-
Pathname
|
27
|
+
Pathname('config/sprites.rb')
|
29
28
|
else
|
30
29
|
raise
|
31
30
|
end
|
@@ -36,7 +35,7 @@ module Sprites
|
|
36
35
|
end
|
37
36
|
|
38
37
|
def file_exists?(path)
|
39
|
-
Pathname
|
38
|
+
Pathname(path).exist?
|
40
39
|
end
|
41
40
|
|
42
41
|
def setup_parser(opts)
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'rails/railtie'
|
2
|
+
require 'sprites'
|
3
|
+
|
4
|
+
module Sprites
|
5
|
+
class Railtie < Rails::Railtie
|
6
|
+
rake_tasks do
|
7
|
+
desc "Generate sprites and stylesheets"
|
8
|
+
task :sprites => :environment do
|
9
|
+
assets_root = Rails.application.config.assets[:enabled] ? 'app/assets' : 'public'
|
10
|
+
|
11
|
+
::Sprites.configure do
|
12
|
+
sprites_path Rails.root.join(assets_root, 'images/sprites')
|
13
|
+
sprite_stylesheets_path Rails.root.join(assets_root, 'stylesheets/sprites')
|
14
|
+
sprite_pieces_path Rails.root.join(assets_root, 'images/sprite_images')
|
15
|
+
end unless ::Sprites.configuration.configured?
|
16
|
+
|
17
|
+
unless (def_file_path = Rails.root.join('config/sprites.rb')).exist?
|
18
|
+
raise CliApplication::DefinitionFileNotFound
|
19
|
+
end
|
20
|
+
|
21
|
+
load def_file_path
|
22
|
+
sprite_generator = ChunkyPngGenerator.new(::Sprites.configuration)
|
23
|
+
sprite_generator.generate(::Sprites.application.sprites)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/sprites/sprite.rb
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
require 'fileutils'
|
2
|
-
require 'pathname'
|
3
|
-
require 'sprites/core_ext/pathname'
|
4
2
|
require 'active_support/core_ext/array/extract_options'
|
5
3
|
require 'active_support/core_ext/object/try'
|
6
4
|
require 'sprites/sprite_pieces'
|
@@ -32,7 +30,7 @@ module Sprites
|
|
32
30
|
|
33
31
|
def define(*args, &blk)
|
34
32
|
@options = @options.merge args.extract_options!
|
35
|
-
@path ||= Pathname
|
33
|
+
@path ||= Pathname(path_for_arguments(@options, *args))
|
36
34
|
@stylesheet ||= Stylesheet.new(css_path, self)
|
37
35
|
@options.delete(@path.to_s)
|
38
36
|
set_options
|
data/lib/sprites/version.rb
CHANGED
data/log/development.log
ADDED
File without changes
|
data/log/test.log
ADDED
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
require File.expand_path('../config/application', __FILE__)
|
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-default-28.png
ADDED
Binary file
|
Binary file
|
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-default.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-onclick-28.png
ADDED
Binary file
|
Binary file
|
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-onclick.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-rollover-28.png
ADDED
Binary file
|
Binary file
|
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-black-rollover.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blackarrow-default.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blackarrow-onclick.png
ADDED
Binary file
|
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-default-cap.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-default-drop.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-default-edge.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-default.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-onclick-cap.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-onclick-drop.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-onclick-edge.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-onclick.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-rollover-cap.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-rollover-drop.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-rollover-edge.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-blue-rollover.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-default-cap.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-default-drop.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-default-edge.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-default.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-onclick-cap.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-onclick-drop.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-onclick-edge.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-onclick.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-rollover-cap.png
ADDED
Binary file
|
Binary file
|
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-green-rollover.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-default-cap.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-default-drop.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-default-edge.png
ADDED
Binary file
|
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-onclick-cap.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-onclick-drop.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-onclick-edge.png
ADDED
Binary file
|
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-rollover-cap.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-rollover-drop.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-rollover-edge.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-red-rollover.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-default-cap.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-default-drop.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-default-edge.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-default.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-onclick-cap.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-onclick-drop.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-onclick-edge.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-onclick.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-rollover-cap.png
ADDED
Binary file
|
Binary file
|
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-trans-rollover.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-default-cap.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-default-drop.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-default-edge.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-default.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-onclick-cap.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-onclick-drop.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-onclick-edge.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-onclick.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-rollover-cap.png
ADDED
Binary file
|
Binary file
|
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-white-rollover.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-default-cap.png
ADDED
Binary file
|
Binary file
|
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-default.png
ADDED
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-onclick-cap.png
ADDED
Binary file
|
Binary file
|
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-onclick.png
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/spec/fixtures/rails_project1/app/assets/images/sprite_images/buttons/btn-yellow-rollover.png
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,58 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
# Pick the frameworks you want:
|
4
|
+
require "active_record/railtie"
|
5
|
+
require "action_controller/railtie"
|
6
|
+
# require "action_mailer/railtie"
|
7
|
+
# require "active_resource/railtie"
|
8
|
+
require "sprockets/railtie"
|
9
|
+
require 'sprites/rails'
|
10
|
+
|
11
|
+
if defined?(Bundler)
|
12
|
+
# If you precompile assets before deploying to production, use this line
|
13
|
+
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
14
|
+
# If you want your assets lazily compiled in production, use this line
|
15
|
+
# Bundler.require(:default, :assets, Rails.env)
|
16
|
+
end
|
17
|
+
|
18
|
+
module SpritesRailsTestApp
|
19
|
+
class Application < Rails::Application
|
20
|
+
config.root = File.expand_path('../..', __FILE__)
|
21
|
+
config.cache_classes = false
|
22
|
+
|
23
|
+
# Settings in config/environments/* take precedence over those specified here.
|
24
|
+
# Application configuration should go into files in config/initializers
|
25
|
+
# -- all .rb files in that directory are automatically loaded.
|
26
|
+
|
27
|
+
# Custom directories with classes and modules you want to be autoloadable.
|
28
|
+
# config.autoload_paths += %W(#{config.root}/lib)
|
29
|
+
|
30
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
31
|
+
# :all can be used as a placeholder for all plugins not explicitly named.
|
32
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
33
|
+
|
34
|
+
# Activate observers that should always be running.
|
35
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
36
|
+
|
37
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
38
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
39
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
40
|
+
|
41
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
42
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
43
|
+
# config.i18n.default_locale = :de
|
44
|
+
|
45
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
46
|
+
config.encoding = "utf-8"
|
47
|
+
|
48
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
49
|
+
config.filter_parameters += [:password, :password_confirmation]
|
50
|
+
|
51
|
+
# Enable the asset pipeline
|
52
|
+
config.assets.enabled = true
|
53
|
+
|
54
|
+
# Version of your assets, change this if you want to expire all your assets
|
55
|
+
config.assets.version = '1.0'
|
56
|
+
config.active_support.deprecation = :log
|
57
|
+
end
|
58
|
+
end
|