cnc 0.1.0 → 0.1.2
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 +4 -4
- data/.rubocop.yml +40 -0
- data/README.md +1 -10
- data/lib/cnc/cli/commands.rb +21 -0
- data/lib/cnc/engine.rb +2 -2
- data/lib/cnc/version.rb +1 -1
- data/lib/cnc.rb +0 -1
- metadata +36 -6
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 76260bcab9682f3afb6be739d81bc8cf9ce29a987c29298565555616f8bc6a3b
         | 
| 4 | 
            +
              data.tar.gz: b4a96224c5494b54f7f4de48f99620291095af15477737e52a62eafa83b27464
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: c2855f7d55c9ccedd49536b9cde6cb1a8def4aa32354a828802c37a2722392dbb68072a38bf18ab547b622e96ca05f3b16a0b84820cfdd5dc382df13fd3f35ad
         | 
| 7 | 
            +
              data.tar.gz: a4ff05c495d0274f6c73a99a0285760184afde61d831c5b9e63689a9f833045d420d9a8644adef3899e0646e3c6158b5f804f0d9094d40d6f2def227b6d96ba5
         | 
    
        data/.rubocop.yml
    ADDED
    
    | @@ -0,0 +1,40 @@ | |
| 1 | 
            +
            inherit_gem:
         | 
| 2 | 
            +
              rubocop-rails-omakase: rubocop.yml
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            AllCops:
         | 
| 5 | 
            +
              ParserEngine: parser_prism
         | 
| 6 | 
            +
              TargetRubyVersion: 3.3
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            Layout/ArgumentAlignment:
         | 
| 9 | 
            +
              EnforcedStyle: with_first_argument
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            Layout/ClassStructure:
         | 
| 12 | 
            +
              Enabled: true
         | 
| 13 | 
            +
             | 
| 14 | 
            +
            Layout/EndAlignment:
         | 
| 15 | 
            +
              EnforcedStyleAlignWith: keyword
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            Layout/IndentationConsistency:
         | 
| 18 | 
            +
              EnforcedStyle: normal
         | 
| 19 | 
            +
              Enabled: true
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            Layout/IndentationWidth:
         | 
| 22 | 
            +
              Width: 2
         | 
| 23 | 
            +
              Enabled: true
         | 
| 24 | 
            +
             | 
| 25 | 
            +
            Layout/SpaceInsideArrayLiteralBrackets:
         | 
| 26 | 
            +
              EnforcedStyle: no_space
         | 
| 27 | 
            +
             | 
| 28 | 
            +
            Layout/SpaceInsideBlockBraces:
         | 
| 29 | 
            +
              SpaceBeforeBlockParameters: false
         | 
| 30 | 
            +
             | 
| 31 | 
            +
            Layout/SpaceInsideHashLiteralBraces:
         | 
| 32 | 
            +
              EnforcedStyle: no_space
         | 
| 33 | 
            +
             | 
| 34 | 
            +
            Style/HashSyntax:
         | 
| 35 | 
            +
              EnforcedShorthandSyntax: always
         | 
| 36 | 
            +
             | 
| 37 | 
            +
            Style/StringLiterals:
         | 
| 38 | 
            +
              Enabled: true
         | 
| 39 | 
            +
              EnforcedStyle: double_quotes
         | 
| 40 | 
            +
              # Include: ["*"]
         | 
    
        data/README.md
    CHANGED
    
    | @@ -1,15 +1,6 @@ | |
| 1 1 | 
             
            # CNC
         | 
| 2 2 |  | 
| 3 | 
            -
             | 
| 4 | 
            -
             | 
| 5 | 
            -
            ## Usage
         | 
| 6 | 
            -
             | 
| 7 | 
            -
            CNC bolsters rails with some helpful modules:
         | 
| 8 | 
            -
             | 
| 9 | 
            -
            - `CNC::UI` - UI builders.
         | 
| 10 | 
            -
            - `CNC::Model` - Model helpers.
         | 
| 11 | 
            -
            - `CNC::REST` - RESTful controllers.
         | 
| 12 | 
            -
            - `CNC::Policy` - Pundit integration.
         | 
| 3 | 
            +
            CLI and helpers for building things the Craft & Concept way.
         | 
| 13 4 |  | 
| 14 5 | 
             
            ## Installation
         | 
| 15 6 |  | 
| @@ -0,0 +1,21 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            module CNC
         | 
| 4 | 
            +
              module CLI
         | 
| 5 | 
            +
                module Commands
         | 
| 6 | 
            +
                  extend Dry::CLI::Registry
         | 
| 7 | 
            +
             | 
| 8 | 
            +
                  class Command < Dry::CLI::Command; end
         | 
| 9 | 
            +
             | 
| 10 | 
            +
                  class Version < Command
         | 
| 11 | 
            +
                    desc "Print version"
         | 
| 12 | 
            +
             | 
| 13 | 
            +
                    def call(*)
         | 
| 14 | 
            +
                      puts VERSION
         | 
| 15 | 
            +
                    end
         | 
| 16 | 
            +
                  end
         | 
| 17 | 
            +
             | 
| 18 | 
            +
                  register "version", Version, aliases: %w[v -v --version]
         | 
| 19 | 
            +
                end
         | 
| 20 | 
            +
              end
         | 
| 21 | 
            +
            end
         | 
    
        data/lib/cnc/engine.rb
    CHANGED
    
    | @@ -2,8 +2,8 @@ module CNC | |
| 2 2 | 
             
              class Engine < ::Rails::Engine
         | 
| 3 3 | 
             
                isolate_namespace CNC
         | 
| 4 4 |  | 
| 5 | 
            -
                initializer  | 
| 6 | 
            -
                  ActiveSupport::Inflector.inflections { | 
| 5 | 
            +
                initializer "cnc.inflections" do
         | 
| 6 | 
            +
                  ActiveSupport::Inflector.inflections { _1.acronym "CNC" }
         | 
| 7 7 | 
             
                end
         | 
| 8 8 | 
             
              end
         | 
| 9 9 | 
             
            end
         | 
    
        data/lib/cnc/version.rb
    CHANGED
    
    
    
        data/lib/cnc.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,29 +1,57 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: cnc
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.1. | 
| 4 | 
            +
              version: 0.1.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Jeff Peterson
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 | 
            -
            bindir:  | 
| 9 | 
            +
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2024-10-23 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 14 | 
            +
              name: rubocop-rails-omakase
         | 
| 15 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 16 | 
            +
                requirements:
         | 
| 17 | 
            +
                - - ">="
         | 
| 18 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            +
                    version: '0'
         | 
| 20 | 
            +
              type: :runtime
         | 
| 21 | 
            +
              prerelease: false
         | 
| 22 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 | 
            +
                requirements:
         | 
| 24 | 
            +
                - - ">="
         | 
| 25 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            +
                    version: '0'
         | 
| 13 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 28 | 
             
              name: rails
         | 
| 15 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 16 30 | 
             
                requirements:
         | 
| 17 31 | 
             
                - - ">="
         | 
| 18 32 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version:  | 
| 33 | 
            +
                    version: '0'
         | 
| 34 | 
            +
              type: :runtime
         | 
| 35 | 
            +
              prerelease: false
         | 
| 36 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 37 | 
            +
                requirements:
         | 
| 38 | 
            +
                - - ">="
         | 
| 39 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 40 | 
            +
                    version: '0'
         | 
| 41 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 42 | 
            +
              name: dry-cli
         | 
| 43 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 44 | 
            +
                requirements:
         | 
| 45 | 
            +
                - - ">="
         | 
| 46 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 47 | 
            +
                    version: '0'
         | 
| 20 48 | 
             
              type: :runtime
         | 
| 21 49 | 
             
              prerelease: false
         | 
| 22 50 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 51 | 
             
                requirements:
         | 
| 24 52 | 
             
                - - ">="
         | 
| 25 53 | 
             
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            -
                    version:  | 
| 54 | 
            +
                    version: '0'
         | 
| 27 55 | 
             
            description: Stop milling about and build rails apps faster with CNC.
         | 
| 28 56 | 
             
            email:
         | 
| 29 57 | 
             
            - jeff@concept.love
         | 
| @@ -31,6 +59,7 @@ executables: [] | |
| 31 59 | 
             
            extensions: []
         | 
| 32 60 | 
             
            extra_rdoc_files: []
         | 
| 33 61 | 
             
            files:
         | 
| 62 | 
            +
            - ".rubocop.yml"
         | 
| 34 63 | 
             
            - MIT-LICENSE
         | 
| 35 64 | 
             
            - README.md
         | 
| 36 65 | 
             
            - Rakefile
         | 
| @@ -44,6 +73,7 @@ files: | |
| 44 73 | 
             
            - app/views/layouts/cnc/application.html.erb
         | 
| 45 74 | 
             
            - config/routes.rb
         | 
| 46 75 | 
             
            - lib/cnc.rb
         | 
| 76 | 
            +
            - lib/cnc/cli/commands.rb
         | 
| 47 77 | 
             
            - lib/cnc/engine.rb
         | 
| 48 78 | 
             
            - lib/cnc/version.rb
         | 
| 49 79 | 
             
            - lib/tasks/cnc_tasks.rake
         | 
| @@ -69,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 69 99 | 
             
                - !ruby/object:Gem::Version
         | 
| 70 100 | 
             
                  version: '0'
         | 
| 71 101 | 
             
            requirements: []
         | 
| 72 | 
            -
            rubygems_version: 3. | 
| 102 | 
            +
            rubygems_version: 3.5.21
         | 
| 73 103 | 
             
            signing_key:
         | 
| 74 104 | 
             
            specification_version: 4
         | 
| 75 105 | 
             
            summary: Rails starter kit.
         |