omniauth-scaffold 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -4,7 +4,7 @@ Scaffold for OmniAuth.
4
4
 
5
5
  ## Installation
6
6
 
7
- Add: Gemfile
7
+ Edit: Gemfile
8
8
 
9
9
  ```ruby
10
10
  gem 'omniauth-scaffold'
@@ -35,7 +35,7 @@ APP_NAME = "YOUR_APP_NAME"
35
35
 
36
36
  [ Keys ]
37
37
  <a href="https://dev.twitter.com/apps/new" target="_blank">Twitter</a>
38
- <a href="https://github.com/account/applications/new" target="_blank">GitHub</a>
38
+ <a href="https://github.com/settings/applications/new" target="_blank">GitHub</a>
39
39
  <a href="https://developers.facebook.com/apps" target="_blank">Facebook</a>
40
40
 
41
41
  [ Development ]
@@ -66,8 +66,7 @@ Rails.application.config.middleware.use OmniAuth::Builder do
66
66
  end
67
67
  ```
68
68
 
69
- [ Heroku ]
70
-
69
+ [ Heroku ]
71
70
  Twitter
72
71
 
73
72
  heroku config:add TWITTER_KEY=YOUR_CONSUMER_KEY
@@ -83,6 +82,14 @@ Facebook
83
82
  heroku config:add FACEBOOK_APP_ID=YOUR_APP_ID
84
83
  heroku config:add FACEBOOK_APP_SECRET=YOUR_APP_SECRET
85
84
 
85
+ Migration:
86
+
87
+ $ rake db:migrate
88
+
89
+ Start Server:
90
+
91
+ $ rails s
92
+
86
93
  ## Contributing
87
94
 
88
95
  1. Fork it
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
@@ -17,13 +17,19 @@ module Omniauth
17
17
  insert_into_file "config/routes.rb", " match ':controller(/:action(/:id))(.:format)'\n", after: "# match ':controller(/:action(/:id))(.:format)'\n"
18
18
 
19
19
  copy_file "db/migrate/create_users.rb", "db/migrate/20000101000000_create_users.rb"
20
+
20
21
  copy_file "app/models/user.rb", "app/models/user.rb"
22
+
21
23
  copy_file "app/controllers/sessions_controller.rb", "app/controllers/sessions_controller.rb"
22
24
  copy_file "app/controllers/application_controller.rb", "app/controllers/application_controller.rb"
23
25
  copy_file "app/controllers/top_controller.rb", "app/controllers/top_controller.rb"
26
+
24
27
  copy_file "app/views/layouts/application.html.erb", "app/views/layouts/application.html.erb"
25
28
  copy_file "app/views/top/index.html.erb", "app/views/top/index.html.erb"
26
29
 
30
+ copy_file "app/assets/stylesheets/base.css.scss", "app/assets/stylesheets/base.css.scss"
31
+ copy_file "app/assets/stylesheets/scaffolds.css.scss", "app/assets/stylesheets/scaffolds.css.scss"
32
+
27
33
  remove_file 'public/index.html'
28
34
  remove_file 'README.rdoc'
29
35
  copy_file "README.md", "README.md"
@@ -0,0 +1,17 @@
1
+
2
+ /* テーブル */
3
+ table, tr, th, td {
4
+ border: 1px solid #aaa;
5
+ padding: 5px;
6
+ border-collapse: collapse;
7
+ border-spacing: 0px;
8
+ }
9
+
10
+ .search table, .search tr, .search td {
11
+ border: 0px solid #aaa;
12
+ padding: 0px;
13
+ }
14
+
15
+ th {
16
+ white-space: nowrap;
17
+ }
@@ -0,0 +1,56 @@
1
+ body {
2
+ background-color: #fff;
3
+ color: #333;
4
+ font-family: verdana, arial, helvetica, sans-serif;
5
+ font-size: 13px;
6
+ line-height: 18px; }
7
+
8
+ p, ol, ul, td {
9
+ font-family: verdana, arial, helvetica, sans-serif;
10
+ font-size: 13px;
11
+ line-height: 18px; }
12
+
13
+ pre {
14
+ background-color: #eee;
15
+ padding: 10px;
16
+ font-size: 11px; }
17
+
18
+ a {
19
+ color: #000;
20
+ &:visited {
21
+ color: #666; }
22
+ &:hover {
23
+ color: #fff;
24
+ background-color: #000; } }
25
+
26
+ div {
27
+ &.field, &.actions {
28
+ margin-bottom: 10px; } }
29
+
30
+ #notice {
31
+ color: green; }
32
+
33
+ .field_with_errors {
34
+ padding: 2px;
35
+ background-color: red;
36
+ display: table; }
37
+
38
+ #error_explanation {
39
+ width: 450px;
40
+ border: 2px solid red;
41
+ padding: 7px;
42
+ padding-bottom: 0;
43
+ margin-bottom: 20px;
44
+ background-color: #f0f0f0;
45
+ h2 {
46
+ text-align: left;
47
+ font-weight: bold;
48
+ padding: 5px 5px 5px 15px;
49
+ font-size: 12px;
50
+ margin: -7px;
51
+ margin-bottom: 0px;
52
+ background-color: #c00;
53
+ color: #fff; }
54
+ ul li {
55
+ font-size: 12px;
56
+ list-style: square; } }
@@ -1,2 +1,2 @@
1
1
 
2
- <h1>Welcome to <%= APP_NAME %></h1>
2
+ <h1>Welcome to <%= APP_NAME %>.</h1>
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "omniauth-scaffold"
8
- s.version = "0.1.6"
8
+ s.version = "0.1.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Shun Matsumoto"]
12
- s.date = "2012-04-27"
12
+ s.date = "2012-04-28"
13
13
  s.description = "Scaffold for OmniAuth."
14
14
  s.email = "s.matsumoto0115@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -24,6 +24,8 @@ Gem::Specification.new do |s|
24
24
  "VERSION",
25
25
  "lib/generators/omniauth/scaffold/scaffold_generator.rb",
26
26
  "lib/generators/omniauth/scaffold/templates/README.md",
27
+ "lib/generators/omniauth/scaffold/templates/app/assets/stylesheets/base.css.scss",
28
+ "lib/generators/omniauth/scaffold/templates/app/assets/stylesheets/scaffolds.css.scss",
27
29
  "lib/generators/omniauth/scaffold/templates/app/controllers/application_controller.rb",
28
30
  "lib/generators/omniauth/scaffold/templates/app/controllers/sessions_controller.rb",
29
31
  "lib/generators/omniauth/scaffold/templates/app/controllers/top_controller.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-27 00:00:00.000000000 Z
12
+ date: 2012-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-twitter
@@ -122,6 +122,8 @@ files:
122
122
  - VERSION
123
123
  - lib/generators/omniauth/scaffold/scaffold_generator.rb
124
124
  - lib/generators/omniauth/scaffold/templates/README.md
125
+ - lib/generators/omniauth/scaffold/templates/app/assets/stylesheets/base.css.scss
126
+ - lib/generators/omniauth/scaffold/templates/app/assets/stylesheets/scaffolds.css.scss
125
127
  - lib/generators/omniauth/scaffold/templates/app/controllers/application_controller.rb
126
128
  - lib/generators/omniauth/scaffold/templates/app/controllers/sessions_controller.rb
127
129
  - lib/generators/omniauth/scaffold/templates/app/controllers/top_controller.rb
@@ -150,7 +152,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
150
152
  version: '0'
151
153
  segments:
152
154
  - 0
153
- hash: -3460327158010718298
155
+ hash: 3358776505836940913
154
156
  required_rubygems_version: !ruby/object:Gem::Requirement
155
157
  none: false
156
158
  requirements: