Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring and enhancements #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vasilakisfil
Copy link

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
Author

@vasilakisfil
Copy link
Author

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

@vasilakisfil
Copy link
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 vasilakisfil force-pushed the refactoring_and_enhancements branch 2 times, most recently from 182c78a to 9185acf Compare February 2, 2015 16:18
@vasilakisfil
Copy link
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
Copy link
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
Copy link
Author

@mitfik @zuk bump!

@vasilakisfil
Copy link
Author

@zuk @mitfik bump!

@mitfik
Copy link
Contributor

mitfik commented Feb 23, 2015

@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 free to 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.

None yet

2 participants