ak2196-forem 0.0.1

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 (109) hide show
  1. data/.gitignore +6 -0
  2. data/Gemfile +17 -0
  3. data/Gemfile.lock +135 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.rdoc +3 -0
  6. data/Rakefile +34 -0
  7. data/ak2196-forem.gemspec +27 -0
  8. data/app/assets/images/forem/.gitkeep +0 -0
  9. data/app/assets/javascripts/forem/application.js +9 -0
  10. data/app/assets/javascripts/forem/posts.js +2 -0
  11. data/app/assets/javascripts/forem/topics.js +2 -0
  12. data/app/assets/stylesheets/forem/application.css +7 -0
  13. data/app/assets/stylesheets/forem/posts.css +4 -0
  14. data/app/assets/stylesheets/forem/topics.css +4 -0
  15. data/app/controllers/forem/application_controller.rb +11 -0
  16. data/app/controllers/forem/posts_controller.rb +22 -0
  17. data/app/controllers/forem/topics_controller.rb +23 -0
  18. data/app/helpers/forem/application_helper.rb +4 -0
  19. data/app/helpers/forem/posts_helper.rb +4 -0
  20. data/app/helpers/forem/topics_helper.rb +4 -0
  21. data/app/models/forem/post.rb +6 -0
  22. data/app/models/forem/topic.rb +14 -0
  23. data/app/views/forem/posts/_form.html.erb +4 -0
  24. data/app/views/forem/posts/_post.html.erb +6 -0
  25. data/app/views/forem/posts/new.html.erb +5 -0
  26. data/app/views/forem/topics/_form.html.erb +11 -0
  27. data/app/views/forem/topics/index.html.erb +26 -0
  28. data/app/views/forem/topics/new.html.erb +2 -0
  29. data/app/views/forem/topics/show.html.erb +6 -0
  30. data/bin/autospec +16 -0
  31. data/bin/erubis +16 -0
  32. data/bin/htmldiff +16 -0
  33. data/bin/ldiff +16 -0
  34. data/bin/nokogiri +16 -0
  35. data/bin/rackup +16 -0
  36. data/bin/rails +16 -0
  37. data/bin/rake +16 -0
  38. data/bin/rake2thor +16 -0
  39. data/bin/rdoc +16 -0
  40. data/bin/ri +16 -0
  41. data/bin/rspec +16 -0
  42. data/bin/thor +16 -0
  43. data/bin/tilt +16 -0
  44. data/bin/tt +16 -0
  45. data/config/routes.rb +6 -0
  46. data/db/migrate/20111124070524_create_forem_topics.rb +10 -0
  47. data/db/migrate/20111124195355_create_forem_posts.rb +11 -0
  48. data/db/migrate/20111124230339_add_posts_count_to_forem_topics.rb +5 -0
  49. data/lib/forem/engine.rb +18 -0
  50. data/lib/forem/version.rb +3 -0
  51. data/lib/forem.rb +6 -0
  52. data/lib/tasks/forem_tasks.rake +4 -0
  53. data/script/rails +6 -0
  54. data/spec/configuration_spec.rb +12 -0
  55. data/spec/controllers/forem/posts_controller_spec.rb +5 -0
  56. data/spec/controllers/forem/topics_controller_spec.rb +5 -0
  57. data/spec/dummy/Rakefile +7 -0
  58. data/spec/dummy/app/assets/javascripts/application.js +9 -0
  59. data/spec/dummy/app/assets/stylesheets/application.css +7 -0
  60. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  61. data/spec/dummy/app/controllers/fake_controller.rb +5 -0
  62. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  63. data/spec/dummy/app/mailers/.gitkeep +0 -0
  64. data/spec/dummy/app/models/.gitkeep +0 -0
  65. data/spec/dummy/app/models/user.rb +5 -0
  66. data/spec/dummy/app/views/layouts/application.html.erb +18 -0
  67. data/spec/dummy/config/application.rb +45 -0
  68. data/spec/dummy/config/boot.rb +10 -0
  69. data/spec/dummy/config/database.yml +20 -0
  70. data/spec/dummy/config/environment.rb +5 -0
  71. data/spec/dummy/config/environments/development.rb +30 -0
  72. data/spec/dummy/config/environments/production.rb +60 -0
  73. data/spec/dummy/config/environments/test.rb +39 -0
  74. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  75. data/spec/dummy/config/initializers/forem.rb +1 -0
  76. data/spec/dummy/config/initializers/inflections.rb +10 -0
  77. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  78. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  79. data/spec/dummy/config/initializers/session_store.rb +8 -0
  80. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  81. data/spec/dummy/config/locales/en.yml +5 -0
  82. data/spec/dummy/config/routes.rb +5 -0
  83. data/spec/dummy/config.ru +4 -0
  84. data/spec/dummy/db/development.sqlite3 +0 -0
  85. data/spec/dummy/db/migrate/20111128220059_create_users.rb +9 -0
  86. data/spec/dummy/db/schema.rb +38 -0
  87. data/spec/dummy/db/test.sqlite3 +0 -0
  88. data/spec/dummy/lib/assets/.gitkeep +0 -0
  89. data/spec/dummy/log/.gitkeep +0 -0
  90. data/spec/dummy/log/development.log +42 -0
  91. data/spec/dummy/log/test.log +4321 -0
  92. data/spec/dummy/public/404.html +26 -0
  93. data/spec/dummy/public/422.html +26 -0
  94. data/spec/dummy/public/500.html +26 -0
  95. data/spec/dummy/public/favicon.ico +0 -0
  96. data/spec/dummy/script/rails +6 -0
  97. data/spec/dummy/test/fixtures/users.yml +7 -0
  98. data/spec/dummy/test/unit/user_test.rb +7 -0
  99. data/spec/helpers/forem/posts_helper_spec.rb +15 -0
  100. data/spec/helpers/forem/topics_helper_spec.rb +15 -0
  101. data/spec/integration/posts_spec.rb +60 -0
  102. data/spec/integration/topics_spec.rb +47 -0
  103. data/spec/models/forem/post_spec.rb +5 -0
  104. data/spec/models/forem/topic_spec.rb +5 -0
  105. data/spec/spec_helper.rb +14 -0
  106. data/spec/support/capybara.rb +8 -0
  107. data/spec/support/dummy_login.rb +19 -0
  108. data/spec/support/load_routes.rb +6 -0
  109. metadata +205 -0
data/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ .bundle/
2
+ log/*.log
3
+ pkg/
4
+ test/dummy/db/*.sqlite3
5
+ test/dummy/log/*.log
6
+ test/dummy/tmp/
data/Gemfile ADDED
@@ -0,0 +1,17 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Declare your gem's dependencies in forem.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec
7
+
8
+ # jquery-rails is used by the dummy application
9
+ gem "jquery-rails"
10
+
11
+ # Declare any dependencies that are still in development here instead of in
12
+ # your gemspec. These might include edge Rails or gems from your path or
13
+ # Git. Remember to move these dependencies to your gemspec before releasing
14
+ # your gem to rubygems.org.
15
+
16
+ # To use debugger
17
+ # gem 'ruby-debug19', :require => 'ruby-debug'
data/Gemfile.lock ADDED
@@ -0,0 +1,135 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ak2196-forem (0.0.1)
5
+ rails (~> 3.1.1)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ actionmailer (3.1.3)
11
+ actionpack (= 3.1.3)
12
+ mail (~> 2.3.0)
13
+ actionpack (3.1.3)
14
+ activemodel (= 3.1.3)
15
+ activesupport (= 3.1.3)
16
+ builder (~> 3.0.0)
17
+ erubis (~> 2.7.0)
18
+ i18n (~> 0.6)
19
+ rack (~> 1.3.5)
20
+ rack-cache (~> 1.1)
21
+ rack-mount (~> 0.8.2)
22
+ rack-test (~> 0.6.1)
23
+ sprockets (~> 2.0.3)
24
+ activemodel (3.1.3)
25
+ activesupport (= 3.1.3)
26
+ builder (~> 3.0.0)
27
+ i18n (~> 0.6)
28
+ activerecord (3.1.3)
29
+ activemodel (= 3.1.3)
30
+ activesupport (= 3.1.3)
31
+ arel (~> 2.2.1)
32
+ tzinfo (~> 0.3.29)
33
+ activeresource (3.1.3)
34
+ activemodel (= 3.1.3)
35
+ activesupport (= 3.1.3)
36
+ activesupport (3.1.3)
37
+ multi_json (~> 1.0)
38
+ arel (2.2.1)
39
+ builder (3.0.0)
40
+ capybara (1.1.1)
41
+ mime-types (>= 1.16)
42
+ nokogiri (>= 1.3.3)
43
+ rack (>= 1.0.0)
44
+ rack-test (>= 0.5.4)
45
+ selenium-webdriver (~> 2.0)
46
+ xpath (~> 0.1.4)
47
+ childprocess (0.2.2)
48
+ ffi (~> 1.0.6)
49
+ diff-lcs (1.1.3)
50
+ erubis (2.7.0)
51
+ ffi (1.0.9)
52
+ hike (1.2.1)
53
+ i18n (0.6.0)
54
+ jquery-rails (1.0.18)
55
+ railties (~> 3.0)
56
+ thor (~> 0.14)
57
+ json (1.6.1)
58
+ json_pure (1.6.0)
59
+ mail (2.3.0)
60
+ i18n (>= 0.4.0)
61
+ mime-types (~> 1.16)
62
+ treetop (~> 1.4.8)
63
+ mime-types (1.17.2)
64
+ multi_json (1.0.3)
65
+ nokogiri (1.5.0)
66
+ polyglot (0.3.3)
67
+ rack (1.3.5)
68
+ rack-cache (1.1)
69
+ rack (>= 0.4)
70
+ rack-mount (0.8.3)
71
+ rack (>= 1.0.0)
72
+ rack-ssl (1.3.2)
73
+ rack
74
+ rack-test (0.6.1)
75
+ rack (>= 1.0)
76
+ rails (3.1.3)
77
+ actionmailer (= 3.1.3)
78
+ actionpack (= 3.1.3)
79
+ activerecord (= 3.1.3)
80
+ activeresource (= 3.1.3)
81
+ activesupport (= 3.1.3)
82
+ bundler (~> 1.0)
83
+ railties (= 3.1.3)
84
+ railties (3.1.3)
85
+ actionpack (= 3.1.3)
86
+ activesupport (= 3.1.3)
87
+ rack-ssl (~> 1.3.2)
88
+ rake (>= 0.8.7)
89
+ rdoc (~> 3.4)
90
+ thor (~> 0.14.6)
91
+ rake (0.9.2.2)
92
+ rdoc (3.11)
93
+ json (~> 1.4)
94
+ rspec (2.6.0)
95
+ rspec-core (~> 2.6.0)
96
+ rspec-expectations (~> 2.6.0)
97
+ rspec-mocks (~> 2.6.0)
98
+ rspec-core (2.6.4)
99
+ rspec-expectations (2.6.0)
100
+ diff-lcs (~> 1.1.2)
101
+ rspec-mocks (2.6.0)
102
+ rspec-rails (2.6.1)
103
+ actionpack (~> 3.0)
104
+ activesupport (~> 3.0)
105
+ railties (~> 3.0)
106
+ rspec (~> 2.6.0)
107
+ rubyzip (0.9.4)
108
+ selenium-webdriver (2.6.0)
109
+ childprocess (>= 0.2.1)
110
+ ffi (>= 1.0.7)
111
+ json_pure
112
+ rubyzip
113
+ sprockets (2.0.3)
114
+ hike (~> 1.2)
115
+ rack (~> 1.0)
116
+ tilt (!= 1.3.0, ~> 1.1)
117
+ sqlite3 (1.3.4)
118
+ thor (0.14.6)
119
+ tilt (1.3.3)
120
+ treetop (1.4.10)
121
+ polyglot
122
+ polyglot (>= 0.3.1)
123
+ tzinfo (0.3.31)
124
+ xpath (0.1.4)
125
+ nokogiri (~> 1.3)
126
+
127
+ PLATFORMS
128
+ ruby
129
+
130
+ DEPENDENCIES
131
+ ak2196-forem!
132
+ capybara
133
+ jquery-rails
134
+ rspec-rails (~> 2.5)
135
+ sqlite3
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2011 YOURNAME
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.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = Forem
2
+
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc::Task = Rake::RDocTask
13
+ end
14
+
15
+ RDoc::Task.new(:rdoc) do |rdoc|
16
+ rdoc.rdoc_dir = 'rdoc'
17
+ rdoc.title = 'Forem'
18
+ rdoc.options << '--line-numbers'
19
+ rdoc.rdoc_files.include('README.rdoc')
20
+ rdoc.rdoc_files.include('lib/**/*.rb')
21
+ end
22
+
23
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
24
+ load 'rails/tasks/engine.rake'
25
+
26
+
27
+ Bundler::GemHelper.install_tasks
28
+
29
+ require 'rspec/core/rake_task'
30
+ RSpec::Core::RakeTask.new(:spec)
31
+
32
+ task :default => :spec
33
+
34
+ Bundler::GemHelper.install_tasks
@@ -0,0 +1,27 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
3
+ # Maintain your gem's version:
4
+ require "forem/version"
5
+
6
+ # Describe your gem and declare its dependencies:
7
+ Gem::Specification.new do |s|
8
+ s.name = "ak2196-forem"
9
+ s.version = Forem::VERSION
10
+ s.authors = ["Your name"]
11
+ s.email = ["Your email"]
12
+ s.homepage = "http://bleh.com"
13
+ s.summary = "Summary of Forem."
14
+ s.description = "Description of Forem."
15
+
16
+ #s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = Dir["test/**/*"]
19
+
20
+ s.add_dependency "rails", "~> 3.1.1"
21
+ # s.add_dependency "jquery-rails"
22
+
23
+ s.add_development_dependency "sqlite3"
24
+
25
+ s.add_development_dependency "rspec-rails", "~> 2.5"
26
+ s.add_development_dependency "capybara"
27
+ end
File without changes
@@ -0,0 +1,9 @@
1
+ // This is a manifest file that'll be compiled into including all the files listed below.
2
+ // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
+ // be included in the compiled file accessible from http://example.com/assets/application.js
4
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
+ // the compiled file.
6
+ //
7
+ //= require jquery
8
+ //= require jquery_ujs
9
+ //= require_tree .
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,7 @@
1
+ /*
2
+ * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
+ * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
+ * the top of the compiled file, but it's generally better to create a new file per style scope.
5
+ *= require_self
6
+ *= require_tree .
7
+ */
@@ -0,0 +1,4 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
@@ -0,0 +1,4 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
@@ -0,0 +1,11 @@
1
+ module Forem
2
+ class ApplicationController < ::ApplicationController
3
+ private
4
+ def authenticate_forem_user!
5
+ if !current_user
6
+ flash[:notice] = "You must be authenticated before you can do that."
7
+ redirect_to main_app.sign_in_url
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,22 @@
1
+ module Forem
2
+ class PostsController < ApplicationController
3
+ before_filter :authenticate_forem_user!, :only => [:new, :create]
4
+ before_filter :find_topic
5
+
6
+ def new
7
+ @post = @topic.posts.build
8
+ end
9
+ def create
10
+ params[:post].merge!(:user => current_user)
11
+ @post = @topic.posts.create(params[:post])
12
+ flash[:notice] = "Post has been created!"
13
+ redirect_to topic_path(@topic)
14
+ end
15
+
16
+ private
17
+
18
+ def find_topic
19
+ @topic = Forem::Topic.find(params[:topic_id])
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,23 @@
1
+ module Forem
2
+
3
+ class TopicsController < ApplicationController
4
+
5
+ before_filter :authenticate_forem_user!, :only => [:new, :create]
6
+ def index
7
+ @topics = Forem::Topic.all
8
+ end
9
+ def new
10
+ @topic = Forem::Topic.new
11
+ @topic.posts.build
12
+ end
13
+ def create
14
+ params[:topic].merge!(:user => current_user)
15
+ @topic = Forem::Topic.create(params[:topic])
16
+ flash[:notice] = "Topic has been created!"
17
+ redirect_to @topic
18
+ end
19
+ def show
20
+ @topic = Forem::Topic.find(params[:id])
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,4 @@
1
+ module Forem
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Forem
2
+ module PostsHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Forem
2
+ module TopicsHelper
3
+ end
4
+ end
@@ -0,0 +1,6 @@
1
+ module Forem
2
+ class Post < ActiveRecord::Base
3
+ belongs_to :topic, :counter_cache => true
4
+ belongs_to :user, :class_name => Forem::Engine.user_class.to_s
5
+ end
6
+ end
@@ -0,0 +1,14 @@
1
+ module Forem
2
+ class Topic < ActiveRecord::Base
3
+ has_many :posts, :order => "created_at ASC"
4
+ accepts_nested_attributes_for :posts
5
+ before_save :set_post_user
6
+ belongs_to :user, :class_name => Forem::Engine.user_class.to_s
7
+ has_one :last_post, :class_name => "Forem::Post", :order => "created_at DESC"
8
+
9
+ private
10
+ def set_post_user
11
+ self.posts.first.user = self.user
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,4 @@
1
+ <p>
2
+ <%= post.label :text %><br>
3
+ <%= post.text_area :text %>
4
+ </p>
@@ -0,0 +1,6 @@
1
+ <%= div_for(post) do %>
2
+ <small>Written at <%= post.created_at %></small>
3
+ <small class='user'>By <%= post.user %></small>
4
+ <%= simple_format(post.text) %>
5
+ <%= link_to "Reply", new_topic_post_path(@topic) %>
6
+ <% end %>
@@ -0,0 +1,5 @@
1
+ <h2>New Post</h2>
2
+ <%= form_for [@topic, @post] do |post| %>
3
+ <%= render :partial => "form", :locals => { :post => post } %>
4
+ <%= post.submit %>
5
+ <% end %>
@@ -0,0 +1,11 @@
1
+ <%= form_for @topic do |f| %>
2
+ <p>
3
+ <%= f.label :subject %>
4
+ <%= f.text_field :subject %>
5
+ </p>
6
+
7
+ <%= f.fields_for :posts do |post| %>
8
+ <%= render :partial => "forem/posts/form", :locals => { :post => post} %>
9
+ <% end %>
10
+ <%= f.submit %>
11
+ <% end %>
@@ -0,0 +1,26 @@
1
+ <h1>Topics</h1>
2
+ <% if current_user %>
3
+ <%= link_to "New Topic", new_topic_path %>
4
+ <% end %>
5
+ <% if @topics.empty? %>
6
+ There are currently no topics.
7
+ <% else %>
8
+ <table id='topics'>
9
+ <thead>
10
+ <tr>
11
+ <td>Subject</td>
12
+ <td>Posts count</td>
13
+ <td>Last post at</td>
14
+ </tr>
15
+ </thead>
16
+ <tbody>
17
+ <% @topics.each do |topic| %>
18
+ <tr>
19
+ <td id='topic_subject'><%= link_to topic.subject, topic %></td>
20
+ <td id='posts_count'><%= topic.posts_count %></td>
21
+ <td id='last_post'>last post was <%= time_ago_in_words(topic.last_post.created_at) %> ago by <%= topic.last_post.user %></td>
22
+ </tr>
23
+ <% end %>
24
+ </tbody>
25
+ </table>
26
+ <% end %>
@@ -0,0 +1,2 @@
1
+ <h1>New Topic</h1>
2
+ <%= render "form" %>
@@ -0,0 +1,6 @@
1
+ <%= div_for @topic do %>
2
+ <h1><%= @topic.subject %></h1>
3
+ <div id='posts'>
4
+ <%= render :partial => "forem/posts/post", :collection => @topic.posts %>
5
+ </div>
6
+ <% end %>
data/bin/autospec ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'autospec' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rspec-core', 'autospec')
data/bin/erubis ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'erubis' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('erubis', 'erubis')
data/bin/htmldiff ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'htmldiff' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('diff-lcs', 'htmldiff')
data/bin/ldiff ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'ldiff' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('diff-lcs', 'ldiff')
data/bin/nokogiri ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'nokogiri' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('nokogiri', 'nokogiri')
data/bin/rackup ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rackup' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rack', 'rackup')
data/bin/rails ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rails' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rails', 'rails')
data/bin/rake ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rake' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rake', 'rake')
data/bin/rake2thor ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rake2thor' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('thor', 'rake2thor')
data/bin/rdoc ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rdoc' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rdoc', 'rdoc')
data/bin/ri ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'ri' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rdoc', 'ri')