designmodo-startup_framework-rails 1.1.3.6 → 1.1.3.8
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b01f717d598fcd57fcb0960315af42110c944072
|
4
|
+
data.tar.gz: a00ee5d946f5a15f25b2c52a24d8af7b0e7750f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f644b2d02e8d95d86fc8106d090844d88d78c61b8fcc0483cf7951fef74571e729cd6a30e3b286c1b17ebf74e6ce752cdf9bdf88cd0fa1768dc1e998f6645682
|
7
|
+
data.tar.gz: d2d1090d994c03897468798c45880af62cc6da7a4a0f3869700aae74c09262b61f9fc89ce45e24ff980430a55f79ac2baabc976254da0499fe680c58081b518c
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
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 StartupFramework 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
|
|
@@ -19,7 +19,7 @@ These are optional and the whole thing works much better if you include these tw
|
|
19
19
|
|
20
20
|
Add this line to your application's Gemfile:
|
21
21
|
|
22
|
-
gem 'designmodo-startup_framework-rails', '~> 1.1.3.
|
22
|
+
gem 'designmodo-startup_framework-rails', '~> 1.1.3.8'
|
23
23
|
|
24
24
|
And then execute:
|
25
25
|
|
@@ -32,13 +32,17 @@ One **must** run this after install *and* after update of designmodo-startup_fra
|
|
32
32
|
$ rails generate startup_framework:install <Startup Framework Directory>
|
33
33
|
|
34
34
|
### Include in your less file
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
35
|
+
**Dont use the variable @startup-basePath. This is used internally everywhere and shouldn't be overriden**
|
36
|
+
If you want to create a less by the name signup.less which pretty much looks like this:
|
37
|
+
|
38
|
+
/*
|
39
|
+
*
|
40
|
+
*= require bootstrap_and_overrides.css
|
41
|
+
*= require_self
|
42
|
+
*/
|
43
|
+
|
44
|
+
@import 'flatuipro';
|
45
|
+
@import 'startup_framework';
|
42
46
|
|
43
47
|
/* header */
|
44
48
|
@import '/startup-framework/ui-kit/ui-kit-header/less/header-10.less';
|
@@ -50,29 +54,9 @@ If you want to integrate the framework page:
|
|
50
54
|
|
51
55
|
/* footer */
|
52
56
|
@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
|
-
*/
|
74
|
-
|
75
57
|
|
58
|
+
The whole file for e.g. signup.less can be referred anywhere else in your views or in the application.css
|
59
|
+
In case you use capistrano and use local asset precompile logic, in that case you wouldn't require to checkin your Startup-Framework into CVS/Git or you also dont need to copy them to your production server.
|
76
60
|
|
77
61
|
## Usage
|
78
62
|
After running the install generator, all assets should be setup.
|
@@ -82,11 +66,11 @@ If you haven't bought it already, please buy from designmodo.
|
|
82
66
|
|
83
67
|
|
84
68
|
## Thanks to
|
85
|
-
The idea generated from
|
69
|
+
The idea generated from [StackOverFlow](http://stackoverflow.com/questions/23331056/designmodos-startup-framework-kit-with-ruby-on-rails/) where this particular question was raised in regards to startup-framework and rails integration.
|
86
70
|
|
87
71
|
|
88
72
|
##Queries
|
89
|
-
In case of queries please contact
|
73
|
+
In case of queries please contact roney.baneree@vertmac.com
|
90
74
|
|
91
75
|
|
92
76
|
## Contributing
|
@@ -21,6 +21,7 @@ module StartupFramework
|
|
21
21
|
@fonts_dir = "fonts/#{@namespace}/#{@common_files}/fonts"
|
22
22
|
@images_dir = "images/#{@namespace}/#{@common_files}"
|
23
23
|
@icons_dir = "#{@images_dir}/icons"
|
24
|
+
@img_dir = "#{@images_dir}/img"
|
24
25
|
@less_dir = "less/#{@namespace}/#{@common_files}/less"
|
25
26
|
@css_dir = "stylesheets/#{@namespace}/#{@common_files}/css"
|
26
27
|
@js_dir = "javascripts/#{@namespace}/#{@common_files}/js"
|
@@ -46,6 +47,7 @@ module StartupFramework
|
|
46
47
|
|
47
48
|
#Copy the icons folder to the images dir
|
48
49
|
directory File.join(pro_dir, @common_files,"icons"), File.join(gem_assets_dir, @icons_dir)
|
50
|
+
directory File.join(pro_dir, @common_files,"img"), File.join(gem_assets_dir, @img_dir)
|
49
51
|
FileUtils.cp File.join(pro_dir, @common_files,"css/images/bx_loader.gif"), File.join(gem_assets_dir, "images")
|
50
52
|
FileUtils.cp File.join(pro_dir, @common_files,"css/images/controls.png"), File.join(gem_assets_dir, "images")
|
51
53
|
|
@@ -57,6 +59,16 @@ module StartupFramework
|
|
57
59
|
|
58
60
|
#Copy the ui-kit folder to the gems asset dir
|
59
61
|
directory File.join(pro_dir, @ui_kit), File.join(gem_assets_dir, @target_ui_kit)
|
62
|
+
|
63
|
+
#Remove all non LESS files from ui-kit folder
|
64
|
+
|
65
|
+
Dir.glob("#{gem_assets_dir}/#{@target_ui_kit}/**/*.*") do |file|
|
66
|
+
unless file =~ /\.less\Z/
|
67
|
+
puts "Deleting file #{File.basename file}"
|
68
|
+
FileUtils.rm file, force: true
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
60
72
|
|
61
73
|
end
|
62
74
|
|
@@ -69,18 +81,24 @@ module StartupFramework
|
|
69
81
|
gem_assets_dir = File.expand_path("../../../../../app/assets/", __FILE__)
|
70
82
|
|
71
83
|
#Replace fonts-path
|
72
|
-
gsub_file File.join(gem_assets_dir, @less_dir, "helper.less"), /\.\.\/fonts\//, "@{startup-basePath}
|
84
|
+
gsub_file File.join(gem_assets_dir, @less_dir, "helper.less"), /\.\.\/fonts\//, "@{startup-basePath}common-files/fonts/"
|
73
85
|
|
74
86
|
|
75
87
|
# replace all urls with asset urls with the exception of data urls
|
76
88
|
Dir.glob("#{gem_assets_dir}/#{@less_dir}/*.less") do |less_file|
|
77
|
-
|
78
|
-
|
89
|
+
|
90
|
+
if less_file =~ /icon-font\.less\Z/
|
91
|
+
gsub_file less_file, /url\((.+?)\)/, 'font-url(\\1)'
|
92
|
+
else
|
93
|
+
gsub_file less_file, /url\((.+?)\)/, 'image-url(\\1)'
|
94
|
+
end
|
79
95
|
end
|
80
96
|
|
81
97
|
Dir.glob("#{gem_assets_dir}/#{@target_ui_kit}/**/*.less") do |ui_kit_less_file|
|
82
|
-
|
83
|
-
|
98
|
+
#replace all files with the exception of price-common.less
|
99
|
+
unless ui_kit_less_file =~ /price-common\.less\Z/
|
100
|
+
gsub_file ui_kit_less_file, /url\((.+?)\)/, 'image-url(\\1)'
|
101
|
+
end
|
84
102
|
end
|
85
103
|
|
86
104
|
|
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.8
|
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-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: less-rails-bootstrap
|