Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit daa0878

Browse files
authored
Merge pull request #118 from olleolleolle/patch-4
Turn examples/README into markdown [ci skip]
2 parents 502b24d + 1a8389d commit daa0878

2 files changed

Lines changed: 22 additions & 23 deletions

File tree

INSTALL.md

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
# Ruby OpenID Library Installation
22

3-
## Rubygems Installation
3+
## Install as a gem
44

5-
Rubygems is a tool for installing ruby libraries and their
6-
dependancies. If you have rubygems installed, simply:
5+
`ruby-openid` is distributed on [RubyGems](https://rubygems.org/).
6+
Install it:
77

88
gem install ruby-openid
99

10+
This is probably what you need.
11+
1012
## Manual Installation
1113

12-
Unpack the archive and run setup.rb to install:
14+
Unpack the archive and run `setup.rb` to install:
1315

1416
ruby setup.rb
1517

16-
setup.rb installs the library into your system ruby. If don't want to
18+
`setup.rb` installs the library into your system ruby. If don't want to
1719
add openid to you system ruby, you may instead add the `lib` directory of
18-
the extracted tarball to your RUBYLIB environment variable:
20+
the extracted tarball to your `RUBYLIB` environment variable:
1921

2022
$ export RUBYLIB=${RUBYLIB}:/path/to/ruby-openid/lib
2123

@@ -27,21 +29,13 @@ Make sure everything installed ok:
2729
irb$> require "openid"
2830
=> true
2931

30-
Or, if you installed via rubygems:
31-
32-
$> irb
33-
irb$> require "rubygems"
34-
=> true
35-
irb$> require_gem "ruby-openid"
36-
=> true
37-
3832
## Run the test suite
3933

4034
Go into the test directory and execute the `runtests.rb` script.
4135

4236
## Next steps
4337

44-
* Run `consumer.rb` in the examples directory.
45-
* Get started writing your own consumer using OpenID::Consumer
38+
* Run `consumer.rb` in the `examples/` directory.
39+
* Get started writing your own consumer using `OpenID::Consumer`
4640
* Write your own server with `OpenID::Server`
47-
* Use the `OpenIDLoginGenerator`! Read `example/README` for more info.
41+
* Use the `OpenIDLoginGenerator`! Read `examples/README.md` for more info.

examples/README renamed to examples/README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,35 @@ OpenID library. Make sure you have properly installed the library
33
before running the examples. These examples are a great place to
44
start in integrating OpenID into your application.
55

6-
==Rails example
6+
## Rails example
77

8-
The rails_openid contains a fully functional OpenID server and relying
8+
The `rails_openid` directory contains a fully functional OpenID server and relying
99
party, and acts as a starting point for implementing your own
1010
production rails server. You'll need the latest version of Ruby on
1111
Rails installed, and then:
1212

13-
cd rails_openid
14-
./script/server
13+
```shell
14+
cd rails_openid
15+
./script/server
16+
```
1517

1618
Open a web browser to http://localhost:3000/ and follow the instructions.
1719

1820
The relevant code to work from when writing your Rails OpenID Relying
1921
Party is:
22+
2023
rails_openid/app/controllers/consumer_controller.rb
24+
2125
If you are working on an OpenID provider, check out
26+
2227
rails_openid/app/controllers/server_controller.rb
2328

2429
Since the library and examples are Apache-licensed, don't be shy about
2530
copy-and-paste.
2631

27-
==Rails ActiveRecord OpenIDStore plugin
32+
## Rails ActiveRecord OpenIDStore plugin
2833

2934
For various reasons you may want or need to deploy your ruby openid
30-
consumer/server using an SQL based store. The active_record_openid_store
35+
consumer/server using an SQL based store. The `active_record_openid_store`
3136
is a plugin that makes using an SQL based store simple. Follow the
3237
README inside the plugin's dir for usage.

0 commit comments

Comments
 (0)