openteam-commons 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/openteam-commons/engine.rb +30 -31
- data/lib/openteam-commons/version.rb +1 -1
- metadata +52 -45
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1028c16701a751903a4066230a44019064b42958
|
4
|
+
data.tar.gz: 878a343362aeffbb050f311336653fdb1a41dac6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6183814d312a34204d9056206cd1c76c8bd7cd906f34e866b85ba15c65c3ff3175707493ea9e46be5b040fdf8e47465ee60ba91e158d5d92f7887deefac38484
|
7
|
+
data.tar.gz: ef505be1401bb94dc041ad651d5fc973c9fdb2d0dff4cf0f70d45ebaa821ac340897b98c320a4f2f1c30c4e99af90f425c7b24090fc5c11f6fd0bc782f8ac270
|
@@ -15,50 +15,49 @@ module OpenteamCommons
|
|
15
15
|
setup_secret
|
16
16
|
end
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
Settings.read(Rails.root.join('config', 'settings.yml')) if Rails.root.join('config', 'settings.yml').exist?
|
18
|
+
def read_settings
|
19
|
+
Settings.read(Rails.root.join('config', 'settings.yml')) if Rails.root.join('config', 'settings.yml').exist?
|
21
20
|
|
22
|
-
|
23
|
-
|
21
|
+
Settings.defaults Settings.extract!(Rails.env)[Rails.env] || {}
|
22
|
+
Settings.extract!(:test, :development, :production)
|
24
23
|
|
25
|
-
|
24
|
+
Settings.define 'amqp.url', :env_var => 'AMQP_URL'
|
26
25
|
|
27
|
-
|
28
|
-
|
26
|
+
Settings.define 'app.secret', :env_var => 'APP_SECRET'
|
27
|
+
Settings.define 'app.url', :env_var => 'APP_URL'
|
29
28
|
|
30
|
-
|
31
|
-
|
29
|
+
Settings.define 'errors.key', :env_var => 'ERRORS_KEY'
|
30
|
+
Settings.define 'errors.url', :env_var => 'ERRORS_URL'
|
32
31
|
|
33
|
-
|
32
|
+
Settings.define 'solr.url', :env_var => 'SOLR_URL'
|
34
33
|
|
35
|
-
|
36
|
-
|
37
|
-
|
34
|
+
Settings.define 'sso.key', :env_var => 'SSO_KEY'
|
35
|
+
Settings.define 'sso.secret', :env_var => 'SSO_SECRET'
|
36
|
+
Settings.define 'sso.url', :env_var => 'SSO_URL'
|
38
37
|
|
39
|
-
|
40
|
-
|
38
|
+
Settings.define 'storage.url', :env_var => 'STORAGE_URL'
|
39
|
+
end
|
41
40
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
41
|
+
def setup_airbrake
|
42
|
+
if Settings['errors.key'].present?
|
43
|
+
Airbrake.configure do |config|
|
44
|
+
config.api_key = Settings['errors.key']
|
46
45
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
end
|
46
|
+
URI.parse(Settings['errors.url']).tap do | url |
|
47
|
+
config.host = url.host
|
48
|
+
config.port = url.port
|
49
|
+
config.secure = url.scheme.inquiry.https?
|
52
50
|
end
|
53
51
|
end
|
54
52
|
end
|
53
|
+
end
|
55
54
|
|
56
|
-
|
57
|
-
|
58
|
-
|
55
|
+
def setup_secret
|
56
|
+
Rails.application.config.secret_token = Settings['app.secret']
|
57
|
+
end
|
59
58
|
|
60
|
-
|
61
|
-
|
62
|
-
|
59
|
+
def setup_locale
|
60
|
+
I18n.locale = I18n.default_locale
|
61
|
+
end
|
63
62
|
end
|
64
63
|
end
|
metadata
CHANGED
@@ -1,71 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openteam-commons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- OpenTeam
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-05-08 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: airbrake
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: configliere
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - ">="
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: rails
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
|
-
- -
|
45
|
+
- - ">="
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '0'
|
44
48
|
type: :runtime
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: unicorn
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
|
-
- -
|
59
|
+
- - ">="
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
type: :runtime
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: whenever
|
60
|
-
requirement:
|
61
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
62
72
|
requirements:
|
63
|
-
- -
|
73
|
+
- - ">="
|
64
74
|
- !ruby/object:Gem::Version
|
65
75
|
version: '0'
|
66
76
|
type: :runtime
|
67
77
|
prerelease: false
|
68
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
description: Description of OpenteamCommons.
|
70
84
|
email:
|
71
85
|
- mail@openteam.ru
|
@@ -73,51 +87,44 @@ executables: []
|
|
73
87
|
extensions: []
|
74
88
|
extra_rdoc_files: []
|
75
89
|
files:
|
90
|
+
- MIT-LICENSE
|
91
|
+
- README.rdoc
|
92
|
+
- Rakefile
|
76
93
|
- config/initializers/sunspot.rb
|
77
94
|
- config/locales/datetime.ru.yml
|
78
95
|
- lib/generators/openteam_commons/install/install_generator.rb
|
79
|
-
- lib/generators/openteam_commons/install/templates/lib/tasks/cron.rake
|
80
|
-
- lib/generators/openteam_commons/install/templates/config/unicorn.rb
|
81
|
-
- lib/generators/openteam_commons/install/templates/config/settings.yml.example
|
82
|
-
- lib/generators/openteam_commons/install/templates/config/schedule.rb
|
83
|
-
- lib/generators/openteam_commons/install/templates/config/directories.rb
|
84
96
|
- lib/generators/openteam_commons/install/templates/Procfile
|
85
|
-
- lib/generators/openteam_commons/install/templates/
|
97
|
+
- lib/generators/openteam_commons/install/templates/config/directories.rb
|
98
|
+
- lib/generators/openteam_commons/install/templates/config/schedule.rb
|
99
|
+
- lib/generators/openteam_commons/install/templates/config/settings.yml.example
|
100
|
+
- lib/generators/openteam_commons/install/templates/config/unicorn.rb
|
101
|
+
- lib/generators/openteam_commons/install/templates/lib/tasks/cron.rake
|
86
102
|
- lib/generators/openteam_commons/install/templates/script/start_site
|
103
|
+
- lib/generators/openteam_commons/install/templates/script/update_site
|
104
|
+
- lib/openteam-commons.rb
|
87
105
|
- lib/openteam-commons/engine.rb
|
88
106
|
- lib/openteam-commons/version.rb
|
89
|
-
- lib/openteam-commons.rb
|
90
|
-
- MIT-LICENSE
|
91
|
-
- Rakefile
|
92
|
-
- README.rdoc
|
93
107
|
homepage: https://github.com/openteam/openteam-commons
|
94
108
|
licenses: []
|
109
|
+
metadata: {}
|
95
110
|
post_install_message:
|
96
111
|
rdoc_options: []
|
97
112
|
require_paths:
|
98
113
|
- lib
|
99
114
|
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
-
none: false
|
101
115
|
requirements:
|
102
|
-
- -
|
116
|
+
- - ">="
|
103
117
|
- !ruby/object:Gem::Version
|
104
118
|
version: '0'
|
105
|
-
segments:
|
106
|
-
- 0
|
107
|
-
hash: 4484294097276327140
|
108
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
|
-
none: false
|
110
120
|
requirements:
|
111
|
-
- -
|
121
|
+
- - ">="
|
112
122
|
- !ruby/object:Gem::Version
|
113
123
|
version: '0'
|
114
|
-
segments:
|
115
|
-
- 0
|
116
|
-
hash: 4484294097276327140
|
117
124
|
requirements: []
|
118
125
|
rubyforge_project:
|
119
|
-
rubygems_version:
|
126
|
+
rubygems_version: 2.2.2
|
120
127
|
signing_key:
|
121
|
-
specification_version:
|
128
|
+
specification_version: 4
|
122
129
|
summary: Summary of OpenteamCommons.
|
123
130
|
test_files: []
|