stay_commerce 0.1.1 → 0.1.3

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: 9b7c81d8b43cbaa36c9b4c21409b5cd12b24112c9f5ac8dabae0136a5cbee453
4
- data.tar.gz: d13b2d04840a2279c2681b1ef1a0a46ec3e267723a7c987ee99b52bace39ed53
3
+ metadata.gz: d100ee023ac75ae3f666957cf5e848d4ed6696c54d06900c771fa2c735a1a608
4
+ data.tar.gz: 32e6c94adf4ef8e7adc0c9c6ca498e8403ad5a0b0344b4610b9851cd8fed401e
5
5
  SHA512:
6
- metadata.gz: c22b6415cb0cb3ed4524e2ae32152de94e1db17c340d6446414fe7e2be74b905d8724b6818f9b03bc40c4e79c5d7a6da84f64ee2a4ad83a03111525075dda921
7
- data.tar.gz: 8c665811f9421a2359acbd770113d58f32b04b10da411610a4dc86c8498933b624825af6fc08b0a4051c96808b0f13711b5d09b78c7f823c8be2ab52aeffdcdb
6
+ metadata.gz: 7b5e80b7c8686ebacdc3240d7f2cb41c7dc3a963f8259b9118dc38b5d19d481c82dff5ee55adf5210fdaa090a32142bc5b7e16e6ce9a6c4419d7fb499cda68d6
7
+ data.tar.gz: 449111ffb9ec68b6c616bf45f20308c75836c2e4be60c8367307a128fc865d691465cb0b395d92365055d08fba0316870f2720e9830391abef4eed7919930ff0
data/lib/stay/engine.rb CHANGED
@@ -12,5 +12,9 @@ module Stay
12
12
  initializer 'stay.assets.precompile' do |app|
13
13
  app.config.assets.precompile += %w( stay/application.js stay/application.css )
14
14
  end
15
+
16
+ rake_tasks do
17
+ load File.expand_path('../../lib/tasks/install_migrations.rake', __FILE__)
18
+ end
15
19
  end
16
20
  end
data/lib/stay/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Stay
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -0,0 +1,18 @@
1
+ # require "stay/version"
2
+ # require "stay/engine"
3
+ # require 'monetize'
4
+ # require 'mobility'
5
+ # require 'paranoia'
6
+ # require 'inline_svg'
7
+ # require 'jquery-rails'
8
+ # require 'jquery-ui-rails'
9
+ # require 'jsbundling-rails'
10
+ # require 'stay/controller_helpers/currency'
11
+ # require 'stay/controller_helpers/store'
12
+ # require 'bootstrap'
13
+
14
+ # module Stay
15
+ # # Your code goes here...
16
+ # end
17
+
18
+ require "stay"
@@ -1,9 +1,15 @@
1
1
  # lib/tasks/install_migrations.rake
2
2
  namespace :stay_commerce do
3
+ desc "Copy Stay migrations"
3
4
  task :install_migrations => :environment do
4
5
  migrations_path = File.expand_path("../../db/migrate", __FILE__)
5
- destination_path = Rails.root.join("db", "migrate")
6
- FileUtils.cp_r(migrations_path, destination_path) unless Dir.exists?(destination_path)
7
- puts "Migrations have been installed!"
6
+ destination_path = File.expand_path("db/migrate", Rails.root)
7
+
8
+ if File.exist?(destination_path)
9
+ FileUtils.cp_r(migrations_path, destination_path)
10
+ puts "Migrations copied to #{destination_path}"
11
+ else
12
+ puts "Migrations directory not found in #{destination_path}"
13
+ end
8
14
  end
9
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stay_commerce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - w3villa-vikaspal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-08 00:00:00.000000000 Z
11
+ date: 2025-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -936,6 +936,7 @@ files:
936
936
  - lib/stay/engine.rb
937
937
  - lib/stay/money.rb
938
938
  - lib/stay/version.rb
939
+ - lib/stay_commerce.rb
939
940
  - lib/tasks/install_migrations.rake
940
941
  - lib/tasks/stay_tasks.rake
941
942
  homepage: https://github.com/w3villa/StayCommerce