foreman_scc_manager 1.8.0 → 1.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/app/assets/javascripts/foreman_scc_manager/scc_accounts.js.coffee +1 -1
- data/app/controllers/scc_accounts_controller.rb +20 -1
- data/app/lib/actions/scc_manager/sync_products.rb +8 -7
- data/app/lib/actions/scc_manager/sync_repositories.rb +8 -7
- data/app/lib/scc_manager.rb +2 -2
- data/app/models/scc_account.rb +10 -6
- data/app/models/scc_product.rb +2 -0
- data/app/views/scc_accounts/_form.html.erb +3 -2
- data/app/views/scc_accounts/index.html.erb +4 -3
- data/app/views/scc_accounts/show.html.erb +3 -3
- data/config/routes.rb +2 -1
- data/db/migrate/20200520281300_fix_scc_permissions.rb +22 -0
- data/lib/foreman_scc_manager/engine.rb +38 -25
- data/lib/foreman_scc_manager/version.rb +1 -1
- data/lib/tasks/test.rake +1 -1
- data/locale/de/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/de/foreman_scc_manager.po +124 -121
- data/locale/en/foreman_scc_manager.po +86 -139
- data/locale/foreman_scc_manager.pot +17 -11
- data/test/fixtures/models/scc_products.yml +24 -0
- data/test/fixtures/models/scc_repositories.yml +15 -0
- data/test/models/scc_product_test.rb +56 -1
- data/test/support/fixtures_support.rb +3 -2
- metadata +22 -5
@@ -1,8 +1,9 @@
|
|
1
1
|
module ForemanSccManager
|
2
2
|
module FixturesSupport
|
3
3
|
FIXTURE_CLASSES = {
|
4
|
-
scc_accounts:
|
5
|
-
scc_products:
|
4
|
+
scc_accounts: ::SccAccount,
|
5
|
+
scc_products: ::SccProduct,
|
6
|
+
scc_repositories: ::SccRepository
|
6
7
|
}.freeze
|
7
8
|
|
8
9
|
def self.set_fixture_classes(test_class)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_scc_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ATIX AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.75.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.0.1
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.0.1
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: webmock
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,14 +84,14 @@ dependencies:
|
|
70
84
|
name: rails
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- - "
|
87
|
+
- - ">="
|
74
88
|
- !ruby/object:Gem::Version
|
75
89
|
version: '5.1'
|
76
90
|
type: :runtime
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- - "
|
94
|
+
- - ">="
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: '5.1'
|
83
97
|
description: Foreman plugin to sync SUSE Customer Center products and repositories
|
@@ -139,6 +153,7 @@ files:
|
|
139
153
|
- db/migrate/20170505063726_add_sync_status_to_scc_account.rb
|
140
154
|
- db/migrate/20180321000000_change_sync_status_to_sync_task.rb
|
141
155
|
- db/migrate/20190417202427_add_recurring_sync.foreman_scc_manager.rb
|
156
|
+
- db/migrate/20200520281300_fix_scc_permissions.rb
|
142
157
|
- lib/foreman_scc_manager.rb
|
143
158
|
- lib/foreman_scc_manager/engine.rb
|
144
159
|
- lib/foreman_scc_manager/version.rb
|
@@ -162,6 +177,7 @@ files:
|
|
162
177
|
- test/fixtures/files/data_subscriptions.json
|
163
178
|
- test/fixtures/models/scc_accounts.yml
|
164
179
|
- test/fixtures/models/scc_products.yml
|
180
|
+
- test/fixtures/models/scc_repositories.yml
|
165
181
|
- test/models/scc_account_test.rb
|
166
182
|
- test/models/scc_product_test.rb
|
167
183
|
- test/support/fixtures_support.rb
|
@@ -186,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
202
|
- !ruby/object:Gem::Version
|
187
203
|
version: '0'
|
188
204
|
requirements: []
|
189
|
-
rubygems_version: 3.
|
205
|
+
rubygems_version: 3.1.2
|
190
206
|
signing_key:
|
191
207
|
specification_version: 4
|
192
208
|
summary: Suse Customer Center plugin for Foreman
|
@@ -196,6 +212,7 @@ test_files:
|
|
196
212
|
- test/test_plugin_helper.rb
|
197
213
|
- test/features/sync_test.rb
|
198
214
|
- test/support/fixtures_support.rb
|
215
|
+
- test/fixtures/models/scc_repositories.yml
|
199
216
|
- test/fixtures/models/scc_products.yml
|
200
217
|
- test/fixtures/models/scc_accounts.yml
|
201
218
|
- test/fixtures/files/data_subscriptions.json
|