stormpath-rails 1.1.0.beta → 1.1.1.beta

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b289033abb513d9e994d1bfeb04ddcec33a911fa
4
- data.tar.gz: 54a32096ea8f4bfce9fb3fe57f70e0b25bb1b8e4
3
+ metadata.gz: a8a37170216e2a18e2649cc7a24668b4c9adcd39
4
+ data.tar.gz: e51d475a6a3bc006fb6cc14ab1dbb52e7fafd62e
5
5
  SHA512:
6
- metadata.gz: 0e0e416a12431829b3ab4cdaa55f03ab3839151ecd1eafb94e33f9641b562e899e8ef2e8fa1af987b10626f31ffdb7a99b91d2507da4346a62ab4fcfea0ba2af
7
- data.tar.gz: 6bc55ccd9eade571c90e3c1540354709c4aaf0e681882f6fa241677798906aaacc8a7a50ed18ab828ff4d3c03887c0640e0f49fbf3d19d096597b63a57c41506
6
+ metadata.gz: f8a2af80d898ce1d3c114c78fc0a8e24120f8875f44bf66cb5952f16ba425d5eb136fd32f3afc75f731f240ccd5df01dccf995f9c050ede423d06b2d243ad795
7
+ data.tar.gz: 9f8020e645a5e75dbe1e82cd6624d73688efc6aab714c07c2560d031d72ad3886f0fbc6b70d32981e2e28e76eb0624398067c2a11f4d142a6847cd004ed0b947
data/README.md CHANGED
@@ -8,20 +8,44 @@ Stormpath makes it incredibly simple to add users and user data to your applicat
8
8
 
9
9
  ## Installation
10
10
 
11
- To get started, add Stormpath to your `Gemfile`, `bundle install`, and run
12
- `install generator`:
11
+ Add the following line to your Gemfile. Stormpath is currently in beta so it is necessary to include the gem version
12
+
13
+ ```ruby
14
+ gem 'stormpath-rails', '~> 1.1.0.beta'
15
+ ```
16
+
17
+ Bundle the Gemfile
18
+
19
+ ```ruby
20
+ bundle install
21
+ ```
22
+
23
+ Run the install script which will create a migration file and a config file.
13
24
 
14
- To generate the inital config and setup files
15
25
  ```sh
16
- $ rails generate stormpath:install
26
+ rails generate stormpath:install
27
+ ```
28
+
29
+ Migrate your database
30
+ ```ruby
31
+ rake db:migrate
17
32
  ```
18
33
 
19
- When you run the above generator, it:
34
+ Create a stormpath account if you havent already, and be sure to set up environment variables
20
35
 
21
- * Inserts `Stormpath::Controller` into your `ApplicationController`
22
- * Creates an initializer to allow further configuration.
23
- * Creates a migration that either creates a users table or adds any necessary
24
- columns to the existing table.
36
+ 'STORMPATH_API_KEY_FILE_LOCATION' should be the location of your apiKey.properties file which you downloaded form stormpaths site
37
+ 'STORMPATH_APPLICATION_HREF' should contain the href to your application, can also be found on stormpahs site
38
+
39
+ environment variables are set up in you .bashrc file or .zshrc if you use myzsh. So for example this should look something like this
40
+
41
+ ```sh
42
+ export STORMPATH_API_KEY_FILE_LOCATION=~/.stormpathKey
43
+ export STORMPATH_APPLICATION_URL=https://api.stormpath.com/v1/applications/12345abc
44
+ ```
45
+
46
+ environment variables can be named differently but the stormpath config file should be edited accordingly
47
+
48
+ also make sure that you have a root_path defined in your rails router.rb
25
49
 
26
50
  ## Configuration
27
51
  Override any of these defaults in config/initializers/stormpath.rb
@@ -195,3 +219,13 @@ app/views/users/verification_email_sent.html.erb
195
219
  app/views/users/verification_failed.html.erb
196
220
  app/views/users/verification_resend.html.erb
197
221
  ```
222
+
223
+ ### Supported Ruby Versions
224
+
225
+ * Ruby 2.0.0
226
+ * Ruby 2.1
227
+ * Ruby 2.2
228
+
229
+ ### Suported Rails Versions
230
+
231
+ above Rails 3.2
@@ -1,4 +1,4 @@
1
1
  Stormpath::Rails.configure do |config|
2
- config.api_key_file = ENV['STORMPATH_API_KEY_FILE_LOCATION']
3
- config.application = ENV['STORMPATH_SDK_TEST_APPLICATION_URL']
2
+ config.api_key.file = ENV['STORMPATH_API_KEY_FILE_LOCATION']
3
+ config.application.location = ENV['STORMPATH_SDK_TEST_APPLICATION_URL']
4
4
  end
@@ -1,5 +1,5 @@
1
1
  module Stormpath
2
2
  module Rails
3
- VERSION = "1.1.0.beta"
3
+ VERSION = "1.1.1.beta"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stormpath-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.beta
4
+ version: 1.1.1.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nenad Nikolic