rails_admin_settings 0.6.1 → 0.6.2

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: 57658fd2928a77d8a69898ac2ff336d9e7f23e53
4
- data.tar.gz: 0d405cef62c4a0c3510c58cf6351789810506df9
3
+ metadata.gz: 7ecf4ad503149d3f549316467e96fe4658be16c8
4
+ data.tar.gz: 21fb9425a3697cb478574aee9e04851fc452d093
5
5
  SHA512:
6
- metadata.gz: d91de52bed3eae39ac6fadc8acc3660c22aafdf40fc6d0a7308ac3efc75503e3147eb1d3ceae5c2abf48c41093cc62e2f4632a25c7304a3f288769554a99962c
7
- data.tar.gz: ec2eee814918a600f63fb69c92cfcbf77fc68cff9357e696b477b9f85387eb44305dc79eeb0dcce05836eb7a8fd8c9304e377f01ad3bc7a4c0889a2c7fcae3df
6
+ metadata.gz: 9a6d1f94827ecf3498afa242faceac251bd05561a795fa3634e6398506334f1aa157ae29539f2479fab758f4382ac244b4cf76ee5bf87687321c96728b5bb020
7
+ data.tar.gz: e8e7f35c9dcf00d6e6db546ebf8a3cbae5e33fa08fd00062363c15327c560760d7e7b1cd14bab54eac1c8b1e4041b8a8a5fd461ccdeb71e18880c150f5800fad
data/.travis.yml CHANGED
@@ -7,8 +7,10 @@ notifications:
7
7
  rvm:
8
8
  - 1.9.3
9
9
  - 2.0.0
10
+ - 2.1.0
10
11
  - jruby-19mode
11
-
12
+ - jruby-20mode
13
+
12
14
  env:
13
15
  - "UPLOADS=paperclip"
14
16
  - "UPLOADS=carrierwave"
@@ -0,0 +1,130 @@
1
+ GIT
2
+ remote: git://github.com/mongoid/mongoid.git
3
+ revision: 151e2a937f08a3f2a45082bf0d84e4ba2ddaf2be
4
+ branch: master
5
+ specs:
6
+ mongoid (4.0.0.alpha2)
7
+ activemodel (>= 4.0.0)
8
+ moped (~> 2.0.beta5)
9
+ origin (~> 2.1)
10
+ tzinfo (>= 0.3.37)
11
+
12
+ PATH
13
+ remote: /data/rails_admin_settings
14
+ specs:
15
+ rails_admin_settings (0.6.1)
16
+ mongoid (>= 3.1)
17
+
18
+ GEM
19
+ remote: https://rubygems.org/
20
+ specs:
21
+ activemodel (4.0.2)
22
+ activesupport (= 4.0.2)
23
+ builder (~> 3.1.0)
24
+ activesupport (4.0.2)
25
+ i18n (~> 0.6, >= 0.6.4)
26
+ minitest (~> 4.2)
27
+ multi_json (~> 1.3)
28
+ thread_safe (~> 0.1)
29
+ tzinfo (~> 0.3.37)
30
+ addressable (2.3.5)
31
+ atomic (1.1.14)
32
+ bson (2.1.0)
33
+ builder (3.1.4)
34
+ carrierwave (0.9.0)
35
+ activemodel (>= 3.2.0)
36
+ activesupport (>= 3.2.0)
37
+ json (>= 1.7)
38
+ climate_control (0.0.3)
39
+ activesupport (>= 3.0)
40
+ cocaine (0.5.3)
41
+ climate_control (>= 0.0.3, < 1.0)
42
+ coderay (1.1.0)
43
+ connection_pool (1.2.0)
44
+ database_cleaner (1.2.0)
45
+ diff-lcs (1.2.5)
46
+ docile (1.1.1)
47
+ factory_girl (4.3.0)
48
+ activesupport (>= 3.0.0)
49
+ geocoder (1.1.9)
50
+ glebtv-carrierwave-mongoid (0.6.5)
51
+ carrierwave (>= 0.8.0, < 0.10.0)
52
+ mongoid (>= 3.0, < 5.0)
53
+ mongoid (>= 3.0, < 5.0)
54
+ glebtv-mongoid-paperclip (0.1.0)
55
+ paperclip (>= 2.3.6)
56
+ i18n (0.6.9)
57
+ json (1.8.1)
58
+ method_source (0.8.2)
59
+ mime-types (2.0)
60
+ mini_portile (0.5.2)
61
+ minitest (4.7.5)
62
+ mongoid-rspec (1.10.0)
63
+ mongoid (>= 3.0.1)
64
+ rake
65
+ rspec (>= 2.14)
66
+ moped (2.0.0.beta5)
67
+ bson (~> 2.1)
68
+ connection_pool (~> 1.2)
69
+ optionable (~> 0.2.0)
70
+ multi_json (1.8.4)
71
+ nokogiri (1.6.1)
72
+ mini_portile (~> 0.5.0)
73
+ optionable (0.2.0)
74
+ origin (2.1.0)
75
+ paperclip (3.5.2)
76
+ activemodel (>= 3.0.0)
77
+ activesupport (>= 3.0.0)
78
+ cocaine (~> 0.5.3)
79
+ mime-types
80
+ pry (0.9.12.4)
81
+ coderay (~> 1.0)
82
+ method_source (~> 0.8)
83
+ slop (~> 3.4)
84
+ rake (10.1.1)
85
+ rspec (2.14.1)
86
+ rspec-core (~> 2.14.0)
87
+ rspec-expectations (~> 2.14.0)
88
+ rspec-mocks (~> 2.14.0)
89
+ rspec-core (2.14.7)
90
+ rspec-expectations (2.14.4)
91
+ diff-lcs (>= 1.1.3, < 2.0)
92
+ rspec-mocks (2.14.4)
93
+ russian_phone (0.3.5)
94
+ mongoid (>= 3.0.0)
95
+ safe_yaml (1.0.1)
96
+ sanitize (2.0.6)
97
+ nokogiri (>= 1.4.4)
98
+ simplecov (0.8.2)
99
+ docile (~> 1.1.0)
100
+ multi_json
101
+ simplecov-html (~> 0.8.0)
102
+ simplecov-html (0.8.0)
103
+ slop (3.4.7)
104
+ thread_safe (0.1.3)
105
+ atomic
106
+ tzinfo (0.3.38)
107
+ validates_email_format_of (1.5.3)
108
+
109
+ PLATFORMS
110
+ ruby
111
+
112
+ DEPENDENCIES
113
+ addressable (~> 2.3.3)
114
+ bundler
115
+ database_cleaner (~> 1.2.0)
116
+ factory_girl (~> 4.3.0)
117
+ geocoder (~> 1.1.6)
118
+ glebtv-carrierwave-mongoid
119
+ glebtv-mongoid-paperclip
120
+ mongoid!
121
+ mongoid-rspec (~> 1.10.0)
122
+ pry
123
+ rails_admin_settings!
124
+ rake (~> 10.1.1)
125
+ rspec (~> 2.14.1)
126
+ russian_phone (~> 0.3.2)
127
+ safe_yaml (~> 1.0.0)
128
+ sanitize (~> 2.0.3)
129
+ simplecov (~> 0.8.2)
130
+ validates_email_format_of (~> 1.5.3)
@@ -163,6 +163,7 @@ module RailsAdminSettings
163
163
  end
164
164
 
165
165
  options.delete(:value)
166
+ options.delete(:default)
166
167
  options[:ns] = @name
167
168
 
168
169
  if @settings[key].nil?
@@ -1,3 +1,3 @@
1
1
  module RailsAdminSettings
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -43,6 +43,12 @@ describe 'Settings' do
43
43
  Settings.loaded.should eq false
44
44
  end
45
45
 
46
+ it 'should work with type and default' do
47
+ Settings.phone(type: 'phone', default: '906 111 11 11').should eq '+7 (906) 111-11-11'
48
+ Settings.phone = '906 222 22 22'
49
+ Settings.phone(type: 'phone', default: '906 111 11 11').should eq '+7 (906) 222-22-22'
50
+ end
51
+
46
52
  it 'should properly store settings to DB' do
47
53
  Settings.unload!
48
54
  Settings.loaded.should eq false
@@ -4,5 +4,3 @@ test:
4
4
  database: rails_admin_settings
5
5
  hosts:
6
6
  - localhost:27017
7
- options:
8
- consistency: :strong
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Tv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-09 00:00:00.000000000 Z
11
+ date: 2014-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
@@ -271,6 +271,7 @@ files:
271
271
  - config/locales/ru.yml
272
272
  - gemfiles/mongoid-3.1.gemfile
273
273
  - gemfiles/mongoid-4.0.gemfile
274
+ - gemfiles/mongoid-4.0.gemfile.lock
274
275
  - lib/rails_admin_settings.rb
275
276
  - lib/rails_admin_settings/dumper.rb
276
277
  - lib/rails_admin_settings/engine.rb