1
1
# Ruby OpenID Library Installation
2
2
3
- ## Rubygems Installation
3
+ ## Install as a gem
4
4
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 :
7
7
8
8
gem install ruby-openid
9
9
10
+ This is probably what you need.
11
+
10
12
## Manual Installation
11
13
12
- Unpack the archive and run setup.rb to install:
14
+ Unpack the archive and run ` setup.rb ` to install:
13
15
14
16
ruby setup.rb
15
17
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
17
19
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:
19
21
20
22
$ export RUBYLIB=${RUBYLIB}:/path/to/ruby-openid/lib
21
23
@@ -27,21 +29,13 @@ Make sure everything installed ok:
27
29
irb$> require "openid"
28
30
=> true
29
31
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
-
38
32
## Run the test suite
39
33
40
34
Go into the test directory and execute the ` runtests.rb ` script.
41
35
42
36
## Next steps
43
37
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 `
46
40
* Write your own server with ` OpenID::Server `
47
- * Use the ` OpenIDLoginGenerator ` ! Read ` example /README.md` for more info.
41
+ * Use the ` OpenIDLoginGenerator ` ! Read ` examples /README.md` for more info.
0 commit comments