omniauth-osm 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -1
- data/LICENSE.md +2 -0
- data/README.md +4 -2
- data/lib/omniauth-osm/version.rb +1 -1
- data/omniauth-osm.gemspec +1 -0
- metadata +6 -6
data/.travis.yml
CHANGED
data/LICENSE.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
1
3
|
Copyright (c) 2011 Christoph Bünte
|
2
4
|
|
3
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ Once these are in, you need to add the following to your `config/initializers/om
|
|
30
30
|
|
31
31
|
If you are using devise, this is how it looks like in your `config/initializers/devise.rb`:
|
32
32
|
|
33
|
-
config.omniauth :osm, "consumer_key", "consumer_secret"
|
33
|
+
config.omniauth :osm, "consumer_key", "consumer_secret", :fetch_permissions => true
|
34
34
|
|
35
35
|
You will obviously have to put in your key and secret, which you get when you register your app with OpenStreetMap.
|
36
36
|
|
@@ -38,7 +38,9 @@ Now just follow the README at: https://github.com/intridea/omniauth
|
|
38
38
|
|
39
39
|
## Other Servers
|
40
40
|
|
41
|
-
If you would like to use this plugin against another OSM server, such as the test development server you can use the environment variable OSM_AUTH_SITE to set the server to connect to.
|
41
|
+
If you would like to use this plugin against another OSM server, such as the test development server you can use the environment variable OSM_AUTH_SITE to set the server to connect to. Alternatively you can pass the site as a client_option to the omniauth config:
|
42
|
+
|
43
|
+
config.omniauth :osm, "consumer_key", "consumer_secret", :fetch_permissions => true, :client_options => {:site => 'http://api06.dev.openstreetmap.org' }
|
42
44
|
|
43
45
|
You could for example use the gem figaro to configure the environment variable, or roll your own preinitialiser similar to the OpenStreetMap website.
|
44
46
|
|
data/lib/omniauth-osm/version.rb
CHANGED
data/omniauth-osm.gemspec
CHANGED
@@ -10,6 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.homepage = 'https://github.com/sozialhelden/omniauth-osm'
|
11
11
|
gem.description = %q{OpenStreetMap strategy for OmniAuth 1.0a}
|
12
12
|
gem.summary = %q{OpenStreetMap strategy for OmniAuth 1.0a}
|
13
|
+
gem.license = 'MIT'
|
13
14
|
|
14
15
|
gem.rubyforge_project = "omniauth-osm"
|
15
16
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-osm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Christoph B\xC3\xBCnte"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-
|
18
|
+
date: 2013-11-01 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -120,8 +120,8 @@ files:
|
|
120
120
|
- spec/spec_helper.rb
|
121
121
|
has_rdoc: true
|
122
122
|
homepage: https://github.com/sozialhelden/omniauth-osm
|
123
|
-
licenses:
|
124
|
-
|
123
|
+
licenses:
|
124
|
+
- MIT
|
125
125
|
post_install_message:
|
126
126
|
rdoc_options: []
|
127
127
|
|