GithubHelp home page GithubHelp logo

balvig / chili Goto Github PK

View Code? Open in Web Editor NEW
215.0 215.0 8.0 943 KB

The spicy feature toggle framework for Rails

Home Page: http://balvig.github.io/chili/

License: MIT License

Ruby 88.65% JavaScript 3.94% CSS 7.41%

chili's People

Contributors

amatsuda avatar balvig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chili's Issues

How back the changes to the main app?

In tutorial the changes and modify, extending the code and create some files (migrate) with options false, at this point is ok!
With the code passed in test and have ok to push in env production, how add or merge this new feature to the main code and commit in master branch and submit!

unable to create new extension

rails g chili:extension photo

/.rvm/gems/ruby-1.9.3-p194/gems/chili-0.3.2/lib/chili/engine.rb:4:in block in <class:Engine>': undefined methodnamespaced=' for #Deface::Environment:0x007ff4ca6cace8 (NoMethodError)

deface 0.9.1 thats added with chili does not have the namespaced changes in yet on my install at least

active_if is not reloaded in development

Was originally fixed by 14ff0b9 but something seems to have changed in later Rails versions that prevents it from being reloaded (meaning you have to restart the server whenever you changed the active_if block)

Request / Merge feature to the main application

Is there any easy way to move a "test" feature to the main application code or we need to manually add it?

I'm afraid deface will slow our app as we keep adding new features

How do you feel about it? do you have any benchmarks?

Active Feature

Hey man

Can u help me ?

Im creating rails g chili:feature bureau

And

Add one view juridical/proposal/show.html.erb in folder lib/chili/bureau_feature/app/views/juridical/proposals/show.html.erb

My class engine i set tu false

module BureauFeature
extend Chili::Base
active_if { false } # edit this to activate/deactivate feature at runtime
end

More keep displaying

I, [2018-05-11T14:03:23.556379 #8206] INFO -- : Rendered lib/chili/bureau_feature/app/views/juridical/proposals/show.html.erb within layouts/juridical/application (230.6ms)

Help

Hi, Sorry for using Issues for this but could not find an email of wiki and I do not use any social networks.

I am not sure if I fully understand how chili works but I have a requirement that may be applicable to using chili, perhaps you could confirm ?

rails 3.2.11 - I am using basic authentication with deface and cancan. cancan looks after access to resources OK but leaves the view layer with links to potentially forbidden resources.

I have tried;

<% if RESOURCE_ACCESS_LEVEL > users_access_level %>
  <!-- remove 'code[erb-loud]:contains("link_to")' -->
<% end %>

in a .deface file but it fails as does a .erb.html.deface.erb file (worth a shot).

So could I use chili to make deface files conditional on user_access_level ?

Any suggestions or examples would be warmly welcomed !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.