rack-private 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 Thibaud Guillaume-Gentil
1
+ Copyright (c) 2011 Thibaud Guillaume-Gentil
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,32 +1,42 @@
1
- = Rack::Private
1
+ Rack::Private
2
+ =============
2
3
 
3
- Private Rack middleware purpose is to protect your Rack application from anonymous via a secret code form.
4
+ > Private Rack middleware purpose is to protect your Rack application from anonymous via a secret code form.
4
5
 
5
- == Installation
6
+ Installation
7
+ ------------
6
8
 
7
- gem install rack-private
9
+ gem install rack-private
8
10
 
9
- == Usage
11
+ Usage
12
+ -----
13
+
14
+ ``` ruby
15
+ require 'rack-private'
16
+ use Rack::Private :code => 'secret'
17
+ ```
10
18
 
11
- require 'rack-private'
12
- use Rack::Private :code => 'secret'
13
-
14
19
  You can also define multiple codes.
15
20
 
16
- use Rack::Private :codes => ['secret', 'super-secret']
17
-
21
+ ``` ruby
22
+ use Rack::Private :codes => ['secret', 'super-secret']
23
+ ```
24
+
18
25
  And provide your own template.
19
26
 
20
- use Rack::Private :code => 'secret', :template_path => Rails.root.join("app/templates/private.html")
27
+ ``` ruby
28
+ use Rack::Private :code => 'secret', :template_path => Rails.root.join("app/templates/private.html")
29
+ ```
21
30
 
22
31
  == Note on Patches/Pull Requests
23
-
32
+
24
33
  * Fork the project.
25
34
  * Make your feature addition or bug fix.
26
35
  * Add tests for it. This is important so I don't break it in a future version unintentionally.
27
36
  * Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
28
37
  * Send me a pull request. Bonus points for topic branches.
29
38
 
30
- == Contributors
39
+ Author
40
+ ------
31
41
 
32
42
  * {Thibaud Guillaume-Gentil}[http://github.com/thibaudgg]
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class Private
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-private
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 1
9
- - 5
10
- version: 0.1.5
4
+ prerelease:
5
+ version: 0.1.6
11
6
  platform: ruby
12
7
  authors:
13
8
  - Thibaud Guillaume-Gentil
@@ -15,7 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2010-09-06 00:00:00 +02:00
13
+ date: 2011-04-20 00:00:00 +02:00
19
14
  default_executable:
20
15
  dependencies:
21
16
  - !ruby/object:Gem::Dependency
@@ -26,11 +21,6 @@ dependencies:
26
21
  requirements:
27
22
  - - ">="
28
23
  - !ruby/object:Gem::Version
29
- hash: 23
30
- segments:
31
- - 1
32
- - 0
33
- - 0
34
24
  version: 1.0.0
35
25
  type: :development
36
26
  version_requirements: *id001
@@ -42,11 +32,6 @@ dependencies:
42
32
  requirements:
43
33
  - - ~>
44
34
  - !ruby/object:Gem::Version
45
- hash: 37
46
- segments:
47
- - 2
48
- - 11
49
- - 3
50
35
  version: 2.11.3
51
36
  type: :development
52
37
  version_requirements: *id002
@@ -58,11 +43,6 @@ dependencies:
58
43
  requirements:
59
44
  - - ~>
60
45
  - !ruby/object:Gem::Version
61
- hash: 31
62
- segments:
63
- - 1
64
- - 2
65
- - 0
66
46
  version: 1.2.0
67
47
  type: :development
68
48
  version_requirements: *id003
@@ -74,11 +54,6 @@ dependencies:
74
54
  requirements:
75
55
  - - ~>
76
56
  - !ruby/object:Gem::Version
77
- hash: 3
78
- segments:
79
- - 0
80
- - 5
81
- - 4
82
57
  version: 0.5.4
83
58
  type: :development
84
59
  version_requirements: *id004
@@ -97,7 +72,7 @@ files:
97
72
  - lib/rack/private.rb
98
73
  - lib/rack-private.rb
99
74
  - LICENSE
100
- - README.rdoc
75
+ - README.markdown
101
76
  has_rdoc: true
102
77
  homepage: http://github.com/thibaudgg/rack-private
103
78
  licenses: []
@@ -112,25 +87,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
87
  requirements:
113
88
  - - ">="
114
89
  - !ruby/object:Gem::Version
115
- hash: 3
116
- segments:
117
- - 0
118
90
  version: "0"
119
91
  required_rubygems_version: !ruby/object:Gem::Requirement
120
92
  none: false
121
93
  requirements:
122
94
  - - ">="
123
95
  - !ruby/object:Gem::Version
124
- hash: 23
125
- segments:
126
- - 1
127
- - 3
128
- - 6
129
96
  version: 1.3.6
130
97
  requirements: []
131
98
 
132
99
  rubyforge_project: rack-private
133
- rubygems_version: 1.3.7
100
+ rubygems_version: 1.6.2
134
101
  signing_key:
135
102
  specification_version: 3
136
103
  summary: Protect your Rack application from anonymous.