muck-services 0.1.31 → 0.1.32
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.32
|
@@ -5,18 +5,14 @@ class ServicesMailer < ActionMailer::Base
|
|
5
5
|
default_url_options[:host] = GlobalConfig.application_url
|
6
6
|
|
7
7
|
def notification_feed_added(feed)
|
8
|
-
|
9
|
-
from "#{GlobalConfig.from_email_name} <#{GlobalConfig.from_email}>"
|
10
|
-
sent_on Time.now
|
8
|
+
muck_setup_email(GlobalConfig.admin_email)
|
11
9
|
subject I18n.t('muck.services.new_global_feed', :application_name => GlobalConfig.application_name)
|
12
10
|
body :feed => feed,
|
13
11
|
:application_name => GlobalConfig.application_name
|
14
12
|
end
|
15
13
|
|
16
14
|
def notification_oai_endpoint_added(oai_endpoint)
|
17
|
-
|
18
|
-
from "#{GlobalConfig.from_email_name} <#{GlobalConfig.from_email}>"
|
19
|
-
sent_on Time.now
|
15
|
+
muck_setup_email(GlobalConfig.admin_email)
|
20
16
|
subject I18n.t('muck.services.new_global_feed', :application_name => GlobalConfig.application_name)
|
21
17
|
body :oai_endpoint => oai_endpoint,
|
22
18
|
:application_name => GlobalConfig.application_name
|
data/muck-services.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{muck-services}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.32"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Joel Duffin", "Justin Ball"]
|
12
|
-
s.date = %q{2010-01-
|
12
|
+
s.date = %q{2010-01-20}
|
13
13
|
s.description = %q{This gem contains the rails specific code for dealing with feeds, aggregations and recommendations. It is meant to work with the muck-raker gem.}
|
14
14
|
s.email = %q{justin@tatemae.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -44,7 +44,7 @@ class Muck::IdentityFeedsControllerTest < ActionController::TestCase
|
|
44
44
|
context "POST create using bogus service and username" do
|
45
45
|
setup do
|
46
46
|
@service = Factory(:service)
|
47
|
-
post :create, :service_id => @service.to_param, :username => 'test', :user_id => @user
|
47
|
+
post :create, :service_id => @service.to_param, :username => 'test', :user_id => @user, :uri => 'http://www.example.com'
|
48
48
|
end
|
49
49
|
should_set_the_flash_to(I18n.t('muck.services.no_feeds_from_username'))
|
50
50
|
should_redirect_to("parent") { user_identity_feeds_url(@user.id) }
|
@@ -68,7 +68,7 @@ class Muck::IdentityFeedsControllerTest < ActionController::TestCase
|
|
68
68
|
end
|
69
69
|
context "html" do
|
70
70
|
setup do
|
71
|
-
post :create, :service_id => @service.to_param, :username => @username, :user_id => @user
|
71
|
+
post :create, :service_id => @service.to_param, :username => @username, :user_id => @user, :uri => 'http://www.example.com'
|
72
72
|
end
|
73
73
|
should_set_the_flash_to(I18n.t('muck.services.successfully_added_username_feed', :service => ''))
|
74
74
|
should_redirect_to("parent") { user_identity_feeds_url(@user.id) }
|
@@ -85,8 +85,8 @@ class Muck::IdentityFeedsControllerTest < ActionController::TestCase
|
|
85
85
|
setup do
|
86
86
|
@service = Factory(:service, :uri_data_template => TEST_USERNAME_TEMPLATE)
|
87
87
|
@username = 'jbasdf'
|
88
|
-
post :create, :service_id => @service.to_param, :username => @username, :user_id => @user
|
89
|
-
post :create, :service_id => @service.to_param, :username => @username, :user_id => @user
|
88
|
+
post :create, :service_id => @service.to_param, :username => @username, :user_id => @user, :uri => 'http://www.example.com'
|
89
|
+
post :create, :service_id => @service.to_param, :username => @username, :user_id => @user, :uri => 'http://www.example.com'
|
90
90
|
end
|
91
91
|
should_set_the_flash_to(I18n.t('muck.services.already_added_username_feed', :service => '', :username => 'jbasdf')) # really do have to hard code the string here. @username is nil
|
92
92
|
should_redirect_to("parent") { user_identity_feeds_url(@user.id) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Duffin
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2010-01-
|
13
|
+
date: 2010-01-20 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|