reviewed-auth 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/Gemfile.lock CHANGED
@@ -1,15 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- reviewed-auth (0.0.1)
4
+ reviewed-auth (0.1.0)
5
5
  faraday
6
6
  sinatra
7
7
  sinatra-contrib
8
+ sinatra-twitter-bootstrap
8
9
 
9
10
  GEM
10
11
  remote: https://rubygems.org/
11
12
  specs:
12
- backports (2.6.4)
13
+ backports (2.6.5)
13
14
  daemons (1.1.9)
14
15
  eventmachine (1.0.0)
15
16
  faraday (0.8.4)
@@ -18,7 +19,7 @@ GEM
18
19
  thor (>= 0.13.6)
19
20
  multipart-post (1.1.5)
20
21
  rack (1.4.1)
21
- rack-protection (1.2.0)
22
+ rack-protection (1.3.2)
22
23
  rack
23
24
  rack-test (0.6.2)
24
25
  rack (>= 1.0)
@@ -28,13 +29,14 @@ GEM
28
29
  rack (~> 1.3, >= 1.3.6)
29
30
  rack-protection (~> 1.2)
30
31
  tilt (~> 1.3, >= 1.3.3)
31
- sinatra-contrib (1.3.1)
32
+ sinatra-contrib (1.3.2)
32
33
  backports (>= 2.0)
33
34
  eventmachine
34
35
  rack-protection
35
36
  rack-test
36
37
  sinatra (~> 1.3.0)
37
38
  tilt (~> 1.3)
39
+ sinatra-twitter-bootstrap (2.2.2.1)
38
40
  thin (1.5.0)
39
41
  daemons (>= 1.0.9)
40
42
  eventmachine (>= 0.12.6)
data/LICENSE.txt CHANGED
File without changes
data/Procfile CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
data/config.ru CHANGED
File without changes
@@ -1,3 +1,4 @@
1
+ require 'sinatra/twitter-bootstrap'
1
2
  require 'faraday'
2
3
  require 'json'
3
4
  require 'uri'
@@ -5,6 +6,7 @@ require 'uri'
5
6
  module Reviewed
6
7
  module Auth
7
8
  class LoginController < Sinatra::Base
9
+ register Sinatra::Twitter::Bootstrap::Assets
8
10
  set :views, File.expand_path(File.join(File.dirname(__FILE__), "views"))
9
11
  # use Rack::Session::Cookie, secret: '0Shitt4dL3yTYe0VXfCDmQ', key: "reviewed.auth.session"
10
12
 
@@ -1,5 +1,5 @@
1
1
  module Reviewed
2
2
  module Auth
3
- VERSION = "0.0.2"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -9,7 +9,8 @@
9
9
  <meta name="author" content="">
10
10
 
11
11
  <!-- Le styles -->
12
- <link href="assets/css/bootstrap.min.css" rel="stylesheet">
12
+ <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
13
+ <%= bootstrap_assets %>
13
14
  <style type="text/css">
14
15
  body {
15
16
  padding-top: 40px;
@@ -73,12 +74,7 @@
73
74
  </form>
74
75
 
75
76
  </div> <!-- /container -->
76
-
77
- <!-- Le javascript
78
- ================================================== -->
79
- <!-- Placed at the end of the document so the pages load faster -->
80
- <script src="assets/js/jquery.js"></script>
81
- <script src="assets/js/bootstrap.min.js"></script>
77
+
82
78
 
83
79
  </body>
84
80
  </html>
data/lib/reviewed-auth.rb CHANGED
File without changes
@@ -20,4 +20,5 @@ Gem::Specification.new do |gem|
20
20
  gem.add_dependency("sinatra")
21
21
  gem.add_dependency("sinatra-contrib")
22
22
  gem.add_dependency("faraday")
23
+ gem.add_dependency("sinatra-twitter-bootstrap")
23
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reviewed-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
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-11-28 00:00:00.000000000 Z
12
+ date: 2013-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
@@ -59,6 +59,22 @@ dependencies:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: sinatra-twitter-bootstrap
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
62
78
  description: Central Authentication Service for Reviewed.com
63
79
  email:
64
80
  - mark@markbates.com
@@ -75,11 +91,6 @@ files:
75
91
  - Rakefile
76
92
  - config.ru
77
93
  - lib/reviewed-auth.rb
78
- - lib/reviewed-auth/assets/css/bootstrap.min.css
79
- - lib/reviewed-auth/assets/img/glyphicons-halflings-white.png
80
- - lib/reviewed-auth/assets/img/glyphicons-halflings.png
81
- - lib/reviewed-auth/assets/js/bootstrap.min.js
82
- - lib/reviewed-auth/assets/js/jquery.js
83
94
  - lib/reviewed-auth/login_controller.rb
84
95
  - lib/reviewed-auth/version.rb
85
96
  - lib/reviewed-auth/views/login_form.erb