not_helpers 0.1.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9abd3220095c353e6686f8296c801a58ef07be67db114ad8ae5447d419b62ef
4
- data.tar.gz: 0202d7c82ac05a064f82b85c4f6ddb838cc8cf19b04bfc6dd9581f677661bc38
3
+ metadata.gz: ae75c3c427ee6a1e6bcce103053b48cb8fa216b56c465bcb31123fde5c231052
4
+ data.tar.gz: 8f5f222be429613ce2d9c523b66e72a484e8ce888ba8ea0448deb93c72c51f8b
5
5
  SHA512:
6
- metadata.gz: 97e916381110edc5ae771a1186bd2aaf5f10818258888121b582eecdf144f7f2e9fd3864c13701f5604c68be1ac4d243dedde21b444a4da2c082d97bf386ad09
7
- data.tar.gz: 2829b0775e13dcf06f9b4ce199d085688ba922339c6a63bf949e5ad2602bbad4b7f33bf2966dd23b36bf674e0f80a27ec1157a9766f2b27457be5227c478a828
6
+ metadata.gz: acb0ab1219b207c4b72acc72c24ef211d36047010b3149e849eaf1e009e1008a8e1f8a9117a255a80403043c50f128732b4090d32b5198e37dcd6df66de6b734
7
+ data.tar.gz: 67bfc02d07f9b932a62ca64999e5c8243f3700df9d5f505140fd4fe460eb8ade13f5dfe7759d29556029caaf7b1421668fe7e82d94686939540b134858147527
@@ -1,3 +1,3 @@
1
1
  module NotHelpers
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
data/lib/not_helpers.rb CHANGED
@@ -1,6 +1,19 @@
1
- require "not_helpers/version"
2
- require "not_helpers/engine"
1
+ require 'not_helpers/version'
3
2
 
4
- module NotHelpers
5
- # Your code goes here...
3
+ class Object
4
+ def not_nil?
5
+ !nil?
6
+ end
7
+
8
+ def not_blank?
9
+ !blank?
10
+ end
11
+
12
+ def not_empty?
13
+ !empty?
14
+ end
15
+
16
+ def not_present?
17
+ !present?
18
+ end
6
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: not_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leo Policastro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-25 00:00:00.000000000 Z
11
+ date: 2021-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -41,20 +41,8 @@ files:
41
41
  - MIT-LICENSE
42
42
  - README.md
43
43
  - Rakefile
44
- - app/assets/config/not_helpers_manifest.js
45
- - app/assets/stylesheets/not_helpers/application.css
46
- - app/controllers/not_helpers/application_controller.rb
47
- - app/helpers/not_helpers/application_helper.rb
48
- - app/jobs/not_helpers/application_job.rb
49
- - app/mailers/not_helpers/application_mailer.rb
50
- - app/models/not_helpers/application_record.rb
51
- - app/views/layouts/not_helpers/application.html.erb
52
- - config/initializers/super_helpful.rb
53
- - config/routes.rb
54
44
  - lib/not_helpers.rb
55
- - lib/not_helpers/engine.rb
56
45
  - lib/not_helpers/version.rb
57
- - lib/tasks/not_helpers_tasks.rake
58
46
  homepage: https://github.com/leopolicastro/not_helpers
59
47
  licenses:
60
48
  - MIT
@@ -1 +0,0 @@
1
- //= link_directory ../stylesheets/not_helpers .css
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
- * files in this directory. Styles in this file should be added after the last require_* statement.
11
- * It is generally better to create a new file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,4 +0,0 @@
1
- module NotHelpers
2
- class ApplicationController < ActionController::Base
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module NotHelpers
2
- module ApplicationHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module NotHelpers
2
- class ApplicationJob < ActiveJob::Base
3
- end
4
- end
@@ -1,6 +0,0 @@
1
- module NotHelpers
2
- class ApplicationMailer < ActionMailer::Base
3
- default from: 'from@example.com'
4
- layout 'mailer'
5
- end
6
- end
@@ -1,5 +0,0 @@
1
- module NotHelpers
2
- class ApplicationRecord < ActiveRecord::Base
3
- self.abstract_class = true
4
- end
5
- end
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Not helpers</title>
5
- <%= csrf_meta_tags %>
6
- <%= csp_meta_tag %>
7
-
8
- <%= stylesheet_link_tag "not_helpers/application", media: "all" %>
9
- </head>
10
- <body>
11
-
12
- <%= yield %>
13
-
14
- </body>
15
- </html>
@@ -1,17 +0,0 @@
1
- class Object
2
- def not_nil?
3
- !nil?
4
- end
5
-
6
- def not_blank?
7
- !blank?
8
- end
9
-
10
- def not_empty?
11
- !empty?
12
- end
13
-
14
- def not_present?
15
- !present?
16
- end
17
- end
data/config/routes.rb DELETED
@@ -1,2 +0,0 @@
1
- NotHelpers::Engine.routes.draw do
2
- end
@@ -1,5 +0,0 @@
1
- module NotHelpers
2
- class Engine < ::Rails::Engine
3
- isolate_namespace NotHelpers
4
- end
5
- end
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :not_helpers do
3
- # # Task goes here
4
- # end