minimum-omniauth-scaffold 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +46 -5
- data/lib/minimum/omniauth/scaffold.rb +4 -0
- data/lib/minimum/omniauth/scaffold/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: 83eaf3d26d38147b5cfcc8b9ff9126a148e019dc
|
4
|
+
data.tar.gz: bdbe34050e184af75256c4953990522d035e3d04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 107f206c7ac06c7ef32c9eba591b370a293dbbf0f98a3977fd1fcf0a547ef75b0cdcd1a6f00ba09b8c1b860b3d453b8b59c67c5711e63bfd81153e8cc1b55b7e
|
7
|
+
data.tar.gz: 77d097d433c7d735b673f08270b5cdbe9f3062c96a46d6368a318a781a003ee252ee8e6a780c41afec8f90cf4d2ef523262d3745e3e1d2b92e3af26dd2d58825
|
data/README.md
CHANGED
@@ -1,24 +1,65 @@
|
|
1
1
|
# Minimum::Omniauth::Scaffold
|
2
2
|
|
3
|
-
For Ruby2.0 and Rails4.0
|
3
|
+
For Ruby2.0 and Rails4.0.0.beta1
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
|
-
|
9
|
+
```
|
10
|
+
gem 'minimum-omniauth-scaffold'
|
11
|
+
```
|
10
12
|
|
11
13
|
And then execute:
|
12
14
|
|
13
|
-
|
15
|
+
```
|
16
|
+
bundle
|
17
|
+
```
|
14
18
|
|
15
19
|
Or install it yourself as:
|
16
20
|
|
17
|
-
|
21
|
+
```
|
22
|
+
gem install minimum-omniauth-scaffold
|
23
|
+
```
|
18
24
|
|
19
25
|
## Usage
|
20
26
|
|
21
|
-
|
27
|
+
```
|
28
|
+
rails g minimum:omniauth:scaffold
|
29
|
+
----------
|
30
|
+
create config/initializers/rails_config.rb
|
31
|
+
create config/settings.yml
|
32
|
+
create config/settings.local.yml
|
33
|
+
create config/settings/development.yml
|
34
|
+
create config/settings/production.yml
|
35
|
+
create config/settings/test.yml
|
36
|
+
create config/initializers/omniauth.rb
|
37
|
+
insert config/routes.rb
|
38
|
+
insert config/routes.rb
|
39
|
+
insert config/application.rb
|
40
|
+
insert config/application.rb
|
41
|
+
insert config/application.rb
|
42
|
+
insert config/environments/production.rb
|
43
|
+
insert config/environments/development.rb
|
44
|
+
gsub config/environments/development.rb
|
45
|
+
insert config/environments/development.rb
|
46
|
+
create config/locales/ja.yml
|
47
|
+
create config/locales/translation_ja.yml
|
48
|
+
create db/migrate/20000101000000_create_users.rb
|
49
|
+
create app/models/user.rb
|
50
|
+
insert app/controllers/application_controller.rb
|
51
|
+
create app/controllers/sessions_controller.rb
|
52
|
+
create app/controllers/top_controller.rb
|
53
|
+
gsub app/views/layouts/application.html.erb
|
54
|
+
gsub app/views/layouts/application.html.erb
|
55
|
+
create app/views/layouts/_user_icon.html.erb
|
56
|
+
create app/views/top/index.html.erb
|
57
|
+
create app/assets/stylesheets/scaffolds.css.scss
|
58
|
+
remove README.rdoc
|
59
|
+
create README.md
|
60
|
+
append .gitignore
|
61
|
+
----------
|
62
|
+
```
|
22
63
|
|
23
64
|
## Contributing
|
24
65
|
|
@@ -98,6 +98,10 @@ module Minimum
|
|
98
98
|
content += "config/settings/*.local.yml\n"
|
99
99
|
content += "config/environments/*.local.yml\n"
|
100
100
|
append_file( ".gitignore", content.force_encoding('ASCII-8BIT') )
|
101
|
+
|
102
|
+
# ----- controllers ----- #
|
103
|
+
content = "ruby '2.0.0'\n"
|
104
|
+
insert_into_file( "Gemfile", content.force_encoding('ASCII-8BIT'), after: "source 'https://rubygems.org'\n" )
|
101
105
|
end
|
102
106
|
end
|
103
107
|
end
|