core_merchant 0.2.1 → 0.3.0

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: 186950538bdef9e0bebf514212e20953f34f2eb2a3d2513d97a616b66744c3f3
4
- data.tar.gz: 3509ceb3b0d12b66ab0cbe5715ca7e8852be461319694075ea9976e1fb5b1d4f
3
+ metadata.gz: 57cd9272d6c0056fdfd69e31fa31d88ebcee7e0f707d45201564ff464a1ad1d8
4
+ data.tar.gz: 8715a63c453c11936e17b98d9712073a1f083f9f35170e6723d03f7789eef67f
5
5
  SHA512:
6
- metadata.gz: ff86052965a4ae8d5e535bae668176888879de0080a5fe5cbf0e753323aab071d64912085fd52a360b9b6db8e1eb9380d44bc4ab89b751ab531803ddbe2a38e1
7
- data.tar.gz: 289f60e89c495762fa2d547cc6abc8cf1f600d6b4b8ee221449bd7e80ed52f21f794841c57d84d96c340cc53065e2ef2de003f16c5a3c388b463d13fda207ec2
6
+ metadata.gz: cd166c331713fe259316708d16aee09ed7144a54302a52bf5b3aae298e58fa9bee37cc6371f54b3e6bf622be5fcf76ba5b2449e1fafd39e0ce177a5a1be44851
7
+ data.tar.gz: a9760cb3d38f36b196bf0f3c22abee20e357bd1cd176c1385e36d00febf5ddbf07135a03a961454d65743063d6cb528f296836a19e042d062a5f557c8892652b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- core_merchant (0.2.0)
4
+ core_merchant (0.2.2)
5
5
  activesupport (~> 7.0)
6
6
  rails (~> 7.0)
7
7
 
@@ -18,7 +18,7 @@ module CoreMerchant
18
18
  #
19
19
  # Example:
20
20
  # ```
21
- # plan = CoreMerchant::SubscriptionPlan.new(name_key: "basic.monthly", price_cents: 7_99)
21
+ # plan = CoreMerchant::SubscriptionPlan.new(name_key: "basic_monthly", price_cents: 7_99)
22
22
  # plan.save
23
23
  # ```
24
24
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CoreMerchant
4
- VERSION = "0.2.1"
4
+ VERSION = "0.3.0"
5
5
  end
data/lib/core_merchant.rb CHANGED
@@ -4,6 +4,7 @@ require "active_support"
4
4
  require "active_support/concern"
5
5
  require_relative "core_merchant/version"
6
6
  require_relative "core_merchant/customer_behavior"
7
+ require_relative "core_merchant/subscription_plan"
7
8
 
8
9
  # CoreMerchant module
9
10
  module CoreMerchant
@@ -14,6 +14,10 @@ module CoreMerchant
14
14
  template "core_merchant.rb", "config/initializers/core_merchant.rb"
15
15
  end
16
16
 
17
+ def copy_locales
18
+ template "core_merchant.en.yml", "config/locales/core_merchant.en.yml"
19
+ end
20
+
17
21
  def self.next_migration_number(_dir)
18
22
  Time.now.utc.strftime("%Y%m%d%H%M%S")
19
23
  end
@@ -0,0 +1,4 @@
1
+ en:
2
+ core_merchant:
3
+ subscription_plans:
4
+ example: "Super Awesome Example Plan" # Remove this and add your own subscription plans
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: core_merchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seyithan Teymur
@@ -134,6 +134,7 @@ files:
134
134
  - lib/core_merchant/subscription_plan.rb
135
135
  - lib/core_merchant/version.rb
136
136
  - lib/generators/core_merchant/install_generator.rb
137
+ - lib/generators/core_merchant/templates/core_merchant.en.yml
137
138
  - lib/generators/core_merchant/templates/core_merchant.rb
138
139
  - lib/generators/core_merchant/templates/create_core_merchant_subscription_plans.erb
139
140
  - sig/core_merchant.rbs