feature_setting 1.6.0 → 1.6.1

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: e4fa65d93cd0a275f8b1ce550a644d77e6f6f0c4
4
- data.tar.gz: 74a5eee2cc3f170f8e8654d9d0b81e6f0b51b4bf
3
+ metadata.gz: 4dd7ae1353890c307f9d541449ac74a837ed18d0
4
+ data.tar.gz: 1031913c095a4a36c60f17e2b0111e56b8f5e0bc
5
5
  SHA512:
6
- metadata.gz: 83cb8a1d0164a2f0f13987cb8da5f7b5ef88d39917e83d3cd8d2235668d7c608bcc06e06f7ed4ebba17e591dd72e31ff2c637c63c366db3c7fab839d56575aea
7
- data.tar.gz: 24feeeb3faea28ae6ecc6f3ea56f61bba1615586ed0596f3c0f72026a24902fad5abb62f848cd84923b1fe90c469c63ed592444d3519e7a2c4158498c65ce1ba
6
+ metadata.gz: bfa04192028b2195d06bfab8830259296128a9e08b9b3aaf20a2a26a0c746c35eb60c4fd79ada8bacb5ed41303f23aa96a13b516ec2d2a271deffb4ce6c026e6
7
+ data.tar.gz: d7077dcc66b4b37176b8b460fe1a39f26e4a5b1d28df2f65db01b522a74a364dcc7168670c2243c8b7cdc6c7256655223672f0ae7e5f618db73d6ed31785cb83
data/.travis.yml CHANGED
@@ -1,3 +1,12 @@
1
+ env:
2
+ global:
3
+ - CC_TEST_REPORTER_ID=3cb479d83eec93856a43161ba46dbad5b8d2e4979a36754bfc07202277b7f1c6
1
4
  language: ruby
2
- rvm:
3
- - 2.2.2
5
+ before_script:
6
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
7
+ - chmod +x ./cc-test-reporter
8
+ - ./cc-test-reporter before-build
9
+ script:
10
+ - bundle exec rspec
11
+ after_script:
12
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
data/README.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # feature_setting
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/feature_setting.svg)](http://badge.fury.io/rb/feature_setting) [![Code Climate](https://codeclimate.com/github/indrode/feature_setting/badges/gpa.svg)](https://codeclimate.com/github/indrode/feature_setting) [![Test Coverage](https://codeclimate.com/github/indrode/feature_setting/badges/coverage.svg)](https://codeclimate.com/github/indrode/feature_setting/coverage) [![security](https://hakiri.io/github/indrode/feature_setting/master.svg)](https://hakiri.io/github/indrode/feature_setting/master)
3
+ [![Gem
4
+ Version](https://badge.fury.io/rb/feature_setting.svg)](http://badge.fury.io/rb/feature_setting)
5
+ [![Code
6
+ Climate](https://codeclimate.com/github/indrode/feature_setting/badges/gpa.svg)](https://codeclimate.com/github/indrode/feature_setting)
7
+ [![Test
8
+ Coverage](https://codeclimate.com/github/indrode/feature_setting/badges/coverage.svg)](https://codeclimate.com/github/indrode/feature_setting/coverage)
9
+ [![security](https://hakiri.io/github/indrode/feature_setting/master.svg)](https://hakiri.io/github/indrode/feature_setting/master) [![Build Status](https://travis-ci.org/indrode/feature_setting.svg?branch=master)](https://travis-ci.org/indrode/feature_setting)
4
10
 
5
11
  This gem introduces the concept of "features" and "settings" to your Rails app. It provides an easy way to define such features and settings with default values right in your code and will persist them in the database.
6
12
 
@@ -112,11 +118,6 @@ You can now do the following:
112
118
  Settings.setting_one # => 12300
113
119
  Settings.setting_one = 2000
114
120
  Settings.setting_one # => 2000
115
-
116
- # other ways to set setting values:
117
- Settings.update!(setting_one: 1000)
118
- Settings.update!(:setting_one, 1000)
119
- Settings.update!('setting_one', 1000)
120
121
  ```
121
122
 
122
123
  **NEW IN VERSION 1.6:** Hashes values can be updated individually and will not overwrite the entire hash:
@@ -191,7 +192,7 @@ Notes:
191
192
 
192
193
  The MIT License (MIT)
193
194
 
194
- Copyright (c) 2015, 2016 Indro De ([http://indrode.com](http://indrode.com))
195
+ Copyright (c) 2015, 2016, 2017, 2018, 2019 Indro De ([http://indrode.com](http://indrode.com))
195
196
 
196
197
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
197
198
 
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency 'bundler', '>= 1.9'
24
24
  spec.add_development_dependency 'rake', '>= 10.0'
25
25
  spec.add_development_dependency 'rspec', '>= 3.0'
26
- spec.add_development_dependency 'sqlite3'
26
+ spec.add_development_dependency 'sqlite3', '~> 1.3.6'
27
27
  spec.add_development_dependency 'byebug'
28
+ spec.add_development_dependency 'simplecov'
28
29
  end
@@ -1,3 +1,3 @@
1
1
  module FeatureSetting
2
- VERSION = "1.6.0"
2
+ VERSION = "1.6.1"
3
3
  end
@@ -2,7 +2,6 @@ require 'active_support/all'
2
2
  require 'feature_setting/version'
3
3
  require 'feature_setting/orm/active_record/fs_setting'
4
4
  require 'feature_setting/orm/active_record/fs_feature'
5
- require 'byebug'
6
5
 
7
6
  module FeatureSetting
8
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feature_setting
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Indro De
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-04 00:00:00.000000000 Z
11
+ date: 2019-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -96,6 +96,20 @@ dependencies:
96
96
  version: '3.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: sqlite3
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.3.6
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.3.6
111
+ - !ruby/object:Gem::Dependency
112
+ name: byebug
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - ">="
@@ -109,7 +123,7 @@ dependencies:
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
- name: byebug
126
+ name: simplecov
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - ">="