-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the gemspec, add a license, update the readme and extract some of the data to separate files.
- Loading branch information
Showing
7 changed files
with
100 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) 2011 Maximilian Schulz | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Roadmap | ||
|
||
_Check the release notes for info on previous versions_ | ||
|
||
|
||
There is no real roadmap for architect4r, as this project is only used in | ||
a single project so far. If there is anything you miss, either fork the | ||
project, implement the feature and send a pull request, or submit an issue. | ||
|
||
The following items are kinda planned to be integrated in the future: | ||
|
||
* Give the cypher plugin some more love | ||
* Add more default queries | ||
* Add tracking of dirty attributes | ||
* Make it compatible to file uploaders such as paperclip and carrierwave | ||
* Make it compatible to search engines such as sunspot, elastic search, sphinx, … | ||
* Rake tasks for installing neo4j | ||
* Rake tasks for test setup | ||
* Versioning of nodes (update node but create a linked node with the old properties) | ||
* Improve documentation | ||
* Improve test cases | ||
|
||
And there are a few features which might be integrated, but are not yet really planned: | ||
|
||
* Accessible relationships as you know it from active record | ||
* Support for indexes (nodes and relations) | ||
* Add more finders by using indexes | ||
* Add auto indexing of node properties / nodes (not neo4j auto indexing) | ||
* Add basic authentication | ||
* Add digest authentication | ||
* Facilitate hydra's concurrency model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Specs | ||
|
||
Some code which might define the future interface of the gem. | ||
|
||
# Finding records | ||
Instrument.all | ||
Instrument.find_by_name("Piano") | ||
Instrument.find_by_name("Klavier", :de) | ||
Instrument.find_by_cypher("start cat=(123) match (cat)--(x) return x limit 2") | ||
|
||
# Filter associations by relationship type (:incoming, :outgoing, :all) | ||
instrument.links(:outgoing) | ||
|
||
# Query by model or type | ||
@user.links(:all, Fanship, 'studies') | ||
|
||
# Create a custom relationship | ||
relationship = Architect4r::Model::Relationship.create(start_node, end_note, 'CustomType', { :active => true }) | ||
# or | ||
instrument.links(:incoming).create(:category, @other_node, { :created_at => DateTime.new, :active => true }) | ||
instrument.links(:incoming).create(CategoryRelation, @other_node, { :created_at => DateTime.new, :active => true }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters