reji 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/Rakefile +2 -0
- data/app/controllers/reji/webhook_controller.rb +1 -1
- data/lib/reji/version.rb +1 -1
- metadata +22 -17
- data/.editorconfig +0 -14
- data/.gitattributes +0 -4
- data/.gitignore +0 -16
- data/.rubocop.yml +0 -73
- data/.rubocop_todo.yml +0 -31
- data/.travis.yml +0 -28
- data/Appraisals +0 -19
- data/Gemfile +0 -8
- data/bin/setup +0 -12
- data/gemfiles/rails_5.0.gemfile +0 -13
- data/gemfiles/rails_5.1.gemfile +0 -11
- data/gemfiles/rails_5.2.gemfile +0 -11
- data/gemfiles/rails_6.0.gemfile +0 -11
- data/reji.gemspec +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11842630b4ec131cf7db09bd6e6601a6e464e2153642020a425c92a4f03d45d3
|
4
|
+
data.tar.gz: 537c60e57cb8feff74dbf3893648992013f51adb03408013af3d1382ef3d6b1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97785bf89901f440872cda5ed5193ca3f676c0277dd55b884605ad7caa6a0d2a918e0db23cc04c7b67ce17778dede211c02c46d532951d83e094019972979990
|
7
|
+
data.tar.gz: e6a22f63deaa516869dd817c267115b95314f1dbdfe7eabbbca1252ca49b306249829cb995c47eff4c0a3a769752e51efa9edb3cb8edb458665c3f55b64e2167
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Rails Reji
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/cuonggt/reji-stripe.svg?branch=master)](https://travis-ci.org/cuonggt/reji-stripe)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/reji.svg)](https://badge.fury.io/rb/reji)
|
5
|
+
|
3
6
|
- [Introduction](#introduction)
|
4
7
|
- [Installation](#installation)
|
5
8
|
- [Configuration](#configuration)
|
data/Rakefile
CHANGED
data/lib/reji/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reji
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cuong Giang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|
@@ -158,14 +158,6 @@ executables: []
|
|
158
158
|
extensions: []
|
159
159
|
extra_rdoc_files: []
|
160
160
|
files:
|
161
|
-
- ".editorconfig"
|
162
|
-
- ".gitattributes"
|
163
|
-
- ".gitignore"
|
164
|
-
- ".rubocop.yml"
|
165
|
-
- ".rubocop_todo.yml"
|
166
|
-
- ".travis.yml"
|
167
|
-
- Appraisals
|
168
|
-
- Gemfile
|
169
161
|
- LICENSE
|
170
162
|
- README.md
|
171
163
|
- Rakefile
|
@@ -173,12 +165,7 @@ files:
|
|
173
165
|
- app/controllers/reji/webhook_controller.rb
|
174
166
|
- app/views/payment.html.erb
|
175
167
|
- app/views/receipt.html.erb
|
176
|
-
- bin/setup
|
177
168
|
- config/routes.rb
|
178
|
-
- gemfiles/rails_5.0.gemfile
|
179
|
-
- gemfiles/rails_5.1.gemfile
|
180
|
-
- gemfiles/rails_5.2.gemfile
|
181
|
-
- gemfiles/rails_6.0.gemfile
|
182
169
|
- lib/generators/reji/install/install_generator.rb
|
183
170
|
- lib/generators/reji/install/templates/db/migrate/add_reji_to_users.rb.erb
|
184
171
|
- lib/generators/reji/install/templates/db/migrate/create_subscription_items.rb.erb
|
@@ -205,7 +192,6 @@ files:
|
|
205
192
|
- lib/reji/subscription_item.rb
|
206
193
|
- lib/reji/tax.rb
|
207
194
|
- lib/reji/version.rb
|
208
|
-
- reji.gemspec
|
209
195
|
- spec/dummy/app/models/user.rb
|
210
196
|
- spec/dummy/application.rb
|
211
197
|
- spec/dummy/config/database.yml
|
@@ -249,4 +235,23 @@ signing_key:
|
|
249
235
|
specification_version: 4
|
250
236
|
summary: Reji provides an expressive, fluent interface to Stripe's subscription billing
|
251
237
|
services.
|
252
|
-
test_files:
|
238
|
+
test_files:
|
239
|
+
- spec/spec_helper.rb
|
240
|
+
- spec/unit/invoice_line_item_spec.rb
|
241
|
+
- spec/unit/payment_spec.rb
|
242
|
+
- spec/unit/customer_spec.rb
|
243
|
+
- spec/unit/invoice_spec.rb
|
244
|
+
- spec/unit/subscription_spec.rb
|
245
|
+
- spec/dummy/app/models/user.rb
|
246
|
+
- spec/dummy/config/database.yml
|
247
|
+
- spec/dummy/application.rb
|
248
|
+
- spec/dummy/db/schema.rb
|
249
|
+
- spec/support/feature_helpers.rb
|
250
|
+
- spec/feature/multiplan_subscriptions_spec.rb
|
251
|
+
- spec/feature/pending_updates_spec.rb
|
252
|
+
- spec/feature/invoices_spec.rb
|
253
|
+
- spec/feature/charges_spec.rb
|
254
|
+
- spec/feature/payment_methods_spec.rb
|
255
|
+
- spec/feature/customer_spec.rb
|
256
|
+
- spec/feature/webhooks_spec.rb
|
257
|
+
- spec/feature/subscriptions_spec.rb
|
data/.editorconfig
DELETED
data/.gitattributes
DELETED
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
2
|
-
|
3
|
-
require: rubocop-rails
|
4
|
-
|
5
|
-
AllCops:
|
6
|
-
DisplayCopNames: true
|
7
|
-
TargetRubyVersion: 2.4
|
8
|
-
|
9
|
-
Layout/CaseIndentation:
|
10
|
-
EnforcedStyle: end
|
11
|
-
IndentOneStep: true
|
12
|
-
|
13
|
-
Layout/EmptyComment:
|
14
|
-
Enabled: false
|
15
|
-
|
16
|
-
Layout/FirstArrayElementIndentation:
|
17
|
-
EnforcedStyle: consistent
|
18
|
-
|
19
|
-
Layout/FirstHashElementIndentation:
|
20
|
-
EnforcedStyle: consistent
|
21
|
-
|
22
|
-
Layout/LineLength:
|
23
|
-
Exclude:
|
24
|
-
- "spec/**/*.rb"
|
25
|
-
|
26
|
-
Layout/MultilineMethodCallIndentation:
|
27
|
-
EnforcedStyle: indented
|
28
|
-
|
29
|
-
Metrics/BlockLength:
|
30
|
-
Max: 40
|
31
|
-
Exclude:
|
32
|
-
# `context` in tests are blocks and get quite large, so exclude the test
|
33
|
-
# directory from having to adhere to this rule.
|
34
|
-
- "spec/**/*.rb"
|
35
|
-
|
36
|
-
Metrics/ClassLength:
|
37
|
-
Exclude:
|
38
|
-
# Test classes get quite large, so exclude the test directory from having
|
39
|
-
# to adhere to this rule.
|
40
|
-
- "spec/**/*.rb"
|
41
|
-
|
42
|
-
Metrics/MethodLength:
|
43
|
-
Max: 24
|
44
|
-
|
45
|
-
Metrics/ModuleLength:
|
46
|
-
Enabled: false
|
47
|
-
|
48
|
-
Naming/AccessorMethodName:
|
49
|
-
Enabled: false
|
50
|
-
|
51
|
-
Style/AccessModifierDeclarations:
|
52
|
-
EnforcedStyle: inline
|
53
|
-
|
54
|
-
Style/HashEachMethods:
|
55
|
-
Enabled: true
|
56
|
-
|
57
|
-
Style/NumericPredicate:
|
58
|
-
Enabled: false
|
59
|
-
|
60
|
-
Style/TrailingCommaInArrayLiteral:
|
61
|
-
EnforcedStyleForMultiline: consistent_comma
|
62
|
-
|
63
|
-
Style/TrailingCommaInHashLiteral:
|
64
|
-
EnforcedStyleForMultiline: consistent_comma
|
65
|
-
|
66
|
-
Rails/ApplicationController:
|
67
|
-
Enabled: false
|
68
|
-
|
69
|
-
Rails/ApplicationRecord:
|
70
|
-
Enabled: false
|
71
|
-
|
72
|
-
Rails/ReflectionClassName:
|
73
|
-
Enabled: false
|
data/.rubocop_todo.yml
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2020-09-10 04:54:51 UTC using RuboCop version 0.90.0.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 6
|
10
|
-
# Configuration parameters: IgnoredMethods.
|
11
|
-
Metrics/AbcSize:
|
12
|
-
Max: 66
|
13
|
-
|
14
|
-
# Offense count: 3
|
15
|
-
# Configuration parameters: CountComments, CountAsOne.
|
16
|
-
Metrics/ClassLength:
|
17
|
-
Max: 349
|
18
|
-
|
19
|
-
# Offense count: 1
|
20
|
-
# Configuration parameters: IgnoredMethods.
|
21
|
-
Metrics/CyclomaticComplexity:
|
22
|
-
Max: 15
|
23
|
-
|
24
|
-
# Offense count: 1
|
25
|
-
# Configuration parameters: IgnoredMethods.
|
26
|
-
Metrics/PerceivedComplexity:
|
27
|
-
Max: 16
|
28
|
-
|
29
|
-
# Offense count: 30
|
30
|
-
Style/Documentation:
|
31
|
-
Enabled: false
|
data/.travis.yml
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
cache: bundler
|
2
|
-
|
3
|
-
language:
|
4
|
-
- ruby
|
5
|
-
|
6
|
-
rvm:
|
7
|
-
- 2.4.9
|
8
|
-
- 2.5.7
|
9
|
-
- 2.6.5
|
10
|
-
- 2.7.0
|
11
|
-
|
12
|
-
gemfile:
|
13
|
-
- gemfiles/rails_5.0.gemfile
|
14
|
-
- gemfiles/rails_5.1.gemfile
|
15
|
-
- gemfiles/rails_5.2.gemfile
|
16
|
-
- gemfiles/rails_6.0.gemfile
|
17
|
-
|
18
|
-
install:
|
19
|
-
- "bin/setup"
|
20
|
-
|
21
|
-
branches:
|
22
|
-
only:
|
23
|
-
- master
|
24
|
-
|
25
|
-
matrix:
|
26
|
-
exclude:
|
27
|
-
- rvm: 2.4.9
|
28
|
-
gemfile: gemfiles/rails_6.0.gemfile
|
data/Appraisals
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
appraise 'rails_5.0' do
|
4
|
-
gem 'railties', '~> 5.0'
|
5
|
-
gem 'rspec-rails', '~> 3.1'
|
6
|
-
gem 'sqlite3', '~> 1.3.13'
|
7
|
-
end
|
8
|
-
|
9
|
-
appraise 'rails_5.1' do
|
10
|
-
gem 'railties', '~> 5.1'
|
11
|
-
end
|
12
|
-
|
13
|
-
appraise 'rails_5.2' do
|
14
|
-
gem 'railties', '~> 5.2'
|
15
|
-
end
|
16
|
-
|
17
|
-
appraise 'rails_6.0' do
|
18
|
-
gem 'railties', '~> 6.0'
|
19
|
-
end
|
data/Gemfile
DELETED
data/bin/setup
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
|
3
|
-
set -e
|
4
|
-
|
5
|
-
# Install required gems, including Appraisal, which helps us test against
|
6
|
-
# multiple Rails versions
|
7
|
-
gem install bundler --conservative
|
8
|
-
bundle check || bundle install
|
9
|
-
|
10
|
-
if [ -z "$CI" ]; then
|
11
|
-
bundle exec appraisal install
|
12
|
-
fi
|
data/gemfiles/rails_5.0.gemfile
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# This file was generated by Appraisal
|
4
|
-
|
5
|
-
source 'https://rubygems.org'
|
6
|
-
|
7
|
-
gem 'pry', require: false
|
8
|
-
gem 'railties', '~> 5.0'
|
9
|
-
gem 'rspec-rails', '~> 3.1'
|
10
|
-
gem 'rubocop-rails', require: false
|
11
|
-
gem 'sqlite3', '~> 1.3.13'
|
12
|
-
|
13
|
-
gemspec path: '../'
|
data/gemfiles/rails_5.1.gemfile
DELETED
data/gemfiles/rails_5.2.gemfile
DELETED
data/gemfiles/rails_6.0.gemfile
DELETED
data/reji.gemspec
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
$LOAD_PATH.push File.expand_path('lib', __dir__)
|
4
|
-
|
5
|
-
require 'reji/version'
|
6
|
-
|
7
|
-
Gem::Specification.new do |s|
|
8
|
-
s.name = 'reji'
|
9
|
-
s.version = Reji::VERSION
|
10
|
-
s.author = ['Cuong Giang']
|
11
|
-
s.email = ['thaicuong.giang@gmail.com']
|
12
|
-
s.homepage = 'https://github.com/cuonggt/reji'
|
13
|
-
s.summary = "Reji provides an expressive, fluent interface to Stripe's subscription billing services."
|
14
|
-
s.description = "Reji provides an expressive, fluent interface to Stripe's subscription billing services."
|
15
|
-
s.license = 'MIT'
|
16
|
-
|
17
|
-
s.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
|
18
|
-
|
19
|
-
s.files = `git ls-files`.split("\n")
|
20
|
-
s.require_paths = ['lib']
|
21
|
-
s.test_files = `git ls-files -- {spec}/*`.split("\n")
|
22
|
-
|
23
|
-
s.add_dependency 'actionmailer', '>= 5.0'
|
24
|
-
s.add_dependency 'activerecord', '>= 5.0'
|
25
|
-
s.add_dependency 'money', '>= 6.0'
|
26
|
-
s.add_dependency 'railties', '>= 5.0'
|
27
|
-
s.add_dependency 'stripe', '>= 5.0'
|
28
|
-
s.add_dependency 'wicked_pdf'
|
29
|
-
s.add_dependency 'wkhtmltopdf-binary'
|
30
|
-
s.add_development_dependency 'appraisal'
|
31
|
-
s.add_development_dependency 'rspec-rails', '~> 4.0.1'
|
32
|
-
s.add_development_dependency 'sqlite3', '~> 1.4.2'
|
33
|
-
end
|