paid_up 0.7.4 → 0.7.5

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -0
  3. data/VERSION +1 -1
  4. data/paid_up.gemspec +3 -3
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41ba2fe6a2720121274d15c835b6c7241897efca
4
- data.tar.gz: b9aa32246773ab3bfab8a1ac7cd2e9b7ed805351
3
+ metadata.gz: 498d651e8152a88cda7207664b4bc9040e84eabb
4
+ data.tar.gz: b297ee993fc77dc187e4e31524effdfd5812d0ee
5
5
  SHA512:
6
- metadata.gz: 4e810ee37248039c0592ee81e19cc2629f8332e46ec6e34c88cab55ee7a93f38c0c32d5d9e1f23402f52411c1201994faa546ab024bd388b350dddd862fd4e4e
7
- data.tar.gz: 1578222c472b39eda790155a2130eea42d698df378468f9ea76c22de0e01abe76dfa0664b117b62c49a9cc1d7a6f9c84f7b262cdc8e6fd58e7ce6817007c91be
6
+ metadata.gz: fb2a7fe637ea08c8c283ed1acb17cf4060a7173b2a6b44e630dcb7ca3428e634657cd254dbb56b664ec777f28cc24f3c5f8e7c2a3d21fae26f32cc370a269d38
7
+ data.tar.gz: f19eb5fb5e96b1521c3318d05c72f0b1fbc3947c661b34fa66571fd2bc78e39415261ceb78f9a39f207808e16473ca657791959a25e4c9c1ee117c08d4050f1a
data/README.md CHANGED
@@ -78,6 +78,22 @@ Abilities corresponding to features you have defined will be generated automatic
78
78
  initialize_paid_up(user)
79
79
  end
80
80
  end
81
+
82
+ ## Controller
83
+
84
+ Your controller should inherit from PaidUp::PaidUpController, which in turn inherits from your own ApplicationController.
85
+
86
+ class GroupsController < PaidUp::PaidUpController
87
+
88
+ ### Models
89
+
90
+ Your user model will need to call the `subscriber` method (this is done for you at install).
91
+
92
+ The resources referred to in your config will need to call `paid_for`, like this:
93
+
94
+ class Group < ActiveRecord::Base
95
+ paid_for
96
+ end
81
97
 
82
98
  ## Contributing to Paid Up
83
99
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.4
1
+ 0.7.5
data/paid_up.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: paid_up 0.7.4 ruby lib
5
+ # stub: paid_up 0.7.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "paid_up"
9
- s.version = "0.7.4"
9
+ s.version = "0.7.5"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Karen Lundgren"]
14
- s.date = "2015-06-18"
14
+ s.date = "2015-06-21"
15
15
  s.description = "Allows a model of your choosing (such as users) to subscribe to a plan, which enables features."
16
16
  s.email = "karen.e.lundgren@gmail.com"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paid_up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Lundgren
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-18 00:00:00.000000000 Z
11
+ date: 2015-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails