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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0fd54bad11be59354691fc0b267467a58817b3a45a1d1ff8a24ae373166bdb4
4
- data.tar.gz: a42de1cba650a26285bd724cecb7eb45a8e8b26d9f0348e0c196714458df7abc
3
+ metadata.gz: 11842630b4ec131cf7db09bd6e6601a6e464e2153642020a425c92a4f03d45d3
4
+ data.tar.gz: 537c60e57cb8feff74dbf3893648992013f51adb03408013af3d1382ef3d6b1c
5
5
  SHA512:
6
- metadata.gz: 1a9a5fa9844145bce066224e36ec817cea037a347816a1c87912b00ac75f32e8a19b186b5eb51cecfcf1673637fb8ce6d9a9a09102498b120fdea300f91dab86
7
- data.tar.gz: ab820509b28366cf40545d2bc0ede969fef9f301e82e03fc49ec8c0c98e8b5014ab9bb2c254ecd01720e73c75f03969ee9e997c34dbbbff41ead1799c1d837e0
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
@@ -20,6 +20,8 @@ end
20
20
  require 'rubocop/rake_task'
21
21
 
22
22
  RuboCop::RakeTask.new do |task|
23
+ task.requires << 'rubocop-packaging'
24
+ task.requires << 'rubocop-performance'
23
25
  task.requires << 'rubocop-rails'
24
26
  end
25
27
 
@@ -11,7 +11,7 @@ module Reji
11
11
 
12
12
  return missing_method if type.nil?
13
13
 
14
- method = "handle_#{payload['type'].gsub('.', '_')}"
14
+ method = "handle_#{payload['type'].tr('.', '_')}"
15
15
 
16
16
  respond_to?(method, true) ? send(method, payload) : missing_method
17
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Reji
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
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.0
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-10 00:00:00.000000000 Z
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
@@ -1,14 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- indent_style = space
5
- indent_size = 2
6
- end_of_line = lf
7
- charset = utf-8
8
- insert_final_newline = true
9
-
10
- [*.md]
11
- trim_trailing_whitespace = false
12
-
13
- [*.{yml,yaml}]
14
- indent_size = 2
@@ -1,4 +0,0 @@
1
- # may be useful in hiding large schema changes in pull request diffs (but not
2
- # using it for now)
3
- spec/*.json binary
4
- spec/*.yaml binary
data/.gitignore DELETED
@@ -1,16 +0,0 @@
1
- !.keep
2
- *.DS_Store
3
- *.swo
4
- *.swp
5
- *~
6
- .bundle
7
- db/*.sqlite3
8
- gemfiles/*.lock
9
- gemfiles/vendor/
10
- log/*.log
11
- pkg
12
- tmp/
13
- doc/
14
- .yardoc/
15
- coverage/
16
- Gemfile.lock
@@ -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
@@ -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
@@ -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
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gemspec
6
-
7
- gem 'pry', require: false
8
- gem 'rubocop-rails', require: false
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
@@ -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: '../'
@@ -1,11 +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.1'
9
- gem 'rubocop-rails', require: false
10
-
11
- gemspec path: '../'
@@ -1,11 +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.2'
9
- gem 'rubocop-rails', require: false
10
-
11
- gemspec path: '../'
@@ -1,11 +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', '~> 6.0'
9
- gem 'rubocop-rails', require: false
10
-
11
- gemspec path: '../'
@@ -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