liqueur 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -0
- data/Gemfile +6 -3
- data/Gemfile.lock +106 -0
- data/MIT-LICENSE +1 -1
- data/{test/dummy/public → app/assets}/stylesheets/.gitkeep +0 -0
- data/app/assets/stylesheets/_liqueur.scss +3 -0
- data/app/assets/stylesheets/liqueur/_reset.scss +2 -0
- data/app/assets/stylesheets/liqueur/reset/_clearfix.scss +18 -0
- data/app/assets/stylesheets/liqueur/reset/_hr.scss +12 -0
- data/lib/liqueur.rb +8 -1
- data/lib/liqueur/engine.rb +6 -0
- data/lib/liqueur/sass_extensions.rb +7 -0
- data/lib/liqueur/sass_extensions/functions.rb +14 -0
- data/lib/liqueur/sass_extensions/functions/compact.rb +14 -0
- data/lib/liqueur/version.rb +3 -0
- data/liqueur.gemspec +6 -2
- data/test/dummy/app/assets/stylesheets/application.css.scss +1 -0
- data/test/dummy/config/application.rb +6 -5
- data/test/dummy/config/environments/development.rb +1 -6
- data/test/dummy/config/environments/production.rb +14 -14
- data/test/dummy/config/environments/test.rb +5 -11
- metadata +49 -16
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config/database.yml +0 -22
- data/test/dummy/public/javascripts/application.js +0 -2
- data/test/dummy/public/javascripts/controls.js +0 -965
- data/test/dummy/public/javascripts/dragdrop.js +0 -974
- data/test/dummy/public/javascripts/effects.js +0 -1123
- data/test/dummy/public/javascripts/prototype.js +0 -6001
- data/test/dummy/public/javascripts/rails.js +0 -191
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm use 1.8.7@liqueur --create
|
data/Gemfile
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
|
3
|
-
gem "rails", "3.0
|
4
|
-
gem "
|
5
|
-
gem "
|
3
|
+
gem "rails", "3.1.0"
|
4
|
+
gem "sass"
|
5
|
+
gem "sass-rails"
|
6
|
+
gem "wiskey", :git => "git@github.com:aratak/wiskey.git"
|
7
|
+
|
8
|
+
# gem "capybara", ">= 0.4.0"
|
6
9
|
|
7
10
|
# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
|
8
11
|
# gem 'ruby-debug'
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
GIT
|
2
|
+
remote: git@github.com:aratak/wiskey.git
|
3
|
+
revision: f3f6e35eec3221b7276a76ecc27c0c0381d15909
|
4
|
+
specs:
|
5
|
+
wiskey (0.0.2)
|
6
|
+
rails (~> 3.1.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionmailer (3.1.0)
|
12
|
+
actionpack (= 3.1.0)
|
13
|
+
mail (~> 2.3.0)
|
14
|
+
actionpack (3.1.0)
|
15
|
+
activemodel (= 3.1.0)
|
16
|
+
activesupport (= 3.1.0)
|
17
|
+
builder (~> 3.0.0)
|
18
|
+
erubis (~> 2.7.0)
|
19
|
+
i18n (~> 0.6)
|
20
|
+
rack (~> 1.3.2)
|
21
|
+
rack-cache (~> 1.0.3)
|
22
|
+
rack-mount (~> 0.8.2)
|
23
|
+
rack-test (~> 0.6.1)
|
24
|
+
sprockets (~> 2.0.0)
|
25
|
+
activemodel (3.1.0)
|
26
|
+
activesupport (= 3.1.0)
|
27
|
+
bcrypt-ruby (~> 3.0.0)
|
28
|
+
builder (~> 3.0.0)
|
29
|
+
i18n (~> 0.6)
|
30
|
+
activerecord (3.1.0)
|
31
|
+
activemodel (= 3.1.0)
|
32
|
+
activesupport (= 3.1.0)
|
33
|
+
arel (~> 2.2.1)
|
34
|
+
tzinfo (~> 0.3.29)
|
35
|
+
activeresource (3.1.0)
|
36
|
+
activemodel (= 3.1.0)
|
37
|
+
activesupport (= 3.1.0)
|
38
|
+
activesupport (3.1.0)
|
39
|
+
multi_json (~> 1.0)
|
40
|
+
arel (2.2.1)
|
41
|
+
bcrypt-ruby (3.0.1)
|
42
|
+
builder (3.0.0)
|
43
|
+
erubis (2.7.0)
|
44
|
+
hike (1.2.1)
|
45
|
+
i18n (0.6.0)
|
46
|
+
json (1.6.1)
|
47
|
+
mail (2.3.0)
|
48
|
+
i18n (>= 0.4.0)
|
49
|
+
mime-types (~> 1.16)
|
50
|
+
treetop (~> 1.4.8)
|
51
|
+
mime-types (1.17.2)
|
52
|
+
multi_json (1.0.3)
|
53
|
+
polyglot (0.3.3)
|
54
|
+
rack (1.3.5)
|
55
|
+
rack-cache (1.0.3)
|
56
|
+
rack (>= 0.4)
|
57
|
+
rack-mount (0.8.3)
|
58
|
+
rack (>= 1.0.0)
|
59
|
+
rack-ssl (1.3.2)
|
60
|
+
rack
|
61
|
+
rack-test (0.6.1)
|
62
|
+
rack (>= 1.0)
|
63
|
+
rails (3.1.0)
|
64
|
+
actionmailer (= 3.1.0)
|
65
|
+
actionpack (= 3.1.0)
|
66
|
+
activerecord (= 3.1.0)
|
67
|
+
activeresource (= 3.1.0)
|
68
|
+
activesupport (= 3.1.0)
|
69
|
+
bundler (~> 1.0)
|
70
|
+
railties (= 3.1.0)
|
71
|
+
railties (3.1.0)
|
72
|
+
actionpack (= 3.1.0)
|
73
|
+
activesupport (= 3.1.0)
|
74
|
+
rack-ssl (~> 1.3.2)
|
75
|
+
rake (>= 0.8.7)
|
76
|
+
rdoc (~> 3.4)
|
77
|
+
thor (~> 0.14.6)
|
78
|
+
rake (0.9.2.2)
|
79
|
+
rdoc (3.11)
|
80
|
+
json (~> 1.4)
|
81
|
+
sass (3.1.10)
|
82
|
+
sass-rails (3.1.4)
|
83
|
+
actionpack (~> 3.1.0)
|
84
|
+
railties (~> 3.1.0)
|
85
|
+
sass (>= 3.1.4)
|
86
|
+
sprockets (~> 2.0.0)
|
87
|
+
tilt (~> 1.3.2)
|
88
|
+
sprockets (2.0.3)
|
89
|
+
hike (~> 1.2)
|
90
|
+
rack (~> 1.0)
|
91
|
+
tilt (~> 1.1, != 1.3.0)
|
92
|
+
thor (0.14.6)
|
93
|
+
tilt (1.3.3)
|
94
|
+
treetop (1.4.10)
|
95
|
+
polyglot
|
96
|
+
polyglot (>= 0.3.1)
|
97
|
+
tzinfo (0.3.31)
|
98
|
+
|
99
|
+
PLATFORMS
|
100
|
+
ruby
|
101
|
+
|
102
|
+
DEPENDENCIES
|
103
|
+
rails (= 3.1.0)
|
104
|
+
sass
|
105
|
+
sass-rails
|
106
|
+
wiskey!
|
data/MIT-LICENSE
CHANGED
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// CLEARFIX: Updated to prevent margin-collapsing on child elements
|
2
|
+
// http://goo.gl/11FI
|
3
|
+
|
4
|
+
.clearfix:before, .clearfix:after {
|
5
|
+
content: "\0020";
|
6
|
+
display: block;
|
7
|
+
height: 0;
|
8
|
+
visibility: hidden;
|
9
|
+
}
|
10
|
+
|
11
|
+
.clearfix:after {
|
12
|
+
clear: both;
|
13
|
+
}
|
14
|
+
|
15
|
+
// http://goo.gl/KeLlT
|
16
|
+
.clearfix {
|
17
|
+
zoom: 1;
|
18
|
+
}
|
data/lib/liqueur.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
module Liqueur::SassExtensions::Functions
|
2
|
+
end
|
3
|
+
|
4
|
+
require File.join(File.dirname(__FILE__), "/functions/compact")
|
5
|
+
|
6
|
+
module Sass::Script::Functions
|
7
|
+
include Liqueur::SassExtensions::Functions::Compact
|
8
|
+
end
|
9
|
+
|
10
|
+
# Wierd that this has to be re-included to pick up sub-modules. Ruby bug?
|
11
|
+
class Sass::Script::Functions::EvaluationContext
|
12
|
+
include Sass::Script::Functions
|
13
|
+
end
|
14
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Compact function pulled from compass
|
2
|
+
module Liqueur::SassExtensions::Functions::Compact
|
3
|
+
|
4
|
+
def compact(*args)
|
5
|
+
sep = :comma
|
6
|
+
if args.size == 1 && args.first.is_a?(Sass::Script::List)
|
7
|
+
args = args.first.value
|
8
|
+
sep = args.first.separator
|
9
|
+
end
|
10
|
+
Sass::Script::List.new(args.reject{|a| !a.to_bool}, sep)
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
|
data/liqueur.gemspec
CHANGED
@@ -6,8 +6,12 @@ Gem::Specification.new do |s|
|
|
6
6
|
|
7
7
|
s.authors = [ "Alexey Osipenko" ]
|
8
8
|
s.email = [ "alexey@osipenko.in.ua" ]
|
9
|
-
s.homepage = "http://
|
9
|
+
s.homepage = "http://aratak.github.com/liqueur/"
|
10
10
|
s.description = "CSS framework."
|
11
11
|
s.files = `git ls-files`.split("\n")
|
12
|
-
s.version = "0.0.
|
12
|
+
s.version = "0.0.2"
|
13
|
+
|
14
|
+
s.add_dependency "wiskey"
|
15
|
+
s.add_dependency "rails" , "~> 3.1.0"
|
16
|
+
|
13
17
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
@import 'liqueur';
|
@@ -1,10 +1,9 @@
|
|
1
1
|
require File.expand_path('../boot', __FILE__)
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
5
|
-
require
|
6
|
-
require
|
7
|
-
require "action_mailer/railtie"
|
3
|
+
# require 'rails/all'
|
4
|
+
require 'action_controller/railtie'
|
5
|
+
require 'active_resource/railtie'
|
6
|
+
require 'sprockets/railtie'
|
8
7
|
|
9
8
|
Bundler.require
|
10
9
|
require "liqueur"
|
@@ -41,5 +40,7 @@ module Dummy
|
|
41
40
|
|
42
41
|
# Configure sensitive parameters which will be filtered from the log file.
|
43
42
|
config.filter_parameters += [:password]
|
43
|
+
|
44
|
+
config.assets.enabled = true
|
44
45
|
end
|
45
46
|
end
|
@@ -3,7 +3,7 @@ Dummy::Application.configure do
|
|
3
3
|
|
4
4
|
# In the development environment your application's code is reloaded on
|
5
5
|
# every request. This slows down response time but is perfect for development
|
6
|
-
# since you don't have to restart the
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
7
|
config.cache_classes = false
|
8
8
|
|
9
9
|
# Log error messages when you accidentally call methods on nil.
|
@@ -11,16 +11,11 @@ Dummy::Application.configure do
|
|
11
11
|
|
12
12
|
# Show full error reports and disable caching
|
13
13
|
config.consider_all_requests_local = true
|
14
|
-
config.action_view.debug_rjs = true
|
15
14
|
config.action_controller.perform_caching = false
|
16
15
|
|
17
|
-
# Don't care if the mailer can't send
|
18
|
-
config.action_mailer.raise_delivery_errors = false
|
19
|
-
|
20
16
|
# Print deprecation notices to the Rails logger
|
21
17
|
config.active_support.deprecation = :log
|
22
18
|
|
23
19
|
# Only use best-standards-support built into browsers
|
24
20
|
config.action_dispatch.best_standards_support = :builtin
|
25
21
|
end
|
26
|
-
|
@@ -1,7 +1,6 @@
|
|
1
1
|
Dummy::Application.configure do
|
2
2
|
# Settings specified here will take precedence over those in config/application.rb
|
3
3
|
|
4
|
-
# The production environment is meant for finished, "live" apps.
|
5
4
|
# Code is not reloaded between requests
|
6
5
|
config.cache_classes = true
|
7
6
|
|
@@ -9,14 +8,19 @@ Dummy::Application.configure do
|
|
9
8
|
config.consider_all_requests_local = false
|
10
9
|
config.action_controller.perform_caching = true
|
11
10
|
|
12
|
-
#
|
13
|
-
config.
|
11
|
+
# Disable Rails's static asset server (Apache or nginx will already do this)
|
12
|
+
config.serve_static_assets = false
|
13
|
+
|
14
|
+
# Compress both stylesheets and JavaScripts
|
15
|
+
config.assets.js_compressor = :uglifier
|
16
|
+
config.assets.css_compressor = :scss
|
14
17
|
|
15
|
-
#
|
16
|
-
#
|
18
|
+
# Specifies the header that your server uses for sending files
|
19
|
+
# (comment out if your front-end server doesn't support this)
|
20
|
+
config.action_dispatch.x_sendfile_header = "X-Sendfile" # Use 'X-Accel-Redirect' for nginx
|
17
21
|
|
18
|
-
#
|
19
|
-
#
|
22
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
23
|
+
# config.force_ssl = true
|
20
24
|
|
21
25
|
# See everything in the log (default is :info)
|
22
26
|
# config.log_level = :debug
|
@@ -27,15 +31,11 @@ Dummy::Application.configure do
|
|
27
31
|
# Use a different cache store in production
|
28
32
|
# config.cache_store = :mem_cache_store
|
29
33
|
|
30
|
-
#
|
31
|
-
# In production, Apache or nginx will already do this
|
32
|
-
config.serve_static_assets = false
|
33
|
-
|
34
|
-
# Enable serving of images, stylesheets, and javascripts from an asset server
|
34
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
35
35
|
# config.action_controller.asset_host = "http://assets.example.com"
|
36
36
|
|
37
|
-
#
|
38
|
-
# config.
|
37
|
+
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
38
|
+
# config.assets.precompile += %w( search.js )
|
39
39
|
|
40
40
|
# Enable threaded mode
|
41
41
|
# config.threadsafe!
|
@@ -7,7 +7,11 @@ Dummy::Application.configure do
|
|
7
7
|
# and recreated between test runs. Don't rely on the data there!
|
8
8
|
config.cache_classes = true
|
9
9
|
|
10
|
-
#
|
10
|
+
# Configure static asset server for tests with Cache-Control for performance
|
11
|
+
config.serve_static_assets = true
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
13
|
+
|
14
|
+
# Log error messages when you accidentally call methods on nil
|
11
15
|
config.whiny_nils = true
|
12
16
|
|
13
17
|
# Show full error reports and disable caching
|
@@ -20,16 +24,6 @@ Dummy::Application.configure do
|
|
20
24
|
# Disable request forgery protection in test environment
|
21
25
|
config.action_controller.allow_forgery_protection = false
|
22
26
|
|
23
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
24
|
-
# The :test delivery method accumulates sent emails in the
|
25
|
-
# ActionMailer::Base.deliveries array.
|
26
|
-
config.action_mailer.delivery_method = :test
|
27
|
-
|
28
|
-
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
29
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
30
|
-
# like if you have constraints or database-specific column types
|
31
|
-
# config.active_record.schema_format = :sql
|
32
|
-
|
33
27
|
# Print deprecation notices to the stderr
|
34
28
|
config.active_support.deprecation = :stderr
|
35
29
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liqueur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alexey Osipenko
|
@@ -15,9 +15,38 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-11-
|
19
|
-
dependencies:
|
20
|
-
|
18
|
+
date: 2011-11-09 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: wiskey
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: rails
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ~>
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 3
|
43
|
+
segments:
|
44
|
+
- 3
|
45
|
+
- 1
|
46
|
+
- 0
|
47
|
+
version: 3.1.0
|
48
|
+
type: :runtime
|
49
|
+
version_requirements: *id002
|
21
50
|
description: CSS framework.
|
22
51
|
email:
|
23
52
|
- alexey@osipenko.in.ua
|
@@ -29,20 +58,31 @@ extra_rdoc_files: []
|
|
29
58
|
|
30
59
|
files:
|
31
60
|
- .gitignore
|
61
|
+
- .rvmrc
|
32
62
|
- Gemfile
|
63
|
+
- Gemfile.lock
|
33
64
|
- MIT-LICENSE
|
34
65
|
- README.rdoc
|
35
66
|
- Rakefile
|
67
|
+
- app/assets/stylesheets/.gitkeep
|
68
|
+
- app/assets/stylesheets/_liqueur.scss
|
69
|
+
- app/assets/stylesheets/liqueur/_reset.scss
|
70
|
+
- app/assets/stylesheets/liqueur/reset/_clearfix.scss
|
71
|
+
- app/assets/stylesheets/liqueur/reset/_hr.scss
|
36
72
|
- lib/liqueur.rb
|
73
|
+
- lib/liqueur/engine.rb
|
74
|
+
- lib/liqueur/sass_extensions.rb
|
75
|
+
- lib/liqueur/sass_extensions/functions.rb
|
76
|
+
- lib/liqueur/sass_extensions/functions/compact.rb
|
77
|
+
- lib/liqueur/version.rb
|
37
78
|
- liqueur.gemspec
|
38
79
|
- test/dummy/Rakefile
|
80
|
+
- test/dummy/app/assets/stylesheets/application.css.scss
|
39
81
|
- test/dummy/app/controllers/application_controller.rb
|
40
82
|
- test/dummy/app/helpers/application_helper.rb
|
41
|
-
- test/dummy/app/views/layouts/application.html.erb
|
42
83
|
- test/dummy/config.ru
|
43
84
|
- test/dummy/config/application.rb
|
44
85
|
- test/dummy/config/boot.rb
|
45
|
-
- test/dummy/config/database.yml
|
46
86
|
- test/dummy/config/environment.rb
|
47
87
|
- test/dummy/config/environments/development.rb
|
48
88
|
- test/dummy/config/environments/production.rb
|
@@ -58,19 +98,12 @@ files:
|
|
58
98
|
- test/dummy/public/422.html
|
59
99
|
- test/dummy/public/500.html
|
60
100
|
- test/dummy/public/favicon.ico
|
61
|
-
- test/dummy/public/javascripts/application.js
|
62
|
-
- test/dummy/public/javascripts/controls.js
|
63
|
-
- test/dummy/public/javascripts/dragdrop.js
|
64
|
-
- test/dummy/public/javascripts/effects.js
|
65
|
-
- test/dummy/public/javascripts/prototype.js
|
66
|
-
- test/dummy/public/javascripts/rails.js
|
67
|
-
- test/dummy/public/stylesheets/.gitkeep
|
68
101
|
- test/dummy/script/rails
|
69
102
|
- test/integration/navigation_test.rb
|
70
103
|
- test/liqueur_test.rb
|
71
104
|
- test/support/integration_case.rb
|
72
105
|
- test/test_helper.rb
|
73
|
-
homepage: http://
|
106
|
+
homepage: http://aratak.github.com/liqueur/
|
74
107
|
licenses: []
|
75
108
|
|
76
109
|
post_install_message:
|