minimum-omniauth-scaffold 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06b480986219b3f1ad9124e54e0b9809ee6d0eeb
|
4
|
+
data.tar.gz: 44d2b2d446743aa3309145cf2b8f8b895860e186
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c52bfbda5f5e9d515f1756104f5088b7fe7efbfd1a8b1413c171781a6def1d8025a5ead2feb90825a9b7abdcf38aa19413b460f926a82a94d6c54cd501aa6a6
|
7
|
+
data.tar.gz: 751fbf1fdf59f5a4fd773ec15fa505236f7dd6993d6d7e550456f62fc2cbf74b82837b05b6be43ada845488fd2e4d8a45db27a95f72b48f6f216ebe7ee3b445f
|
@@ -11,6 +11,7 @@ module Minimum
|
|
11
11
|
module Omniauth
|
12
12
|
class ScaffoldGenerator < Rails::Generators::Base
|
13
13
|
@@template_path = source_root File.expand_path("../scaffold/templates", __FILE__)
|
14
|
+
@@current_path = Dir.pwd
|
14
15
|
|
15
16
|
def generate_scaffold
|
16
17
|
app_name = Rails.application.class.name.split('::').first
|
@@ -58,8 +59,13 @@ module Minimum
|
|
58
59
|
# gsub_file "app/views/layouts/application.html.erb", /(<%= yield %>)+/, content.force_encoding('ASCII-8BIT')
|
59
60
|
# gsub_file "app/views/layouts/application.html.erb", Regexp.new("<title>#{app_name}</title>"), "<title><%= Settings.app_name %></title>"
|
60
61
|
|
61
|
-
|
62
|
-
|
62
|
+
begin
|
63
|
+
copy_file "#{@@current_path}/app/views/layouts/application.html.erb", 'app/views/layouts/application_BACKUP.html.erb'
|
64
|
+
remove_file "#{@@current_path}/app/views/layouts/application.html.erb"
|
65
|
+
rescue => e
|
66
|
+
e.tapp
|
67
|
+
end
|
68
|
+
|
63
69
|
copy_file "#{@@template_path}/views/application.html.haml", 'app/views/layouts/application.html.haml'
|
64
70
|
copy_file "#{@@template_path}/views/_user_icon.html.haml", "app/views/layouts/_user_icon.html.haml"
|
65
71
|
copy_file "#{@@template_path}/views/index.html.haml", "app/views/top/index.html.haml"
|
@@ -68,8 +74,12 @@ module Minimum
|
|
68
74
|
copy_file "#{@@template_path}/stylesheets/scaffolds.css.scss", "app/assets/stylesheets/scaffolds.css.scss"
|
69
75
|
|
70
76
|
# README
|
71
|
-
|
72
|
-
|
77
|
+
begin
|
78
|
+
copy_file "#{@@current_path}/README.md", 'README_BACKUP.md'
|
79
|
+
remove_file "#{@@current_path}/README.md"
|
80
|
+
rescue => e
|
81
|
+
e.tapp
|
82
|
+
end
|
73
83
|
copy_file "#{@@template_path}/README.md", "README.md"
|
74
84
|
|
75
85
|
# .gitignore
|
@@ -77,4 +77,6 @@ http://0.0.0.0:3000/
|
|
77
77
|
|
78
78
|
## Copyright
|
79
79
|
|
80
|
-
Copyright (c)
|
80
|
+
Copyright (c) 20xx MY_NAME.
|
81
|
+
|
82
|
+
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="クリエイティブ・コモンズ・ライセンス" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br />この 作品 は <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">クリエイティブ・コモンズ 表示 - 非営利 - 継承 4.0 国際 ライセンス</a>の下に提供されています。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimum-omniauth-scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- shu0115
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|