gitkeeper 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +49 -7
  3. data/lib/gitkeeper/version.rb +1 -1
  4. metadata +18 -33
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4c2d83f4bb91775e262d97457fc7f255d2e8c0e
4
- data.tar.gz: da5c3aa49a7558ec1baf6095768bd6b6a51f7426
3
+ metadata.gz: aa6c46a0fcafa13bb3512d56d2a42e783f8beb3f
4
+ data.tar.gz: d69d262352c41d051222c65165c4e4792bad734d
5
5
  SHA512:
6
- metadata.gz: 6bc53cbee8de283a5c0ed02b452565255988ee116dabdb7d07efcb78cba387806eccf31544ed7ce2b320285985f117fe3b1d98a7dae7632fcae8d84232e17d9d
7
- data.tar.gz: 3ef5126511e0a26948df4f45123c38cfcd70fc661cf5cc47c00b14a46e63226afb1e2b90d1d7d47a595a81f2378ca3dcfa299ab9f02170722cd0942e4c5f3b65
6
+ metadata.gz: f82230bb0dbf883148c406e10215d7bc7018374642e6f81a28467dbd703910e0e7e9c837a4776031f9a6feae7bbda7b11fcbec96015ca95666a8e384dd537091
7
+ data.tar.gz: 76eb09c089e276d718b10b3c86c3d158f3d386818eff8c1e1a59b8f9ffd675b9c8bb08ac0ff5790a6964f6809931819fe2ba95c9f280f2057aa23fc51d21c85f
data/README.rdoc CHANGED
@@ -1,4 +1,7 @@
1
- = Gitkeeper for Rails 4.0.0
1
+ = Gitkeeper for Rails 4.1.0
2
+ {<img src="https://codeclimate.com/github/lgs/gitkeeper.png" />}[https://codeclimate.com/github/lgs/gitkeeper]
3
+ {<img src="https://gemnasium.com/lgs/gitkeeper.png" alt="Dependency Status" />}[https://gemnasium.com/lgs/gitkeeper]
4
+
2
5
 
3
6
  First register your app on GitHub
4
7
 
@@ -18,10 +21,10 @@ Callback URL
18
21
 
19
22
  Set environment variables for your local OS ( follow Linux/bash export )
20
23
 
21
- export GITHUB_KEY=ffffffffffffffffffff
22
- export GITHUB_SECRET=9999999999999999999999999999999999999999
24
+ export GITHUB_KEY=put-your-Client-ID-here
25
+ export GITHUB_SECRET=put-your-Client-Secret-here
23
26
 
24
- Now create a brand new rails app
27
+ Now create a brand new rails app. Please note we do skip Test::Unit files, skip Active Record files and we don't run bundle install.
25
28
 
26
29
  rails new host_app -T -O -B
27
30
 
@@ -29,7 +32,7 @@ Change directory to host_app
29
32
 
30
33
  cd host_app
31
34
 
32
- Add mongoid (4.0.0) for rails 4
35
+ Add mongoid (4.0.0) for rails 4.1.0
33
36
 
34
37
  echo "gem 'mongoid', :git => 'git://github.com/mongoid/mongoid.git'" >> Gemfile
35
38
 
@@ -59,7 +62,46 @@ Run the server
59
62
 
60
63
  Visit the following URL
61
64
 
62
- http://localhost:3000/auth/github/
65
+ http://localhost:3000/auth
66
+
67
+ == N O T E :
68
+
69
+ This is a Rails engine, which has to be mounted on a new or pre-existing Rails 4.1.0 app. The User model here, is 'name spaced' within gitkeeper_users, as you can see from the following Rails logs :
70
+
71
+ Started GET "/auth/github" for 127.0.0.1 at 2013-08-25 14:49:09 +0200
72
+ I, [2013-08-25T14:49:09.013975 #7623] INFO -- omniauth: (github) Request phase initiated.
73
+
74
+
75
+ Started GET "/auth/github/callback?code=e70add25e236b56eba1b&state=140f77dbcddf2f013f8511ac2fbf61b0ed3e6481e434104a" for 127.0.0.1 at 2013-08-25 14:49:39 +0200
76
+ I, [2013-08-25T14:49:39.548098 #7623] INFO -- omniauth: (github) Callback phase initiated.
77
+ Processing by Gitkeeper::AuthController#create as HTML
78
+ Parameters: {"code"=>"e70a345236b56iafdf7b", "state"=>"140f77dfbf61b0e12345asdddf04a", "provider"=>"github"}
79
+ MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1914ms)
80
+ MOPED: 127.0.0.1:27017 QUERY database=gitwatcher_new collection=gitkeeper_users selector={"$query"=>{"nickname"=>"lgs"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7005ms)
81
+ Redirected to http://localhost:3001/auth
82
+ Completed 302 Found in 4ms
83
+
84
+
85
+ Started GET "/auth" for 127.0.0.1 at 2013-08-25 14:49:40 +0200
86
+ Processing by Gitkeeper::AuthController#index as HTML
87
+ MOPED: 127.0.0.1:27017 QUERY database=gitwatcher_new collection=gitkeeper_users selector={"_id"=>"5219f45777c68000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5410ms)
88
+ Rendered /home/github/gitkeeper/app/views/gitkeeper/auth/index.html.erb within layouts/gitkeeper/application (0.2ms)
89
+ Completed 200 OK in 7ms (Views: 4.3ms)
90
+
91
+ and by querying directly mongodb with mongo shell :
92
+
93
+ > db.gitkeeper_users.find()
94
+ { "_id" : ObjectId("5219f45777c68000001"), "provider" : "github", "uid" : "1573", "name" : "Luca G. Soave", "email" : "luca.soave@gmail.com", "nickname" : "lgs" }
95
+ >
96
+
97
+ keep your way on merging, mixing, extending your hosting Rails (main)app User model. Fore more infos, see also :
98
+ {Extending a Model From an Engine in Your Rails App}[http://www.bencurtis.com/2010/10/extending-a-model-from-an-engine-in-your-rails-app/]
99
+ and also "Getting Started with Engines" -
100
+ {Improving engine functionality}[http://guides.rubyonrails.org/engines.html#improving-engine-functionality]
101
+
102
+
103
+ === Copyright
63
104
 
64
- This project rocks and uses MIT-LICENSE.
105
+ This project rocks and uses MIT-LICENSE.
65
106
 
107
+ Copyright © 2013 Luca G. Soave
@@ -1,3 +1,3 @@
1
1
  module Gitkeeper
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitkeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca G. Soave
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-06 00:00:00.000000000 Z
11
+ date: 2014-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,95 +16,81 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: 4.1.0.rc2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.0
26
+ version: 4.1.0.rc2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: omniauth
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 1.1.4
33
+ version: 1.2.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 1.1.4
40
+ version: 1.2.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: omniauth-github
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 1.1.0
47
+ version: 1.1.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 1.1.0
54
+ version: 1.1.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: omniauth-oauth2
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 1.1.1
61
+ version: 1.1.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: 1.1.1
69
- - !ruby/object:Gem::Dependency
70
- name: mongoid
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - '>='
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '>='
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- description: An engine for Rails 4.0.0, MongoID, OmniAuth, to Sign in with Github
68
+ version: 1.1.2
69
+ description: An engine for Rails 4.1.0, MongoID, OmniAuth, to Sign in with Github
84
70
  email:
85
71
  - luca.soave@gmail.com
86
72
  executables: []
87
73
  extensions: []
88
74
  extra_rdoc_files: []
89
75
  files:
90
- - app/controllers/gitkeeper/auth_controller.rb
76
+ - app/models/gitkeeper/user.rb
77
+ - app/helpers/gitkeeper/application_helper.rb
78
+ - app/helpers/gitkeeper/auth_helper.rb
91
79
  - app/controllers/gitkeeper/application_controller.rb
92
- - app/assets/javascripts/gitkeeper/application.js
80
+ - app/controllers/gitkeeper/auth_controller.rb
93
81
  - app/assets/javascripts/gitkeeper/auth.js
82
+ - app/assets/javascripts/gitkeeper/application.js
94
83
  - app/assets/stylesheets/gitkeeper/auth.css
95
84
  - app/assets/stylesheets/gitkeeper/application.css
96
- - app/helpers/gitkeeper/application_helper.rb
97
- - app/helpers/gitkeeper/auth_helper.rb
98
- - app/models/gitkeeper/user.rb
99
85
  - app/views/gitkeeper/auth/index.html.erb
100
86
  - app/views/layouts/gitkeeper/application.html.erb
101
87
  - config/routes.rb
102
88
  - config/mongoid.yml
103
89
  - config/initializers/omniauth-github.rb
104
- - lib/tasks/gitkeeper_tasks.rake
105
90
  - lib/gitkeeper.rb
106
91
  - lib/gitkeeper/version.rb
107
92
  - lib/gitkeeper/engine.rb
93
+ - lib/tasks/gitkeeper_tasks.rake
108
94
  - MIT-LICENSE
109
95
  - Rakefile
110
96
  - README.rdoc
@@ -127,9 +113,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
113
  version: '0'
128
114
  requirements: []
129
115
  rubyforge_project:
130
- rubygems_version: 2.0.3
116
+ rubygems_version: 2.0.14
131
117
  signing_key:
132
118
  specification_version: 4
133
119
  summary: Sign in with Github engine
134
120
  test_files: []
135
- has_rdoc: