lalala 4.0.0.dev.258 → 4.0.0.dev.260
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/generators/lalala/assets/assets_generator.rb +46 -0
- data/lib/generators/lalala/assets/templates/.bowerrc +4 -0
- data/lib/generators/lalala/assets/templates/_keyframes.css.scss +15 -0
- data/lib/generators/lalala/assets/templates/_mixins.css.scss +28 -0
- data/lib/generators/lalala/assets/templates/_variables.css.scss +8 -0
- data/lib/generators/lalala/assets/templates/application.css.scss +8 -0
- data/lib/generators/lalala/assets/templates/application.js +17 -0
- data/lib/generators/lalala/assets/templates/bower.json.erb +11 -0
- data/lib/generators/lalala/assets/templates/hello-world.module.js +5 -0
- data/lib/generators/lalala/assets/templates/humans.txt +24 -0
- data/lib/generators/lalala/assets/templates/initializer.module.js +1 -0
- data/lib/generators/lalala/install/install_generator.rb +14 -1
- data/lib/generators/lalala/install/templates/devise.rb.erb +1 -0
- data/lib/generators/lalala/install/templates/staging.rb.erb +67 -0
- data/lib/lalala/utils/install_template.rb +1 -0
- data/lib/lalala/version.rb +1 -1
- metadata +15 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33a4c0efa957c5fc957582678425183f59641474
|
4
|
+
data.tar.gz: d09032fc4ca9a2dafacd550400a49cb9882e6cda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9033736ecc215355a2a72f0d004d153011943c7ef1ea9f8d9d558bbd9d429f10af4acc3b501f7b2d268d3ea5afc1555232fa006e5890f2ce8241ff177f7dda91
|
7
|
+
data.tar.gz: 1cccc988a736137e997a3c12f30d3b47e3506f11b09a70b8dc1bf998d5728dcb6b00a80027582b9cfb07aa0b4f05380ae7ed9c356d2f1bcb4d6b84a83dfc5c7e
|
data/Gemfile
CHANGED
@@ -14,6 +14,52 @@ module Lalala
|
|
14
14
|
template 'active_admin.css.scss', 'app/assets/stylesheets/active_admin.css.scss'
|
15
15
|
end
|
16
16
|
|
17
|
+
def setup_bower
|
18
|
+
copy_file ".bowerrc", ".bowerrc"
|
19
|
+
template "bower.json.erb", "app/assets/bower.json"
|
20
|
+
|
21
|
+
gsub_file "config/application.rb", / config.assets.version = '1.0'/, <<-HEREDOC
|
22
|
+
config.assets.version = '1.0'
|
23
|
+
|
24
|
+
config.assets.paths << Rails.root.join('vendor', 'assets', 'components')
|
25
|
+
HEREDOC
|
26
|
+
|
27
|
+
append_file(".gitignore", <<-HEREDOC
|
28
|
+
/public/uploads
|
29
|
+
.DS_Store
|
30
|
+
HEREDOC
|
31
|
+
)
|
32
|
+
end
|
33
|
+
|
34
|
+
def setup_javascripts
|
35
|
+
remove_file "app/assets/javascripts/application.js"
|
36
|
+
copy_file "application.js", "app/assets/javascripts/application.js"
|
37
|
+
empty_directory "app/assets/javascripts/modules"
|
38
|
+
copy_file "initializer.module.js", "app/assets/javascripts/modules/initializer.module.js"
|
39
|
+
copy_file "hello-world.module.js", "app/assets/javascripts/modules/hello-world.module.js"
|
40
|
+
end
|
41
|
+
|
42
|
+
def setup_stylesheets
|
43
|
+
remove_file "app/assets/stylesheets/application.css"
|
44
|
+
copy_file "application.css.scss", "app/assets/stylesheets/application.css.scss"
|
45
|
+
empty_directory "app/assets/stylesheets/base"
|
46
|
+
empty_directory "app/assets/stylesheets/modules"
|
47
|
+
|
48
|
+
copy_file "_variables.css.scss", "app/assets/stylesheets/base/_variables.css.scss"
|
49
|
+
copy_file "_mixins.css.scss", "app/assets/stylesheets/base/_mixins.css.scss"
|
50
|
+
copy_file "_keyframes.css.scss", "app/assets/stylesheets/base/_keyframes.css.scss"
|
51
|
+
create_file "app/assets/stylesheets/base/_fonts.css.scss"
|
52
|
+
create_file "app/assets/stylesheets/base/_base.css.scss"
|
53
|
+
end
|
54
|
+
|
55
|
+
def add_humans_txt
|
56
|
+
copy_file "humans.txt", "public/humans.txt"
|
57
|
+
end
|
58
|
+
|
59
|
+
def run_bower
|
60
|
+
run('bower install')
|
61
|
+
end
|
62
|
+
|
17
63
|
end
|
18
64
|
end
|
19
65
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
//
|
2
|
+
// Gray shorthand
|
3
|
+
//
|
4
|
+
// @param value (0..255)
|
5
|
+
// @param transparency (0..1)
|
6
|
+
//
|
7
|
+
// example:
|
8
|
+
// body { color: gray(50); } => rgba(50,50,50, 1)
|
9
|
+
// body { background-color: gray(150, 0.5); } => rgba(150,150,150, 0.5)
|
10
|
+
//
|
11
|
+
@function gray($value, $transparency: 1) {
|
12
|
+
@return rgba($value, $value, $value, $transparency);
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
//
|
17
|
+
// Spiderman is a mixin to position absolute an element in another
|
18
|
+
// element top to bottom, left to right
|
19
|
+
//
|
20
|
+
// @param $offset Offset from the edge
|
21
|
+
//
|
22
|
+
@mixin spiderman($offset: 0) {
|
23
|
+
bottom: $offset;
|
24
|
+
left: $offset;
|
25
|
+
position: absolute;
|
26
|
+
right: $offset;
|
27
|
+
top: $offset;
|
28
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// the compiled file.
|
9
|
+
//
|
10
|
+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
11
|
+
// GO AFTER THE REQUIRES BELOW.
|
12
|
+
//
|
13
|
+
//= require jquery/jquery
|
14
|
+
//
|
15
|
+
//= require_tree ./modules
|
16
|
+
|
17
|
+
require('modules/initializer');
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"name": "<%= Rails.application.class.name.split("::").first.underscore %>",
|
3
|
+
"private": true,
|
4
|
+
"version": "0.0.1",
|
5
|
+
"main": "javascripts/application.js",
|
6
|
+
"dependencies": {
|
7
|
+
"jquery": "~1.10.2",
|
8
|
+
"modernizr": "~2.7.1",
|
9
|
+
"normalize-scss": "~2.1.3"
|
10
|
+
}
|
11
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/* AGENCY */
|
2
|
+
Mr. Henry
|
3
|
+
http://www.mrhenry.be
|
4
|
+
|
5
|
+
/* TEAM */
|
6
|
+
Chef and Designer: Hans Spooren
|
7
|
+
Contact: hans@mrhenry.be
|
8
|
+
From: Antwerp, Belgium
|
9
|
+
|
10
|
+
Project Manager: Inge Reulens
|
11
|
+
Contact: inge@mrhenry.be
|
12
|
+
From: Antwerp, Belgium
|
13
|
+
|
14
|
+
Ruby on Rails Developer: Simon Menke
|
15
|
+
Contact: simon@mrhenry.be
|
16
|
+
From: Antwerp, Belgium
|
17
|
+
|
18
|
+
Ruby on Rails / Front end Developer: Yves van Broekhoven
|
19
|
+
Contact: yves@mrhenry.be
|
20
|
+
From: Antwerp, Belgium
|
21
|
+
|
22
|
+
Ruby on Rails / Front end Developer: Steven Vandevelde
|
23
|
+
Contact: yves@mrhenry.be
|
24
|
+
From: Antwerp, Belgium
|
@@ -0,0 +1 @@
|
|
1
|
+
require('../modules/hello-world').init();
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'rails/generators/active_record'
|
2
|
+
require 'securerandom'
|
2
3
|
|
3
4
|
module Lalala
|
4
5
|
module Generators
|
@@ -13,12 +14,16 @@ module Lalala
|
|
13
14
|
@_active_admin_source_root ||= File.expand_path("../templates", __FILE__)
|
14
15
|
end
|
15
16
|
|
17
|
+
def copy_initializer_devise
|
18
|
+
template 'devise.rb.erb', 'config/initializers/devise.rb'
|
19
|
+
end
|
20
|
+
|
16
21
|
def setup_routes
|
17
22
|
remove_file("config/routes.rb")
|
18
23
|
template 'routes.rb.erb', 'config/routes.rb'
|
19
24
|
end
|
20
25
|
|
21
|
-
def
|
26
|
+
def copy_initializer_active_admin
|
22
27
|
@underscored_user_name = name.underscore
|
23
28
|
template 'active_admin.rb.erb', 'config/initializers/active_admin.rb'
|
24
29
|
end
|
@@ -61,6 +66,14 @@ module Lalala
|
|
61
66
|
copy_file "uploaders/image_uploader.rb", "app/uploaders/image_uploader.rb"
|
62
67
|
end
|
63
68
|
|
69
|
+
def setup_environment_configs
|
70
|
+
template "staging.rb.erb", "config/environments/staging.rb"
|
71
|
+
end
|
72
|
+
|
73
|
+
def setup_forklift
|
74
|
+
empty_directory ".forklift"
|
75
|
+
end
|
76
|
+
|
64
77
|
def create_assets
|
65
78
|
generate "lalala:assets"
|
66
79
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
Devise.secret_key = <%= SecureRandom.hex(64).inspect %>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<%= Rails.application.class.name %>.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# Code is not reloaded between requests
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Full error reports are disabled and caching is turned on
|
8
|
+
config.consider_all_requests_local = false
|
9
|
+
config.action_controller.perform_caching = true
|
10
|
+
|
11
|
+
# Disable Rails's static asset server (Apache or nginx will already do this)
|
12
|
+
config.serve_static_assets = false
|
13
|
+
|
14
|
+
# Compress JavaScripts and CSS
|
15
|
+
config.assets.compress = true
|
16
|
+
|
17
|
+
# Don't fallback to assets pipeline if a precompiled asset is missed
|
18
|
+
config.assets.compile = false
|
19
|
+
|
20
|
+
# Generate digests for assets URLs
|
21
|
+
config.assets.digest = true
|
22
|
+
|
23
|
+
# Defaults to nil and saved in location specified by config.assets.prefix
|
24
|
+
# config.assets.manifest = YOUR_PATH
|
25
|
+
|
26
|
+
# Specifies the header that your server uses for sending files
|
27
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
28
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
29
|
+
|
30
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
31
|
+
# config.force_ssl = true
|
32
|
+
|
33
|
+
# See everything in the log (default is :info)
|
34
|
+
config.log_level = :debug
|
35
|
+
|
36
|
+
# Prepend all log lines with the following tags
|
37
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
38
|
+
|
39
|
+
# Use a different logger for distributed setups
|
40
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
41
|
+
|
42
|
+
# Use a different cache store in production
|
43
|
+
# config.cache_store = :mem_cache_store
|
44
|
+
|
45
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
46
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
47
|
+
|
48
|
+
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
49
|
+
config.assets.precompile += %w( modernizr.js )
|
50
|
+
|
51
|
+
# Disable delivery errors, bad email addresses will be ignored
|
52
|
+
# config.action_mailer.raise_delivery_errors = false
|
53
|
+
|
54
|
+
# Enable threaded mode
|
55
|
+
# config.threadsafe!
|
56
|
+
|
57
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
58
|
+
# the I18n.default_locale when a translation can not be found)
|
59
|
+
config.i18n.fallbacks = true
|
60
|
+
|
61
|
+
# Send deprecation notices to registered listeners
|
62
|
+
config.active_support.deprecation = :notify
|
63
|
+
|
64
|
+
# Log the query plan for queries taking more than this (works
|
65
|
+
# with SQLite, MySQL, and PostgreSQL)
|
66
|
+
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
67
|
+
end
|
@@ -15,6 +15,7 @@ gem 'lalala', "~> #{LALALA_VERSION}"
|
|
15
15
|
gem 'lalala-development', "~> #{LALALA_VERSION}", groups: [:development]
|
16
16
|
gem 'lalala-assets', "~> #{LALALA_VERSION}", groups: [:development, :assets]
|
17
17
|
gem 'lalala-test', "~> #{LALALA_VERSION}", groups: [:test]
|
18
|
+
|
18
19
|
DOC
|
19
20
|
end
|
20
21
|
|
data/lib/lalala/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lalala
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.dev.
|
4
|
+
version: 4.0.0.dev.260
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Menke
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date:
|
16
|
+
date: 2014-01-24 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: activeadmin
|
@@ -1392,13 +1392,24 @@ files:
|
|
1392
1392
|
- lib/formtastic/inputs/grid_input.rb
|
1393
1393
|
- lib/formtastic/inputs/single_file_input.rb
|
1394
1394
|
- lib/generators/lalala/assets/assets_generator.rb
|
1395
|
+
- lib/generators/lalala/assets/templates/.bowerrc
|
1396
|
+
- lib/generators/lalala/assets/templates/_keyframes.css.scss
|
1397
|
+
- lib/generators/lalala/assets/templates/_mixins.css.scss
|
1398
|
+
- lib/generators/lalala/assets/templates/_variables.css.scss
|
1395
1399
|
- lib/generators/lalala/assets/templates/active_admin.css.scss
|
1396
1400
|
- lib/generators/lalala/assets/templates/active_admin.js
|
1401
|
+
- lib/generators/lalala/assets/templates/application.css.scss
|
1402
|
+
- lib/generators/lalala/assets/templates/application.js
|
1403
|
+
- lib/generators/lalala/assets/templates/bower.json.erb
|
1404
|
+
- lib/generators/lalala/assets/templates/hello-world.module.js
|
1405
|
+
- lib/generators/lalala/assets/templates/humans.txt
|
1406
|
+
- lib/generators/lalala/assets/templates/initializer.module.js
|
1397
1407
|
- lib/generators/lalala/install/install_generator.rb
|
1398
1408
|
- lib/generators/lalala/install/templates/active_admin.rb.erb
|
1399
1409
|
- lib/generators/lalala/install/templates/admin_pages.rb
|
1400
1410
|
- lib/generators/lalala/install/templates/admin_users.rb
|
1401
1411
|
- lib/generators/lalala/install/templates/dashboard.rb
|
1412
|
+
- lib/generators/lalala/install/templates/devise.rb.erb
|
1402
1413
|
- lib/generators/lalala/install/templates/errors_controller.rb
|
1403
1414
|
- lib/generators/lalala/install/templates/models/admin_user.rb
|
1404
1415
|
- lib/generators/lalala/install/templates/models/application_page.rb
|
@@ -1406,6 +1417,7 @@ files:
|
|
1406
1417
|
- lib/generators/lalala/install/templates/models/image_asset.rb
|
1407
1418
|
- lib/generators/lalala/install/templates/pages_controller.rb
|
1408
1419
|
- lib/generators/lalala/install/templates/routes.rb.erb
|
1420
|
+
- lib/generators/lalala/install/templates/staging.rb.erb
|
1409
1421
|
- lib/generators/lalala/install/templates/uploaders/file_uploader.rb
|
1410
1422
|
- lib/generators/lalala/install/templates/uploaders/image_uploader.rb
|
1411
1423
|
- lib/generators/lalala/page/page_generator.rb
|
@@ -1564,7 +1576,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1564
1576
|
version: 1.3.1
|
1565
1577
|
requirements: []
|
1566
1578
|
rubyforge_project:
|
1567
|
-
rubygems_version: 2.1
|
1579
|
+
rubygems_version: 2.2.1
|
1568
1580
|
signing_key:
|
1569
1581
|
specification_version: 4
|
1570
1582
|
summary: 'Lalala: Probably the best CMS in the world.'
|