rails-services 0.1.5

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 (161) hide show
  1. data/.document +5 -0
  2. data/Gemfile +13 -0
  3. data/Gemfile.lock +20 -0
  4. data/LICENSE.txt +20 -0
  5. data/README.rdoc +63 -0
  6. data/Rakefile +53 -0
  7. data/VERSION +1 -0
  8. data/lib/rails-services.rb +92 -0
  9. data/rails-services.gemspec +278 -0
  10. data/test/helper.rb +18 -0
  11. data/test/rails_app_v2/README +243 -0
  12. data/test/rails_app_v2/Rakefile +10 -0
  13. data/test/rails_app_v2/app/controllers/application_controller.rb +10 -0
  14. data/test/rails_app_v2/app/controllers/authors_controller.rb +83 -0
  15. data/test/rails_app_v2/app/controllers/posts_controller.rb +83 -0
  16. data/test/rails_app_v2/app/helpers/application_helper.rb +3 -0
  17. data/test/rails_app_v2/app/helpers/authors_helper.rb +2 -0
  18. data/test/rails_app_v2/app/helpers/posts_helper.rb +2 -0
  19. data/test/rails_app_v2/app/models/author.rb +3 -0
  20. data/test/rails_app_v2/app/models/post.rb +3 -0
  21. data/test/rails_app_v2/app/views/authors/edit.html.erb +16 -0
  22. data/test/rails_app_v2/app/views/authors/index.html.erb +20 -0
  23. data/test/rails_app_v2/app/views/authors/new.html.erb +15 -0
  24. data/test/rails_app_v2/app/views/authors/show.html.erb +8 -0
  25. data/test/rails_app_v2/app/views/layouts/authors.html.erb +17 -0
  26. data/test/rails_app_v2/app/views/layouts/posts.html.erb +17 -0
  27. data/test/rails_app_v2/app/views/posts/edit.html.erb +20 -0
  28. data/test/rails_app_v2/app/views/posts/index.html.erb +22 -0
  29. data/test/rails_app_v2/app/views/posts/new.html.erb +19 -0
  30. data/test/rails_app_v2/app/views/posts/show.html.erb +13 -0
  31. data/test/rails_app_v2/config/boot.rb +110 -0
  32. data/test/rails_app_v2/config/database.yml +22 -0
  33. data/test/rails_app_v2/config/environment.rb +52 -0
  34. data/test/rails_app_v2/config/environments/development.rb +17 -0
  35. data/test/rails_app_v2/config/environments/production.rb +28 -0
  36. data/test/rails_app_v2/config/environments/test.rb +28 -0
  37. data/test/rails_app_v2/config/initializers/backtrace_silencers.rb +7 -0
  38. data/test/rails_app_v2/config/initializers/cookie_verification_secret.rb +7 -0
  39. data/test/rails_app_v2/config/initializers/inflections.rb +10 -0
  40. data/test/rails_app_v2/config/initializers/jdbc.rb +7 -0
  41. data/test/rails_app_v2/config/initializers/mime_types.rb +5 -0
  42. data/test/rails_app_v2/config/initializers/new_rails_defaults.rb +21 -0
  43. data/test/rails_app_v2/config/initializers/session_store.rb +15 -0
  44. data/test/rails_app_v2/config/locales/en.yml +5 -0
  45. data/test/rails_app_v2/config/routes.rb +52 -0
  46. data/test/rails_app_v2/db/development.sqlite3 +0 -0
  47. data/test/rails_app_v2/db/migrate/20110128215001_create_authors.rb +13 -0
  48. data/test/rails_app_v2/db/migrate/20110128215003_create_posts.rb +14 -0
  49. data/test/rails_app_v2/db/schema.rb +27 -0
  50. data/test/rails_app_v2/db/seeds.rb +7 -0
  51. data/test/rails_app_v2/lib/tasks/jdbc.rake +8 -0
  52. data/test/rails_app_v2/log/development.log +64 -0
  53. data/test/rails_app_v2/log/production.log +0 -0
  54. data/test/rails_app_v2/log/server.log +0 -0
  55. data/test/rails_app_v2/log/test.log +0 -0
  56. data/test/rails_app_v2/public/404.html +30 -0
  57. data/test/rails_app_v2/public/422.html +30 -0
  58. data/test/rails_app_v2/public/500.html +30 -0
  59. data/test/rails_app_v2/public/favicon.ico +0 -0
  60. data/test/rails_app_v2/public/images/rails.png +0 -0
  61. data/test/rails_app_v2/public/index.html +275 -0
  62. data/test/rails_app_v2/public/javascripts/application.js +2 -0
  63. data/test/rails_app_v2/public/javascripts/controls.js +963 -0
  64. data/test/rails_app_v2/public/javascripts/dragdrop.js +973 -0
  65. data/test/rails_app_v2/public/javascripts/effects.js +1128 -0
  66. data/test/rails_app_v2/public/javascripts/prototype.js +4320 -0
  67. data/test/rails_app_v2/public/robots.txt +5 -0
  68. data/test/rails_app_v2/public/stylesheets/scaffold.css +54 -0
  69. data/test/rails_app_v2/script/about +4 -0
  70. data/test/rails_app_v2/script/console +3 -0
  71. data/test/rails_app_v2/script/dbconsole +3 -0
  72. data/test/rails_app_v2/script/destroy +3 -0
  73. data/test/rails_app_v2/script/generate +3 -0
  74. data/test/rails_app_v2/script/performance/benchmarker +3 -0
  75. data/test/rails_app_v2/script/performance/profiler +3 -0
  76. data/test/rails_app_v2/script/plugin +3 -0
  77. data/test/rails_app_v2/script/runner +3 -0
  78. data/test/rails_app_v2/script/server +3 -0
  79. data/test/rails_app_v2/test/fixtures/authors.yml +7 -0
  80. data/test/rails_app_v2/test/fixtures/posts.yml +9 -0
  81. data/test/rails_app_v2/test/functional/authors_controller_test.rb +45 -0
  82. data/test/rails_app_v2/test/functional/posts_controller_test.rb +45 -0
  83. data/test/rails_app_v2/test/performance/browsing_test.rb +9 -0
  84. data/test/rails_app_v2/test/test_helper.rb +38 -0
  85. data/test/rails_app_v2/test/unit/author_test.rb +8 -0
  86. data/test/rails_app_v2/test/unit/helpers/authors_helper_test.rb +4 -0
  87. data/test/rails_app_v2/test/unit/helpers/posts_helper_test.rb +4 -0
  88. data/test/rails_app_v2/test/unit/post_test.rb +8 -0
  89. data/test/rails_app_v3/.gitignore +4 -0
  90. data/test/rails_app_v3/Gemfile +40 -0
  91. data/test/rails_app_v3/Gemfile.lock +77 -0
  92. data/test/rails_app_v3/README +256 -0
  93. data/test/rails_app_v3/Rakefile +7 -0
  94. data/test/rails_app_v3/app/controllers/application_controller.rb +3 -0
  95. data/test/rails_app_v3/app/controllers/authors_controller.rb +83 -0
  96. data/test/rails_app_v3/app/controllers/posts_controller.rb +83 -0
  97. data/test/rails_app_v3/app/helpers/application_helper.rb +2 -0
  98. data/test/rails_app_v3/app/helpers/authors_helper.rb +2 -0
  99. data/test/rails_app_v3/app/helpers/posts_helper.rb +2 -0
  100. data/test/rails_app_v3/app/models/author.rb +3 -0
  101. data/test/rails_app_v3/app/models/post.rb +3 -0
  102. data/test/rails_app_v3/app/views/authors/_form.html.erb +21 -0
  103. data/test/rails_app_v3/app/views/authors/edit.html.erb +6 -0
  104. data/test/rails_app_v3/app/views/authors/index.html.erb +23 -0
  105. data/test/rails_app_v3/app/views/authors/new.html.erb +5 -0
  106. data/test/rails_app_v3/app/views/authors/show.html.erb +10 -0
  107. data/test/rails_app_v3/app/views/layouts/application.html.erb +14 -0
  108. data/test/rails_app_v3/app/views/posts/_form.html.erb +25 -0
  109. data/test/rails_app_v3/app/views/posts/edit.html.erb +6 -0
  110. data/test/rails_app_v3/app/views/posts/index.html.erb +25 -0
  111. data/test/rails_app_v3/app/views/posts/new.html.erb +5 -0
  112. data/test/rails_app_v3/app/views/posts/show.html.erb +15 -0
  113. data/test/rails_app_v3/config.ru +4 -0
  114. data/test/rails_app_v3/config/application.rb +42 -0
  115. data/test/rails_app_v3/config/boot.rb +13 -0
  116. data/test/rails_app_v3/config/database.yml +22 -0
  117. data/test/rails_app_v3/config/environment.rb +5 -0
  118. data/test/rails_app_v3/config/environments/development.rb +26 -0
  119. data/test/rails_app_v3/config/environments/production.rb +49 -0
  120. data/test/rails_app_v3/config/environments/test.rb +35 -0
  121. data/test/rails_app_v3/config/initializers/backtrace_silencers.rb +7 -0
  122. data/test/rails_app_v3/config/initializers/inflections.rb +10 -0
  123. data/test/rails_app_v3/config/initializers/mime_types.rb +5 -0
  124. data/test/rails_app_v3/config/initializers/secret_token.rb +7 -0
  125. data/test/rails_app_v3/config/initializers/session_store.rb +8 -0
  126. data/test/rails_app_v3/config/locales/en.yml +5 -0
  127. data/test/rails_app_v3/config/routes.rb +67 -0
  128. data/test/rails_app_v3/db/migrate/20110128215656_create_posts.rb +14 -0
  129. data/test/rails_app_v3/db/migrate/20110128215713_create_authors.rb +13 -0
  130. data/test/rails_app_v3/db/schema.rb +28 -0
  131. data/test/rails_app_v3/db/seeds.rb +7 -0
  132. data/test/rails_app_v3/lib/tasks/.gitkeep +0 -0
  133. data/test/rails_app_v3/public/404.html +26 -0
  134. data/test/rails_app_v3/public/422.html +26 -0
  135. data/test/rails_app_v3/public/500.html +26 -0
  136. data/test/rails_app_v3/public/favicon.ico +0 -0
  137. data/test/rails_app_v3/public/images/rails.png +0 -0
  138. data/test/rails_app_v3/public/index.html +239 -0
  139. data/test/rails_app_v3/public/javascripts/application.js +2 -0
  140. data/test/rails_app_v3/public/javascripts/controls.js +965 -0
  141. data/test/rails_app_v3/public/javascripts/dragdrop.js +974 -0
  142. data/test/rails_app_v3/public/javascripts/effects.js +1123 -0
  143. data/test/rails_app_v3/public/javascripts/prototype.js +6001 -0
  144. data/test/rails_app_v3/public/javascripts/rails.js +175 -0
  145. data/test/rails_app_v3/public/robots.txt +5 -0
  146. data/test/rails_app_v3/public/stylesheets/.gitkeep +0 -0
  147. data/test/rails_app_v3/public/stylesheets/scaffold.css +56 -0
  148. data/test/rails_app_v3/script/rails +6 -0
  149. data/test/rails_app_v3/test/fixtures/authors.yml +7 -0
  150. data/test/rails_app_v3/test/fixtures/posts.yml +9 -0
  151. data/test/rails_app_v3/test/functional/authors_controller_test.rb +49 -0
  152. data/test/rails_app_v3/test/functional/posts_controller_test.rb +49 -0
  153. data/test/rails_app_v3/test/performance/browsing_test.rb +9 -0
  154. data/test/rails_app_v3/test/test_helper.rb +13 -0
  155. data/test/rails_app_v3/test/unit/author_test.rb +8 -0
  156. data/test/rails_app_v3/test/unit/helpers/authors_helper_test.rb +4 -0
  157. data/test/rails_app_v3/test/unit/helpers/posts_helper_test.rb +4 -0
  158. data/test/rails_app_v3/test/unit/post_test.rb +8 -0
  159. data/test/rails_app_v3/vendor/plugins/.gitkeep +0 -0
  160. data/test/test_rails-services.rb +7 -0
  161. metadata +346 -0
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "shoulda", ">= 0"
10
+ gem "bundler", "~> 1.0.0"
11
+ gem "jeweler", "~> 1.5.2"
12
+ gem "rcov", ">= 0"
13
+ end
@@ -0,0 +1,20 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ git (1.2.5)
5
+ jeweler (1.5.2)
6
+ bundler (~> 1.0.0)
7
+ git (>= 1.2.5)
8
+ rake
9
+ rake (0.8.7)
10
+ rcov (0.9.9)
11
+ shoulda (2.11.3)
12
+
13
+ PLATFORMS
14
+ ruby
15
+
16
+ DEPENDENCIES
17
+ bundler (~> 1.0.0)
18
+ jeweler (~> 1.5.2)
19
+ rcov
20
+ shoulda
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Bernardo Silva
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,63 @@
1
+ = rails-services
2
+
3
+ Services Description for Rails 3.0.3+ or 2.3.8+.
4
+
5
+ == Installing and Testing in Rails 3.0.3+
6
+
7
+ === First, add the 'rails-services' gem to your Gemfile:
8
+
9
+ Gemfile:
10
+ # RailsServices
11
+ gem 'rails-services'
12
+
13
+ === Second, add the routes for your services info and your models info:
14
+
15
+ config/routes.rb:
16
+ # RailsServices (Rails 3)
17
+ match '/info(.:format)' => 'rails_services#info_services'
18
+ match '/info/:resource(.:format)' => 'rails_services#info_resource'
19
+
20
+ === Then, you can see the JSON results at the routes:
21
+
22
+ Services list: http://<server>:<port>/info.json
23
+ Model detail: http://<server>:<port>/info/<model>.json
24
+
25
+ == Installing and Testing in Rails 2.3.8+
26
+
27
+ === First, install the 'rails-services' gem:
28
+
29
+ gem install rails-services
30
+
31
+ === Second, add the 'rails-services' gem to you environment.rb:
32
+
33
+ config/environment.rb:
34
+ # RailsServices
35
+ config.gem "rails-services"
36
+
37
+ === Third, add the routes for your services info and your models info:
38
+
39
+ config/routes.rb:
40
+ # RailsServices (Rails 2)
41
+ map.connect 'info.:format', :controller => "rails_services", :action => "info_services"
42
+ map.connect 'info/:resource.:format', :controller => "rails_services", :action => "info_resource"
43
+
44
+ === Then, you can see the JSON results at the routes:
45
+
46
+ Services list: http://<server>:<port>/info.json
47
+ Model detail: http://<server>:<port>/info/<model>.json
48
+
49
+ == Contributing to rails-services
50
+
51
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
52
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
53
+ * Fork the project
54
+ * Start a feature/bugfix branch
55
+ * Commit and push until you are happy with your contribution
56
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
57
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
58
+
59
+ == Copyright
60
+
61
+ Copyright (c) 2011 Bernardo Silva. See LICENSE.txt for
62
+ further details.
63
+
@@ -0,0 +1,53 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'rake'
11
+
12
+ require 'jeweler'
13
+ Jeweler::Tasks.new do |gem|
14
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
+ gem.name = "rails-services"
16
+ gem.homepage = "http://github.com/bsas/rails-services"
17
+ gem.license = "MIT"
18
+ gem.summary = %Q{Services Description for Rails 3.0.3+ or 2.3.8+}
19
+ gem.description = %Q{Services Description for Rails 3.0.3+ or 2.3.8+}
20
+ gem.email = "bernardo.silva@gmail.com"
21
+ gem.authors = ["Bernardo Silva"]
22
+ # Include your dependencies below. Runtime dependencies are required when using your gem,
23
+ # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
24
+ # gem.add_runtime_dependency 'actionpack', '>= 3.0.3'
25
+ # gem.add_development_dependency 'actionpack', '>= 3.0.3'
26
+ end
27
+ Jeweler::RubygemsDotOrgTasks.new
28
+
29
+ require 'rake/testtask'
30
+ Rake::TestTask.new(:test) do |test|
31
+ test.libs << 'lib' << 'test'
32
+ test.pattern = 'test/**/test_*.rb'
33
+ test.verbose = true
34
+ end
35
+
36
+ require 'rcov/rcovtask'
37
+ Rcov::RcovTask.new do |test|
38
+ test.libs << 'test'
39
+ test.pattern = 'test/**/test_*.rb'
40
+ test.verbose = true
41
+ end
42
+
43
+ task :default => :test
44
+
45
+ require 'rake/rdoctask'
46
+ Rake::RDocTask.new do |rdoc|
47
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
+
49
+ rdoc.rdoc_dir = 'rdoc'
50
+ rdoc.title = "rails-services #{version}"
51
+ rdoc.rdoc_files.include('README*')
52
+ rdoc.rdoc_files.include('lib/**/*.rb')
53
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.5
@@ -0,0 +1,92 @@
1
+ class RailsServicesController < ActionController::Base
2
+
3
+ # Rails 3 routes
4
+ # match '/info(.:format)' => 'rails_services#info_services'
5
+ # match '/info/:resource(.:format)' => 'rails_services#info_resource'
6
+
7
+ # Rails 2 routes
8
+ # map.connect 'info.:format', :controller => "rails_services", :action => "info_services"
9
+ # map.connect 'info/:resource.:format', :controller => "rails_services", :action => "info_resource"
10
+
11
+ def info_resource
12
+ respond_to do |format|
13
+ #format.xml { render :xml => xml??? }
14
+ format.json { render :json => describe_resource(params[:resource]) }
15
+ end
16
+ end
17
+
18
+ def info_services
19
+ respond_to do |format|
20
+ #format.xml { render :xml => xml??? }
21
+ format.json { render :json => describe_services }
22
+ end
23
+ end
24
+
25
+ private
26
+ SINGLE_ENUM = [:belongs_to, :has_one].to_enum
27
+ IS_RAILS_3 = Rails::VERSION::MAJOR > 2
28
+
29
+ def describe_resource(resource_name)
30
+ map = {}
31
+
32
+ base = get_model(resource_name)
33
+ if base
34
+ base.columns.each do |column|
35
+ map[column.name] = {:type => column.type}
36
+ end
37
+
38
+ base.reflect_on_all_associations.each do |reflection|
39
+ map[reflection.name] = {:type => get_type(reflection.class_name)}
40
+ map[reflection.name][:collection] = true unless SINGLE_ENUM.include? reflection.macro
41
+ map.delete(reflection.association_foreign_key)
42
+ end
43
+ else
44
+ map = {:error => true}
45
+ end
46
+
47
+ # returns the resource graph
48
+ {resource_name => map}
49
+ end
50
+
51
+ def describe_services
52
+ list = []
53
+
54
+ routes = IS_RAILS_3 ? Rails.application.routes.routes.each : ActionController::Routing::Routes.routes
55
+ routes.each do |route|
56
+ verb = ((IS_RAILS_3 ? route.verb : route.conditions[:method]) || :any).to_s.upcase
57
+ path = IS_RAILS_3 ? route.path : route.segments.to_s.gsub(/\?$/, '')
58
+
59
+ requirements = route.requirements
60
+ index = requirements[:action] == 'index'
61
+ @type = get_type(requirements[:controller])
62
+
63
+ map = {
64
+ :name => index ? requirements[:controller] : @type ?
65
+ "#{requirements[:action]}_#{@type}" :
66
+ "#{requirements[:action]}_#{requirements[:controller]}",
67
+ :verb => verb,
68
+ :path => path
69
+ }
70
+ map[:type] = @type if @type
71
+ map[:collection] = true if index
72
+
73
+ list << map unless verb.nil? or verb == 'ANY'
74
+ end
75
+
76
+ # returns the services graph
77
+ list
78
+ end
79
+
80
+ def get_model(model_name)
81
+ ActiveRecord.const_get(model_name.classify)
82
+ rescue
83
+ nil
84
+ end
85
+
86
+ def get_type(model_name)
87
+ get_model(model_name).model_name.element
88
+ rescue
89
+ nil
90
+ end
91
+
92
+ end
@@ -0,0 +1,278 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{rails-services}
8
+ s.version = "0.1.5"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Bernardo Silva"]
12
+ s.date = %q{2011-01-28}
13
+ s.description = %q{Services Description for Rails 3.0.3+ or 2.3.8+}
14
+ s.email = %q{bernardo.silva@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "lib/rails-services.rb",
28
+ "rails-services.gemspec",
29
+ "test/helper.rb",
30
+ "test/rails_app_v2/README",
31
+ "test/rails_app_v2/Rakefile",
32
+ "test/rails_app_v2/app/controllers/application_controller.rb",
33
+ "test/rails_app_v2/app/controllers/authors_controller.rb",
34
+ "test/rails_app_v2/app/controllers/posts_controller.rb",
35
+ "test/rails_app_v2/app/helpers/application_helper.rb",
36
+ "test/rails_app_v2/app/helpers/authors_helper.rb",
37
+ "test/rails_app_v2/app/helpers/posts_helper.rb",
38
+ "test/rails_app_v2/app/models/author.rb",
39
+ "test/rails_app_v2/app/models/post.rb",
40
+ "test/rails_app_v2/app/views/authors/edit.html.erb",
41
+ "test/rails_app_v2/app/views/authors/index.html.erb",
42
+ "test/rails_app_v2/app/views/authors/new.html.erb",
43
+ "test/rails_app_v2/app/views/authors/show.html.erb",
44
+ "test/rails_app_v2/app/views/layouts/authors.html.erb",
45
+ "test/rails_app_v2/app/views/layouts/posts.html.erb",
46
+ "test/rails_app_v2/app/views/posts/edit.html.erb",
47
+ "test/rails_app_v2/app/views/posts/index.html.erb",
48
+ "test/rails_app_v2/app/views/posts/new.html.erb",
49
+ "test/rails_app_v2/app/views/posts/show.html.erb",
50
+ "test/rails_app_v2/config/boot.rb",
51
+ "test/rails_app_v2/config/database.yml",
52
+ "test/rails_app_v2/config/environment.rb",
53
+ "test/rails_app_v2/config/environments/development.rb",
54
+ "test/rails_app_v2/config/environments/production.rb",
55
+ "test/rails_app_v2/config/environments/test.rb",
56
+ "test/rails_app_v2/config/initializers/backtrace_silencers.rb",
57
+ "test/rails_app_v2/config/initializers/cookie_verification_secret.rb",
58
+ "test/rails_app_v2/config/initializers/inflections.rb",
59
+ "test/rails_app_v2/config/initializers/jdbc.rb",
60
+ "test/rails_app_v2/config/initializers/mime_types.rb",
61
+ "test/rails_app_v2/config/initializers/new_rails_defaults.rb",
62
+ "test/rails_app_v2/config/initializers/session_store.rb",
63
+ "test/rails_app_v2/config/locales/en.yml",
64
+ "test/rails_app_v2/config/routes.rb",
65
+ "test/rails_app_v2/db/development.sqlite3",
66
+ "test/rails_app_v2/db/migrate/20110128215001_create_authors.rb",
67
+ "test/rails_app_v2/db/migrate/20110128215003_create_posts.rb",
68
+ "test/rails_app_v2/db/schema.rb",
69
+ "test/rails_app_v2/db/seeds.rb",
70
+ "test/rails_app_v2/lib/tasks/jdbc.rake",
71
+ "test/rails_app_v2/log/development.log",
72
+ "test/rails_app_v2/log/production.log",
73
+ "test/rails_app_v2/log/server.log",
74
+ "test/rails_app_v2/log/test.log",
75
+ "test/rails_app_v2/public/404.html",
76
+ "test/rails_app_v2/public/422.html",
77
+ "test/rails_app_v2/public/500.html",
78
+ "test/rails_app_v2/public/favicon.ico",
79
+ "test/rails_app_v2/public/images/rails.png",
80
+ "test/rails_app_v2/public/index.html",
81
+ "test/rails_app_v2/public/javascripts/application.js",
82
+ "test/rails_app_v2/public/javascripts/controls.js",
83
+ "test/rails_app_v2/public/javascripts/dragdrop.js",
84
+ "test/rails_app_v2/public/javascripts/effects.js",
85
+ "test/rails_app_v2/public/javascripts/prototype.js",
86
+ "test/rails_app_v2/public/robots.txt",
87
+ "test/rails_app_v2/public/stylesheets/scaffold.css",
88
+ "test/rails_app_v2/script/about",
89
+ "test/rails_app_v2/script/console",
90
+ "test/rails_app_v2/script/dbconsole",
91
+ "test/rails_app_v2/script/destroy",
92
+ "test/rails_app_v2/script/generate",
93
+ "test/rails_app_v2/script/performance/benchmarker",
94
+ "test/rails_app_v2/script/performance/profiler",
95
+ "test/rails_app_v2/script/plugin",
96
+ "test/rails_app_v2/script/runner",
97
+ "test/rails_app_v2/script/server",
98
+ "test/rails_app_v2/test/fixtures/authors.yml",
99
+ "test/rails_app_v2/test/fixtures/posts.yml",
100
+ "test/rails_app_v2/test/functional/authors_controller_test.rb",
101
+ "test/rails_app_v2/test/functional/posts_controller_test.rb",
102
+ "test/rails_app_v2/test/performance/browsing_test.rb",
103
+ "test/rails_app_v2/test/test_helper.rb",
104
+ "test/rails_app_v2/test/unit/author_test.rb",
105
+ "test/rails_app_v2/test/unit/helpers/authors_helper_test.rb",
106
+ "test/rails_app_v2/test/unit/helpers/posts_helper_test.rb",
107
+ "test/rails_app_v2/test/unit/post_test.rb",
108
+ "test/rails_app_v3/.gitignore",
109
+ "test/rails_app_v3/Gemfile",
110
+ "test/rails_app_v3/Gemfile.lock",
111
+ "test/rails_app_v3/README",
112
+ "test/rails_app_v3/Rakefile",
113
+ "test/rails_app_v3/app/controllers/application_controller.rb",
114
+ "test/rails_app_v3/app/controllers/authors_controller.rb",
115
+ "test/rails_app_v3/app/controllers/posts_controller.rb",
116
+ "test/rails_app_v3/app/helpers/application_helper.rb",
117
+ "test/rails_app_v3/app/helpers/authors_helper.rb",
118
+ "test/rails_app_v3/app/helpers/posts_helper.rb",
119
+ "test/rails_app_v3/app/models/author.rb",
120
+ "test/rails_app_v3/app/models/post.rb",
121
+ "test/rails_app_v3/app/views/authors/_form.html.erb",
122
+ "test/rails_app_v3/app/views/authors/edit.html.erb",
123
+ "test/rails_app_v3/app/views/authors/index.html.erb",
124
+ "test/rails_app_v3/app/views/authors/new.html.erb",
125
+ "test/rails_app_v3/app/views/authors/show.html.erb",
126
+ "test/rails_app_v3/app/views/layouts/application.html.erb",
127
+ "test/rails_app_v3/app/views/posts/_form.html.erb",
128
+ "test/rails_app_v3/app/views/posts/edit.html.erb",
129
+ "test/rails_app_v3/app/views/posts/index.html.erb",
130
+ "test/rails_app_v3/app/views/posts/new.html.erb",
131
+ "test/rails_app_v3/app/views/posts/show.html.erb",
132
+ "test/rails_app_v3/config.ru",
133
+ "test/rails_app_v3/config/application.rb",
134
+ "test/rails_app_v3/config/boot.rb",
135
+ "test/rails_app_v3/config/database.yml",
136
+ "test/rails_app_v3/config/environment.rb",
137
+ "test/rails_app_v3/config/environments/development.rb",
138
+ "test/rails_app_v3/config/environments/production.rb",
139
+ "test/rails_app_v3/config/environments/test.rb",
140
+ "test/rails_app_v3/config/initializers/backtrace_silencers.rb",
141
+ "test/rails_app_v3/config/initializers/inflections.rb",
142
+ "test/rails_app_v3/config/initializers/mime_types.rb",
143
+ "test/rails_app_v3/config/initializers/secret_token.rb",
144
+ "test/rails_app_v3/config/initializers/session_store.rb",
145
+ "test/rails_app_v3/config/locales/en.yml",
146
+ "test/rails_app_v3/config/routes.rb",
147
+ "test/rails_app_v3/db/migrate/20110128215656_create_posts.rb",
148
+ "test/rails_app_v3/db/migrate/20110128215713_create_authors.rb",
149
+ "test/rails_app_v3/db/schema.rb",
150
+ "test/rails_app_v3/db/seeds.rb",
151
+ "test/rails_app_v3/lib/tasks/.gitkeep",
152
+ "test/rails_app_v3/public/404.html",
153
+ "test/rails_app_v3/public/422.html",
154
+ "test/rails_app_v3/public/500.html",
155
+ "test/rails_app_v3/public/favicon.ico",
156
+ "test/rails_app_v3/public/images/rails.png",
157
+ "test/rails_app_v3/public/index.html",
158
+ "test/rails_app_v3/public/javascripts/application.js",
159
+ "test/rails_app_v3/public/javascripts/controls.js",
160
+ "test/rails_app_v3/public/javascripts/dragdrop.js",
161
+ "test/rails_app_v3/public/javascripts/effects.js",
162
+ "test/rails_app_v3/public/javascripts/prototype.js",
163
+ "test/rails_app_v3/public/javascripts/rails.js",
164
+ "test/rails_app_v3/public/robots.txt",
165
+ "test/rails_app_v3/public/stylesheets/.gitkeep",
166
+ "test/rails_app_v3/public/stylesheets/scaffold.css",
167
+ "test/rails_app_v3/script/rails",
168
+ "test/rails_app_v3/test/fixtures/authors.yml",
169
+ "test/rails_app_v3/test/fixtures/posts.yml",
170
+ "test/rails_app_v3/test/functional/authors_controller_test.rb",
171
+ "test/rails_app_v3/test/functional/posts_controller_test.rb",
172
+ "test/rails_app_v3/test/performance/browsing_test.rb",
173
+ "test/rails_app_v3/test/test_helper.rb",
174
+ "test/rails_app_v3/test/unit/author_test.rb",
175
+ "test/rails_app_v3/test/unit/helpers/authors_helper_test.rb",
176
+ "test/rails_app_v3/test/unit/helpers/posts_helper_test.rb",
177
+ "test/rails_app_v3/test/unit/post_test.rb",
178
+ "test/rails_app_v3/vendor/plugins/.gitkeep",
179
+ "test/test_rails-services.rb"
180
+ ]
181
+ s.homepage = %q{http://github.com/bsas/rails-services}
182
+ s.licenses = ["MIT"]
183
+ s.require_paths = ["lib"]
184
+ s.rubygems_version = %q{1.3.7}
185
+ s.summary = %q{Services Description for Rails 3.0.3+ or 2.3.8+}
186
+ s.test_files = [
187
+ "test/helper.rb",
188
+ "test/rails_app_v2/app/controllers/application_controller.rb",
189
+ "test/rails_app_v2/app/controllers/authors_controller.rb",
190
+ "test/rails_app_v2/app/controllers/posts_controller.rb",
191
+ "test/rails_app_v2/app/helpers/application_helper.rb",
192
+ "test/rails_app_v2/app/helpers/authors_helper.rb",
193
+ "test/rails_app_v2/app/helpers/posts_helper.rb",
194
+ "test/rails_app_v2/app/models/author.rb",
195
+ "test/rails_app_v2/app/models/post.rb",
196
+ "test/rails_app_v2/config/boot.rb",
197
+ "test/rails_app_v2/config/environment.rb",
198
+ "test/rails_app_v2/config/environments/development.rb",
199
+ "test/rails_app_v2/config/environments/production.rb",
200
+ "test/rails_app_v2/config/environments/test.rb",
201
+ "test/rails_app_v2/config/initializers/backtrace_silencers.rb",
202
+ "test/rails_app_v2/config/initializers/cookie_verification_secret.rb",
203
+ "test/rails_app_v2/config/initializers/inflections.rb",
204
+ "test/rails_app_v2/config/initializers/jdbc.rb",
205
+ "test/rails_app_v2/config/initializers/mime_types.rb",
206
+ "test/rails_app_v2/config/initializers/new_rails_defaults.rb",
207
+ "test/rails_app_v2/config/initializers/session_store.rb",
208
+ "test/rails_app_v2/config/routes.rb",
209
+ "test/rails_app_v2/db/migrate/20110128215001_create_authors.rb",
210
+ "test/rails_app_v2/db/migrate/20110128215003_create_posts.rb",
211
+ "test/rails_app_v2/db/schema.rb",
212
+ "test/rails_app_v2/db/seeds.rb",
213
+ "test/rails_app_v2/test/functional/authors_controller_test.rb",
214
+ "test/rails_app_v2/test/functional/posts_controller_test.rb",
215
+ "test/rails_app_v2/test/performance/browsing_test.rb",
216
+ "test/rails_app_v2/test/test_helper.rb",
217
+ "test/rails_app_v2/test/unit/author_test.rb",
218
+ "test/rails_app_v2/test/unit/helpers/authors_helper_test.rb",
219
+ "test/rails_app_v2/test/unit/helpers/posts_helper_test.rb",
220
+ "test/rails_app_v2/test/unit/post_test.rb",
221
+ "test/rails_app_v3/app/controllers/application_controller.rb",
222
+ "test/rails_app_v3/app/controllers/authors_controller.rb",
223
+ "test/rails_app_v3/app/controllers/posts_controller.rb",
224
+ "test/rails_app_v3/app/helpers/application_helper.rb",
225
+ "test/rails_app_v3/app/helpers/authors_helper.rb",
226
+ "test/rails_app_v3/app/helpers/posts_helper.rb",
227
+ "test/rails_app_v3/app/models/author.rb",
228
+ "test/rails_app_v3/app/models/post.rb",
229
+ "test/rails_app_v3/config/application.rb",
230
+ "test/rails_app_v3/config/boot.rb",
231
+ "test/rails_app_v3/config/environment.rb",
232
+ "test/rails_app_v3/config/environments/development.rb",
233
+ "test/rails_app_v3/config/environments/production.rb",
234
+ "test/rails_app_v3/config/environments/test.rb",
235
+ "test/rails_app_v3/config/initializers/backtrace_silencers.rb",
236
+ "test/rails_app_v3/config/initializers/inflections.rb",
237
+ "test/rails_app_v3/config/initializers/mime_types.rb",
238
+ "test/rails_app_v3/config/initializers/secret_token.rb",
239
+ "test/rails_app_v3/config/initializers/session_store.rb",
240
+ "test/rails_app_v3/config/routes.rb",
241
+ "test/rails_app_v3/db/migrate/20110128215656_create_posts.rb",
242
+ "test/rails_app_v3/db/migrate/20110128215713_create_authors.rb",
243
+ "test/rails_app_v3/db/schema.rb",
244
+ "test/rails_app_v3/db/seeds.rb",
245
+ "test/rails_app_v3/test/functional/authors_controller_test.rb",
246
+ "test/rails_app_v3/test/functional/posts_controller_test.rb",
247
+ "test/rails_app_v3/test/performance/browsing_test.rb",
248
+ "test/rails_app_v3/test/test_helper.rb",
249
+ "test/rails_app_v3/test/unit/author_test.rb",
250
+ "test/rails_app_v3/test/unit/helpers/authors_helper_test.rb",
251
+ "test/rails_app_v3/test/unit/helpers/posts_helper_test.rb",
252
+ "test/rails_app_v3/test/unit/post_test.rb",
253
+ "test/test_rails-services.rb"
254
+ ]
255
+
256
+ if s.respond_to? :specification_version then
257
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
258
+ s.specification_version = 3
259
+
260
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
261
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
262
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
263
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
264
+ s.add_development_dependency(%q<rcov>, [">= 0"])
265
+ else
266
+ s.add_dependency(%q<shoulda>, [">= 0"])
267
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
268
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
269
+ s.add_dependency(%q<rcov>, [">= 0"])
270
+ end
271
+ else
272
+ s.add_dependency(%q<shoulda>, [">= 0"])
273
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
274
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
275
+ s.add_dependency(%q<rcov>, [">= 0"])
276
+ end
277
+ end
278
+