anjlab-bootstrap-rails 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ task "update-twitter" do
11
11
  bootstrap_scss = File.read("vendor/assets/stylesheets/bootstrap.scss")
12
12
 
13
13
  bootstrap_scss.gsub!(/@VERSION/, "v#{boostrap_version}")
14
- bootstrap_scss.gsub!(/@DATE/, Time.now.to_s)
14
+ bootstrap_scss.gsub!(/^.*@DATE.*/, " *")
15
15
 
16
16
  File.open("vendor/assets/stylesheets/bootstrap.scss", "w") do |f|
17
17
  f.write(bootstrap_scss)
@@ -23,9 +23,19 @@ task "update-twitter" do
23
23
  cp file, "vendor/assets/javascripts/", :verbose => true
24
24
  end
25
25
 
26
- bootstrap_js = js_files.map{|f| "//= require #{File.basename(f)}"}.join("\n")
26
+ js_priorities = {}
27
+ js_files.each {|f| js_priorities[File.basename(f)] = 0}
28
+
29
+ # popover depend on twipsy
30
+ js_priorities["bootstrap-twipsy.js"] = 1
31
+ js_priorities["bootstrap-popover.js"] = 2
32
+
33
+ js_list = js_priorities.to_a.sort {|a,b| a[1] <=> b[1]}.map{|p| p[0]}
34
+
27
35
  File.open("vendor/assets/javascripts/bootstrap.js", "w") do |f|
28
36
  f.write "// Bootstrap v#{boostrap_version}\n"
29
- f.write(bootstrap_js)
37
+ js_list.each do |js|
38
+ f.write "//= #{js}\n"
39
+ end
30
40
  end
31
41
  end
@@ -1,5 +1,5 @@
1
1
  module Bootstrap
2
2
  module Rails
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -1,8 +1,8 @@
1
1
  // Bootstrap v1.3.0
2
- //= require bootstrap-alerts.js
3
- //= require bootstrap-dropdown.js
4
- //= require bootstrap-modal.js
5
- //= require bootstrap-popover.js
6
- //= require bootstrap-scrollspy.js
7
- //= require bootstrap-tabs.js
8
- //= require bootstrap-twipsy.js
2
+ //= bootstrap-alerts.js
3
+ //= bootstrap-dropdown.js
4
+ //= bootstrap-modal.js
5
+ //= bootstrap-tabs.js
6
+ //= bootstrap-scrollspy.js
7
+ //= bootstrap-twipsy.js
8
+ //= bootstrap-popover.js
@@ -6,7 +6,7 @@
6
6
  * http://www.apache.org/licenses/LICENSE-2.0
7
7
  *
8
8
  * Designed and built with all the love in the world @twitter by @mdo and @fat.
9
- * Date: 2011-09-20 11:28:01 +0400
9
+ *
10
10
  */
11
11
 
12
12
  // CSS Reset
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anjlab-bootstrap-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-09-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
16
- requirement: &70348637392800 !ruby/object:Gem::Requirement
16
+ requirement: &70237370741920 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70348637392800
24
+ version_requirements: *70237370741920
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: thor
27
- requirement: &70348637392280 !ruby/object:Gem::Requirement
27
+ requirement: &70237370740840 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0.14'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70348637392280
35
+ version_requirements: *70237370740840
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70348637391760 !ruby/object:Gem::Requirement
38
+ requirement: &70237370740040 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.0.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70348637391760
46
+ version_requirements: *70237370740040
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rails
49
- requirement: &70348637391240 !ruby/object:Gem::Requirement
49
+ requirement: &70237370738320 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '3.0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70348637391240
57
+ version_requirements: *70237370738320
58
58
  description: Twitter Bootstrap CSS (with SASS flavour) and JS toolkits for Rails 3
59
59
  projects
60
60
  email: