paid_up 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e99f660fe6ef9bb9d9afd0ed0335084916ceb65
|
4
|
+
data.tar.gz: c1d31256b8769576aa47b8c8c9d277ecc52a6d8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 419a3f9468e4e9e91be0b9a1fc1b7183057aa974bde6dc6f1d2a4795f02ec72d1c5668dd716a0da01beccc2330f0ada633fafd5d5f65153a3848d04ea251e683
|
7
|
+
data.tar.gz: b939fe5c9760a1fc9f5bfb8a48e4c2fa68e0466e25073c746354947882355c426ac7d3cfeb274c840952b732e091b186650c6727d6d988e2504de1a42fe44852
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
@@ -18,9 +18,14 @@ module PaidUp
|
|
18
18
|
generate("devise User")
|
19
19
|
end
|
20
20
|
|
21
|
+
def install_cancan
|
22
|
+
output "For authorization, PaidUp uses CanCan. Let's get you started with a customizable ability.rb file.", :magenta
|
23
|
+
template "ability.rb", "app/models/ability.rb"
|
24
|
+
end
|
25
|
+
|
21
26
|
def add_initializer
|
22
27
|
output "Next, you'll need an initializer. This is where you put your configuration options.", :magenta
|
23
|
-
template "initializer.rb
|
28
|
+
template "initializer.rb", "config/initializers/paid_up.rb"
|
24
29
|
end
|
25
30
|
|
26
31
|
def add_migrations
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class Ability
|
2
|
+
include CanCan::Ability
|
3
|
+
include PaidUp::Ability
|
4
|
+
|
5
|
+
def initialize(user)
|
6
|
+
user ||= User.new # anonymous user (not logged in)
|
7
|
+
|
8
|
+
# Rails Application's initialization could go here.
|
9
|
+
# can :manage, Group, user: user
|
10
|
+
|
11
|
+
initialize_paid_up(user)
|
12
|
+
end
|
13
|
+
end
|
File without changes
|
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.2.
|
5
|
+
# stub: paid_up 0.2.4 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "paid_up"
|
9
|
-
s.version = "0.2.
|
9
|
+
s.version = "0.2.4"
|
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-05-
|
14
|
+
s.date = "2015-05-22"
|
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.executables = ["rails"]
|
@@ -66,7 +66,8 @@ Gem::Specification.new do |s|
|
|
66
66
|
"db/migrate/20150407110101_create_paid_up_plans_table.rb",
|
67
67
|
"db/migrate/20150519164237_add_stripe_id_column_to_users.rb",
|
68
68
|
"lib/generators/paid_up/install/install_generator.rb",
|
69
|
-
"lib/generators/paid_up/install/templates/
|
69
|
+
"lib/generators/paid_up/install/templates/ability.rb",
|
70
|
+
"lib/generators/paid_up/install/templates/initializer.rb",
|
70
71
|
"lib/generators/paid_up/utils.rb",
|
71
72
|
"lib/paid_up.rb",
|
72
73
|
"lib/paid_up/configuration.rb",
|
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.2.
|
4
|
+
version: 0.2.4
|
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-05-
|
11
|
+
date: 2015-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -304,7 +304,8 @@ files:
|
|
304
304
|
- db/migrate/20150407110101_create_paid_up_plans_table.rb
|
305
305
|
- db/migrate/20150519164237_add_stripe_id_column_to_users.rb
|
306
306
|
- lib/generators/paid_up/install/install_generator.rb
|
307
|
-
- lib/generators/paid_up/install/templates/
|
307
|
+
- lib/generators/paid_up/install/templates/ability.rb
|
308
|
+
- lib/generators/paid_up/install/templates/initializer.rb
|
308
309
|
- lib/generators/paid_up/utils.rb
|
309
310
|
- lib/paid_up.rb
|
310
311
|
- lib/paid_up/configuration.rb
|