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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/core_merchant/subscription_plan.rb +1 -1
- data/lib/core_merchant/version.rb +1 -1
- data/lib/core_merchant.rb +1 -0
- data/lib/generators/core_merchant/install_generator.rb +4 -0
- data/lib/generators/core_merchant/templates/core_merchant.en.yml +4 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57cd9272d6c0056fdfd69e31fa31d88ebcee7e0f707d45201564ff464a1ad1d8
|
4
|
+
data.tar.gz: 8715a63c453c11936e17b98d9712073a1f083f9f35170e6723d03f7789eef67f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd166c331713fe259316708d16aee09ed7144a54302a52bf5b3aae298e58fa9bee37cc6371f54b3e6bf622be5fcf76ba5b2449e1fafd39e0ce177a5a1be44851
|
7
|
+
data.tar.gz: a9760cb3d38f36b196bf0f3c22abee20e357bd1cd176c1385e36d00febf5ddbf07135a03a961454d65743063d6cb528f296836a19e042d062a5f557c8892652b
|
data/Gemfile.lock
CHANGED
@@ -18,7 +18,7 @@ module CoreMerchant
|
|
18
18
|
#
|
19
19
|
# Example:
|
20
20
|
# ```
|
21
|
-
# plan = CoreMerchant::SubscriptionPlan.new(name_key: "
|
21
|
+
# plan = CoreMerchant::SubscriptionPlan.new(name_key: "basic_monthly", price_cents: 7_99)
|
22
22
|
# plan.save
|
23
23
|
# ```
|
24
24
|
#
|
data/lib/core_merchant.rb
CHANGED
@@ -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
|
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.
|
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
|