scaffold_plus 1.4.14 → 1.4.15
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 +4 -4
- data/Makefile +13 -2
- data/lib/generators/scaffold_plus/force_ssl/force_ssl_generator.rb +2 -2
- data/lib/scaffold_plus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 91c3e71567a51855844ee3c16125dda85d7dc2ed
|
|
4
|
+
data.tar.gz: 5ea3098bac0fecc156019e6df228857ad5424a96
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f54d44bc4baaa01df2bf91734ec85fc7ad512b252d74958353afd0c61697f0628a44f515ac4d7055db08b3bffafd232fa4a8694cd221b91dd306b458003abc6d
|
|
7
|
+
data.tar.gz: 5b3a89d84977fc83ba65991f13dde3af1d99fb10fb78334a21d0f92dd5551899e6eee286ceb9e2373d1275c1d6c6df3c8ad33aab2c65eb30c170d497a78c30c4
|
data/Makefile
CHANGED
|
@@ -3,9 +3,20 @@
|
|
|
3
3
|
# Makefile for building the Gem
|
|
4
4
|
#
|
|
5
5
|
|
|
6
|
-
all:
|
|
7
|
-
git
|
|
6
|
+
all: build
|
|
7
|
+
git status
|
|
8
|
+
|
|
9
|
+
rel: build
|
|
8
10
|
vim lib/scaffold_plus/version.rb
|
|
9
11
|
git commit -a
|
|
12
|
+
sudo gem uninstall scaffold_plus --all
|
|
10
13
|
rake release
|
|
14
|
+
sudo rake install
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
install: build
|
|
18
|
+
git commit -a
|
|
19
|
+
|
|
20
|
+
build:
|
|
21
|
+
git add lib
|
|
11
22
|
|
|
@@ -15,8 +15,8 @@ module ScaffoldPlus
|
|
|
15
15
|
file = "app/controllers/#{table_name}_controller.rb"
|
|
16
16
|
inject_into_file file, after: /^class.*ApplicationController$/ do
|
|
17
17
|
text = "\n force_ssl if: :ssl_configured?"
|
|
18
|
-
text << ", only: [ #{only_list} ]"
|
|
19
|
-
text << ", except: [ #{except_list} ]"
|
|
18
|
+
text << ", only: [ #{only_list} ]" if options.only.present?
|
|
19
|
+
text << ", except: [ #{except_list} ]" if options.except.present?
|
|
20
20
|
text
|
|
21
21
|
end
|
|
22
22
|
inject_into_file file, after: /private$/ do
|