ptico / flexus Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mbj/inflecto
[discontinued] now dry-inflector
License: MIT License
This project forked from mbj/inflecto
[discontinued] now dry-inflector
License: MIT License
See if flexus.gemspec
needs any improvement
Global state is evil!
We should give a per instance option for users of Flexus.
I recommend to avoid any API that does global state mutations. Provide a default instance, and all project specific settings create new ones
Source: https://twitter.com/_m_b_j_/status/926476875186278400
Good news. I can’t check soon, but it looks like it uses global state, which is the current problem that we have w/ inflecto.
Source: https://twitter.com/jodosha/status/926535090188021760
Note: https://en.wikipedia.org/wiki/Ruby_(programming_language)#Table_of_versions
We already have inflecto supporting old ruby versions. It's working, reliable and it will freeze (not break at near future).
I think we shouldn't loose time trying to keep compatible with old rubies. We should aim for the future. (But I'm open for suggestions).
2.1 has already ended security maintenance phase since 2017-03-31. It means NO SUPPORT at all from Ruby core team.
2.2 ended support phase since 2017-03-28 and it'll end security maintenance phase in 4 months (2018-03-31).
So we should focus on 2.3, 2.4, 2.5.
My suggestion, we should do a release of 1.0.x with all these things that were around inflecto but unreleased. So, most people could just jump into flexus without any problem.
Then, we begin a 2.0.x branch, where the required ruby version will be >= 2.3.
What do you think @Ptico .
Just do it!
@Ptico I'll work on this.
It's just an idea, but I think it would be cool to add an additional use case, like:
class MyClass
include Flexus.module(:camelize, :constantize)
#...
def puts_name
puts camelize(@name)
end
end
@Ptico what do you think about beginning version numbers from the last version of the original repo? 0.1.0.
So our first release could be 0.1.1.
I saw this on .rubocop.yml
AllCops:
Exclude:
- 'lib/**/*'
- 'spec/**/*'
- 'Gemfile'
- 'Guardfile'
- 'flexus.gemspec'
- 'vendor/**/*'
This - 'lib/**/*'
just makes rubocop useless!
I have been using pronto to help fixing these stylistic thing step by step instead of everything in a row.
Opening this issue to remember fixing this.
It would be great to add support for acronyms, so HTTP
will not become Http
for example
inflecto
lacks support for lower case camel case conversion like ActiveSupport has, this would useful to have when generating strings for JSON attributes names.
Inflecto.lower_camelize("first_name") # => "firstName"
Inflecto.lower_camelize("name") # => "name"
# Or maybe:
Inflecto.camelize("first_name", lower: true) # => "firstName"
Inflecto.camelize("name", lower: true) # => "name"
To involve more people to the development, we need to simplify the contribution process. Here is a plan:
rspec-its
@abinoam looks like we need some new name, any suggestions?
Let's move a part of disscussion of #3 here:
The idea is to try a different approach: first parse a string to array of parts and then transform and cache them on request.
Also, I prefer to move this to 3.0 milestone to not turn Flexus 2 to Half-Life 3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.