peteonrails-vote_fu 0.0.6 → 0.0.7

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.
data/CHANGELOG.markdown CHANGED
@@ -4,6 +4,7 @@
4
4
  * Merge in nagybence's updates that make the code usable as a Gem in addition to being a Rails plugin.
5
5
  * Thanks for the bugfixes and proofreading, nagybence and maddox!
6
6
  * Updated the gemplugin support to be compatible with maddox and nagybence's changes.
7
+ * Added details on the MyQuotable reference application.
7
8
 
8
9
  2008-07-20
9
10
  ==========
data/README.markdown CHANGED
@@ -157,6 +157,16 @@ And if you want that enforced at the database level, look in the generated migra
157
157
  # If you want to enfore "One Person, One Vote" rules in the database, uncomment the index below
158
158
  # add_index :votes, ["voter_id", "voter_type", "voteable_id", "voteable_type"], :unique => true, :name => "uniq_one_vote_only"
159
159
 
160
+ ### Example Application
161
+
162
+ There is now a reference application available. Due to overwhelming demand for example
163
+ code and kickstart guides, I have open-sourced MyQuotable.com in order to provide an
164
+ easy-to-follow example of how to use VoteFu with RESTful Authentication, JRails, and
165
+ other popular plugins. To get the example code:
166
+
167
+ git clone git://github.com/peteonrails/myquotable.git
168
+
169
+ There will be a screencast coming soon too. Contact me if you want to help.
160
170
 
161
171
  Consideration
162
172
  =============
data/rails/init.rb ADDED
@@ -0,0 +1,10 @@
1
+ RAILS_DEFAULT_LOGGER.info "** vote_fu: setting up load paths"
2
+
3
+ %w{ models controllers helpers }.each do |dir|
4
+ path = File.join(File.dirname(__FILE__) , 'lib', dir)
5
+ $LOAD_PATH << path
6
+ ActiveSupport::Dependencies.load_paths << path
7
+ ActiveSupport::Dependencies.load_once_paths.delete(path)
8
+ end
9
+
10
+ require 'vote_fu'
@@ -0,0 +1,8 @@
1
+ require 'test/unit'
2
+
3
+ class VoteFuTest < Test::Unit::TestCase
4
+ # Replace this with your real tests.
5
+ def test_this_plugin
6
+ flunk
7
+ end
8
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peteonrails-vote_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Jackson
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2008-11-17 00:00:00 -08:00
13
+ date: 2008-12-02 00:00:00 -08:00
14
14
  default_executable:
15
15
  dependencies: []
16
16
 
@@ -37,7 +37,7 @@ files:
37
37
  - lib/has_karma.rb
38
38
  - lib/models/vote.rb
39
39
  - lib/controllers/votes_controller.rb
40
- - test/voteable_test.rb
40
+ - test/vote_fu_test.rb
41
41
  - examples/votes_controller.rb
42
42
  - examples/users_controller.rb
43
43
  - examples/voteables_controller.rb
@@ -46,6 +46,7 @@ files:
46
46
  - examples/votes/_voteable_vote.html.erb
47
47
  - examples/votes/create.rjs
48
48
  - examples/routes.rb
49
+ - rails/init.rb
49
50
  has_rdoc: false
50
51
  homepage: http://blog.peteonrails.com/vote-fu
51
52
  post_install_message: