fflags 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +75 -0
- data/.gitignore +4 -0
- data/Gemfile +0 -1
- data/Gemfile.lock +10 -2
- data/README.md +3 -0
- data/fflags.gemspec +2 -0
- data/lib/fflags/api.rb +0 -4
- data/lib/fflags/version.rb +1 -1
- metadata +30 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38311fb449725adb2b13fba99d2ee92d1af5fe89
|
4
|
+
data.tar.gz: b4babec4245bff163393a35f7d8ddcd5c93af20d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94ec53c085dd2684a9ae330b3929b6ecdf54c949ff61d7e92c9291af778ed8cfaf42a6174d7701d5a0ba9f68524f2b35a16b3f1d3b9862ef1c985aa134d868a7
|
7
|
+
data.tar.gz: 3343bec7eb00328533b83d8b3ffa48292666e13917daa0189be026040dfd6dd2d33e64325cee7252e8366e5bf3d20b580d05285c3e1a9673cfd39e095604a5be
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# Ruby CircleCI 2.0 configuration file
|
2
|
+
#
|
3
|
+
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
|
4
|
+
#
|
5
|
+
version: 2
|
6
|
+
jobs:
|
7
|
+
build:
|
8
|
+
docker:
|
9
|
+
# specify the version you desire here
|
10
|
+
- image: circleci/ruby:2.4.1-node-browsers
|
11
|
+
|
12
|
+
# Specify service dependencies here if necessary
|
13
|
+
# CircleCI maintains a library of pre-built images
|
14
|
+
# documented at https://circleci.com/docs/2.0/circleci-images/
|
15
|
+
# - image: circleci/postgres:9.4
|
16
|
+
|
17
|
+
working_directory: ~/repo
|
18
|
+
|
19
|
+
steps:
|
20
|
+
- checkout
|
21
|
+
|
22
|
+
# Download and cache dependencies
|
23
|
+
- restore_cache:
|
24
|
+
keys:
|
25
|
+
- v1-dependencies-{{ checksum "Gemfile.lock" }}
|
26
|
+
# fallback to using the latest cache if no exact match is found
|
27
|
+
- v1-dependencies-
|
28
|
+
|
29
|
+
|
30
|
+
- run:
|
31
|
+
name: install redis
|
32
|
+
command: |
|
33
|
+
pushd /tmp
|
34
|
+
wget http://download.redis.io/releases/redis-$REDIS_VERSION.tar.gz
|
35
|
+
tar xzf redis-$REDIS_VERSION.tar.gz
|
36
|
+
cd redis-$REDIS_VERSION && make
|
37
|
+
src/redis-server --daemonize yes
|
38
|
+
popd
|
39
|
+
environment:
|
40
|
+
REDIS_VERSION: 3.2.10
|
41
|
+
|
42
|
+
- run:
|
43
|
+
name: install dependencies
|
44
|
+
command: |
|
45
|
+
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
46
|
+
|
47
|
+
- save_cache:
|
48
|
+
paths:
|
49
|
+
- ./vendor/bundle
|
50
|
+
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
51
|
+
|
52
|
+
# run rubocop!
|
53
|
+
- run:
|
54
|
+
name: rubocop
|
55
|
+
command: |
|
56
|
+
bundle exec rubocop -D
|
57
|
+
|
58
|
+
# run rspec!
|
59
|
+
- run:
|
60
|
+
name: rspec
|
61
|
+
command: |
|
62
|
+
mkdir /tmp/test-results
|
63
|
+
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
|
64
|
+
|
65
|
+
bundle exec rspec --format progress \
|
66
|
+
--out /tmp/test-results/rspec.xml \
|
67
|
+
--format progress \
|
68
|
+
"${TEST_FILES}"
|
69
|
+
|
70
|
+
# collect reports
|
71
|
+
- store_test_results:
|
72
|
+
path: /tmp/test-results
|
73
|
+
- store_artifacts:
|
74
|
+
path: /tmp/test-results
|
75
|
+
destination: test-results
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fflags (0.3.
|
4
|
+
fflags (0.3.4)
|
5
5
|
redis (>= 3.0.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -10,6 +10,8 @@ GEM
|
|
10
10
|
ast (2.3.0)
|
11
11
|
coderay (1.1.2)
|
12
12
|
diff-lcs (1.3)
|
13
|
+
docile (1.1.5)
|
14
|
+
json (2.1.0)
|
13
15
|
method_source (0.9.0)
|
14
16
|
parallel (1.12.1)
|
15
17
|
parser (2.4.0.2)
|
@@ -42,6 +44,11 @@ GEM
|
|
42
44
|
ruby-progressbar (~> 1.7)
|
43
45
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
44
46
|
ruby-progressbar (1.9.0)
|
47
|
+
simplecov (0.15.1)
|
48
|
+
docile (~> 1.1.0)
|
49
|
+
json (>= 1.8, < 3)
|
50
|
+
simplecov-html (~> 0.10.0)
|
51
|
+
simplecov-html (0.10.2)
|
45
52
|
unicode-display_width (1.3.0)
|
46
53
|
|
47
54
|
PLATFORMS
|
@@ -54,6 +61,7 @@ DEPENDENCIES
|
|
54
61
|
rake (~> 10.0)
|
55
62
|
rspec (~> 3.0)
|
56
63
|
rubocop
|
64
|
+
simplecov
|
57
65
|
|
58
66
|
BUNDLED WITH
|
59
|
-
1.16.
|
67
|
+
1.16.1
|
data/README.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
[![CircleCI](https://circleci.com/gh/faizalzakaria/fflags/tree/master.svg?style=svg)](https://circleci.com/gh/faizalzakaria/fflags/tree/master)
|
2
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/2c8af5d2a0560570a5b7/maintainability)](https://codeclimate.com/github/faizalzakaria/fflags/maintainability)
|
3
|
+
|
1
4
|
# FFlags
|
2
5
|
|
3
6
|
Feature flags that can be overwritten on the fly. It could be per instance or per environment. Depending on how you set your key, either dynamically per instance or constant per environment.
|
data/fflags.gemspec
CHANGED
@@ -24,7 +24,9 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_runtime_dependency 'redis', '>= 3.0.0'
|
25
25
|
|
26
26
|
spec.add_development_dependency 'bundler', '~> 1.16'
|
27
|
+
spec.add_development_dependency 'pry'
|
27
28
|
spec.add_development_dependency 'rake', '~> 10.0'
|
28
29
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
29
30
|
spec.add_development_dependency 'rubocop'
|
31
|
+
spec.add_development_dependency 'simplecov'
|
30
32
|
end
|
data/lib/fflags/api.rb
CHANGED
data/lib/fflags/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fflags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Faizal Zakaria
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.16'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rake
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,6 +94,20 @@ dependencies:
|
|
80
94
|
- - ">="
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
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'
|
83
111
|
description: Feature flags that can be override on the fly.
|
84
112
|
email:
|
85
113
|
- fai@code3.io
|
@@ -87,6 +115,7 @@ executables: []
|
|
87
115
|
extensions: []
|
88
116
|
extra_rdoc_files: []
|
89
117
|
files:
|
118
|
+
- ".circleci/config.yml"
|
90
119
|
- ".gitignore"
|
91
120
|
- ".rspec"
|
92
121
|
- ".rubocop.yml"
|