settingson 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -1
- data/lib/settingson/version.rb +1 -1
- data/settingson.gemspec +2 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3110928e0387d2cc9987ea0ec42e833cd589dfbb
|
4
|
+
data.tar.gz: 0b37c6bde4f1fe4c2a1364c03e1a63bc89f966c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ebbaffc534be59859bf9fc23372fb735ccdd473c7703357ebb0892cab074817406d4f45e5825a8ac9ce0d21b8f2f17c22d76ea3922180c422542909481fc398
|
7
|
+
data.tar.gz: 883732c4cf8900556b9264ddfa1faec6f4dad5b79c4c2e8d52562be0de3c55e1c1d5f6d6e89e2bf78ab794d2ceecb85e45d743f02513650403e057773a06f13b
|
data/README.md
CHANGED
@@ -6,19 +6,28 @@ Settings management for Ruby on Rails 4 applications (ActiveRecord)
|
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
|
+
```ruby
|
9
10
|
gem 'settingson'
|
11
|
+
```
|
10
12
|
|
11
13
|
And then execute:
|
12
14
|
|
15
|
+
```console
|
13
16
|
$ bundle
|
17
|
+
```
|
14
18
|
|
15
19
|
Or install it yourself as:
|
16
20
|
|
21
|
+
```console
|
17
22
|
$ gem install settingson
|
23
|
+
```
|
18
24
|
|
19
25
|
## Usage
|
20
26
|
|
21
|
-
|
27
|
+
```console
|
28
|
+
rails g settingson MODEL
|
29
|
+
```
|
30
|
+
Replace MODEL by the class name used for the applications settings, it's frequently `Settings` but could also be `Configuration`. This will create a model (if one does not exist) and configure it with default options. Next, you'll usually run `rake db:migrate` as the generator will have created a migration file (if your ORM supports them).
|
22
31
|
|
23
32
|
## Contributing
|
24
33
|
|
data/lib/settingson/version.rb
CHANGED
data/settingson.gemspec
CHANGED
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib", "app/models/concerns"]
|
20
20
|
|
21
|
+
spec.required_ruby_version = '>= 2.0'
|
22
|
+
spec.add_runtime_dependency 'rails', '>= 4.0'
|
21
23
|
spec.add_development_dependency "bundler", "~> 1.6"
|
22
24
|
# spec.add_development_dependency "rake"
|
23
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: settingson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dan
|
@@ -10,6 +10,20 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2014-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -54,7 +68,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
54
68
|
requirements:
|
55
69
|
- - ">="
|
56
70
|
- !ruby/object:Gem::Version
|
57
|
-
version: '0'
|
71
|
+
version: '2.0'
|
58
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
73
|
requirements:
|
60
74
|
- - ">="
|