activeadmin_settings_cached 0.0.5 → 0.1.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
  SHA1:
3
- metadata.gz: 17b04c83ac49dfd34584975e4e244cbf3779b80c
4
- data.tar.gz: fb078b6cb62ae2031142a605cd0ee5585a7c7846
3
+ metadata.gz: beb3913f9186773b0e8ef8b9295ab8a939c33f01
4
+ data.tar.gz: 3b81583b3c70a0157bd0a138222df85f2935f582
5
5
  SHA512:
6
- metadata.gz: e47ef12432d4d277ce2f6ac6049a5413fc95baf579768c4c59c03cfe209291173f54ed72ade4dc2d439bc1d7e8296d00b8e2fbd3b5a8308f117efb12a884c154
7
- data.tar.gz: f84dcbc26e9323a5d953416417c6d051de51548c37a7dad498bf3be49a444e794b859fd73dab0575b43249baad0836c1c710f09ef61b999019821334e2cb8ef8
6
+ metadata.gz: dda049847a5d83744cc28d2d10bf7eaecf9b961c6d9eeba4ae363d6e6df06235e709ec71374a76cda23260f62ffb9760ed945205bd197d2a0167b1cfd76897bc
7
+ data.tar.gz: 09abfb2ac846bc984ef5b927e3e44bc2cf188b0aa21625d0d4a3acb21ba1b395c849cffdfa17bb7587196bc0fb9140e128adb9911d2abe7e2019af7d8db5239b
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Activeadmin Settings Cached
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/activeadmin_settings_cached.svg)](http://badge.fury.io/rb/activeadmin_settings_cached)
4
+
3
5
  Gem for Rails provides ui interface for rails-settings-cached gem in Active Admin
4
6
 
5
7
  ## Installation
@@ -1,5 +1,5 @@
1
1
  ActiveAdmin.register_page "Settings" do
2
- title = I18n.t('settings.menu.label')
2
+ title = proc { I18n.t('settings.menu.label') }
3
3
 
4
4
  menu label: title, priority: 99
5
5
 
@@ -3,12 +3,11 @@ module ActiveadminSettingsCached
3
3
  def update
4
4
  settings = ActiveadminSettingsCached.settings_klass
5
5
 
6
- #TODO: this method call save every param
7
- # save only changed values
8
6
  settings_params.each_pair do |name, value|
9
7
  settings[name] = value
10
8
  end
11
9
 
10
+ flash[:success] = t('.success'.freeze)
12
11
  redirect_to :back
13
12
  end
14
13
 
@@ -1,4 +1,9 @@
1
1
  en:
2
+ activeadmin_settings_cached:
3
+ settings:
4
+ update:
5
+ success: Settings was successfully updated.
6
+
2
7
  activerecord:
3
8
  models:
4
9
  settings: 'Settings'
@@ -1,4 +1,9 @@
1
1
  ru:
2
+ activeadmin_settings_cached:
3
+ settings:
4
+ update:
5
+ success: Настройки были успешно сохранены.
6
+
2
7
  activerecord:
3
8
  models:
4
9
  settings: 'Настройки'
@@ -1,3 +1,3 @@
1
1
  module ActiveadminSettingsCached
2
- VERSION = "0.0.5"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,71 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_settings_cached
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Semyon Pupkov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-04 00:00:00.000000000 Z
11
+ date: 2015-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ version_requirements: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - '>='
17
+ - !ruby/object:Gem::Version
18
+ version: '0'
14
19
  name: activeadmin
15
20
  requirement: !ruby/object:Gem::Requirement
16
21
  requirements:
17
- - - ">="
22
+ - - '>='
18
23
  - !ruby/object:Gem::Version
19
24
  version: '0'
20
25
  type: :runtime
21
26
  prerelease: false
27
+ - !ruby/object:Gem::Dependency
22
28
  version_requirements: !ruby/object:Gem::Requirement
23
29
  requirements:
24
- - - ">="
30
+ - - '>='
25
31
  - !ruby/object:Gem::Version
26
32
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
33
  name: rails-settings-cached
29
34
  requirement: !ruby/object:Gem::Requirement
30
35
  requirements:
31
- - - ">="
36
+ - - '>='
32
37
  - !ruby/object:Gem::Version
33
38
  version: '0'
34
39
  type: :runtime
35
40
  prerelease: false
41
+ - !ruby/object:Gem::Dependency
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
- - - ">="
44
+ - - ~>
39
45
  - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
46
+ version: '1.7'
42
47
  name: bundler
43
48
  requirement: !ruby/object:Gem::Requirement
44
49
  requirements:
45
- - - "~>"
50
+ - - ~>
46
51
  - !ruby/object:Gem::Version
47
52
  version: '1.7'
48
53
  type: :development
49
54
  prerelease: false
55
+ - !ruby/object:Gem::Dependency
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
- - - "~>"
58
+ - - ~>
53
59
  - !ruby/object:Gem::Version
54
- version: '1.7'
55
- - !ruby/object:Gem::Dependency
60
+ version: '10.0'
56
61
  name: rake
57
62
  requirement: !ruby/object:Gem::Requirement
58
63
  requirements:
59
- - - "~>"
64
+ - - ~>
60
65
  - !ruby/object:Gem::Version
61
66
  version: '10.0'
62
67
  type: :development
63
68
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '10.0'
69
69
  description: ''
70
70
  email:
71
71
  - semen.pupkov@gmail.com
@@ -73,7 +73,7 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - ".gitignore"
76
+ - .gitignore
77
77
  - Gemfile
78
78
  - LICENSE.txt
79
79
  - README.md
@@ -98,12 +98,12 @@ require_paths:
98
98
  - lib
99
99
  required_ruby_version: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - ">="
106
+ - - '>='
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements: []
@@ -113,3 +113,4 @@ signing_key:
113
113
  specification_version: 4
114
114
  summary: UI interface for rails-settings-cached in active admin
115
115
  test_files: []
116
+ has_rdoc: