under_construction 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/generators/under_construction/config_generator.rb +1 -1
- data/lib/under_construction/version.rb +1 -1
- 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: c9901d847869545b2879c2fb42bf4d24b57cd4f2
|
4
|
+
data.tar.gz: 9a1127ad00b62987b051714a62afa10585492750
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd9bd4c4f9d4df7a64cbe079a0498cfa313e78665a3e6032140695d0dffc0cba3c665d2f71a4a683bafef89d8bd3eb030be052bc81ae633a37a8c2f89f642cc1
|
7
|
+
data.tar.gz: fd4379840e9584a74943b4a8714caecfca2cc3991614865e64823c6a72d4d63d4832b2277a95cab6d54e9910b2fe9b6643a7c2378ad047632be99c3e61e053f1
|
data/README.md
CHANGED
@@ -112,7 +112,7 @@ In javascript, you have to include under_construction/*theme* like below:
|
|
112
112
|
//= require under_construction/site-under-construction
|
113
113
|
//= require jquery_ujs
|
114
114
|
|
115
|
-
Make a file in `config/initializers` named `assets.rb` and put
|
115
|
+
Make a file in `config/initializers` named `assets.rb` and put following code inside it or Rails 4 may:
|
116
116
|
|
117
117
|
Rails.application.config.assets.precompile += %w( under_construction.js under_construction.css )
|
118
118
|
|
@@ -8,7 +8,7 @@ module UnderConstruction
|
|
8
8
|
desc 'Configs application controller'
|
9
9
|
def edit_application_Controller
|
10
10
|
if File.exist?(Rails.root + "app/controllers/application_controller.rb")
|
11
|
-
insert_into_file "app/controllers/application_controller.rb", APPLICATION_CONFIG_TXT, :after =>
|
11
|
+
insert_into_file "app/controllers/application_controller.rb", APPLICATION_CONFIG_TXT, :after => /protect_from_forgery.*/
|
12
12
|
else
|
13
13
|
raise 'Couldn\'t find application_controller file'
|
14
14
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: under_construction
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arash Mousavi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-06-
|
12
|
+
date: 2014-06-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|