iam 0.3.1 → 0.3.2
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/README.md +3 -2
- data/lib/iam.rb +9 -5
- data/lib/iam/version.rb +1 -1
- data/spec/rails_app/Gemfile +25 -0
- metadata +4 -3
data/README.md
CHANGED
@@ -37,9 +37,8 @@ Also you may log in using user_id (e.g. 42):
|
|
37
37
|
Add gem to your gemfile:
|
38
38
|
|
39
39
|
```ruby
|
40
|
-
gem 'iam', '~> 0.
|
40
|
+
gem 'iam', '~> 0.3.2'
|
41
41
|
```
|
42
|
-
##Configuration
|
43
42
|
|
44
43
|
Generate configuration file:
|
45
44
|
|
@@ -47,6 +46,8 @@ Generate configuration file:
|
|
47
46
|
rails g iam:initializer
|
48
47
|
```
|
49
48
|
|
49
|
+
##Configuration
|
50
|
+
|
50
51
|
You will get `config/iam.yml` that will suit you in 9 cases from 10:
|
51
52
|
|
52
53
|
```yml
|
data/lib/iam.rb
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
require 'rack'
|
2
2
|
|
3
|
-
|
4
|
-
require 'iam/
|
5
|
-
require 'iam/
|
3
|
+
if File.exists?('config/iam.yml')
|
4
|
+
require 'iam/version'
|
5
|
+
require 'iam/configuration'
|
6
|
+
require 'iam/engine' if defined?(Rails::Engine)
|
6
7
|
|
7
|
-
require 'iam/authorization_provider/factory'
|
8
|
+
require 'iam/authorization_provider/factory'
|
8
9
|
|
9
|
-
require 'rack/assets_middleware'
|
10
|
+
require 'rack/assets_middleware'
|
11
|
+
else
|
12
|
+
raise Exception.new("Iam config file does not exist. You may fix it with: rails g iam:initializer")
|
13
|
+
end
|
data/lib/iam/version.rb
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gem 'iam', path: '../..'
|
4
|
+
gem 'devise'
|
5
|
+
gem 'rails', '3.2.9'
|
6
|
+
|
7
|
+
# Bundle edge Rails instead:
|
8
|
+
# gem 'rails', :git => 'git://github.com/rails/rails.git'
|
9
|
+
|
10
|
+
gem 'sqlite3'
|
11
|
+
|
12
|
+
|
13
|
+
# Gems used only for assets and not required
|
14
|
+
# in production environments by default.
|
15
|
+
group :assets do
|
16
|
+
gem 'sass-rails', '~> 3.2.3'
|
17
|
+
gem 'coffee-rails', '~> 3.2.1'
|
18
|
+
|
19
|
+
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
20
|
+
# gem 'therubyracer', :platforms => :ruby
|
21
|
+
|
22
|
+
gem 'uglifier', '>= 1.0.3'
|
23
|
+
end
|
24
|
+
|
25
|
+
gem 'jquery-rails'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
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: 2013-02-
|
12
|
+
date: 2013-02-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -227,6 +227,7 @@ files:
|
|
227
227
|
- lib/rack/assets.rb
|
228
228
|
- lib/rack/assets_middleware.rb
|
229
229
|
- spec/rails_app/.gitignore
|
230
|
+
- spec/rails_app/Gemfile
|
230
231
|
- spec/rails_app/Rakefile
|
231
232
|
- spec/rails_app/app/assets/images/rails.png
|
232
233
|
- spec/rails_app/app/assets/javascripts/application.js
|
@@ -295,7 +296,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
295
296
|
version: '0'
|
296
297
|
requirements: []
|
297
298
|
rubyforge_project: iam
|
298
|
-
rubygems_version: 1.8.
|
299
|
+
rubygems_version: 1.8.24
|
299
300
|
signing_key:
|
300
301
|
specification_version: 3
|
301
302
|
summary: Simple account switcher for Rails.
|