decko 0.13.2 → 0.13.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
  SHA256:
3
- metadata.gz: c8598a6a259602fbcf43603fd0f00673d7fe32df9c3b882d1cda731454664a56
4
- data.tar.gz: 05d35666da78925b82676115e7f32d652723e3201704e98a359d8c5fd0c8116f
3
+ metadata.gz: b82215085ce662ffdbc50f1471804250cee8e8a44a408d73c9bae14297694b34
4
+ data.tar.gz: 7e5f0e5202b6ab9b4336f2a4036e7a051d9680b1a12c04e5956cf7597680b91e
5
5
  SHA512:
6
- metadata.gz: f02b6e4de176f98776812ab5ef09b8d540bf8cc93c6a4149480d6075c1ff93dabdb929dce3f20a07039eb3a8a3e1fba7edf01563cd4abc3e1a4c06c18b9da338
7
- data.tar.gz: 81d10f1e1c7153920bea680fe71d729a3d854c4c602c9d2cb6cb2dc7ca94163284ca365764760f7f40669018b720b0f25680e69f32c9bdb4b22294a821dfbeb9
6
+ metadata.gz: c9a6477f01c6631fab7789cf1c3cc19070beaf88c358ffaa33036c1e2e1b96421e0a0578df4b505f7721fadfcd76a5b46efdc4034f0a8558bc2a34e3e129ee81
7
+ data.tar.gz: b18037ed8779e84de2e66dcdfeabdf0285a4b30d6cbb7dd989f3fd1193e16939ee5d4a3b20ad6c89920862addd2b501106cc34cb4f0e21f22ee3bb8e07049f9f
@@ -1,11 +1,8 @@
1
1
  class CardController
2
- # RESTful action methods for card
2
+ # helper method for RESTful action methods for card
3
3
  module Rest
4
4
  include ActionController::HttpAuthentication::Token
5
5
 
6
- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7
- # PUBLIC METHODS
8
-
9
6
  def create
10
7
  handle { card.save! }
11
8
  end
@@ -29,9 +26,6 @@ class CardController
29
26
  render body: body, status: 404
30
27
  end
31
28
 
32
- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33
- # PRIVATE METHODS
34
-
35
29
  private
36
30
 
37
31
  def setup
data/lib/decko/railtie.rb CHANGED
@@ -12,7 +12,12 @@ module Decko
12
12
  c.autoload_paths += Dir["#{gem_root}/lib"]
13
13
 
14
14
  c.paths.tap do |p|
15
- p["lib/tasks"].unshift "#{gem_root}/lib/decko/tasks"
15
+ # if this directory is named lib/tasks, it will get run by decko/engine,
16
+ # which currently breaks because of the aliases to card tasks, which
17
+ # aren't available there.
18
+ #
19
+ # Ideally we'd fix that and follow the naming convention.
20
+ p["lib/tasks"] << "#{gem_root}/lib/rake_tasks"
16
21
 
17
22
  p["config/environments"].unshift "#{gem_root}/config/environments"
18
23
  p["config/initializers"].unshift "#{gem_root}/config/initializers"
File without changes
File without changes
@@ -8,7 +8,7 @@ unless Rake::TaskManager.methods.include?(:redefine_task)
8
8
  module Rake
9
9
  module TaskManager
10
10
  def redefine_task task_class, args, &block
11
- task_name, arg_names, deps = resolve_args(args)
11
+ task_name, _arg_names, deps = resolve_args(args)
12
12
  task_name = task_class.scope_name(@scope, task_name)
13
13
  deps = [deps] unless deps.respond_to?(:to_ary)
14
14
  deps = deps.map(&:to_s)
@@ -32,7 +32,8 @@ end
32
32
 
33
33
  namespace :db do
34
34
  namespace :fixtures do
35
- desc "Load fixtures into the current environment's database. Load specific fixtures using FIXTURES=x,y"
35
+ desc "Load fixtures into the current environment's database. " \
36
+ "Load specific fixtures using FIXTURES=x,y"
36
37
  task load: :environment do
37
38
  require "active_record/fixtures"
38
39
  fixture_path = File.join(Cardio.gem_root, "db", "seed", "test", "fixtures")
File without changes
@@ -165,30 +165,3 @@ namespace :decko do
165
165
  end
166
166
  end
167
167
  end
168
-
169
- # desc "copy files from template database to standard mod and update cards"
170
- # task copy_mod_files: :environment do
171
- # # mark mod files as mod files
172
- # Card::Auth.as_bot do
173
- # each_file_card do |card|
174
- # # make card a mod file card
175
- # mod_name =
176
- # card.left&.type_id == Card::SkinID ? "bootstrap" : "standard"
177
- # card.update! storage_type: :coded,
178
- # mod: mod_name,
179
- # empty_ok: true
180
- # end
181
- # end
182
- # # end
183
-
184
- # def each_file_card
185
- # Card.search(type: %w[in Image File], ne: "").each do |card|
186
- # if card.coded? || card.codename == "new_file" ||
187
- # card.codename == "new_image"
188
- # puts "skipping #{card.name}: already in code"
189
- # else
190
- # puts "working on #{card.name}"
191
- # yield card
192
- # end
193
- # end
194
- # end
File without changes
@@ -103,7 +103,8 @@ decko_namespace = namespace :decko do
103
103
  alias_task "mod:install", "card:mod:install"
104
104
  alias_task :migrate, "card:migrate"
105
105
 
106
- desc "insert existing card migrations into schema_migrations_cards to avoid re-migrating"
106
+ desc "insert existing card migrations into schema_migrations_cards " \
107
+ "to avoid re-migrating"
107
108
  task :assume_card_migrations do
108
109
  require "decko/engine"
109
110
  Cardio::Schema.assume_migrated_upto_version :core_cards
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decko
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.2
4
+ version: 0.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-08-06 00:00:00.000000000 Z
13
+ date: 2021-09-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: actionpack
@@ -32,28 +32,28 @@ dependencies:
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 1.103.2
35
+ version: 1.103.3
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 1.103.2
42
+ version: 1.103.3
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: card-mod-defaults
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.13.2
49
+ version: 0.13.3
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.13.2
56
+ version: 0.13.3
57
57
  description: a wiki approach to structured data, dynamic interaction, and web design
58
58
  email:
59
59
  - info@decko.org
@@ -111,15 +111,15 @@ files:
111
111
  - lib/decko/swagger.rb
112
112
  - lib/decko/swagger/input_yml/layout.yml
113
113
  - lib/decko/swagger/output.yml
114
- - lib/decko/tasks/alias.rb
115
- - lib/decko/tasks/cucumber.rake
116
- - lib/decko/tasks/db.rake
117
- - lib/decko/tasks/decko.rake
118
- - lib/decko/tasks/decko/benchmark.rake
119
- - lib/decko/tasks/decko/docs.rake
120
- - lib/decko/tasks/decko/seed.rake
121
- - lib/decko/tasks/decko/tmpsets.rake
122
114
  - lib/generators/deck/deck_generator.rb
115
+ - lib/rake_tasks/alias.rb
116
+ - lib/rake_tasks/cucumber.rake
117
+ - lib/rake_tasks/db.rake
118
+ - lib/rake_tasks/decko.rake
119
+ - lib/rake_tasks/decko/benchmark.rake
120
+ - lib/rake_tasks/decko/docs.rake
121
+ - lib/rake_tasks/decko/seed.rake
122
+ - lib/rake_tasks/decko/tmpsets.rake
123
123
  homepage: https://decko.org
124
124
  licenses:
125
125
  - GPL-3.0