deploy_pin 1.3.3 → 1.3.4

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: dd55cf51dd48871190b26b687e0e43ca56a460b5f38b26b65f48549c5e0e4c01
4
- data.tar.gz: 814a4adaaaa6c967e715ea38ac264b76e5f2292ed79a9df5ecbaec3b8e804c99
3
+ metadata.gz: 64b7fc8e444888aebbf7bb08e4df2b259544a07fbef796cdda49412344b2dccd
4
+ data.tar.gz: 05ced857a7699b580554dd7a2a416c7b71950da11da3857a5ce5fd5167be0f9d
5
5
  SHA512:
6
- metadata.gz: ac2cc4f44f70d66807b46369c2b9a942ef07eaaab858ed988c6e9dfebd4e02c0f0495fa9e5989f7204300a55150d5c8e3cbbaa10e33c9a7d6a77d16a18ce4c00
7
- data.tar.gz: 37f7a702ae8d696c002a3b4af04b77e590ed20f9c81920d39ede0ec0d942b2c8ed82c7a439a08bb7a94d6d3e9fb5f531405dc796ec819248417750980afde7d4
6
+ metadata.gz: fb7b9da496971cdb3906d9f298eb3e5587205106c28f7352d492a49d13db7ef37b5f6706d3fff7d1130573ae3ac73f9a662fbc58bf072e823ee9fe6d79873df5
7
+ data.tar.gz: 68c448505f328bcaa1a7367e14d32feb785354f7fdf993b2d97d2c4194a612aead8fd28b08a3042dbe85c89dc9838f9205317aa4abd8d682b0efaad19358c3c8
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class DeployPin::ApplicationRecord < ActiveRecord::Base
4
- self.abstract_class = true
3
+ module DeployPin
4
+ class ApplicationRecord < ActiveRecord::Base
5
+ self.abstract_class = true
6
+ end
5
7
  end
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class DeployPin::Record < DeployPin::ApplicationRecord
4
- self.table_name = 'deploy_pins'
3
+ module DeployPin
4
+ class Record < DeployPin::ApplicationRecord
5
+ self.table_name = 'deploy_pins'
6
+ end
5
7
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeployPin
4
- VERSION = '1.3.3'
4
+ VERSION = '1.3.4'
5
5
  end
@@ -1,21 +1,23 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class DeployPin::InstallGenerator < Rails::Generators::Base
4
- include Rails::Generators::Migration
3
+ module DeployPin
4
+ class InstallGenerator < Rails::Generators::Base
5
+ include Rails::Generators::Migration
5
6
 
6
- source_root File.expand_path('templates', __dir__)
7
- desc 'Add the migration & initializer for DeployPin'
7
+ source_root File.expand_path('templates', __dir__)
8
+ desc 'Add the migration & initializer for DeployPin'
8
9
 
9
- def self.next_migration_number(path)
10
- next_migration_number = current_migration_number(path) + 1
11
- ActiveRecord::Migration.next_migration_number(next_migration_number)
12
- end
10
+ def self.next_migration_number(path)
11
+ next_migration_number = current_migration_number(path) + 1
12
+ ActiveRecord::Migration.next_migration_number(next_migration_number)
13
+ end
13
14
 
14
- def copy_migrations
15
- migration_template 'create_deploy_pins.rb', 'db/migrate/create_deploy_pins.rb'
16
- end
15
+ def copy_migrations
16
+ migration_template 'create_deploy_pins.rb', 'db/migrate/create_deploy_pins.rb'
17
+ end
17
18
 
18
- def copy_initializer
19
- template 'deploy_pin.rb', 'config/initializers/deploy_pin.rb'
19
+ def copy_initializer
20
+ template 'deploy_pin.rb', 'config/initializers/deploy_pin.rb'
21
+ end
20
22
  end
21
23
  end
@@ -1,24 +1,26 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class DeployPin::TaskGenerator < Rails::Generators::Base
4
- class_option :parallel, type: :boolean
5
- argument :title, required: true
6
- class_option :group, aliases: '-g', default: DeployPin.fallback_group
7
- class_option :author, aliases: '-a'
3
+ module DeployPin
4
+ class TaskGenerator < Rails::Generators::Base
5
+ class_option :parallel, type: :boolean
6
+ argument :title, required: true
7
+ class_option :group, aliases: '-g', default: DeployPin.fallback_group
8
+ class_option :author, aliases: '-a'
8
9
 
9
- source_root File.expand_path('templates', __dir__)
10
+ source_root File.expand_path('templates', __dir__)
10
11
 
11
- desc 'This generator creates deploy_pin task at lib/deploy_pin/'
12
- def create_task_file
13
- template_file = if options[:parallel]
14
- 'parallel_task.rb.erb'
15
- else
16
- 'task.rb.erb'
17
- end
12
+ desc 'This generator creates deploy_pin task at lib/deploy_pin/'
13
+ def create_task_file
14
+ template_file = if options[:parallel]
15
+ 'parallel_task.rb.erb'
16
+ else
17
+ 'task.rb.erb'
18
+ end
18
19
 
19
- @author = options[:author] || ENV['USER']
20
- @group = options[:group]
21
- @uuid = Time.now.strftime('%Y%m%d%H%M%S')
22
- template template_file, "#{DeployPin.tasks_path}/#{@uuid}_#{title}.rb"
20
+ @author = options[:author] || ENV['USER']
21
+ @group = options[:group]
22
+ @uuid = Time.now.strftime('%Y%m%d%H%M%S')
23
+ template template_file, "#{DeployPin.tasks_path}/#{@uuid}_#{title}.rb"
24
+ end
23
25
  end
24
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deploy_pin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Viktor Sych
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-15 00:00:00.000000000 Z
11
+ date: 2023-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop-minitest
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: simplecov
155
169
  requirement: !ruby/object:Gem::Requirement
@@ -221,7 +235,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
221
235
  requirements:
222
236
  - - ">="
223
237
  - !ruby/object:Gem::Version
224
- version: '0'
238
+ version: '3.0'
225
239
  required_rubygems_version: !ruby/object:Gem::Requirement
226
240
  requirements:
227
241
  - - ">="