mina-infinum 1.6.0 → 2.0.0

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: f463f4963699c97cf41b1331d258eb1dea07ca7c5e4f2430dcec607bc4c9350a
4
- data.tar.gz: dedd0583bcee40961709b8ee9db812ed2981bdea1ac519a1bc9aace7db06accc
3
+ metadata.gz: c8b7cc4a4b5015428a7103241d34ec9ce0e672ed95b555f0a04d24b65640de89
4
+ data.tar.gz: 6e9499a465eef1bd140a269351899fb08ca12ebc67def5e478c9cb4c50a535ab
5
5
  SHA512:
6
- metadata.gz: a11b87a5d296e98c65a91d27ae0fdd54a2eab1e6cbaf3f37139c507f29c5793f627acf01328412829ea3e0cccb9c0341ab74ccac23e92cd3fc11269dee4deda5
7
- data.tar.gz: e317432154c090eae6516e74ad04d7bde56fd2eec69404004ae1d22a8524c3433180cf086d7af0c620fde6a11d3fe718e5fd21ad0b2721cb196144787d08edc5
6
+ metadata.gz: b57397003d8fc8ed3f682c686bcf64ac41df029f62ec7fe65c061198f17b084bbc38ea7e3d3f1ff508f95ea76de4acbd60c3e30fd02056afeb1bb5dea387d4e7
7
+ data.tar.gz: e864d2dbebfb3ef831ffc2f1c03d07074865e515a31ff16dbbf7192fcec9b84d73fac0ea659ca5c81eae31c93606791644f1d6c751341a325017f034192d76d7
data/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+
3
+ ## [v2.0.0](https://github.com/infinum/mina-infinum/tree/v-2.0.0) (2021-12-03)
4
+ [Full Changelog](https://github.com/infinum/mina-infinum/compare/v1.9.0...v2.0.0)
5
+
6
+ ### Enhancements
7
+
8
+ - Warns if unknown service manager is used [\#2](https://github.com/infinum/mina-infinum/pull/2)
9
+
10
+ ### Breaking changes / Deprecations
11
+
12
+ - Switched default service manager to systemd [\#2](https://github.com/infinum/mina-infinum/pull/2)
data/README.md CHANGED
@@ -3,11 +3,11 @@
3
3
  For `mina 0.3.0` please take a look at [v0.3.0 branch](https://github.com/infinum/mina-infinum/tree/v0.3.0)
4
4
  ## Plugins
5
5
 
6
- * [mina](https://github.com/mina-deploy/mina), '~> 1.0.0'
7
- * [mina-data_sync](https://github.com/d4be4st/mina-data_sync), '~> 1.0.0'
8
- * [mina-dox](https://github.com/infinum/mina-dox), '~> 0.1'
9
- * [mina-secrets](https://github.com/infinum/mina-secrets), '~> 1.0.0'
10
- * [mina-whenever](https://github.com/mina-deploy/mina-whenever), '~> 1.0.0'
6
+ * [mina](https://github.com/mina-deploy/mina), '> 1.0'
7
+ * [mina-data_sync](https://github.com/d4be4st/mina-data_sync)
8
+ * [mina-dox](https://github.com/infinum/mina-dox)
9
+ * [mina-secrets](https://github.com/infinum/mina-secrets)
10
+ * [mina-whenever](https://github.com/mina-deploy/mina-whenever)
11
11
 
12
12
  Removed mina-delayed_job as we are moving towards delayed_job in processes.
13
13
  github
@@ -15,9 +15,10 @@ github
15
15
  ## Setup
16
16
 
17
17
  ``` ruby
18
- set :application_name, <APP_NAME> # Used in background workers tasks
19
- set :background_worker, <WORKER_NAME> # Used in background workers tasks (eg. 'dj')
20
- set :service_manager, <SERVICE_MANAGER> # systemd, upstart (default)
18
+ set :application_name, <APP_NAME> # Used in background workers tasks
19
+ set :background_worker, <WORKER_NAME> # Used in background workers tasks (eg. 'dj')
20
+ set :service_manager, <SERVICE_MANAGER> # systemd (default), upstart
21
+ set :sidekiq_web_namespace, <SIDEKIQ_WEB_MOUNT> # Used for creating symlink to Sidekiq assets in public/
21
22
  ```
22
23
 
23
24
  Background workers name:
@@ -34,6 +35,7 @@ Background workers name:
34
35
  :'background_workers:start'
35
36
  :'background_workers:stop'
36
37
  :'background_workers:status'
38
+ :link_sidekiq_assets
37
39
  ```
38
40
 
39
41
  ## Contributing
@@ -1,4 +1,5 @@
1
- set :service_manager, :upstart
1
+ set :sidekiq_web_namespace, nil
2
+ set :service_manager, :systemd
2
3
 
3
4
  desc 'Restart application'
4
5
  task :restart_application do
@@ -14,3 +15,20 @@ namespace :background_workers do
14
15
  end
15
16
  end
16
17
  end
18
+
19
+ task :link_sidekiq_assets do
20
+ custom_assets_path = File.join('./', 'public', fetch(:sidekiq_web_namespace).to_s)
21
+
22
+ command "bundle_path=\"$(RAILS_ENV=#{fetch(:rails_env)} #{fetch(:bundle_bin)} show sidekiq)\""
23
+ command "mkdir -p #{custom_assets_path}"
24
+ command "ln -nfs $bundle_path/web/assets #{custom_assets_path}/sidekiq"
25
+ end
26
+
27
+ namespace :bundle do
28
+ desc 'Install bundler'
29
+ task :install_gem do
30
+ comment 'Installing bundler'
31
+ command 'bundler_version=`tail -n 1 Gemfile.lock | xargs`'
32
+ command 'gem install bundler:$bundler_version --no-document'
33
+ end
34
+ end
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Infinum
3
- VERSION = '1.6.0'.freeze
3
+ VERSION = '2.0.0'.freeze
4
4
  end
5
5
  end
data/mina-infinum.gemspec CHANGED
@@ -26,12 +26,12 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ['lib']
28
28
 
29
- spec.add_development_dependency 'bundler', '~> 1.12'
30
- spec.add_development_dependency 'rake', '~> 10.0'
31
- spec.add_development_dependency 'rspec', '~> 3.0'
32
- spec.add_dependency 'mina', '~> 1.0'
33
- spec.add_dependency 'mina-data_sync', '~> 1.0'
34
- spec.add_dependency 'mina-dox', '~> 0.1'
35
- spec.add_dependency 'mina-secrets', '~> 1.2'
36
- spec.add_dependency 'mina-whenever', '~> 1.0'
29
+ spec.add_development_dependency 'bundler'
30
+ spec.add_development_dependency 'rake'
31
+ spec.add_development_dependency 'rspec'
32
+ spec.add_dependency 'mina', '> 1.0'
33
+ spec.add_dependency 'mina-data_sync'
34
+ spec.add_dependency 'mina-dox'
35
+ spec.add_dependency 'mina-secrets'
36
+ spec.add_dependency 'mina-whenever'
37
37
  end
metadata CHANGED
@@ -1,127 +1,127 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-infinum
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-26 00:00:00.000000000 Z
11
+ date: 2021-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.12'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.12'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '3.0'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '3.0'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mina
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mina-data_sync
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '1.0'
75
+ version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '1.0'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: mina-dox
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '0.1'
89
+ version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '0.1'
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: mina-secrets
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '1.2'
103
+ version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '1.2'
110
+ version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: mina-whenever
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '1.0'
117
+ version: '0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '1.0'
124
+ version: '0'
125
125
  description: Collection of mina plugins we use in infinum
126
126
  email:
127
127
  - d4be4st@gmail.com
@@ -132,6 +132,7 @@ files:
132
132
  - ".gitignore"
133
133
  - ".rspec"
134
134
  - ".travis.yml"
135
+ - CHANGELOG.md
135
136
  - CODE_OF_CONDUCT.md
136
137
  - Gemfile
137
138
  - LICENSE.txt
@@ -164,8 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
165
  - !ruby/object:Gem::Version
165
166
  version: '0'
166
167
  requirements: []
167
- rubyforge_project:
168
- rubygems_version: 2.7.6
168
+ rubygems_version: 3.1.4
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: Collection of mina plugins we use in infinum