designmodo-flatuipro-rails 1.1.4.2 → 1.2.1.0.branch

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: 87ba87346b114aae8a8c31cee70e73be0255f4e8
4
- data.tar.gz: 6cdeec3ccda01a63d185e8fd26ed59e894d0cb09
3
+ metadata.gz: b5b87a271efd82e2ab9d52fcbbfc625627c0986e
4
+ data.tar.gz: e538c8e83c68a4a1fa9285bca17564686c660cc7
5
5
  SHA512:
6
- metadata.gz: c9e3c5972411c520c9b010226ace6a9f04dd2b1adf0828135218e8886f6b89fb7f6e6dc4bbd03d326a4dba531ee2b6ea9f17f5edf213618e6d8f8f34a6a9b267
7
- data.tar.gz: 6fb55c131736de2d33941103344d9c0b86ac7a91e5eabd9da467d3477d89c8692d57921108f52c8f17ba5ed5c0e9daea3cd1c9033f5276eb29341c669dec07c2
6
+ metadata.gz: 696518f41a69eb36ce7af6741db4559f8d16194a10374797f0479fb1de8996e0d6e893a29ed8fb57299f3e576ce7c34c5c2b0a937afd84224f9766d5a87701ff
7
+ data.tar.gz: 55bdc8475183403d9823b7f8aaa7ea21c1477db92c836f8ba063f8a4019255b20e3c85b56cad8d8dcf00b76b22def744608239f4c3b4f9265a495b2499fff5ef
data/README.md CHANGED
@@ -1,19 +1,17 @@
1
1
  <a href="http://designmodo.com/shop/?u=223" target="_blank"><img src="http://designmodo.com/img/affiliate/flatui_468_60.jpg" border="0"/></a>
2
2
 
3
- This gem integrates Designmodo's Flat UI Pro Design for Twitter Bootstrap 2 into the Rails 3 and 4 Asset Pipeline.
4
-
5
- For Twitter Bootstrap 3, see _flatuipro-1.2_ branch.
3
+ This gem integrates Designmodo's Flat UI Pro Design for Twitter Bootstrap 3 into the Rails 3 and 4 Asset Pipeline.
6
4
 
7
5
  You **must** purchase and download a licensed copy to use this gem (none of the assets are packaged per Flat UI Pro license). You may do so by clicking the above image (full disclosure: affiliate link).
8
6
 
9
7
  The version major and minors should match the Flat UI Pro version. Anything after these are gem versions.
10
8
 
11
9
  ## Installation
12
- First install and configure dependencies: [twitter-bootstrap-rails](https://github.com/seyhunak/twitter-bootstrap-rails) and [jquery-ui-rails](https://github.com/joliss/jquery-ui-rails) .
10
+ First install and configure dependencies: [bootstrap-on-rails](https://github.com/jasontorres/bootstrap-on-rails) and [jquery-ui-rails](https://github.com/joliss/jquery-ui-rails) .
13
11
 
14
12
  Add this line to your application's Gemfile:
15
13
 
16
- gem 'designmodo-flatuipro-rails'
14
+ gem 'designmodo-flatuipro-rails', '~> 1.2.1.0.branch'
17
15
 
18
16
  And then execute:
19
17
 
@@ -40,38 +38,15 @@ IMPORTANT: After deciding which components to use from the demo page, make sure
40
38
  ## Usage
41
39
  After running the install generator, all assets should be setup.
42
40
 
43
- This gem will detect whether you chose less/static for the twitter-bootstrap-rails install and generate either less/css flatuipro files accordingly.
44
-
45
41
  ## Thanks
46
42
  If you haven't bought it already, please use my Designmodo Affiliate Link (image above)
47
43
 
48
44
  Thanks [@jehughes](https://github.com/jehughes) for the blog post that inspired me to stop being lazy and write the demo page generator =)
49
45
 
50
46
  ## Changes
51
- #### 1.1.4.2
52
- * Add missing jquery.ui.button dependency
53
-
54
- #### 1.1.4.1
55
- * Remove accidentally committed debugging statement
56
-
57
- #### 1.1.4.0
58
- * Support Flat UI Pro 1.1.4
59
- * Detect nested Flat-UI-Pro-1.1.4 directory (in Flat UI Pro 1.2.1 download)
60
- * Bootstrap 2 only (upcoming 'flatuipro-1.2' branch for Bootstrap 3 version)
61
-
62
- #### 1.1.3.1
63
- * Move directory from vendor -> app because of rails 4 (https://github.com/rails/rails/pull/7968)
64
- * Ensure all assets are precompiled correctly if so desired
65
-
66
- #### 1.1.3.0
67
- * Support Flat UI Pro 1.1.3
68
- * Add new 'flatuipro:demo' generator to integrate demo page
69
-
70
- #### 1.1.1
71
- * Minor documentation changes to include Rails 4 compatibility
72
-
73
- #### 1.1.0
74
- * Initial commit
47
+ #### 1.2.1.0.branch
48
+ * Git branch (flatuipro-1.2) and gem release for people who want to use Bootstrap 3
49
+ * Rails bootstrap gem changed: _twitter-bootstrap-rails_ -> _bootstrap-on-rails_
75
50
 
76
51
  ## Contributing
77
52
 
@@ -1,7 +1,7 @@
1
1
  module Designmodo
2
2
  module Flatuipro
3
3
  module Rails
4
- VERSION = "1.1.4.2"
4
+ VERSION = "1.2.1.0.branch"
5
5
  end
6
6
  end
7
7
  end
@@ -22,13 +22,9 @@ module Flatuipro
22
22
  # Overwrite generated index.html.erb with demo html
23
23
  copy_file "index.html.erb", "app/views/flatuipro_demo/index.html.erb"
24
24
 
25
- # Add demo less/css
26
- if use_less?
27
- copy_file "flatuipro-demo.less", "app/assets/stylesheets/flatuipro-demo.less"
28
- else
29
- copy_file "flatuipro-demo.css", "app/assets/stylesheets/flatuipro-demo.css"
30
- end
31
-
25
+ # Add demo LESS
26
+ copy_file "flatuipro-demo.less", "app/assets/stylesheets/flatuipro-demo.less"
27
+
32
28
  # Handle CSS Manifest
33
29
  css_manifest = "app/assets/stylesheets/application.css"
34
30
  if File.exist?(css_manifest)
@@ -51,18 +47,6 @@ module Flatuipro
51
47
  end
52
48
  end
53
49
  end
54
-
55
- private
56
- # Detect if twitter-bootstrap-rails installed with LESS or static stylesheets
57
- def use_less?
58
- if File.exist?("app/assets/stylesheets/bootstrap_and_overrides.css.less")
59
- return true
60
- elsif File.exist?("app/assets/stylesheets/bootstrap_and_overrides.css")
61
- return false
62
- else
63
- raise "Cannot detect twitter-bootstrap-rails install"
64
- end
65
- end
66
50
  end
67
51
  end
68
52
  end
@@ -15,41 +15,34 @@ module Flatuipro
15
15
  unless File.exist?(File.join(pro_dir, "index.html"))
16
16
  pro_dir = File.join(pro_dir, "HTML/UI")
17
17
  end
18
- if File.directory?(File.join(pro_dir, "Flat-UI-Pro-1.1.4"))
19
- pro_dir = File.join(pro_dir, "Flat-UI-Pro-1.1.4")
18
+ if File.directory?(File.join(pro_dir, "Flat-UI-Pro-1.2.1"))
19
+ pro_dir = File.join(pro_dir, "Flat-UI-Pro-1.2.1")
20
20
  end
21
21
  unless File.directory?(pro_dir) && File.exist?(File.join(pro_dir, "index.html"))
22
22
  raise "Invalid Flat UI Pro directory"
23
23
  end
24
24
 
25
- if use_less?
26
- directory File.join(pro_dir, "less"), File.join(gem_assets_dir, "less")
27
- else
28
- copy_file File.join(pro_dir, "css", "flat-ui.css"), "app/assets/stylesheets/flat-ui.css"
29
- end
30
- directory File.join(pro_dir, "js"), File.join(gem_assets_dir, "javascripts")
31
- directory File.join(pro_dir, "images"), File.join(gem_assets_dir, "images")
32
- directory File.join(pro_dir, "fonts"), File.join(gem_assets_dir, "fonts")
25
+ directory File.join(pro_dir, "less"), File.join(gem_assets_dir, "less")
26
+ directory File.join(pro_dir, "js"), File.join(gem_assets_dir, "javascripts")
27
+ directory File.join(pro_dir, "images"), File.join(gem_assets_dir, "images")
28
+ directory File.join(pro_dir, "fonts"), File.join(gem_assets_dir, "fonts")
33
29
 
34
30
  # Demo page assets
35
31
  copy_file File.join(pro_dir, "index.html"), File.join(gem_assets_dir, "demo", "index.html")
36
32
  copy_file File.join(pro_dir, "js", "application.js"), File.join(gem_assets_dir, "demo", "flatuipro-demo.js")
37
- copy_file File.join(pro_dir, "css", "demo.css"), File.join(gem_assets_dir, "demo", "flatuipro-demo.css")
38
33
  copy_file File.join(pro_dir, "less", "demo.less"), File.join(gem_assets_dir, "demo", "flatuipro-demo.less")
39
34
  end
40
35
 
41
36
  def add_assets
42
37
  copy_file "flatuipro.js", "app/assets/javascripts/flatuipro.js"
43
- if use_less?
44
- copy_file "flatuipro.less", "app/assets/stylesheets/flatuipro.less"
45
- end
38
+ copy_file "flatuipro.less", "app/assets/stylesheets/flatuipro.less"
46
39
 
47
40
  # Handle JS Manifest
48
41
  js_manifest = "app/assets/javascripts/application.js"
49
42
  if File.exist?(js_manifest)
50
43
  content = File.read(js_manifest)
51
44
  unless content.match(/require\s+flatuipro/)
52
- insert_into_file js_manifest, "//= require flatuipro\n", :after => "twitter/bootstrap\n"
45
+ insert_into_file js_manifest, "//= require flatuipro\n", :after => "jquery\n"
53
46
  end
54
47
  unless content.match(/require\s+jquery.ui.all/)
55
48
  unless content.match(/require\s+jquery.ui.effect/)
@@ -91,27 +84,21 @@ module Flatuipro
91
84
  def patch_assets
92
85
  gem_assets_dir = File.expand_path("../../../../../app/assets", __FILE__)
93
86
 
94
- # Stylesheets patches
95
- # image url() -> image-url()
96
- # font url() -> font-url()
97
- # LESS
98
- if use_less?
99
- # switch.less
100
- # More involved patch because less-rails won't translate when inside ~""
101
- # Create LESS variable and interpolate into .mask(~"")
102
- switch_file = File.join(gem_assets_dir, "less/modules", "switch.less")
103
- mask_image_url = "@mask-image-url: image-url('switch/mask.png');\n"
104
- insert_into_file switch_file, mask_image_url, :before => ".has-switch {\n"
105
- gsub_file switch_file, /url\('\.\.\/images\/.+?\)/, "@{mask-image-url}"
106
-
107
- # icon-font.less
108
- gsub_file File.join(gem_assets_dir, "less", "icon-font.less"), /url\("\.\.\/fonts\//, 'font-url("'
109
- # CSS
110
- else
111
- gsub_file "app/assets/stylesheets/flat-ui.css", /url\('\.\.\/images\//, "url('/assets/"
112
- gsub_file "app/assets/stylesheets/flat-ui.css", /url\("\.\.\/fonts\//, 'url("/assets/'
113
- end
114
-
87
+ # LESS patches
88
+ # switch.less
89
+ # More involved patch because less-rails won't translate when inside ~""
90
+ # Create LESS variable and interpolate into .mask(~"")
91
+ switch_file = File.join(gem_assets_dir, "less/modules", "switch.less")
92
+ mask_image_url = "@mask-image-url: image-url('switch/mask.png');\n"
93
+ insert_into_file switch_file, mask_image_url, :before => ".has-switch {\n"
94
+ gsub_file switch_file, /url\('\.\.\/images\/.+?\)/, "@{mask-image-url}"
95
+
96
+ # icon-font.less
97
+ gsub_file File.join(gem_assets_dir, "less", "icon-font.less"), /url\("\.\.\/fonts\//, 'font-url("'
98
+
99
+ # font.less
100
+ gsub_file File.join(gem_assets_dir, "less", "fonts.less"), /url\('\.\.\/fonts\//, "font-url('"
101
+
115
102
  # Demo page patches
116
103
  file = File.join(gem_assets_dir, "demo", "index.html")
117
104
  # Fix image links
@@ -132,18 +119,6 @@ module Flatuipro
132
119
  end
133
120
  new_file.close
134
121
  end
135
-
136
- private
137
- # Detect if twitter-bootstrap-rails installed with LESS or static stylesheets
138
- def use_less?
139
- if File.exist?("app/assets/stylesheets/bootstrap_and_overrides.css.less")
140
- return true
141
- elsif File.exist?("app/assets/stylesheets/bootstrap_and_overrides.css")
142
- return false
143
- else
144
- raise "Cannot detect twitter-bootstrap-rails install"
145
- end
146
- end
147
122
  end
148
123
  end
149
124
  end
@@ -5,10 +5,10 @@
5
5
  // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
6
  //
7
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.
8
+ // compiled file.
9
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.
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
12
  //
13
13
  //= require jquery
14
14
  //= require jquery.ui.button
@@ -18,6 +18,18 @@
18
18
  //= require jquery.ui.tooltip.js
19
19
  //= require jquery.ui.effect.js
20
20
  //= require jquery_ujs
21
- //= require twitter/bootstrap
22
21
  //= require flatuipro
22
+ //= require turbolinks
23
+ //= require bootstrap/affix
24
+ //= require bootstrap/alert
25
+ //= require bootstrap/button
26
+ //= require bootstrap/carousel
27
+ //= require bootstrap/collapse
28
+ //= require bootstrap/dropdown
29
+ //= require bootstrap/modal
30
+ //= require bootstrap/tooltip
31
+ //= require bootstrap/popover
32
+ //= require bootstrap/scrollspy
33
+ //= require bootstrap/tab
34
+ //= require bootstrap/transition
23
35
  //= require_tree .
@@ -5,4 +5,4 @@
5
5
  //= require flatui-radio
6
6
  //= require jquery.tagsinput
7
7
  //= require jquery.placeholder
8
- //= require jquery.stacktable
8
+ //= require bootstrap-typeahead
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: designmodo-flatuipro-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4.2
4
+ version: 1.2.1.0.branch
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Chou
@@ -11,19 +11,19 @@ cert_chain: []
11
11
  date: 2013-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: twitter-bootstrap-rails
14
+ name: bootstrap-on-rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.6
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.2.6
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jquery-rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -92,9 +92,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - '>='
95
+ - - '>'
96
96
  - !ruby/object:Gem::Version
97
- version: '0'
97
+ version: 1.3.1
98
98
  requirements: []
99
99
  rubyforge_project:
100
100
  rubygems_version: 2.0.3