paid_up 0.7.11 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/Gemfile +8 -4
- data/README.md +4 -0
- data/VERSION +1 -1
- data/app/models/paid_up/plan.rb +1 -1
- data/app/models/paid_up/plan_feature_setting.rb +1 -1
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +83 -78
- data/db/migrate/{20150407105900_create_paid_up_plan_feature_settings_table.rb → 20160207113800_create_paid_up_plan_feature_settings_table.rb} +1 -1
- data/paid_up.gemspec +16 -13
- data/spec/dummy/config/routes.rb +1 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/{20150523010839_create_paid_up_plans_table.paid_up.rb → 20160207184112_create_paid_up_plans_table.paid_up.rb} +0 -0
- data/spec/dummy/db/migrate/{20150523010840_add_stripe_id_column_to_users.paid_up.rb → 20160207184113_add_stripe_id_column_to_users.paid_up.rb} +0 -0
- data/spec/dummy/db/migrate/{20150523010838_create_paid_up_plan_feature_settings_table.paid_up.rb → 20160207184114_create_paid_up_plan_feature_settings_table.paid_up.rb} +2 -2
- data/spec/dummy/db/schema.rb +3 -3
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +841 -0
- metadata +38 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bcbfa8b886ace05a249ff1dda01562116d7eb5c
|
4
|
+
data.tar.gz: 9a3e88ec68321ae0e03bfd6512ebabbbdff00772
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2510e57c6c5805f76283610c48cd22ec1d09691c0c199d74177cbdc00b8357d9eb8c591d628f8b9ed4716bb84cdf748074381a5dea5a8644cd32785cb973305b
|
7
|
+
data.tar.gz: 82ab394b686c6ae14194f01ee8a89fe9b5a80af9d71e408d12180ca7b78200e06f8b94a29687fbd60507e69bb269d3683cbb3dbf6d83398c6919befc34574a65
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'rails', '
|
3
|
+
gem 'rails', '>= 4.2.5'
|
4
4
|
gem 'rails-i18n', '~> 4'
|
5
5
|
gem 'haml-rails', '~> 0.9'
|
6
6
|
gem 'jquery-rails', '~> 4'
|
7
7
|
gem 'uglifier', '~> 2.7'
|
8
|
-
gem 'jeweler', '~> 2'
|
9
8
|
|
10
9
|
gem 'bootstrap_leather', '~> 0.5'
|
11
10
|
|
@@ -17,6 +16,11 @@ gem 'cancancan', '~> 1.10'
|
|
17
16
|
gem 'rolify', '~> 4'
|
18
17
|
gem 'stripe', '~> 1.21'
|
19
18
|
|
19
|
+
group :development do
|
20
|
+
gem 'jeweler', '~> 2'
|
21
|
+
gem 'bundler', '~> 1'
|
22
|
+
end
|
23
|
+
|
20
24
|
group :test, :development do
|
21
25
|
gem 'sqlite3', '~> 1.3'
|
22
26
|
gem 'forgery', '~> 0.6'
|
@@ -32,7 +36,7 @@ group :test do
|
|
32
36
|
gem 'database_cleaner', '~> 1.4'
|
33
37
|
gem 'rspec-collection_matchers', '~> 1.1'
|
34
38
|
gem 'shoulda-matchers', '~> 2.8'
|
35
|
-
gem
|
39
|
+
gem 'launchy', '~> 2.1.2', require: false
|
36
40
|
gem 'coveralls', '~> 0.8', require: false
|
37
41
|
end
|
38
42
|
|
data/README.md
CHANGED
@@ -95,6 +95,10 @@ The resources referred to in your config will need to call `paid_for`, like this
|
|
95
95
|
paid_for
|
96
96
|
end
|
97
97
|
|
98
|
+
### Upgrading
|
99
|
+
|
100
|
+
Version 0.8.0 introduced database changes to the foreign key columns to work with Rails 4.2.5. Let me know if you need help migrating your app to the newly named foreign keys.
|
101
|
+
|
98
102
|
## Contributing to Paid Up
|
99
103
|
|
100
104
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.8.1
|
data/app/models/paid_up/plan.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class PaidUp::Plan < ActiveRecord::Base
|
2
|
-
has_many :plan_feature_settings, class_name: 'PaidUp::PlanFeatureSetting', foreign_key: '
|
2
|
+
has_many :plan_feature_settings, class_name: 'PaidUp::PlanFeatureSetting', foreign_key: 'paid_up_plan_id', inverse_of: :plan
|
3
3
|
accepts_nested_attributes_for :plan_feature_settings
|
4
4
|
|
5
5
|
after_initialize :load_stripe_data
|
@@ -1,5 +1,5 @@
|
|
1
1
|
class PaidUp::PlanFeatureSetting < ActiveRecord::Base
|
2
|
-
belongs_to :plan, class_name: 'PaidUp::Plan', foreign_key: '
|
2
|
+
belongs_to :plan, class_name: 'PaidUp::Plan', foreign_key: 'paid_up_plan_id', inverse_of: :plan_feature_settings
|
3
3
|
validates_presence_of :setting, :plan, :feature
|
4
4
|
|
5
5
|
after_initialize :catch_unlimited_in_setting
|
data/coverage/.last_run.json
CHANGED