flipper 0.10.0 → 0.10.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47f1ba89a0c1968fcc2a07f210260f48df2c86e0
4
- data.tar.gz: 0287caf882d254acb16259e617b73c663b01f64c
3
+ metadata.gz: 1756e45e5b4f8f8aa97453dcbc641f97a1b59c49
4
+ data.tar.gz: d5d52ba8d61cde4ce0518867e13d315ea6308f4c
5
5
  SHA512:
6
- metadata.gz: be454d3e836cfc89e75767a56f0c460d31be2c6c7dfd0155943f732e14355c15ad6e5dc35b929231716b6316305aac9c58e82ea83adcc0053ba5aa5829f28a70
7
- data.tar.gz: 88b93a792b1458b54c819e0d021ce2427c31079e5a3e9c926c6d74cf8702b1058a9e0a56dc203864ce3885b86114abc6dd6a44dbc120533fcf29d9b3d9f77c49
6
+ metadata.gz: 51dcf5b01101fab8bcb7a78d1c0b29be9992857fe65b55b9ecd72e44950de0ce24b0644d97b74ad99f2dbc3e5db73a7f88ceabad2962a8046032c12202bf1313
7
+ data.tar.gz: 54c99e406d706bd7ecf2d56989be4e1f0617fd7a82bb3b648c0195421abf67f5920b7624d1b73f640f84d17151bed53005058bded25297bba9eb788c03d86fc5
@@ -1,3 +1,9 @@
1
+ ## 0.10.1
2
+
3
+ * Add docker compose support for contributing
4
+ * Add sequel adapter
5
+ * Show confirmation dialog when deleting a feature in flipper-ui
6
+
1
7
  ## 0.10.0
2
8
 
3
9
  * Added feature check context (https://github.com/jnunemaker/flipper/pull/158)
@@ -0,0 +1,27 @@
1
+ FROM ruby:2.2.5
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ # build-essential \
5
+
6
+ # for postgres
7
+ # libpq-dev \
8
+ # postgresql-client-9.4 \
9
+
10
+ # for nokogiri
11
+ # libxml2-dev \
12
+ # libxslt1-dev \
13
+
14
+ # for a JS runtime
15
+ # imagemagick \
16
+ # ghostscript \
17
+
18
+ # debug tools
19
+ vim
20
+
21
+ ENV APP_HOME /srv/app
22
+
23
+ ENV BUNDLE_GEMFILE=$APP_HOME/Gemfile \
24
+ BUNDLE_JOBS=8 \
25
+ BUNDLE_PATH=/bundle_cache
26
+
27
+ WORKDIR $APP_HOME
data/README.md CHANGED
@@ -74,6 +74,7 @@ Of course there are more [examples for you to peruse](examples/). You could also
74
74
  * [Web Interface](docs/ui/README.md) - Point and click...
75
75
  * [API](docs/api/README.md) - HTTP API interface
76
76
  * [Caveats](docs/Caveats.md) - Flipper beware! (see what I did there)
77
+ * [Docker-Compose](docs/DockerCompose.md) - Using docker-compose in contributing
77
78
 
78
79
  ## Contributing
79
80
 
@@ -91,7 +92,8 @@ Of course there are more [examples for you to peruse](examples/). You could also
91
92
 
92
93
  ## Brought To You By
93
94
 
94
- | pic | @mention |
95
- |---|---|
96
- | ![@jnunemaker](https://avatars3.githubusercontent.com/u/235?s=64) | [@jnunemaker](https://github.com/jnunemaker) |
97
- | ![@alexwheeler](https://avatars3.githubusercontent.com/u/3260042?s=64) | [@alexwheeler](https://github.com/alexwheeler) |
95
+ | pic | @mention | area |
96
+ |---|---|---|
97
+ | ![@jnunemaker](https://avatars3.githubusercontent.com/u/235?s=64) | [@jnunemaker](https://github.com/jnunemaker) | most things |
98
+ | ![@alexwheeler](https://avatars3.githubusercontent.com/u/3260042?s=64) | [@alexwheeler](https://github.com/alexwheeler) | api |
99
+ | ![@lazebny](https://avatars1.githubusercontent.com/u/6276766?s=64) | [@lazebny](https://github.com/lazebny) | docker |
@@ -0,0 +1,34 @@
1
+ # postgres:
2
+ # container_name: flipper_postgres
3
+ # image: postgres:9.4
4
+ redis:
5
+ container_name: flipper_redis
6
+ image: redis:2.8
7
+ mongo:
8
+ container_name: flipper_mongo
9
+ image: mongo:3.3
10
+ memcached:
11
+ container_name: flipper_memcached
12
+ image: memcached:1.4.33
13
+ app:
14
+ container_name: flipper_app
15
+ build: .
16
+ dockerfile: Dockerfile
17
+ volumes:
18
+ - .:/srv/app
19
+ volumes_from:
20
+ - bundle_cache
21
+ links:
22
+ # - postgres
23
+ - redis
24
+ - mongo
25
+ - memcached
26
+ environment:
27
+ - BOXEN_REDIS_URL=redis://redis:6379
28
+ - BOXEN_MONGODB_HOST=mongo
29
+ - BOXEN_MEMCACHED_URL=memcached:11211
30
+ bundle_cache:
31
+ container_name: flipper_bundle_cache
32
+ image: busybox
33
+ volumes:
34
+ - /bundle_cache
@@ -9,6 +9,7 @@ I plan on supporting the adapters in the flipper repo. Other adapters are welcom
9
9
  * [Mongo adapter](https://github.com/jnunemaker/flipper/blob/master/docs/mongo)
10
10
  * [Redis adapter](https://github.com/jnunemaker/flipper/blob/master/docs/redis)
11
11
  * [ActiveRecord adapter](https://github.com/jnunemaker/flipper/blob/master/docs/active_record) - Rails 3, 4, and 5.
12
+ * [Sequel adapter](https://github.com/jnunemaker/flipper/blob/master/docs/sequel)
12
13
  * [Cassanity adapter](https://github.com/jnunemaker/flipper-cassanity)
13
14
 
14
15
  ## Community Supported
@@ -0,0 +1,16 @@
1
+ # Docker Compose for contributors
2
+
3
+ This gem includes different adapters which require specific tools instaled
4
+ on local machine. With docker this could be achieved inside container and
5
+ new contributor could start working on code with a minumum efforts.
6
+
7
+ ## Steps:
8
+
9
+ 1. Install Docker Compose https://docs.docker.com/compose/install
10
+ 2. Install gems `docker-compose run --rm app bundle install`
11
+ 3. Run specs `docker-compose run --rm app bundle exec rspec`
12
+ 4. Optional: log in to container an using a bash for running specs
13
+ ```sh
14
+ docker-compose run --rm app bash
15
+ bundle exec rspec
16
+ ```
@@ -773,3 +773,36 @@ Successful disabling of a percentage of time will set the percentage to 0 and re
773
773
  ]
774
774
  }
775
775
  ```
776
+
777
+ ## Errors
778
+ In the event of an error the Flipper API will return an error object. The error object will contain a Flipper-specific error code, an error message, and a link to documentation providing more information about the error.
779
+
780
+ *example error object*
781
+ ```json
782
+ {
783
+ "code": 1,
784
+ "message": "Feature not found",
785
+ "more_info": "https://github.com/jnunemaker/flipper/tree/master/docs/api#error-code-reference",
786
+ }
787
+ ```
788
+ ### Error Code Reference
789
+
790
+ #### 1: Feature Not Found
791
+
792
+ The requested feature does not exist. Make sure the feature name is spelled correctly and exists in your application's database.
793
+
794
+ #### 2: Group Not Registered
795
+
796
+ The requested group specified by the `name` parameter is not registered. Information on registering groups can be found in the [Gates documentation](https://github.com/jnunemaker/flipper/blob/master/docs/Gates.md).
797
+
798
+ #### 3: Percentage Invalid
799
+
800
+ The `percentage` parameter is invalid or missing. `percentage` must be an integer between 0-100 inclusive and cannot be blank.
801
+
802
+ #### 4: Flipper ID Invalid
803
+
804
+ The `flipper_id` parameter is invalid or missing. `flipper_id` cannot be empty.
805
+
806
+ #### 5: Name Invalid
807
+
808
+ The `name` parameter is missing. Make sure your request's body contains a `name` parameter.
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = "0.10.0".freeze
2
+ VERSION = "0.10.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flipper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-17 00:00:00.000000000 Z
11
+ date: 2016-11-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Feature flipper is the act of enabling/disabling features in your application,
14
14
  ideally without re-deploying or changing anything in your code base. Flipper makes
@@ -20,12 +20,15 @@ extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
22
  - Changelog.md
23
+ - Dockerfile
23
24
  - Gemfile
24
25
  - LICENSE
25
26
  - README.md
26
27
  - Rakefile
28
+ - docker-compose.yml
27
29
  - docs/Adapters.md
28
30
  - docs/Caveats.md
31
+ - docs/DockerCompose.md
29
32
  - docs/Gates.md
30
33
  - docs/Instrumentation.md
31
34
  - docs/Optimization.md