masina 0.1.7 → 0.1.8

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: 1c1139044a447d6c7853098c264dedabbb857d0035a0e9d2958d1fcf1a593e4b
4
- data.tar.gz: aaaff6829d4e2c5e2f378876c1e0a954f70d791c9318cebfbdafc0a4874e296b
3
+ metadata.gz: ab518f24ddc4886bc22ae303c3e1f1e2538498a9821cd6ec9a6c763da8fb6e87
4
+ data.tar.gz: e488c4185370b1ff3522f71ae377c7f074b87066281b15f3a30d892cc362ee0b
5
5
  SHA512:
6
- metadata.gz: 49714889e2105a77b56ea1a086911ac2234b2b1696629b3fe33a4fcfb90dec631faa795f93e39949f92550d00b737d5b9e55f3e2cfc491015e8c75fa17a8ab5e
7
- data.tar.gz: 9b08144578b92d93062d90564970487eb6c423a724254ff3c571f7043e682194d74c136c467aa9229a5bd20e956e34c17a6ac63ce942aca71acc899db9f1984f
6
+ metadata.gz: 5da8ac1bb7d4f1e96f7de13b052adfca19fe5bcd6d8ab16f3ef51443a4ec7353fee0b5be6b94df69dd5689a3e09965322ac1b6578153933c153e9b4418936bf2
7
+ data.tar.gz: 8e0e9dd65a3e9c7d4d42d6ad9719174d69bb084791af12c8b881bc90f35ee09e7b688475dd1fa95b31bea527f4959fd1868308a1e77dd6336576f48f6434318d
@@ -0,0 +1,44 @@
1
+ name: Ruby Gem
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - master
7
+ push:
8
+ branches:
9
+ - master
10
+
11
+ jobs:
12
+ build:
13
+ name: Build + Publish
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - uses: actions/checkout@master
18
+ - name: Set up Ruby 2.6
19
+ uses: actions/setup-ruby@v1
20
+ with:
21
+ version: 2.6.x
22
+
23
+ - name: Publish to GPR
24
+ run: |
25
+ mkdir -p $HOME/.gem
26
+ touch $HOME/.gem/credentials
27
+ chmod 0600 $HOME/.gem/credentials
28
+ printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
29
+ gem build *.gemspec
30
+ gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
31
+ env:
32
+ GEM_HOST_API_KEY: ${{secrets.GPR_AUTH_TOKEN}}
33
+ OWNER: popac
34
+
35
+ - name: Publish to RubyGems
36
+ run: |
37
+ mkdir -p $HOME/.gem
38
+ touch $HOME/.gem/credentials
39
+ chmod 0600 $HOME/.gem/credentials
40
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
41
+ gem build *.gemspec
42
+ gem push *.gem
43
+ env:
44
+ GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
data/.rubocop.yml ADDED
@@ -0,0 +1,7 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+ Exclude:
4
+ - "bin/*"
5
+
6
+ #Style/ExpandPathArguments:
7
+ # Enabled: false
data/.travis.yml CHANGED
@@ -3,5 +3,5 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.5.3
7
- before_install: gem install bundler -v 1.17.1
6
+ - 2.6.4
7
+ before_install: gem install bundler -v 2.0.2
data/Gemfile CHANGED
@@ -1,8 +1,4 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
1
+ source "https://rubygems.org"
6
2
 
7
3
  # Specify your gem's dependencies in masina.gemspec
8
4
  gemspec
data/Gemfile.lock CHANGED
@@ -1,64 +1,174 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- masina (0.1.6)
5
- lolcat (~> 99.9, >= 99.9.20)
4
+ masina (0.1.8)
5
+ rails (~> 6.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
+ actioncable (6.0.0)
11
+ actionpack (= 6.0.0)
12
+ nio4r (~> 2.0)
13
+ websocket-driver (>= 0.6.1)
14
+ actionmailbox (6.0.0)
15
+ actionpack (= 6.0.0)
16
+ activejob (= 6.0.0)
17
+ activerecord (= 6.0.0)
18
+ activestorage (= 6.0.0)
19
+ activesupport (= 6.0.0)
20
+ mail (>= 2.7.1)
21
+ actionmailer (6.0.0)
22
+ actionpack (= 6.0.0)
23
+ actionview (= 6.0.0)
24
+ activejob (= 6.0.0)
25
+ mail (~> 2.5, >= 2.5.4)
26
+ rails-dom-testing (~> 2.0)
27
+ actionpack (6.0.0)
28
+ actionview (= 6.0.0)
29
+ activesupport (= 6.0.0)
30
+ rack (~> 2.0)
31
+ rack-test (>= 0.6.3)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
+ actiontext (6.0.0)
35
+ actionpack (= 6.0.0)
36
+ activerecord (= 6.0.0)
37
+ activestorage (= 6.0.0)
38
+ activesupport (= 6.0.0)
39
+ nokogiri (>= 1.8.5)
40
+ actionview (6.0.0)
41
+ activesupport (= 6.0.0)
42
+ builder (~> 3.1)
43
+ erubi (~> 1.4)
44
+ rails-dom-testing (~> 2.0)
45
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
+ activejob (6.0.0)
47
+ activesupport (= 6.0.0)
48
+ globalid (>= 0.3.6)
49
+ activemodel (6.0.0)
50
+ activesupport (= 6.0.0)
51
+ activerecord (6.0.0)
52
+ activemodel (= 6.0.0)
53
+ activesupport (= 6.0.0)
54
+ activestorage (6.0.0)
55
+ actionpack (= 6.0.0)
56
+ activejob (= 6.0.0)
57
+ activerecord (= 6.0.0)
58
+ marcel (~> 0.3.1)
59
+ activesupport (6.0.0)
60
+ concurrent-ruby (~> 1.0, >= 1.0.2)
61
+ i18n (>= 0.7, < 2)
62
+ minitest (~> 5.1)
63
+ tzinfo (~> 1.1)
64
+ zeitwerk (~> 2.1, >= 2.1.8)
10
65
  ast (2.4.0)
66
+ builder (3.2.3)
67
+ concurrent-ruby (1.1.5)
68
+ crass (1.0.4)
11
69
  diff-lcs (1.3)
12
- jaro_winkler (1.5.1)
13
- lolcat (99.9.20)
14
- manpages (~> 0.6.1)
15
- optimist (~> 3.0.0)
16
- paint (~> 2.0.0)
17
- manpages (0.6.1)
18
- optimist (3.0.0)
19
- paint (2.0.3)
20
- parallel (1.12.1)
21
- parser (2.5.3.0)
70
+ erubi (1.9.0)
71
+ globalid (0.4.2)
72
+ activesupport (>= 4.2.0)
73
+ i18n (1.7.0)
74
+ concurrent-ruby (~> 1.0)
75
+ jaro_winkler (1.5.3)
76
+ loofah (2.3.0)
77
+ crass (~> 1.0.2)
78
+ nokogiri (>= 1.5.9)
79
+ mail (2.7.1)
80
+ mini_mime (>= 0.1.1)
81
+ marcel (0.3.3)
82
+ mimemagic (~> 0.3.2)
83
+ method_source (0.9.2)
84
+ mimemagic (0.3.3)
85
+ mini_mime (1.0.2)
86
+ mini_portile2 (2.4.0)
87
+ minitest (5.12.2)
88
+ nio4r (2.5.2)
89
+ nokogiri (1.10.4)
90
+ mini_portile2 (~> 2.4.0)
91
+ parallel (1.18.0)
92
+ parser (2.6.5.0)
22
93
  ast (~> 2.4.0)
23
- powerpack (0.1.2)
94
+ rack (2.0.7)
95
+ rack-test (1.1.0)
96
+ rack (>= 1.0, < 3)
97
+ rails (6.0.0)
98
+ actioncable (= 6.0.0)
99
+ actionmailbox (= 6.0.0)
100
+ actionmailer (= 6.0.0)
101
+ actionpack (= 6.0.0)
102
+ actiontext (= 6.0.0)
103
+ actionview (= 6.0.0)
104
+ activejob (= 6.0.0)
105
+ activemodel (= 6.0.0)
106
+ activerecord (= 6.0.0)
107
+ activestorage (= 6.0.0)
108
+ activesupport (= 6.0.0)
109
+ bundler (>= 1.3.0)
110
+ railties (= 6.0.0)
111
+ sprockets-rails (>= 2.0.0)
112
+ rails-dom-testing (2.0.3)
113
+ activesupport (>= 4.2.0)
114
+ nokogiri (>= 1.6)
115
+ rails-html-sanitizer (1.3.0)
116
+ loofah (~> 2.3)
117
+ railties (6.0.0)
118
+ actionpack (= 6.0.0)
119
+ activesupport (= 6.0.0)
120
+ method_source
121
+ rake (>= 0.8.7)
122
+ thor (>= 0.20.3, < 2.0)
24
123
  rainbow (3.0.0)
25
- rake (12.3.2)
26
- rspec (3.8.0)
27
- rspec-core (~> 3.8.0)
28
- rspec-expectations (~> 3.8.0)
29
- rspec-mocks (~> 3.8.0)
30
- rspec-core (3.8.0)
31
- rspec-support (~> 3.8.0)
32
- rspec-expectations (3.8.2)
124
+ rake (10.5.0)
125
+ rspec (3.9.0)
126
+ rspec-core (~> 3.9.0)
127
+ rspec-expectations (~> 3.9.0)
128
+ rspec-mocks (~> 3.9.0)
129
+ rspec-core (3.9.0)
130
+ rspec-support (~> 3.9.0)
131
+ rspec-expectations (3.9.0)
33
132
  diff-lcs (>= 1.2.0, < 2.0)
34
- rspec-support (~> 3.8.0)
35
- rspec-mocks (3.8.0)
133
+ rspec-support (~> 3.9.0)
134
+ rspec-mocks (3.9.0)
36
135
  diff-lcs (>= 1.2.0, < 2.0)
37
- rspec-support (~> 3.8.0)
38
- rspec-support (3.8.0)
39
- rubocop (0.61.1)
136
+ rspec-support (~> 3.9.0)
137
+ rspec-support (3.9.0)
138
+ rubocop (0.74.0)
40
139
  jaro_winkler (~> 1.5.1)
41
140
  parallel (~> 1.10)
42
- parser (>= 2.5, != 2.5.1.1)
43
- powerpack (~> 0.1)
141
+ parser (>= 2.6)
44
142
  rainbow (>= 2.2.2, < 4.0)
45
143
  ruby-progressbar (~> 1.7)
46
- unicode-display_width (~> 1.4.0)
47
- rubocop-rspec (1.30.1)
48
- rubocop (>= 0.60.0)
49
- ruby-progressbar (1.10.0)
50
- unicode-display_width (1.4.1)
144
+ unicode-display_width (>= 1.4.0, < 1.7)
145
+ ruby-progressbar (1.10.1)
146
+ sprockets (4.0.0)
147
+ concurrent-ruby (~> 1.0)
148
+ rack (> 1, < 3)
149
+ sprockets-rails (3.2.1)
150
+ actionpack (>= 4.0)
151
+ activesupport (>= 4.0)
152
+ sprockets (>= 3.0.0)
153
+ thor (0.20.3)
154
+ thread_safe (0.3.6)
155
+ tzinfo (1.2.5)
156
+ thread_safe (~> 0.1)
157
+ unicode-display_width (1.6.0)
158
+ websocket-driver (0.7.1)
159
+ websocket-extensions (>= 0.1.0)
160
+ websocket-extensions (0.1.4)
161
+ zeitwerk (2.2.0)
51
162
 
52
163
  PLATFORMS
53
164
  ruby
54
165
 
55
166
  DEPENDENCIES
56
- bundler (~> 1.17, >= 1.17.2)
167
+ bundler (~> 2.0)
57
168
  masina!
58
- rake (~> 12.3, >= 12.3.2)
59
- rspec (~> 3.8)
60
- rubocop (~> 0.61.1)
61
- rubocop-rspec (~> 1.30, >= 1.30.1)
169
+ rake (~> 10.0)
170
+ rspec (~> 3.0)
171
+ rubocop (~> 0.74.0)
62
172
 
63
173
  BUNDLED WITH
64
- 1.17.2
174
+ 2.0.2
data/README.md CHANGED
@@ -1,10 +1,5 @@
1
1
  # Masina
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/masina.svg)](https://badge.fury.io/rb/masina)
4
- [![Build Status](https://travis-ci.org/popicic/masina.svg?branch=master)](https://travis-ci.org/popicic/masina)
5
- [![CodeFactor](https://www.codefactor.io/repository/github/popicic/masina/badge)](https://www.codefactor.io/repository/github/popicic/masina)
6
- [![Codacy Badge](https://api.codacy.com/project/badge/Grade/5483f26bfd894b4c9abd3a829fca452c)](https://www.codacy.com/app/webguruserbia/masina?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=popicic/masina&amp;utm_campaign=Badge_Grade)
7
-
8
3
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/masina`. To experiment with that code, run `bin/console` for an interactive prompt.
9
4
 
10
5
  TODO: Delete this and the text above, and describe your gem
@@ -39,10 +34,6 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
39
34
 
40
35
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/masina. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
41
36
 
42
- ## License
43
-
44
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
45
-
46
37
  ## Code of Conduct
47
38
 
48
39
  Everyone interacting in the Masina project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/masina/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile CHANGED
@@ -1,8 +1,6 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
5
3
 
6
4
  RSpec::Core::RakeTask.new(:spec)
7
5
 
8
- task default: :spec
6
+ task :default => :spec
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'bundler/setup'
4
- require 'masina'
3
+ require "bundler/setup"
4
+ require "masina"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -10,5 +10,5 @@ require 'masina'
10
10
  # require "pry"
11
11
  # Pry.start
12
12
 
13
- require 'irb'
13
+ require "irb"
14
14
  IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Explain the generator
3
+
4
+ Example:
5
+ rails generate policy post
6
+
7
+ This will create:
8
+ app/policies/post_policy.rb
@@ -0,0 +1,21 @@
1
+ require 'rails/generators'
2
+
3
+ module Masina
4
+ class PolicyGenerator < Rails::Generators::NamedBase
5
+ source_root File.expand_path('templates', __dir__)
6
+ argument :methods, type: :array, default: [], banner: 'method method'
7
+
8
+ def create_policy_file
9
+ policy_dir_path = 'app/policies'
10
+ generator_path = policy_dir_path + "/#{file_name}_policy.rb"
11
+ Dir.mkdir(policy_dir_path) unless File.exist?(policy_dir_path)
12
+ template 'policy.erb', generator_path
13
+ end
14
+
15
+ private
16
+
17
+ def methods?
18
+ methods.any?
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ <%= "# #{class_name}Policy class" %>
4
+ <%= "class #{class_name}Policy" %>
5
+ def initialize
6
+
7
+ end
8
+ <%= "end" if methods.count == 0 %>
9
+ <%- methods.each do |method| -%>
10
+ <%= "def #{method}?" %>
11
+ <% if methods.last == method %>
12
+ end
13
+ end
14
+ <% else %>
15
+ end
16
+
17
+ <%- end -%>
18
+ <%- end -%>
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  module Masina
4
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
5
3
  end
data/lib/masina.rb CHANGED
@@ -1,9 +1,6 @@
1
- # frozen_string_literal: true
2
-
3
1
  require 'masina/version'
4
- require 'masina/options'
5
2
 
6
3
  module Masina
7
4
  class Error < StandardError; end
8
- # Your code goes here...
5
+ class Engine < ::Rails::Engine; end
9
6
  end
data/masina.gemspec CHANGED
@@ -1,51 +1,35 @@
1
- # frozen_string_literal: true
2
-
3
1
  lib = File.expand_path('lib', __dir__)
4
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
3
  require 'masina/version'
6
4
 
7
- # rubocop:disable Metrics/BlockLength
8
- # rubocop:disable Metrics/LineLength
9
5
  Gem::Specification.new do |spec|
10
6
  spec.name = 'masina'
11
7
  spec.version = Masina::VERSION
12
8
  spec.authors = ['Aleksandar Popovic']
13
9
  spec.email = ['aleksandar.popovic.popac@gmail.com']
14
10
 
15
- spec.summary = 'Masina CLI'
16
- spec.description = 'Ruby Apps Packaging'
17
- spec.homepage = 'https://github.com/popicic/masina'
18
- spec.license = 'MIT'
11
+ spec.summary = 'Rails Patterns'
12
+ spec.description = 'Useful Rails Patterns Generators'
13
+ spec.homepage = 'https://github.com/popac/masina'
19
14
 
20
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
21
- # to allow pushing to a single host or delete this section to allow pushing to any host.
22
- if spec.respond_to?(:metadata)
23
- spec.metadata['allowed_push_host'] = 'https://rubygems.org'
15
+ # spec.metadata['allowed_push_host'] = 'https://rubygems.org'
24
16
 
25
- spec.metadata['homepage_uri'] = spec.homepage
26
- spec.metadata['source_code_uri'] = 'https://github.com/popicic/masina'
27
- spec.metadata['changelog_uri'] = 'https://github.com/popicic/masina/blob/master/CHANGELOG.md'
28
- else
29
- raise 'RubyGems 2.0 or newer is required to protect against ' \
30
- 'public gem pushes.'
31
- end
17
+ spec.metadata['homepage_uri'] = spec.homepage
18
+ spec.metadata['source_code_uri'] = 'https://github.com/popac/masina'
19
+ spec.metadata['changelog_uri'] = 'https://github.com/popac/masina/blob/master/CHANGELOG.md'
32
20
 
33
21
  # Specify which files should be added to the gem when it is released.
34
22
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
35
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
23
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
36
24
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
37
25
  end
38
26
  spec.bindir = 'exe'
39
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
40
28
  spec.require_paths = ['lib']
41
-
42
- spec.add_development_dependency 'bundler', '~> 1.17', '>= 1.17.2'
43
- spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.2'
44
- spec.add_development_dependency 'rspec', '~> 3.8'
45
- spec.add_development_dependency 'rubocop', '~> 0.61.1'
46
- spec.add_development_dependency 'rubocop-rspec', '~> 1.30', '>= 1.30.1'
47
29
 
48
- spec.add_dependency 'lolcat', '~> 99.9', '>= 99.9.20'
30
+ spec.add_development_dependency 'bundler', '~> 2.0'
31
+ spec.add_development_dependency 'rake', '~> 10.0'
32
+ spec.add_development_dependency 'rspec', '~> 3.0'
33
+ spec.add_development_dependency 'rubocop', '~> 0.74.0'
34
+ spec.add_runtime_dependency 'rails', '~> 6.0'
49
35
  end
50
- # rubocop:enable Metrics/LineLength
51
- # rubocop:enable Metrics/BlockLength
data/wercker.yml ADDED
@@ -0,0 +1,11 @@
1
+ box: ruby:2.6.4
2
+
3
+ build:
4
+ steps:
5
+ - script:
6
+ name: Install bundler
7
+ code: gem install bundler
8
+ - bundle-install
9
+ - script:
10
+ name: RSpec
11
+ code: bundle exec rspec
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: masina
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksandar Popovic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-25 00:00:00.000000000 Z
11
+ date: 2019-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,143 +16,103 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.17'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 1.17.2
19
+ version: '2.0'
23
20
  type: :development
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '1.17'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 1.17.2
26
+ version: '2.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: rake
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '12.3'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 12.3.2
33
+ version: '10.0'
43
34
  type: :development
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
38
  - - "~>"
48
39
  - !ruby/object:Gem::Version
49
- version: '12.3'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 12.3.2
40
+ version: '10.0'
53
41
  - !ruby/object:Gem::Dependency
54
42
  name: rspec
55
43
  requirement: !ruby/object:Gem::Requirement
56
44
  requirements:
57
45
  - - "~>"
58
46
  - !ruby/object:Gem::Version
59
- version: '3.8'
47
+ version: '3.0'
60
48
  type: :development
61
49
  prerelease: false
62
50
  version_requirements: !ruby/object:Gem::Requirement
63
51
  requirements:
64
52
  - - "~>"
65
53
  - !ruby/object:Gem::Version
66
- version: '3.8'
54
+ version: '3.0'
67
55
  - !ruby/object:Gem::Dependency
68
56
  name: rubocop
69
57
  requirement: !ruby/object:Gem::Requirement
70
58
  requirements:
71
59
  - - "~>"
72
60
  - !ruby/object:Gem::Version
73
- version: 0.61.1
61
+ version: 0.74.0
74
62
  type: :development
75
63
  prerelease: false
76
64
  version_requirements: !ruby/object:Gem::Requirement
77
65
  requirements:
78
66
  - - "~>"
79
67
  - !ruby/object:Gem::Version
80
- version: 0.61.1
68
+ version: 0.74.0
81
69
  - !ruby/object:Gem::Dependency
82
- name: rubocop-rspec
70
+ name: rails
83
71
  requirement: !ruby/object:Gem::Requirement
84
72
  requirements:
85
73
  - - "~>"
86
74
  - !ruby/object:Gem::Version
87
- version: '1.30'
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: 1.30.1
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - "~>"
96
- - !ruby/object:Gem::Version
97
- version: '1.30'
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- version: 1.30.1
101
- - !ruby/object:Gem::Dependency
102
- name: lolcat
103
- requirement: !ruby/object:Gem::Requirement
104
- requirements:
105
- - - "~>"
106
- - !ruby/object:Gem::Version
107
- version: '99.9'
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: 99.9.20
75
+ version: '6.0'
111
76
  type: :runtime
112
77
  prerelease: false
113
78
  version_requirements: !ruby/object:Gem::Requirement
114
79
  requirements:
115
80
  - - "~>"
116
81
  - !ruby/object:Gem::Version
117
- version: '99.9'
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- version: 99.9.20
121
- description: Ruby Apps Packaging
82
+ version: '6.0'
83
+ description: Useful Rails Patterns Generators
122
84
  email:
123
85
  - aleksandar.popovic.popac@gmail.com
124
- executables:
125
- - masina
86
+ executables: []
126
87
  extensions: []
127
88
  extra_rdoc_files: []
128
89
  files:
90
+ - ".github/workflows/gempush.yml"
129
91
  - ".gitignore"
130
92
  - ".rspec"
131
- - ".ruby-version"
93
+ - ".rubocop.yml"
132
94
  - ".travis.yml"
133
95
  - CHANGELOG.md
134
96
  - CODE_OF_CONDUCT.md
135
97
  - Gemfile
136
98
  - Gemfile.lock
137
- - LICENSE.txt
138
99
  - README.md
139
100
  - Rakefile
140
101
  - bin/console
141
102
  - bin/setup
142
- - exe/masina
103
+ - lib/generators/masina/policy/USAGE
104
+ - lib/generators/masina/policy/policy_generator.rb
105
+ - lib/generators/masina/policy/templates/policy.erb
143
106
  - lib/masina.rb
144
- - lib/masina/options.rb
145
107
  - lib/masina/version.rb
146
108
  - masina.gemspec
147
- - rubocop.yml
148
- homepage: https://github.com/popicic/masina
149
- licenses:
150
- - MIT
109
+ - wercker.yml
110
+ homepage: https://github.com/popac/masina
111
+ licenses: []
151
112
  metadata:
152
- allowed_push_host: https://rubygems.org
153
- homepage_uri: https://github.com/popicic/masina
154
- source_code_uri: https://github.com/popicic/masina
155
- changelog_uri: https://github.com/popicic/masina/blob/master/CHANGELOG.md
113
+ homepage_uri: https://github.com/popac/masina
114
+ source_code_uri: https://github.com/popac/masina
115
+ changelog_uri: https://github.com/popac/masina/blob/master/CHANGELOG.md
156
116
  post_install_message:
157
117
  rdoc_options: []
158
118
  require_paths:
@@ -168,9 +128,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
128
  - !ruby/object:Gem::Version
169
129
  version: '0'
170
130
  requirements: []
171
- rubyforge_project:
172
- rubygems_version: 2.7.6
131
+ rubygems_version: 3.0.3
173
132
  signing_key:
174
133
  specification_version: 4
175
- summary: Masina CLI
134
+ summary: Rails Patterns
176
135
  test_files: []
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.5.3
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2018 Aleksandar Popovic
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/exe/masina DELETED
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'bundler/setup'
4
- require 'masina'
5
- require 'lolcat'
6
-
7
- version = Masina::VERSION
8
-
9
- puts version | lolcat
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'optparse'
4
-
5
- module Options
6
-
7
- end
data/rubocop.yml DELETED
@@ -1,4 +0,0 @@
1
- require: rubocop-rspec
2
-
3
- AllCops:
4
- TargetRubyVersion: 2.5