core_merchant 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa610ed10b80867ce31c0afb088b30fd3901d4ca8b348c3048ba08a259fd1a4f
4
- data.tar.gz: '0129e7925e06d0c652e5ed9d753f5c51fdbfd4485519db1845df9bf508a71b38'
3
+ metadata.gz: 57cd9272d6c0056fdfd69e31fa31d88ebcee7e0f707d45201564ff464a1ad1d8
4
+ data.tar.gz: 8715a63c453c11936e17b98d9712073a1f083f9f35170e6723d03f7789eef67f
5
5
  SHA512:
6
- metadata.gz: 8cc5f081f300dfb7db9882f6d7ccf33892bb5299a0b105958bfaaacac274edf56e5353e32853fcabf7273efa321da6459920eef6bf8f43090417bdfa0cbffedd
7
- data.tar.gz: cf8e3b3ee4750983097fac99615cde62b8ea736291e321a507eb090f48aade6584e1e4ff7d85054fcb099ca3c3f7a9e643758302b5dc9a77ab1390fde2f34949
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.1)
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.2"
4
+ VERSION = "0.3.0"
5
5
  end
@@ -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.2
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