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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d25a5ddbf4efae539b9ec2de6e662cdfc612a819
4
- data.tar.gz: 3a1002d778993b0e08da60e72c049de5f91f6ec9
3
+ metadata.gz: 7bcbfa8b886ace05a249ff1dda01562116d7eb5c
4
+ data.tar.gz: 9a3e88ec68321ae0e03bfd6512ebabbbdff00772
5
5
  SHA512:
6
- metadata.gz: 8db6194d7a7544c282e163bdb111ef01aed9b34ec511f7389a456949c18f7bf3550042d852c611dd190b54033807c3423a29c06d7d37331710abf4a18854b157
7
- data.tar.gz: 0a58d0f93970ef4a2fcaa6893611d923a62b6e7304e3e65b0692083780bca4e48883a61292a87163b7a34493c550369eeb489e77a75305bcf38658430485a4ea
6
+ metadata.gz: 2510e57c6c5805f76283610c48cd22ec1d09691c0c199d74177cbdc00b8357d9eb8c591d628f8b9ed4716bb84cdf748074381a5dea5a8644cd32785cb973305b
7
+ data.tar.gz: 82ab394b686c6ae14194f01ee8a89fe9b5a80af9d71e408d12180ca7b78200e06f8b94a29687fbd60507e69bb269d3683cbb3dbf6d83398c6919befc34574a65
data/.travis.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - ruby-2.2.1
4
- - 2.2.2
4
+ - 2.2.2
5
+ - 2.2.3
data/Gemfile CHANGED
@@ -1,11 +1,10 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '~> 4'
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 "launchy", "~> 2.1.2", require: false
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.7.11
1
+ 0.8.1
@@ -1,5 +1,5 @@
1
1
  class PaidUp::Plan < ActiveRecord::Base
2
- has_many :plan_feature_settings, class_name: 'PaidUp::PlanFeatureSetting', foreign_key: 'plan_id', inverse_of: :plan
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: 'plan_id', inverse_of: :plan_feature_settings
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
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "result": {
3
- "covered_percent": 95.66
3
+ "covered_percent": 95.52
4
4
  }
5
5
  }