Skip to content

Refactoring and enhancements - #25

Open
vasilakisfil wants to merge 1 commit into
rubycas:masterfrom
vasilakisfil:refactoring_and_enhancements
Open

Refactoring and enhancements#25
vasilakisfil wants to merge 1 commit into
rubycas:masterfrom
vasilakisfil:refactoring_and_enhancements

Conversation

@vasilakisfil

Copy link
Copy Markdown

There are many changes in this pull-request. It also breaks compatibility. I can always bring it back but I think the tickets API based on classes is much better. I tried to follow the repository pattern. I have also moved the memory adapter (used in tests) in a different gem which I would gladly transfer it to rubycas. I have also added more tests and upgraded to latest gems.

Should I squash the commits ?

@vasilakisfil

Copy link
Copy Markdown
Author

@vasilakisfil
vasilakisfilforce-pushed the refactoring_and_enhancements branch from dfc94f4 to ae35370CompareJanuary 17, 2015 14:07
@vasilakisfil

Copy link
Copy Markdown
Author

I rebased from master and we also have green tests yay!

@vasilakisfil

Copy link
Copy Markdown
Author

About extracting the memory adapter in a gem: I wanted tests to be transparent with any adapter. I mean I wanted the adapter that we use in tests to be not just a set of bogus classes but real world gem that could be used by anyone and just happens to be used in our tests too. I also feel it's easier to test extra functionality of my X adapter if it's in an external gem. But we can always bring it back.

@vasilakisfil
vasilakisfilforce-pushed the refactoring_and_enhancements branch 2 times, most recently from 182c78a to 9185acfCompareFebruary 2, 2015 16:18
@vasilakisfil

Copy link
Copy Markdown
Author

@mitfik I rebased from master, squashed them and fixed all issues except the memory adapter. Are you sure you want that in the repo? In any case I don't think it should lie under the /lib, I feel it should be under spec/ folder.

@vasilakisfil
vasilakisfilforce-pushed the refactoring_and_enhancements branch from 9185acf to 6a40743CompareFebruary 2, 2015 16:24
@vasilakisfil

Copy link
Copy Markdown
Author

I have now the masters gemfile to make the test pass but I don't think that you have it right. In travis.yml you shouldn't add the --without development options. You want to run the test, it is expected to install the development dependencies defined in gemspec :)
When you remove that, you can remove rake and rspec and rubycas-memory-adapter from gemfile.

Some refactoring and enhancements
Some refactoring and enhancements
Vital changes for Rails integration
1) Add validation tests (+ error class in order to pass)
2) Fixed login ticket lifetime bug (maximum_unused_login_ticket_lifetime was not used in login ticket validation)
3) Add remember_me functionality in the core
4) Change how service tickets are generated. Now each service tickets inherits from TicketGrantingTicket
in a way to imitate activerecord's belongs_to/has_many.
5) Other minor improvements
6) Tested with rubycas-server-rails engine
Fix exception for activerecord adapter
Add rake to gemfile
Remove duplicate gem
Add rspec to gemfile
method overloading in setup hash or file
Update README.md
Update to rspec 3.1, fix tests, add circleci
wip
Update to rspec 3.1, fix tests
add more specific gem versions
add ruby-version for circleci
update ruby version in circle.yml
remove .ruby-version file
Update README.md
Enhance adapter pattern
Extract memory adapter to another gem
Add basic adapter api
update version
relax rake and bundler dependencies
Remove in_memory adapter
wip
add rubycas-server-memory as test dependency in bundler
refactor module methods, fix tests
move module-based tickets generation api to Generations module
transform validations/generations to instance methods
fix tests
let instead of instance vars
minor changes
bump version
Update README.md
remove root dir method
fix tests
User masters gemfile
Add rubycas-server-memory to gemfile
@vasilakisfil
vasilakisfilforce-pushed the refactoring_and_enhancements branch from 6a40743 to 1cd26caCompareFebruary 2, 2015 16:29
@vasilakisfil

Copy link
Copy Markdown
Author

@mitfik@zuk bump!

@vasilakisfil

Copy link
Copy Markdown
Author

@zuk@mitfik bump!

@mitfik

Copy link
Copy Markdown

@vasilakisfil hi, sorry for late answer but I was bit offline last month due to relocation.

Regarding the changes, I will take a look on that and test it asap.
I think that extracting rubycas-memory-adapter is not totally bad idea but then we need to think how to do testing correctly (for example should we test with all supported adapter gems or just one or two?)
I will back to you asap with some feedback.

br

Aagbator pushed a commit to bebraven/rubycas-server-core that referenced this pull request Jan 6, 2021
use default so logout then login is consistent
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@vasilakisfil@mitfik