designmodo-startup_framework-rails 1.1.3.5 → 1.1.3.6
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/README.md +57 -5
- data/lib/designmodo/startup_framework/rails/version.rb +1 -1
- data/lib/generators/startup_framework/install/install_generator.rb +50 -12
- data/lib/generators/startup_framework/install/templates/startup_framework.js +1 -3
- data/lib/generators/startup_framework/install/templates/startup_framework.less +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46547d5e8fe109d2433382d851d2cf4c938f22af
|
4
|
+
data.tar.gz: 38f00b6a2402ce7a8eb861f30dae664d3308fbc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d139f193f44b67cf00654cb5f5719527d8f2c46d61354f73be6fa4ea781c221c1e0a4e8abb453f097613c392c8af0cf5a11bd991d7b2953778c3ca9545209e5a
|
7
|
+
data.tar.gz: 4034557233c7c1d8d2281d8f265f24bcd5c22fd008db3501b464e16eb682e186f0f796de35ce7d25145d4d015a03cb000cbadbe0f7d360cc078c555038ce2879
|
data/README.md
CHANGED
@@ -1,17 +1,25 @@
|
|
1
|
-
|
1
|
+
<a href="http://designmodo.com/shop/?u=1124" rel="nofollow" title="Startup Framework" target="_blank"><img src="http://designmodo.com/img/affiliate/startupbright_728_90.jpg" border="0" width="728" height="90" alt="Startup Framework" /></a>
|
2
2
|
|
3
3
|
This gem integrates Designmodo's Startup Framework into the Rails 3 and 4 Asset Pipeline.
|
4
4
|
|
5
|
-
You **must** purchase and download a licensed copy to use this gem (none of the assets are packaged per
|
5
|
+
You **must** purchase and download a licensed copy to use this gem (none of the assets are packaged per StartupFramwork license). You may do so by clicking the above image (full disclosure: affiliate link).
|
6
6
|
|
7
7
|
The version major and minors should match the Startup Framework version. Anything after these are gem versions.
|
8
8
|
|
9
9
|
## Installation
|
10
|
-
First install and configure dependencies:
|
10
|
+
First install and configure dependencies:
|
11
|
+
|
12
|
+
[less-rails](https://github.com/metaskills/less-rails)
|
13
|
+
[jquery-ui-rails](https://github.com/joliss/jquery-ui-rails)
|
14
|
+
|
15
|
+
These are optional and the whole thing works much better if you include these two as well in your gem file
|
16
|
+
[twitter-bootstrap-rails](https://github.com/seyhunak/twitter-bootstrap-rails)
|
17
|
+
[designmodo-flatuipro-rails](https://github.com/reflection/designmodo-flatuipro-rails)
|
18
|
+
|
11
19
|
|
12
20
|
Add this line to your application's Gemfile:
|
13
21
|
|
14
|
-
gem 'designmodo-startup_framework-rails', '~> 1.1.3'
|
22
|
+
gem 'designmodo-startup_framework-rails', '~> 1.1.3.5'
|
15
23
|
|
16
24
|
And then execute:
|
17
25
|
|
@@ -26,7 +34,43 @@ One **must** run this after install *and* after update of designmodo-startup_fra
|
|
26
34
|
### Include in your less file
|
27
35
|
If you want to integrate the framework page:
|
28
36
|
|
29
|
-
@
|
37
|
+
@startup-basePath: "/assets/startup-framework/";
|
38
|
+
@lato: "Lato";
|
39
|
+
|
40
|
+
@import 'flat-ui';
|
41
|
+
@import 'startup_framework.less';
|
42
|
+
|
43
|
+
/* header */
|
44
|
+
@import '/startup-framework/ui-kit/ui-kit-header/less/header-10.less';
|
45
|
+
|
46
|
+
/* content */
|
47
|
+
@import '/startup-framework/ui-kit/ui-kit-content/less/content-3.less';
|
48
|
+
@import '/startup-framework/ui-kit/ui-kit-content/less/content-20.less';
|
49
|
+
|
50
|
+
|
51
|
+
/* footer */
|
52
|
+
@import '/startup-framework/ui-kit/ui-kit-footer/less/footer-11.less';
|
53
|
+
|
54
|
+
|
55
|
+
You also need to include a manifest css files which looks like this
|
56
|
+
|
57
|
+
/*
|
58
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
59
|
+
* listed below.
|
60
|
+
*
|
61
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
62
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
63
|
+
*
|
64
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
65
|
+
* compiled file so the styles you add here take precedence over styles defined in any styles
|
66
|
+
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
67
|
+
* file per style scope.
|
68
|
+
*
|
69
|
+
*
|
70
|
+
*= require_self
|
71
|
+
*= require bootstrap_and_overrides.css
|
72
|
+
*= require signup_less
|
73
|
+
*/
|
30
74
|
|
31
75
|
|
32
76
|
|
@@ -37,6 +81,14 @@ After running the install generator, all assets should be setup.
|
|
37
81
|
If you haven't bought it already, please buy from designmodo.
|
38
82
|
|
39
83
|
|
84
|
+
## Thanks to
|
85
|
+
The idea generated from Forums where questions were raise in regards to startup-framework and rails integration.
|
86
|
+
|
87
|
+
|
88
|
+
##Queries
|
89
|
+
In case of queries please contact info@vertmac.com
|
90
|
+
|
91
|
+
|
40
92
|
## Contributing
|
41
93
|
|
42
94
|
1. Fork it
|
@@ -14,25 +14,49 @@ module StartupFramework
|
|
14
14
|
gem_assets_dir = File.expand_path("../../../../../", __FILE__)
|
15
15
|
pro_dir = startup_dir
|
16
16
|
|
17
|
+
@namespace = "startup-framework"
|
18
|
+
@common_files = "common-files"
|
19
|
+
@ui_kit = "ui-kit"
|
17
20
|
|
18
|
-
|
19
|
-
|
21
|
+
@fonts_dir = "fonts/#{@namespace}/#{@common_files}/fonts"
|
22
|
+
@images_dir = "images/#{@namespace}/#{@common_files}"
|
23
|
+
@icons_dir = "#{@images_dir}/icons"
|
24
|
+
@less_dir = "less/#{@namespace}/#{@common_files}/less"
|
25
|
+
@css_dir = "stylesheets/#{@namespace}/#{@common_files}/css"
|
26
|
+
@js_dir = "javascripts/#{@namespace}/#{@common_files}/js"
|
27
|
+
@target_ui_kit = "less/#{@namespace}/#{@ui_kit}"
|
20
28
|
|
21
|
-
|
22
|
-
|
29
|
+
FileUtils.mkdir_p File.join(gem_assets_dir,"app","assets",@fonts_dir)
|
30
|
+
FileUtils.mkdir_p File.join(gem_assets_dir,"app","assets",@images_dir)
|
31
|
+
FileUtils.mkdir_p File.join(gem_assets_dir,"app","assets",@js_dir)
|
32
|
+
FileUtils.mkdir_p File.join(gem_assets_dir,"app","assets",@css_dir)
|
33
|
+
FileUtils.mkdir_p File.join(gem_assets_dir,"app","assets",@less_dir)
|
34
|
+
|
35
|
+
gem_assets_dir = File.join(gem_assets_dir,"app","assets")
|
23
36
|
|
24
37
|
if File.directory?(File.join(pro_dir, "Developer"))
|
25
38
|
pro_dir = File.join(pro_dir, "Developer")
|
26
39
|
end
|
27
|
-
unless File.directory?(pro_dir) && File.directory?(File.join(pro_dir, ui_kit))
|
40
|
+
unless File.directory?(pro_dir) && File.directory?(File.join(pro_dir, @ui_kit))
|
28
41
|
raise "Invalid Startup Framework directory"
|
29
42
|
end
|
30
43
|
|
31
|
-
#Copy the
|
32
|
-
directory File.join(pro_dir, common_files), File.join(gem_assets_dir,
|
44
|
+
#Copy the fonts folder to the fonts dir
|
45
|
+
directory File.join(pro_dir, @common_files,"fonts"), File.join(gem_assets_dir, @fonts_dir)
|
46
|
+
|
47
|
+
#Copy the icons folder to the images dir
|
48
|
+
directory File.join(pro_dir, @common_files,"icons"), File.join(gem_assets_dir, @icons_dir)
|
49
|
+
FileUtils.cp File.join(pro_dir, @common_files,"css/images/bx_loader.gif"), File.join(gem_assets_dir, "images")
|
50
|
+
FileUtils.cp File.join(pro_dir, @common_files,"css/images/controls.png"), File.join(gem_assets_dir, "images")
|
51
|
+
|
52
|
+
#Copy the js folder to the js dir
|
53
|
+
directory File.join(pro_dir, @common_files,"js"), File.join(gem_assets_dir, @js_dir)
|
54
|
+
|
55
|
+
#Copy the less folder to the less dir
|
56
|
+
directory File.join(pro_dir, @common_files,"less"), File.join(gem_assets_dir, @less_dir)
|
33
57
|
|
34
58
|
#Copy the ui-kit folder to the gems asset dir
|
35
|
-
directory File.join(pro_dir, ui_kit), File.join(gem_assets_dir,
|
59
|
+
directory File.join(pro_dir, @ui_kit), File.join(gem_assets_dir, @target_ui_kit)
|
36
60
|
|
37
61
|
end
|
38
62
|
|
@@ -42,12 +66,26 @@ module StartupFramework
|
|
42
66
|
end
|
43
67
|
|
44
68
|
def patch_assets
|
45
|
-
gem_assets_dir = File.expand_path("../../../../../
|
69
|
+
gem_assets_dir = File.expand_path("../../../../../app/assets/", __FILE__)
|
70
|
+
|
71
|
+
#Replace fonts-path
|
72
|
+
gsub_file File.join(gem_assets_dir, @less_dir, "helper.less"), /\.\.\/fonts\//, "@{startup-basePath}/common-files/fonts"
|
46
73
|
|
47
|
-
|
48
|
-
|
49
|
-
|
74
|
+
|
75
|
+
# replace all urls with asset urls with the exception of data urls
|
76
|
+
Dir.glob("#{gem_assets_dir}/#{@less_dir}/*.less") do |less_file|
|
77
|
+
puts "Replacing contents of #{File.basename less_file}"
|
78
|
+
gsub_file less_file, /url\((.+?)\)/, 'asset-url(\\1)'
|
79
|
+
end
|
80
|
+
|
81
|
+
Dir.glob("#{gem_assets_dir}/#{@target_ui_kit}/**/*.less") do |ui_kit_less_file|
|
82
|
+
puts "Replacing contents of #{File.basename ui_kit_less_file}"
|
83
|
+
gsub_file ui_kit_less_file, /url\((.+?)\)/, 'asset-url(\\1)'
|
84
|
+
end
|
85
|
+
|
50
86
|
|
87
|
+
# icon-font.less Do it for all less files in common-files/less and ui-kit folder
|
88
|
+
#gsub_file File.join(gem_assets_dir, @less_dir, "icon-font.less"), /url\((.+?)\)/, 'asset-url(\\1)'
|
51
89
|
|
52
90
|
end
|
53
91
|
|
@@ -1,6 +1,4 @@
|
|
1
|
-
//= require
|
2
|
-
//= require twitter/bootstrap
|
3
|
-
//= require bootstrap
|
1
|
+
//= require flatuipro
|
4
2
|
//= require startup-framework/common-files/js/modernizr.custom
|
5
3
|
//= require startup-framework/common-files/js/page-transitions
|
6
4
|
//= require startup-framework/common-files/js/jquery.scrollTo-1.4.3.1-min
|
@@ -1,9 +1,9 @@
|
|
1
|
-
@startup-basePath: "/
|
1
|
+
@startup-basePath: "/startup-framework/";
|
2
2
|
@import 'variables.less';
|
3
3
|
@import 'mixins.less';
|
4
4
|
|
5
|
-
@import '
|
6
|
-
@import '
|
7
|
-
@import '
|
8
|
-
@import '
|
9
|
-
@import '
|
5
|
+
@import '@{startup-basePath}common-files/less/mixins.less';
|
6
|
+
@import '@{startup-basePath}common-files/less/common.less';
|
7
|
+
@import '@{startup-basePath}common-files/less/navbar.less';
|
8
|
+
@import '@{startup-basePath}common-files/less/helper.less';
|
9
|
+
@import '@{startup-basePath}common-files/less/icon-font.less';
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: designmodo-startup_framework-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.3.
|
4
|
+
version: 1.1.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vertmac
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: less-rails-bootstrap
|