redlumxn-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 (108) hide show
  1. data/.gitignore +7 -0
  2. data/Gemfile +17 -0
  3. data/Gemfile.lock +132 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.rdoc +3 -0
  6. data/Rakefile +33 -0
  7. data/app/assets/images/forem/.gitkeep +0 -0
  8. data/app/assets/javascripts/forem/application.js +15 -0
  9. data/app/assets/javascripts/forem/posts.js +2 -0
  10. data/app/assets/javascripts/forem/topics.js +2 -0
  11. data/app/assets/stylesheets/forem/application.css +13 -0
  12. data/app/assets/stylesheets/forem/posts.css +4 -0
  13. data/app/assets/stylesheets/forem/topics.css +4 -0
  14. data/app/controllers/forem/application_controller.rb +13 -0
  15. data/app/controllers/forem/posts_controller.rb +25 -0
  16. data/app/controllers/forem/topics_controller.rb +28 -0
  17. data/app/helpers/forem/application_helper.rb +4 -0
  18. data/app/helpers/forem/posts_helper.rb +4 -0
  19. data/app/helpers/forem/topics_helper.rb +4 -0
  20. data/app/models/forem/post.rb +9 -0
  21. data/app/models/forem/topic.rb +21 -0
  22. data/app/views/forem/posts/_form.html.erb +4 -0
  23. data/app/views/forem/posts/_post.html.erb +6 -0
  24. data/app/views/forem/posts/new.html.erb +5 -0
  25. data/app/views/forem/topics/_form.html.erb +11 -0
  26. data/app/views/forem/topics/index.html.erb +28 -0
  27. data/app/views/forem/topics/new.html.erb +2 -0
  28. data/app/views/forem/topics/show.html.erb +7 -0
  29. data/app/views/layouts/forem/application.html.erb +16 -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/sprockets +16 -0
  43. data/bin/thor +16 -0
  44. data/bin/tilt +16 -0
  45. data/bin/tt +16 -0
  46. data/config/routes.rb +6 -0
  47. data/db/migrate/20130218122602_create_forem_topics.rb +10 -0
  48. data/db/migrate/20130218123625_create_forem_posts.rb +11 -0
  49. data/db/migrate/20130219102837_add_posts_count_to_forem_topics.rb +5 -0
  50. data/forem.gemspec +25 -0
  51. data/lib/forem/engine.rb +18 -0
  52. data/lib/forem/version.rb +3 -0
  53. data/lib/forem.rb +7 -0
  54. data/lib/tasks/forem_tasks.rake +4 -0
  55. data/script/rails +8 -0
  56. data/spec/controllers/forem/posts_controller_spec.rb +7 -0
  57. data/spec/controllers/forem/topics_controller_spec.rb +7 -0
  58. data/spec/dummy/README.rdoc +261 -0
  59. data/spec/dummy/Rakefile +7 -0
  60. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  61. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  62. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  63. data/spec/dummy/app/controllers/fake_controller.rb +5 -0
  64. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  65. data/spec/dummy/app/mailers/.gitkeep +0 -0
  66. data/spec/dummy/app/models/.gitkeep +0 -0
  67. data/spec/dummy/app/models/user.rb +7 -0
  68. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  69. data/spec/dummy/config/application.rb +59 -0
  70. data/spec/dummy/config/boot.rb +10 -0
  71. data/spec/dummy/config/database.yml +25 -0
  72. data/spec/dummy/config/environment.rb +5 -0
  73. data/spec/dummy/config/environments/development.rb +37 -0
  74. data/spec/dummy/config/environments/production.rb +67 -0
  75. data/spec/dummy/config/environments/test.rb +37 -0
  76. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  77. data/spec/dummy/config/initializers/forem.rb +1 -0
  78. data/spec/dummy/config/initializers/inflections.rb +15 -0
  79. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  80. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  81. data/spec/dummy/config/initializers/session_store.rb +8 -0
  82. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  83. data/spec/dummy/config/locales/en.yml +5 -0
  84. data/spec/dummy/config/routes.rb +6 -0
  85. data/spec/dummy/config.ru +4 -0
  86. data/spec/dummy/db/migrate/20130219121407_create_users.rb +9 -0
  87. data/spec/dummy/db/schema.rb +38 -0
  88. data/spec/dummy/lib/assets/.gitkeep +0 -0
  89. data/spec/dummy/log/.gitkeep +0 -0
  90. data/spec/dummy/public/404.html +26 -0
  91. data/spec/dummy/public/422.html +26 -0
  92. data/spec/dummy/public/500.html +25 -0
  93. data/spec/dummy/public/favicon.ico +0 -0
  94. data/spec/dummy/script/rails +6 -0
  95. data/spec/dummy/test/fixtures/users.yml +7 -0
  96. data/spec/dummy/test/unit/user_test.rb +7 -0
  97. data/spec/helpers/forem/posts_helper_spec.rb +17 -0
  98. data/spec/helpers/forem/topics_helper_spec.rb +17 -0
  99. data/spec/integration/configuration_spec.rb +20 -0
  100. data/spec/integration/posts_spec.rb +65 -0
  101. data/spec/integration/topics_spec.rb +42 -0
  102. data/spec/models/forem/post_spec.rb +7 -0
  103. data/spec/models/forem/topic_spec.rb +7 -0
  104. data/spec/spec_helper.rb +17 -0
  105. data/spec/support/capybara.rb +8 -0
  106. data/spec/support/dummy_login.rb +19 -0
  107. data/spec/support/load_routes.rb +6 -0
  108. metadata +222 -0
data/.gitignore ADDED
@@ -0,0 +1,7 @@
1
+ .bundle/
2
+ log/*.log
3
+ pkg/
4
+ spec/dummy/db/*.sqlite3
5
+ spec/dummy/log/*.log
6
+ spec/dummy/tmp/
7
+ spec/dummy/.sass-cache
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 'debugger'
data/Gemfile.lock ADDED
@@ -0,0 +1,132 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ redlumxn-forem (0.0.1)
5
+ rails (~> 3.2.12)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ actionmailer (3.2.12)
11
+ actionpack (= 3.2.12)
12
+ mail (~> 2.4.4)
13
+ actionpack (3.2.12)
14
+ activemodel (= 3.2.12)
15
+ activesupport (= 3.2.12)
16
+ builder (~> 3.0.0)
17
+ erubis (~> 2.7.0)
18
+ journey (~> 1.0.4)
19
+ rack (~> 1.4.5)
20
+ rack-cache (~> 1.2)
21
+ rack-test (~> 0.6.1)
22
+ sprockets (~> 2.2.1)
23
+ activemodel (3.2.12)
24
+ activesupport (= 3.2.12)
25
+ builder (~> 3.0.0)
26
+ activerecord (3.2.12)
27
+ activemodel (= 3.2.12)
28
+ activesupport (= 3.2.12)
29
+ arel (~> 3.0.2)
30
+ tzinfo (~> 0.3.29)
31
+ activeresource (3.2.12)
32
+ activemodel (= 3.2.12)
33
+ activesupport (= 3.2.12)
34
+ activesupport (3.2.12)
35
+ i18n (~> 0.6)
36
+ multi_json (~> 1.0)
37
+ arel (3.0.2)
38
+ builder (3.0.4)
39
+ capybara (2.0.2)
40
+ mime-types (>= 1.16)
41
+ nokogiri (>= 1.3.3)
42
+ rack (>= 1.0.0)
43
+ rack-test (>= 0.5.4)
44
+ selenium-webdriver (~> 2.0)
45
+ xpath (~> 1.0.0)
46
+ childprocess (0.3.8)
47
+ ffi (~> 1.0, >= 1.0.11)
48
+ diff-lcs (1.1.3)
49
+ erubis (2.7.0)
50
+ ffi (1.3.1-x86-mingw32)
51
+ hike (1.2.1)
52
+ i18n (0.6.1)
53
+ journey (1.0.4)
54
+ jquery-rails (2.2.1)
55
+ railties (>= 3.0, < 5.0)
56
+ thor (>= 0.14, < 2.0)
57
+ json (1.7.7)
58
+ mail (2.4.4)
59
+ i18n (>= 0.4.0)
60
+ mime-types (~> 1.16)
61
+ treetop (~> 1.4.8)
62
+ mime-types (1.21)
63
+ multi_json (1.6.1)
64
+ nokogiri (1.5.6-x86-mingw32)
65
+ polyglot (0.3.3)
66
+ rack (1.4.5)
67
+ rack-cache (1.2)
68
+ rack (>= 0.4)
69
+ rack-ssl (1.3.3)
70
+ rack
71
+ rack-test (0.6.2)
72
+ rack (>= 1.0)
73
+ rails (3.2.12)
74
+ actionmailer (= 3.2.12)
75
+ actionpack (= 3.2.12)
76
+ activerecord (= 3.2.12)
77
+ activeresource (= 3.2.12)
78
+ activesupport (= 3.2.12)
79
+ bundler (~> 1.0)
80
+ railties (= 3.2.12)
81
+ railties (3.2.12)
82
+ actionpack (= 3.2.12)
83
+ activesupport (= 3.2.12)
84
+ rack-ssl (~> 1.3.2)
85
+ rake (>= 0.8.7)
86
+ rdoc (~> 3.4)
87
+ thor (>= 0.14.6, < 2.0)
88
+ rake (10.0.3)
89
+ rdoc (3.12.1)
90
+ json (~> 1.4)
91
+ rspec-core (2.12.2)
92
+ rspec-expectations (2.12.1)
93
+ diff-lcs (~> 1.1.3)
94
+ rspec-mocks (2.12.2)
95
+ rspec-rails (2.12.2)
96
+ actionpack (>= 3.0)
97
+ activesupport (>= 3.0)
98
+ railties (>= 3.0)
99
+ rspec-core (~> 2.12.0)
100
+ rspec-expectations (~> 2.12.0)
101
+ rspec-mocks (~> 2.12.0)
102
+ rubyzip (0.9.9)
103
+ selenium-webdriver (2.29.0)
104
+ childprocess (>= 0.2.5)
105
+ multi_json (~> 1.0)
106
+ rubyzip
107
+ websocket (~> 1.0.4)
108
+ sprockets (2.2.2)
109
+ hike (~> 1.2)
110
+ multi_json (~> 1.0)
111
+ rack (~> 1.0)
112
+ tilt (~> 1.1, != 1.3.0)
113
+ sqlite3 (1.3.7-x86-mingw32)
114
+ thor (0.17.0)
115
+ tilt (1.3.3)
116
+ treetop (1.4.12)
117
+ polyglot
118
+ polyglot (>= 0.3.1)
119
+ tzinfo (0.3.35)
120
+ websocket (1.0.7)
121
+ xpath (1.0.0)
122
+ nokogiri (~> 1.3)
123
+
124
+ PLATFORMS
125
+ x86-mingw32
126
+
127
+ DEPENDENCIES
128
+ capybara
129
+ jquery-rails
130
+ redlumxn-forem!
131
+ rspec-rails
132
+ sqlite3
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2013 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,33 @@
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
+
28
+ Bundler::GemHelper.install_tasks
29
+
30
+ require 'rspec/core/rake_task'
31
+ RSpec::Core::RakeTask.new(:spec)
32
+
33
+ task :default=> :spec
File without changes
@@ -0,0 +1,15 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // the compiled file.
9
+ //
10
+ // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
+ // GO AFTER THE REQUIRES BELOW.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= 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,13 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ *= require_tree .
13
+ */
@@ -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,13 @@
1
+ module Forem
2
+ class ApplicationController < ActionController::Base
3
+
4
+ private
5
+
6
+ def authenticate_forem_user!
7
+ if !current_user
8
+ flash[:notice] = "You must be authenticated before you can do that."
9
+ redirect_to main_app.sign_in_url
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,25 @@
1
+ require_dependency "forem/application_controller"
2
+
3
+ module Forem
4
+ class PostsController < ApplicationController
5
+ before_filter :authenticate_forem_user!, :only => [:new, :create]
6
+ before_filter :find_topic
7
+
8
+ def new
9
+ @post = @topic.posts.build
10
+ end
11
+
12
+ def create
13
+ params[:post].merge!(:user => current_user)
14
+ @post = @topic.posts.create(params[:post])
15
+ flash[:notice] = "Post has been created!"
16
+ redirect_to topic_path(@topic)
17
+ end
18
+
19
+ private
20
+
21
+ def find_topic
22
+ @topic = Forem::Topic.find(params[:topic_id])
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,28 @@
1
+ require_dependency "forem/application_controller"
2
+
3
+ module Forem
4
+ class TopicsController < ApplicationController
5
+ before_filter :authenticate_forem_user!, :only => [:new, :create]
6
+
7
+ def index
8
+ @topics = Forem::Topic.all
9
+ end
10
+
11
+ def new
12
+ @topic = Forem::Topic.new
13
+ @topic.posts.build
14
+ end
15
+
16
+ def create
17
+ params[:topic].merge!(:user => current_user)
18
+ @topic = Forem::Topic.create(params[:topic])
19
+ flash[:notice] = "Topic has been created!"
20
+ redirect_to @topic
21
+ end
22
+
23
+ def show
24
+ @topic = Forem::Topic.find(params[:id])
25
+ end
26
+
27
+ end
28
+ 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,9 @@
1
+ module Forem
2
+ class Post < ActiveRecord::Base
3
+ belongs_to :topic, :counter_cache => true
4
+ attr_accessible :text, :topic_id, :user_id, :user
5
+
6
+ belongs_to :user, :class_name => Forem::Engine.user_class.to_s
7
+
8
+ end
9
+ end
@@ -0,0 +1,21 @@
1
+ module Forem
2
+ class Topic < ActiveRecord::Base
3
+ before_save :set_post_user
4
+
5
+ has_many :posts, :order => "created_at ASC"
6
+ accepts_nested_attributes_for :posts
7
+
8
+ has_one :last_post, :class_name => "Forem::Post",
9
+ :order => "created_at DESC"
10
+
11
+ belongs_to :user, :class_name => Forem::Engine.user_class.to_s
12
+
13
+ attr_accessible :subject, :user_id, :posts_attributes, :user
14
+
15
+ private
16
+ def set_post_user
17
+ self.posts.first.user = self.user
18
+ end
19
+
20
+ end
21
+ end
@@ -0,0 +1,4 @@
1
+ <p>
2
+ <%= post.label :text %>
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
+ <%= f.fields_for :posts do |post| %>
7
+ <%= render :partial => "forem/posts/form",
8
+ :locals => { :post => post } %>
9
+ <% end %>
10
+ <%= f.submit %>
11
+ <% end %>
@@ -0,0 +1,28 @@
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>Post 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='post_count'><%= topic.posts_count %></td>
21
+ <td id='last_post'>
22
+ last post was <%= time_ago_in_words(topic.last_post.created_at) %> ago by <%= topic.last_post.user %>
23
+ </td>
24
+ </tr>
25
+ <% end %>
26
+ </tbody>
27
+ </table>
28
+ <% end %>
@@ -0,0 +1,2 @@
1
+ <h1>New Topic</h1>
2
+ <%= render "form" %>
@@ -0,0 +1,7 @@
1
+ <%= div_for @topic do %>
2
+ <h1><%= @topic.subject %></h1>
3
+ <div id='posts'>
4
+ <%= render :partial => "forem/posts/post",
5
+ :collection => @topic.posts %>
6
+ </div>
7
+ <% end %>
@@ -0,0 +1,16 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Forem</title>
5
+ <%= stylesheet_link_tag "forem/application", :media => "all" %>
6
+ <%= javascript_include_tag "forem/application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+ <% flash.each do |key, message| %>
11
+ <div id='flash_<%= key%>'><%= message %></div>
12
+ <% end %>
13
+ <%= yield %>
14
+
15
+ </body>
16
+ </html>
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('railties', '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')