ixtlan 0.4.0.pre2 → 0.4.0.pre3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. data/generators/gwt_ixtlan_datamapper_rspec_scaffold/gwt_ixtlan_datamapper_rspec_scaffold_generator.rb +1 -1
  2. data/generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/Fields.java +13 -0
  3. data/generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/Model.java +11 -14
  4. data/generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/ModelFactory.java +2 -7
  5. data/generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/Screen.java +14 -7
  6. data/generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/TestGwt.java +12 -10
  7. data/generators/ixtlan_datamapper_model/templates/migration.rb +22 -0
  8. data/generators/ixtlan_datamapper_model/templates/model.rb +2 -2
  9. data/generators/ixtlan_datamapper_rspec_model/ixtlan_datamapper_rspec_model_generator.rb +2 -0
  10. data/generators/ixtlan_datamapper_rspec_model/templates/model_spec.rb +8 -5
  11. data/generators/ixtlan_datamapper_rspec_scaffold/ixtlan_datamapper_rspec_scaffold_generator.rb +2 -0
  12. data/generators/ixtlan_datamapper_rspec_scaffold/templates/controller_spec.rb +13 -7
  13. data/lib/dm-serializer/to_xml.rb +2 -2
  14. data/lib/ixtlan/controllers/authentications_controller.rb +1 -1
  15. data/lib/ixtlan/controllers/locales_controller.rb +1 -0
  16. data/lib/ixtlan/controllers/users_controller.rb +5 -3
  17. data/lib/ixtlan/models/authentication.rb +1 -3
  18. data/lib/ixtlan/models/i18n_text.rb +4 -4
  19. data/lib/ixtlan/models/user.rb +2 -0
  20. data/lib/ixtlan/models/word.rb +3 -1
  21. data/lib/ixtlan/modified_by.rb +1 -1
  22. data/lib/ixtlan/optimistic_persistence.rb +2 -5
  23. data/lib/ixtlan/rails/migrations.rb +30 -25
  24. data/lib/ixtlan/rails/unrestful_authentication.rb +1 -1
  25. data/lib/ixtlan/session.rb +2 -2
  26. data/lib/ixtlan/simple_client.rb +126 -0
  27. data/lib/ixtlan/user_logger.rb +0 -1
  28. data/lib/ixtlan/version.rb +1 -1
  29. data/lib/models.rb +1 -0
  30. metadata +267 -219
  31. data/History.txt +0 -49
  32. data/MIT-LICENSE +0 -20
  33. data/Manifest.txt +0 -103
  34. data/README.txt +0 -86
  35. data/Rakefile +0 -55
  36. data/ixtlan_rails_templates.rb +0 -537
  37. data/whitespace.rb +0 -31
data/Manifest.txt DELETED
@@ -1,103 +0,0 @@
1
- History.txt
2
- MIT-LICENSE
3
- Manifest.txt
4
- README.txt
5
- Rakefile
6
- generators/gwt_ixtlan_datamapper_rspec_scaffold/gwt_ixtlan_datamapper_rspec_scaffold_generator.rb
7
- generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/AbstractApplicationResourceTestGwt.java
8
- generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/Fields.java
9
- generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/GwtTestSuite.java
10
- generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/Model.java
11
- generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/ModelFactory.java
12
- generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/Screen.java
13
- generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/TestGwt.java
14
- generators/ixtlan_datamapper_model/ixtlan_datamapper_model_generator.rb
15
- generators/ixtlan_datamapper_model/templates/model.rb
16
- generators/ixtlan_datamapper_rspec_model/ixtlan_datamapper_rspec_model_generator.rb
17
- generators/ixtlan_datamapper_rspec_model/templates/model_spec.rb
18
- generators/ixtlan_datamapper_rspec_scaffold/ixtlan_datamapper_rspec_scaffold_generator.rb
19
- generators/ixtlan_datamapper_rspec_scaffold/templates/controller.rb
20
- generators/ixtlan_datamapper_rspec_scaffold/templates/controller_spec.rb
21
- generators/ixtlan_datamapper_rspec_scaffold/templates/guard.rb
22
- generators/ixtlan_datamapper_rspec_scaffold/templates/i18n.rb
23
- generators/ixtlan_datamapper_rspec_scaffold/templates/layout.html.erb
24
- ixtlan_rails_templates.rb
25
- lib/dm-serializer.rb
26
- lib/dm-serializer/common.rb
27
- lib/dm-serializer/to_xml.rb
28
- lib/dm-serializer/xml_serializers.rb
29
- lib/dm-serializer/xml_serializers/libxml.rb
30
- lib/dm-serializer/xml_serializers/nokogiri.rb
31
- lib/dm-serializer/xml_serializers/rexml.rb
32
- lib/ixtlan.rb
33
- lib/ixtlan/audit_config.rb
34
- lib/ixtlan/child_path.rb
35
- lib/ixtlan/cms_script.rb
36
- lib/ixtlan/controllers/authentications_controller.rb
37
- lib/ixtlan/controllers/configurations_controller.rb
38
- lib/ixtlan/controllers/permissions_controller.rb
39
- lib/ixtlan/controllers/domains_controller.rb
40
- lib/ixtlan/controllers/groups_controller.rb
41
- lib/ixtlan/controllers/locales_controller.rb
42
- lib/ixtlan/controllers/phrases_controller.rb
43
- lib/ixtlan/controllers/search_query.rb
44
- lib/ixtlan/controllers/texts_controller.rb
45
- lib/ixtlan/controllers/users_controller.rb
46
- lib/ixtlan/controllers/word_bundles_controller.rb
47
- lib/ixtlan/digest.rb
48
- lib/ixtlan/guard.rb
49
- lib/ixtlan/logger_config.rb
50
- lib/ixtlan/mailer.rb
51
- lib/ixtlan/mailer/error_notification.erb
52
- lib/ixtlan/mailer/password.erb
53
- lib/ixtlan/models.rb
54
- lib/ixtlan/models/authentication.rb
55
- lib/ixtlan/models/configuration.rb
56
- lib/ixtlan/models/configuration_locale.rb
57
- lib/ixtlan/models/domain.rb
58
- lib/ixtlan/models/domain_group_user.rb
59
- lib/ixtlan/models/group.rb
60
- lib/ixtlan/models/group_locale_user.rb
61
- lib/ixtlan/models/group_user.rb
62
- lib/ixtlan/models/i18n_text.rb
63
- lib/ixtlan/models/locale.rb
64
- lib/ixtlan/models/permission.rb
65
- lib/ixtlan/models/phrase.rb
66
- lib/ixtlan/models/role.rb
67
- lib/ixtlan/models/translation.rb
68
- lib/ixtlan/models/update_children.rb
69
- lib/ixtlan/models/user.rb
70
- lib/ixtlan/models/word.rb
71
- lib/ixtlan/modified_by.rb
72
- lib/ixtlan/monkey_patches.rb
73
- lib/ixtlan/optimistic_persistence.rb
74
- lib/ixtlan/optimistic_persistence_module.rb
75
- lib/ixtlan/optimistic_persistence_validation.rb
76
- lib/ixtlan/passwords.rb
77
- lib/ixtlan/rails/audit.rb
78
- lib/ixtlan/rails/error_handling.rb
79
- lib/ixtlan/rails/guard.rb
80
- lib/ixtlan/rails/migrations.rb
81
- lib/ixtlan/rails/session_timeout.rb
82
- lib/ixtlan/rails/timestamps_modified_by_filter.rb
83
- lib/ixtlan/rails/unrestful_authentication.rb
84
- lib/ixtlan/rolling_file.rb
85
- lib/ixtlan/session.rb
86
- lib/ixtlan/user_logger.rb
87
- lib/ixtlan/version.rb
88
- lib/models.rb
89
- spec/authentication_spec.rb
90
- spec/guard_spec.rb
91
- spec/guards/samples.rb
92
- spec/modified_by_spec.rb
93
- spec/optimistic_persistence_spec.rb
94
- spec/phrase_spec.rb
95
- spec/session_timeout_spec.rb
96
- spec/spec.opts
97
- spec/spec_helper.rb
98
- spec/text_collection_spec.rb
99
- spec/text_spec.rb
100
- spec/unrestful_authentication_spec.rb
101
- spec/user_logger_spec.rb
102
- spec/user_spec.rb
103
- whitespace.rb
data/README.txt DELETED
@@ -1,86 +0,0 @@
1
- = ixtlan core
2
-
3
- * http://github.com/mkristian/ixtlan-core
4
-
5
- == DESCRIPTION:
6
-
7
- this is set of rails and datamapper plugins for setting up a little more advanced rails application then the default rails generator does. the focus is on security and privacy as well a complete restful xml support.
8
-
9
- === features
10
-
11
- * usermanagement: user, group, locale
12
-
13
- * authentication: session based authentication for both html as well restful xml
14
-
15
- * authorization: each controller/action pair has a set of allowed roles
16
-
17
- * privacy: configurable duration for logfiles carrying user specific data. error logs are dumped (complete environment including user specific data as well) and the file location is sent as notification
18
-
19
- * session idle timeout: configurable server side session idle timeout
20
-
21
- * audit: a simple log file which documents the action of a user - one action per line
22
-
23
- * optimistic transaction: through an exception on modification of stale resources
24
-
25
- * easy add modified_by attributes to a resource and ensure the user gets set before saving such a resource
26
-
27
- * logger configuration tries to unify logging
28
-
29
- * basic scaffold like html interface for user,group,locale
30
-
31
- * rails template setting up such an application - works for both ruby as well jruby
32
-
33
- * http cache headers so that no data gets save on any proxy or filesystem (as long the user is logged in)
34
-
35
- * global config: extra configuration file which can carry the all the production passwords and can be left out from the (public) version control system: config/preinitializer.rb for rails and config/global.yml
36
-
37
- === TODOs
38
-
39
- * session timeout on html pages so the browser displays the login page after timetout (little modification of the layout.html.erb)
40
-
41
- * user, group, locale to work also with ldap
42
-
43
- * html interface for configuration, user profile
44
-
45
- * setup database specific logger for data_objects - each driver has its own logger
46
-
47
- * maintanance mode: allow only users who belong to the superuser group
48
-
49
- * change the db config to have #{RAILS_ROOT} in front of relative filenames to work inside an servlet engine (ixtlan_rails_templates.rb)
50
-
51
- * locale binding to user/group
52
-
53
- == user management and authorization
54
-
55
- each user can belong to one or more groups, each user/group pair can belong to one or more locales. this part can be configured by an admin by changing resource relationships.
56
-
57
- === authorization
58
-
59
- each controller/action pair has a set of allowed roles. authorization is granted if on of roles match with one of the groups of the current user (logged in user). this is done by a before filter in rails: guard. the user interface can introspect the guard to allow the user only the actions which s/he actually can be performe. in case some actions needs to verify the locale binding a specialized before filter needs to be implemented.
60
-
61
- the roles are currently hardcoded in app/guards/XYZ_guard.rb - one guard for each controller.
62
-
63
- == LICENSE:
64
-
65
- (The MIT License)
66
-
67
- Copyright (c) 2009 Kristian Meier
68
-
69
- Permission is hereby granted, free of charge, to any person obtaining
70
- a copy of this software and associated documentation files (the
71
- 'Software'), to deal in the Software without restriction, including
72
- without limitation the rights to use, copy, modify, merge, publish,
73
- distribute, sublicense, and/or sell copies of the Software, and to
74
- permit persons to whom the Software is furnished to do so, subject to
75
- the following conditions:
76
-
77
- The above copyright notice and this permission notice shall be
78
- included in all copies or substantial portions of the Software.
79
-
80
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
81
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
82
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
83
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
84
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
85
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
86
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile DELETED
@@ -1,55 +0,0 @@
1
- # -*- ruby -*-
2
-
3
- require 'rubygems'
4
- require 'hoe'
5
- require './lib/ixtlan/version.rb'
6
-
7
- require 'spec'
8
- require 'spec/rake/spectask'
9
- require 'pathname'
10
- require 'yard'
11
-
12
- Hoe.spec('ixtlan') do |p|
13
- p.developer('mkristian', 'm.kristian@web.de')
14
- p.extra_deps = [['dm-core', '~>0.10.1'], ['dm-validations', '~>0.10.1'], ['dm-timestamps', '~>0.10.1'], ['dm-migrations', '~>0.10.1'], ['slf4r', '~>0.2.0'], ['datamapper4rails', '~>0.4.0'],['rack-datamapper', '~>0.2.5'], ['logging', '~>1.2.3']]
15
- p.rspec_options << '--options' << 'spec/spec.opts'
16
- end
17
-
18
- desc 'Install the package as a gem.'
19
- task :install => [:clean, :package] do
20
- gem = Dir['pkg/*.gem'].first
21
- sh "gem install --local #{gem} --no-ri --no-rdoc"
22
- end
23
-
24
- desc 'generate rails using all generators and run the specs'
25
- task :integration_tests => [:spec, :install] do
26
- require 'datamapper4rails/integration_test'
27
- tests = Datamapper4Rails::IntegrationTest.new do |t|
28
- t.directory = 'temp'
29
- ENV['GWT'] = "true"
30
- t.rails_template = 'ixtlan_rails_templates.rb'
31
- t.generate "ixtlan_datamapper_model name name:string"
32
- t.generate "ixtlan_datamapper_rspec_model domain name:string"
33
- t.generate "ixtlan_datamapper_rspec_scaffold player name:string"
34
- t.generate "gwt_ixtlan_datamapper_rspec_scaffold word name:string"
35
- end
36
- tests.command("mvn clean integration-test")
37
- end
38
-
39
- YARD::Rake::YardocTask.new
40
-
41
- module Datamapper4Rails
42
- class IntegrationTest
43
- def command(command)
44
- FileUtils.cd(@directory) do
45
- unless system("#{command}")
46
- puts
47
- puts "error in: #{command}"
48
- exit 1
49
- end
50
- end
51
- end
52
- end
53
- end
54
-
55
- # vim: syntax=Ruby