bootstrappers 0.0.8 → 0.0.9
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.
- data/CHANGELOG.md +3 -0
- data/TODO.md +2 -0
- data/lib/bootstrappers/app_builder.rb +2 -0
- data/lib/bootstrappers/generators/app_generator.rb +0 -8
- data/lib/bootstrappers/version.rb +1 -1
- data/templates/Gemfile_additions +1 -1
- data/templates/common/_facebook_js.erb +1 -1
- data/templates/javascripts/application.js +5 -0
- data/templates/stylesheets/application.css.scss +2 -0
- data/templates/{import_scss_styles → stylesheets/common.css.scss} +0 -0
- metadata +8 -6
data/CHANGELOG.md
CHANGED
data/TODO.md
CHANGED
|
@@ -33,10 +33,12 @@ module Bootstrappers
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def create_common_javascripts
|
|
36
|
+
remove_file 'app/assets/javascripts/application.js'
|
|
36
37
|
directory 'javascripts', 'app/assets/javascripts'
|
|
37
38
|
end
|
|
38
39
|
|
|
39
40
|
def create_common_stylesheets
|
|
41
|
+
remove_file 'app/assets/stylesheets/application.css'
|
|
40
42
|
directory 'stylesheets', 'app/assets/stylesheets'
|
|
41
43
|
end
|
|
42
44
|
|
|
@@ -25,7 +25,6 @@ module Bootstrappers
|
|
|
25
25
|
invoke :setup_database
|
|
26
26
|
invoke :configure_app
|
|
27
27
|
invoke :create_initializers
|
|
28
|
-
invoke :setup_stylesheets
|
|
29
28
|
invoke :remove_routes_comment_lines
|
|
30
29
|
invoke :setup_root_route
|
|
31
30
|
invoke :setup_git
|
|
@@ -64,8 +63,6 @@ module Bootstrappers
|
|
|
64
63
|
|
|
65
64
|
def add_common_js_library
|
|
66
65
|
say 'Add add_common_js_library to the standard application.js'
|
|
67
|
-
build :add_jquery_ui
|
|
68
|
-
build :add_bootstrap_js
|
|
69
66
|
end
|
|
70
67
|
|
|
71
68
|
|
|
@@ -109,11 +106,6 @@ module Bootstrappers
|
|
|
109
106
|
end
|
|
110
107
|
|
|
111
108
|
|
|
112
|
-
def setup_stylesheets
|
|
113
|
-
say 'Set up stylesheets'
|
|
114
|
-
build :setup_stylesheets
|
|
115
|
-
end
|
|
116
|
-
|
|
117
109
|
def remove_routes_comment_lines
|
|
118
110
|
build :remove_routes_comment_lines
|
|
119
111
|
end
|
data/templates/Gemfile_additions
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
var js, fjs = d.getElementsByTagName(s)[0];
|
|
5
5
|
if (d.getElementById(id)) {return;}
|
|
6
6
|
js = d.createElement(s); js.id = id;
|
|
7
|
-
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId
|
|
7
|
+
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=<%= Setting.facebook_app_id%>";
|
|
8
8
|
fjs.parentNode.insertBefore(js, fjs);
|
|
9
9
|
}(document, 'script', 'facebook-jssdk'));</script>
|
|
File without changes
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 0.0.
|
|
8
|
+
- 9
|
|
9
|
+
version: 0.0.9
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- xdite
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2012-
|
|
17
|
+
date: 2012-11-12 00:00:00 +08:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -82,13 +82,15 @@ files:
|
|
|
82
82
|
- templates/common/_search_form.html.erb
|
|
83
83
|
- templates/common/_user_nav.html.erb
|
|
84
84
|
- templates/config_yml.erb
|
|
85
|
-
- templates/import_scss_styles
|
|
86
85
|
- templates/initializers/seo_helper.rb
|
|
87
86
|
- templates/javascripts/README
|
|
87
|
+
- templates/javascripts/application.js
|
|
88
88
|
- templates/mysql_database.yml.erb
|
|
89
89
|
- templates/setting.rb
|
|
90
|
+
- templates/stylesheets/application.css.scss
|
|
90
91
|
- templates/stylesheets/bootstrap-override.css.scss
|
|
91
92
|
- templates/stylesheets/bootstrap-setting.css.scss
|
|
93
|
+
- templates/stylesheets/common.css.scss
|
|
92
94
|
- templates/welcome.html.erb
|
|
93
95
|
has_rdoc: true
|
|
94
96
|
homepage: ""
|
|
@@ -104,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
104
106
|
requirements:
|
|
105
107
|
- - ">="
|
|
106
108
|
- !ruby/object:Gem::Version
|
|
107
|
-
hash:
|
|
109
|
+
hash: 2197860383841598612
|
|
108
110
|
segments:
|
|
109
111
|
- 0
|
|
110
112
|
version: "0"
|
|
@@ -113,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
113
115
|
requirements:
|
|
114
116
|
- - ">="
|
|
115
117
|
- !ruby/object:Gem::Version
|
|
116
|
-
hash:
|
|
118
|
+
hash: 2197860383841598612
|
|
117
119
|
segments:
|
|
118
120
|
- 0
|
|
119
121
|
version: "0"
|