simple_features 0.0.1 → 0.9.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/CHANGELOG +7 -0
- data/README.md +25 -2
- data/lib/simple_features/version.rb +1 -1
- data/simple_features.gemspec +13 -8
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 065265e25bfcbc8023763bc148bfbdc82d30da98
|
4
|
+
data.tar.gz: 11efd17d3984d61e1e831a465a19271bc5debaec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91a12468f2419f6410c608b418b17f19689d3cf487603e2c51ee15fe1f8ca8d4660faf5c272aba94b4b4f2d04c15e41bcf6052078348a0881e08d24bcc36629c
|
7
|
+
data.tar.gz: 3ecc1f03853c703090fc0ca863b8f3c3ed68b55b27e0cb77aad997aa005378b73022aaf8d4d15b82a372a0f35d542eaac72704fff28a2942494a778cd8e85a74
|
data/.gitignore
CHANGED
data/CHANGELOG
ADDED
data/README.md
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
This gem was design to 1 thing and it well. (me thinks)
|
4
4
|
|
5
|
-
The reason for why I started to write this gem is that of all the feautre gems it was
|
6
|
-
quicker to
|
5
|
+
The reason for why I started to write this gem is that of all the feautre gems, it was
|
6
|
+
quicker to write this gem than learn how they work And thats why this gem is overly darn so simple
|
7
7
|
|
8
8
|
## Installation
|
9
9
|
|
@@ -42,6 +42,29 @@ puts "feature_b" if features.feature_b?
|
|
42
42
|
features = SimpleFeatures::Features.load_config('config/simple_features.yml')
|
43
43
|
```
|
44
44
|
|
45
|
+
#### example config file
|
46
|
+
|
47
|
+
```yaml
|
48
|
+
production:
|
49
|
+
feature_one: true
|
50
|
+
feature_two: false
|
51
|
+
feature_three: true
|
52
|
+
|
53
|
+
```
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
puts features.feature_one?
|
57
|
+
>> true
|
58
|
+
|
59
|
+
puts features.feature_two?
|
60
|
+
>> false
|
61
|
+
|
62
|
+
puts features.feature_three?
|
63
|
+
>> true
|
64
|
+
|
65
|
+
```
|
66
|
+
|
67
|
+
|
45
68
|
### Rails & Rails Helpers
|
46
69
|
|
47
70
|
`Rails` only needs to have the config file in `config/simple_features.yml`
|
data/simple_features.gemspec
CHANGED
@@ -4,15 +4,20 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require "simple_features/version"
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name
|
8
|
-
spec.version
|
9
|
-
spec.authors
|
10
|
-
spec.email
|
7
|
+
spec.name = "simple_features"
|
8
|
+
spec.version = SimpleFeatures::VERSION
|
9
|
+
spec.authors = ["Freibuis"]
|
10
|
+
spec.email = ["freibuis@gmail.com"]
|
11
11
|
|
12
|
-
spec.summary
|
13
|
-
spec.description
|
14
|
-
spec.homepage
|
15
|
-
spec.license
|
12
|
+
spec.summary = %q{simple features}
|
13
|
+
spec.description = %q{simple features: the cheap ass'ed flag flipper}
|
14
|
+
spec.homepage = "https://github.com/freibuis/simple_features"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.metadata = {
|
18
|
+
"changelog_uri" => "https://github.com/freibuis/simple_features/blob/master/CHANGELOG",
|
19
|
+
"source_code_uri" => "https://github.com/freibuis/simple_features",
|
20
|
+
}
|
16
21
|
|
17
22
|
|
18
23
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_features
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.99
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Freibuis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -62,6 +62,7 @@ files:
|
|
62
62
|
- ".gitignore"
|
63
63
|
- ".rspec"
|
64
64
|
- ".travis.yml"
|
65
|
+
- CHANGELOG
|
65
66
|
- CODE_OF_CONDUCT.md
|
66
67
|
- Gemfile
|
67
68
|
- LICENSE.txt
|
@@ -76,10 +77,12 @@ files:
|
|
76
77
|
- lib/simple_features/features.rb
|
77
78
|
- lib/simple_features/version.rb
|
78
79
|
- simple_features.gemspec
|
79
|
-
homepage:
|
80
|
+
homepage: https://github.com/freibuis/simple_features
|
80
81
|
licenses:
|
81
82
|
- MIT
|
82
|
-
metadata:
|
83
|
+
metadata:
|
84
|
+
changelog_uri: https://github.com/freibuis/simple_features/blob/master/CHANGELOG
|
85
|
+
source_code_uri: https://github.com/freibuis/simple_features
|
83
86
|
post_install_message:
|
84
87
|
rdoc_options: []
|
85
88
|
require_paths:
|