global_options 0.0.2 → 0.0.3

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: 9d1a63c0562af991f5dd89a453c90dfffd97d209
4
- data.tar.gz: 8bc5b57fbfb595a1a0d7c0a18c6cd90b936c03cd
3
+ metadata.gz: 8670318a4a892ef2b67fa10008851babead68bc3
4
+ data.tar.gz: 77bc5d255e8185bbce5f3f97edbf821b6e8387d0
5
5
  SHA512:
6
- metadata.gz: a3fe032cb6ba5987b18ead8c66740ea82d53ddd65e1e32c778cef882ffbd84f98e2088de507e6cf022c6715c4bfebb858b3a01e2e308176ac8119090f877a6a7
7
- data.tar.gz: d57302fb2f388e9defe4e88e6c9a42fe60f20c55cc2902a8f0248f72edbbcfb0c73ac0efaec84323ebd89d66f9b916e1a7b170d925b585b6eee144f72741d2ba
6
+ metadata.gz: d16b27558b4b46ee775f3dedf07479179959a221b2b18469d39257278033eba803ada743dc36b1a5b94f8301b378c889f9813d9abd9de2d2a1526b91ef354320
7
+ data.tar.gz: a5e404edc4fba1a6d4b6dcdfeed96ccf1879a4d3dede4f237cea538f729a65adf4fb311cd42a9482f58d1d66dce77ef9703bac2fd67a47cbf7a764a1faba6f63
data/README.md CHANGED
@@ -1,7 +1,3 @@
1
- [![Build Status](https://api.shippable.com/projects/5472f888d46935d5fbbe6633/badge?branchName=master)](https://app.shippable.com/projects/5472f888d46935d5fbbe6633/builds/latest)
2
- [![Code Climate](https://codeclimate.com/github/kaspernj/global_options/badges/gpa.svg)](https://codeclimate.com/github/kaspernj/global_options)
3
- [![Test Coverage](https://codeclimate.com/github/kaspernj/global_options/badges/coverage.svg)](https://codeclimate.com/github/kaspernj/global_options)
4
-
5
1
  # GlobalOptions
6
2
 
7
3
  This project rocks and uses MIT-LICENSE.
@@ -14,9 +10,14 @@ Bundle it in your Gemfile:
14
10
  gem 'global_options'
15
11
  ```
16
12
 
17
- Run migrations through plugin_migrator:
13
+ Install migrations:
14
+ ```bash
15
+ rails railties:install:migrations
18
16
  ```
19
- bundle exec rake plugin_migrator:migrate
17
+
18
+ Run migrations:
19
+ ```bash
20
+ rails db:migrate
20
21
  ```
21
22
 
22
23
  ## Usage
@@ -2,7 +2,7 @@ class GlobalOptions::GlobalOption < ActiveRecord::Base
2
2
  class NotFound < RuntimeError
3
3
  end
4
4
 
5
- validate :name, presence: true, unique: true
5
+ validates :name, presence: true, uniqueness: true
6
6
 
7
7
  def self.by_name(name)
8
8
  option = where(name: name).first
@@ -1,4 +1,4 @@
1
- class CreateGlobalOptions < ActiveRecord::Migration
1
+ class CreateGlobalOptions < ActiveRecord::Migration[5.1]
2
2
  def change
3
3
  create_table :global_options_global_options do |t|
4
4
  t.string :name, unique: true
@@ -1,3 +1,3 @@
1
1
  module GlobalOptions
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: global_options
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasper Johansen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-18 00:00:00.000000000 Z
11
+ date: 2018-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,28 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: 5.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.0
27
- - !ruby/object:Gem::Dependency
28
- name: plugin_migrator
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
26
+ version: 5.1.0
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: sqlite3
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +53,7 @@ dependencies:
67
53
  - !ruby/object:Gem::Version
68
54
  version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
- name: factory_girl_rails
56
+ name: factory_bot_rails
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - ">="
@@ -94,24 +80,10 @@ dependencies:
94
80
  - - ">="
95
81
  - !ruby/object:Gem::Version
96
82
  version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: codeclimate-test-reporter
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
83
  description: Easily handle global options for your webpage by using nice pre-made
112
84
  database models.
113
85
  email:
114
- - k@spernj.org
86
+ - kaspernj@gmail.com
115
87
  executables: []
116
88
  extensions: []
117
89
  extra_rdoc_files: []
@@ -126,7 +98,7 @@ files:
126
98
  - app/models/global_options/global_option.rb
127
99
  - app/views/layouts/global_options/application.html.erb
128
100
  - config/routes.rb
129
- - db/plugin_migrate/20141124064246_create_global_options.rb
101
+ - db/migrate/20141124064246_create_global_options.rb
130
102
  - lib/global_options.rb
131
103
  - lib/global_options/engine.rb
132
104
  - lib/global_options/version.rb
@@ -151,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
123
  version: '0'
152
124
  requirements: []
153
125
  rubyforge_project:
154
- rubygems_version: 2.4.0
126
+ rubygems_version: 2.6.13
155
127
  signing_key:
156
128
  specification_version: 4
157
129
  summary: Set global options through your database.