coprl 3.0.0.beta.11 → 3.0.0.beta.12

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: 9e56a764f380a125709b14469cdf05aedccd86c0c0a094694f644947376b9362
4
- data.tar.gz: 7dc3f5c57f3a17c9f20c8b3e87d05e408b723b2f00cb428979147cf4cbcbfc5b
3
+ metadata.gz: b184228bec9672d9fd6141f96e837a91bcc2002e3d1657121accc91d8f39a730
4
+ data.tar.gz: '091bb9a097020c8b822a8bfa5c2318f30d34f96bc5784ff5bc73e645197c9325'
5
5
  SHA512:
6
- metadata.gz: 07bf9ba427fb166e20b8a00f8a58b010b1ffe82b5f2c955b1e63d7c93d21859be015ca2f936204f1625dd80979ae244c23ab38cf56030b8c6040854aa9116d28
7
- data.tar.gz: 907cd33e6a2cd1fcdf651c3d06adc2a1c8084b2eeff3a0255f0b5faf0eaa4689779b324ce7ace21b592401271fd657cb85b912cd2a63347856d8eba33bd83243
6
+ metadata.gz: eeb57a9378ee3fc277c2c0fa70dfe0565a02db1e2710d8868d267fe7289ff21affcf0daf4e9ed8a9b8348491aa1bb087d2b00a0637add275ef7237cdc25db512
7
+ data.tar.gz: 5de8475d3fd3055152890add20f51197115e46dc911bed3476c64db2abbf92ad981e9f0a0a5c2e1ae52e207614bf201c0ba8a3a68ec997d1ef6d2b40db8d0bc5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # [3.0.0-beta.12](https://github.com/rx/presenters/compare/v3.0.0-beta.11...v3.0.0-beta.12) (2021-09-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * defaulted :pom as the rails scaffolding template when the copral gem is included inside Rails ([7179a6f](https://github.com/rx/presenters/commit/7179a6fddd37c1b1d735469c4a79cf0a960c7d92))
7
+ * when generating scaffolding creates proper routes that ignore the pom files ([63d6c49](https://github.com/rx/presenters/commit/63d6c49af151fd409293c4eb46ee200c0c58855b))
8
+
1
9
  # [3.0.0-beta.11](https://github.com/rx/presenters/compare/v3.0.0-beta.10...v3.0.0-beta.11) (2021-09-21)
2
10
 
3
11
 
data/Gemfile.lock CHANGED
@@ -80,7 +80,7 @@ GIT
80
80
  PATH
81
81
  remote: .
82
82
  specs:
83
- coprl (3.0.0.beta.11)
83
+ coprl (3.0.0.beta.12)
84
84
  dry-configurable (> 0.1, <= 7.0)
85
85
  dry-container (~> 0.6)
86
86
  dry-inflector (~> 0.1)
@@ -2,6 +2,11 @@ module Coprl
2
2
  module Presenters
3
3
  module Rails
4
4
  class Railtie < ::Rails::Railtie
5
+ # Use pom as the default scaffolding templating engine
6
+ config.app_generators.generators do |g|
7
+ g.template_engine :pom
8
+ end
9
+
5
10
  BOOT = -> {
6
11
  Coprl::Presenters::App.reset!
7
12
  Coprl::Presenters::Settings.configure do |config|
@@ -1,7 +1,7 @@
1
1
  module Coprl
2
2
  module Presenters
3
3
  module Version
4
- VERSION = '3.0.0.beta.11'
4
+ VERSION = '3.0.0.beta.12'
5
5
  end
6
6
  end
7
7
  end
@@ -12,6 +12,10 @@ module Pom
12
12
  end
13
13
  end
14
14
 
15
+ def resource_route
16
+ route "resources :#{file_name.pluralize}, only: [:create, :destroy, :update]", namespace: regular_class_path
17
+ end
18
+
15
19
  hook_for :form_builder, as: :scaffold
16
20
 
17
21
  protected
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coprl
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.beta.11
4
+ version: 3.0.0.beta.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Russell Edens
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-21 00:00:00.000000000 Z
11
+ date: 2021-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ice_nine