symphonia 3.0.2 → 3.0.3
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 +4 -4
- data/.rubocop.yml +29 -0
- data/config/locales/en.yml +5 -2
- data/lib/generators/symphonia/setup/setup_generator.rb +8 -8
- data/lib/symphonia/version.rb +1 -1
- data/spec/support/stub_users.rb +3 -20
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dbaab70557fe0b832f613459ec8b05d74de1e150cd1f1976de5230ace666f0fd
|
|
4
|
+
data.tar.gz: aae5ec3a1707998fe75f595851f5a3addbbd7daff1901f6190662a9342391e2c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15fde87f3e9a1748826b980e48dbcd18e7302e19db5abb52ba73c58f58a760b5e0aec33ad9d2caeb58af6eb869a7e8bae82e46e666f6213f7b3cd286d369dc38
|
|
7
|
+
data.tar.gz: 37913e513d2d135311daafd33fa5d1beea5ed01da83d002f4742e95425a74bb8aeff4c62280c8d4333f7612236b2b5fdee11007dae3710b34d4208c7c1d2538d
|
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
All:
|
|
2
|
+
Rails: true
|
|
3
|
+
AllCops:
|
|
4
|
+
TargetRubyVersion: 2.5
|
|
5
|
+
|
|
6
|
+
Layout/MultilineMethodCallIndentation:
|
|
7
|
+
EnforcedStyle: indented_relative_to_receiver
|
|
8
|
+
|
|
9
|
+
Metrics/AbcSize:
|
|
10
|
+
Enabled: false
|
|
11
|
+
Metrics/BlockLength:
|
|
12
|
+
Enabled: false
|
|
13
|
+
Metrics/LineLength:
|
|
14
|
+
Enabled: false
|
|
15
|
+
Metrics/MethodLength:
|
|
16
|
+
Enabled: false
|
|
17
|
+
|
|
18
|
+
Style/BracesAroundHashParameters:
|
|
19
|
+
EnforcedStyle: context_dependent
|
|
20
|
+
Style/Documentation:
|
|
21
|
+
Enabled: false
|
|
22
|
+
Style/MutableConstant:
|
|
23
|
+
Enabled: false
|
|
24
|
+
Style/NegatedIf:
|
|
25
|
+
Enabled: false
|
|
26
|
+
Style/StringLiterals:
|
|
27
|
+
Enabled: false
|
|
28
|
+
Style/TrailingCommaInHashLiteral:
|
|
29
|
+
EnforcedStyleForMultiline: consistent_comma
|
data/config/locales/en.yml
CHANGED
|
@@ -37,11 +37,14 @@ en:
|
|
|
37
37
|
button_update: Update
|
|
38
38
|
button_back: Back
|
|
39
39
|
button_save: Save
|
|
40
|
-
|
|
40
|
+
button_login: Login
|
|
41
|
+
button_logout: Logout
|
|
42
|
+
text_are_you_sure: Are you sure?
|
|
41
43
|
share_on:
|
|
42
44
|
title:
|
|
43
45
|
facebook: Share on Facebooku !
|
|
44
46
|
twitter: Share on Twitteru !
|
|
45
47
|
google_plus: Share on Google Plus !
|
|
46
48
|
|
|
47
|
-
|
|
49
|
+
label_home: Home
|
|
50
|
+
label_search: Search
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#encoding: utf-8
|
|
2
1
|
require 'rails/generators'
|
|
2
|
+
|
|
3
3
|
module Symphonia
|
|
4
4
|
class SetupGenerator < Rails::Generators::Base
|
|
5
5
|
# include Rails::Generators::Migration
|
|
6
6
|
|
|
7
|
-
source_root File.expand_path('
|
|
7
|
+
source_root File.expand_path('templates', __dir__)
|
|
8
8
|
|
|
9
9
|
def create_settings
|
|
10
10
|
copy_file 'settings.rb', 'config/initializers/settings.rb'
|
|
@@ -42,11 +42,11 @@ module Symphonia
|
|
|
42
42
|
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
-
def setup_gemfile
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
end
|
|
45
|
+
# def setup_gemfile
|
|
46
|
+
# append_to_file 'Gemfile' do
|
|
47
|
+
# File.read(File.join(File.dirname(__FILE__), 'templates/Gemfile'))
|
|
48
|
+
# end
|
|
49
|
+
#
|
|
50
|
+
# end
|
|
51
51
|
end
|
|
52
52
|
end
|
data/lib/symphonia/version.rb
CHANGED
data/spec/support/stub_users.rb
CHANGED
|
@@ -1,26 +1,9 @@
|
|
|
1
1
|
def admin_user
|
|
2
|
-
@
|
|
3
|
-
id: 1,
|
|
4
|
-
admin: true,
|
|
5
|
-
admin?: true,
|
|
6
|
-
authorize?: true,
|
|
7
|
-
logged_in?: true,
|
|
8
|
-
allowed_to?: true,
|
|
9
|
-
persistence_token: SecureRandom.hex(12)
|
|
10
|
-
)
|
|
2
|
+
@admin_user ||= FactoryBot.build_stubbed :user, :admin
|
|
11
3
|
end
|
|
12
4
|
|
|
13
5
|
def regular_user
|
|
14
|
-
|
|
15
|
-
# id: 2,
|
|
16
|
-
# admin: false,
|
|
17
|
-
# admin?: false,
|
|
18
|
-
# authorize?: false,
|
|
19
|
-
# logged_in?: true,
|
|
20
|
-
# allowed_to?: false,
|
|
21
|
-
# persistence_token: SecureRandom.hex(12)
|
|
22
|
-
# )
|
|
23
|
-
@user ||= FactoryBot.build_stubbed :user
|
|
6
|
+
@regular_user ||= FactoryBot.build_stubbed :user
|
|
24
7
|
end
|
|
25
8
|
|
|
26
9
|
def add_permission *args
|
|
@@ -29,4 +12,4 @@ def add_permission *args
|
|
|
29
12
|
regular_user.role = @role
|
|
30
13
|
# allow(regular_user).to receive(:role).and_return @role
|
|
31
14
|
@role
|
|
32
|
-
end
|
|
15
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: symphonia
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lukas Pokorny
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -437,6 +437,7 @@ executables: []
|
|
|
437
437
|
extensions: []
|
|
438
438
|
extra_rdoc_files: []
|
|
439
439
|
files:
|
|
440
|
+
- ".rubocop.yml"
|
|
440
441
|
- LICENSE
|
|
441
442
|
- README.md
|
|
442
443
|
- Rakefile
|