wagn 1.19.2 → 1.19.3

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
  SHA1:
3
- metadata.gz: 1e9c0bc1fbd94424763365b2094bdf5396fe465c
4
- data.tar.gz: 43c6791ff579456a60a1130bca89f6f21a130aab
3
+ metadata.gz: fec166ac7fc82a27dcd1e1cf270399a35c9de44d
4
+ data.tar.gz: 8277dbe83e20bb9acbade9a6d984b495851073e9
5
5
  SHA512:
6
- metadata.gz: d88ec85d741eb5a5bc5143162682a9e6ce9d2a3b1d38d986bae7bc2d063dc4654a58381d5406d551c10057c4f0f217e66234fdfbbb6f0bf9e5500f9a164a03f3
7
- data.tar.gz: 6d66eee67f759896ea74e903cd1716cd38b441982572d6406a0e9a2d6c45c176812a2082f4347d55c0b09851eed59be0163f65019aeee4277fa52c1c77648b2e
6
+ metadata.gz: 0cbf5bac6484a75df6b6db976cc0f2145b60c8b1c769df8a8369334c5dfeb834a763e5077d223480fd241391037da44cfd65f7283afe9d2739f60f8ade72ec8d
7
+ data.tar.gz: 042ec55acc446e9f98d4218bddf53d6c185caa29eea1a5dfaaf0c7408dc9a9d9526c0d44a5b6e3f524939dac5a06fd0a2c0457f696060cfbedf54c619e3d295c
@@ -17,7 +17,7 @@ gem '<%= database_gemfile_entry.name %>'<%= %(, '#{database_gemfile_entry.versio
17
17
  # sending in notifications in a background process.
18
18
  # To activate it you have to set config.active_job.queue_adapter to :delayed_job
19
19
  # in your config file and start the background process with
20
- # RAILS_ENV=production script/delayed_job start
20
+ # RAILS_ENV=production bin/delayed_job start
21
21
  # gem 'delayed_job_active_record', '~> 4.1'
22
22
  # gem 'daemons'
23
23
 
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require File.expand_path(File.join(File.dirname(__FILE__), "..", "config", "environment"))
4
+ require "delayed/command"
5
+ Delayed::Command.new(ARGV).daemonize
@@ -24,7 +24,7 @@ module <%= app_const_base %>
24
24
  # (like sending notifications to followers) to a background process.
25
25
  # To activate it add the gems 'delayed_job_active_record' and 'daemons'
26
26
  # to the Gemfile, uncomment the two lines below and run
27
- # 'RAILS_ENV=production script/delayed_job start' to start the background process.
27
+ # 'RAILS_ENV=production bin/delayed_job start' to start the background process.
28
28
  # See https://github.com/collectiveidea/delayed_job#running-jobs for more information
29
29
  #
30
30
  # config.active_job.queue_adapter = :delayed_job
@@ -181,12 +181,13 @@ namespace :wagn do
181
181
  run_card_migration :deck_cards
182
182
  end
183
183
 
184
- desc 'Runs the "up" for a given deck cards migration VERSION.'
185
- task up: :environment do
184
+ desc 'Redo the deck cards migration given by VERSION.'
185
+ task redo: :environment do
186
186
  version = ENV["VERSION"] ? ENV["VERSION"].to_i : nil
187
187
  verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true
188
188
  raise "VERSION is required" unless version
189
189
  ActiveRecord::Migration.verbose = verbose
190
+ ActiveRecord::SchemaMigration.where(:version => version.to_s).delete_all
190
191
  ActiveRecord::Migrator.run :up, Cardio.migration_paths(:deck_cards),
191
192
  version
192
193
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wagn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.2
4
+ version: 1.19.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -33,14 +33,14 @@ dependencies:
33
33
  requirements:
34
34
  - - '='
35
35
  - !ruby/object:Gem::Version
36
- version: 1.19.2
36
+ version: 1.19.3
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - '='
42
42
  - !ruby/object:Gem::Version
43
- version: 1.19.2
43
+ version: 1.19.3
44
44
  description: a wiki approach to stuctured data, dynamic interaction, and web design
45
45
  email:
46
46
  - info@wagn.org
@@ -123,6 +123,7 @@ files:
123
123
  - lib/wagn/generators/wagn/USAGE
124
124
  - lib/wagn/generators/wagn/templates/Gemfile
125
125
  - lib/wagn/generators/wagn/templates/Rakefile
126
+ - lib/wagn/generators/wagn/templates/bin/delayed_job
126
127
  - lib/wagn/generators/wagn/templates/bin/spring
127
128
  - lib/wagn/generators/wagn/templates/config.ru
128
129
  - lib/wagn/generators/wagn/templates/config/application.rb