has_messages 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README +5 -0
- data/Rakefile +5 -4
- data/test/test_helper.rb +1 -1
- metadata +10 -9
data/CHANGELOG
CHANGED
data/README
CHANGED
@@ -91,7 +91,12 @@ them like so:
|
|
91
91
|
Before you can run any tests, the following gem must be installed:
|
92
92
|
* plugin_test_helper[http://wiki.pluginaweek.org/Plugin_test_helper]
|
93
93
|
|
94
|
+
To run against a specific version of Rails:
|
95
|
+
|
96
|
+
rake test RAILS_FRAMEWORK_ROOT=/path/to/rails
|
97
|
+
|
94
98
|
== Dependencies
|
95
99
|
|
100
|
+
* Rails 2.1 or later
|
96
101
|
* plugins_plus[http://wiki.pluginaweek.org/Plugins_plus]
|
97
102
|
* state_machine[http://wiki.pluginaweek.org/State_machine]
|
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ require 'rake/gempackagetask'
|
|
4
4
|
require 'rake/contrib/sshpublisher'
|
5
5
|
|
6
6
|
PKG_NAME = 'has_messages'
|
7
|
-
PKG_VERSION = '0.1.
|
7
|
+
PKG_VERSION = '0.1.1'
|
8
8
|
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
9
9
|
RUBY_FORGE_PROJECT = 'pluginaweek'
|
10
10
|
|
@@ -22,6 +22,7 @@ desc 'Generate documentation for the has_messages plugin.'
|
|
22
22
|
Rake::RDocTask.new(:rdoc) do |rdoc|
|
23
23
|
rdoc.rdoc_dir = 'rdoc'
|
24
24
|
rdoc.title = 'HasMessages'
|
25
|
+
rdoc.template = '../rdoc_template.rb'
|
25
26
|
rdoc.options << '--line-numbers' << '--inline-source'
|
26
27
|
rdoc.rdoc_files.include('README')
|
27
28
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
@@ -33,7 +34,7 @@ spec = Gem::Specification.new do |s|
|
|
33
34
|
s.platform = Gem::Platform::RUBY
|
34
35
|
s.summary = 'Demonstrates a reference implementation for sending messages between users.'
|
35
36
|
|
36
|
-
s.files = FileList['{app,db,lib,test}/**/*'].to_a + %w(CHANGELOG init.rb MIT-LICENSE Rakefile README)
|
37
|
+
s.files = FileList['{app,db,lib,test}/**/*'].to_a - FileList['test/app_root/log/*'].to_a + %w(CHANGELOG init.rb MIT-LICENSE Rakefile README)
|
37
38
|
s.require_path = 'lib'
|
38
39
|
s.autorequire = 'has_messages'
|
39
40
|
s.has_rdoc = true
|
@@ -62,13 +63,13 @@ task :pdoc => [:rdoc] do
|
|
62
63
|
end
|
63
64
|
|
64
65
|
desc 'Publish the API docs and gem'
|
65
|
-
task :publish => [:pdoc, :release]
|
66
|
+
task :publish => [:pgem, :pdoc, :release]
|
66
67
|
|
67
68
|
desc 'Publish the release files to RubyForge.'
|
68
69
|
task :release => [:gem, :package] do
|
69
70
|
require 'rubyforge'
|
70
71
|
|
71
|
-
ruby_forge = RubyForge.new
|
72
|
+
ruby_forge = RubyForge.new.configure
|
72
73
|
ruby_forge.login
|
73
74
|
|
74
75
|
%w( gem tgz zip ).each do |ext|
|
data/test/test_helper.rb
CHANGED
@@ -4,7 +4,7 @@ require 'rubygems'
|
|
4
4
|
require 'plugin_test_helper'
|
5
5
|
|
6
6
|
# Run the migrations
|
7
|
-
ActiveRecord::Migrator.migrate("#{
|
7
|
+
ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
|
8
8
|
|
9
9
|
# Mixin the factory helper
|
10
10
|
require File.expand_path("#{File.dirname(__FILE__)}/factory")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_messages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Pfeifer
|
@@ -9,7 +9,7 @@ autorequire: has_messages
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-06-22 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -37,20 +37,21 @@ files:
|
|
37
37
|
- db/migrate/002_create_message_recipients.rb
|
38
38
|
- db/migrate/001_create_messages.rb
|
39
39
|
- lib/has_messages.rb
|
40
|
-
- test/factory.rb
|
41
40
|
- test/app_root
|
41
|
+
- test/app_root/app
|
42
|
+
- test/app_root/app/models
|
43
|
+
- test/app_root/app/models/user.rb
|
44
|
+
- test/app_root/config
|
45
|
+
- test/app_root/config/environment.rb
|
42
46
|
- test/app_root/db
|
43
47
|
- test/app_root/db/migrate
|
44
48
|
- test/app_root/db/migrate/001_create_users.rb
|
45
49
|
- test/app_root/db/migrate/002_migrate_has_messages_to_version_2.rb
|
46
|
-
- test/app_root/
|
47
|
-
- test/app_root/config/environment.rb
|
48
|
-
- test/app_root/app
|
49
|
-
- test/app_root/app/models
|
50
|
-
- test/app_root/app/models/user.rb
|
50
|
+
- test/app_root/log
|
51
51
|
- test/functional
|
52
52
|
- test/functional/has_messages_test.rb
|
53
53
|
- test/test_helper.rb
|
54
|
+
- test/factory.rb
|
54
55
|
- test/unit
|
55
56
|
- test/unit/message_test.rb
|
56
57
|
- test/unit/message_recipient_test.rb
|
@@ -81,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
82
|
requirements: []
|
82
83
|
|
83
84
|
rubyforge_project:
|
84
|
-
rubygems_version: 1.1.
|
85
|
+
rubygems_version: 1.1.1
|
85
86
|
signing_key:
|
86
87
|
specification_version: 2
|
87
88
|
summary: Demonstrates a reference implementation for sending messages between users.
|