social_stream-linkser 0.14.0 → 0.15.0
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/app/controllers/links_controller.rb +8 -0
- data/db/migrate/{20111219122952_create_social_stream_linkser.rb → 20120208143739_create_social_stream_linkser.rb} +2 -2
- data/lib/social_stream/linkser/version.rb +1 -1
- data/social_stream-linkser.gemspec +1 -1
- data/spec/dummy/config/initializers/devise.rb +5 -9
- metadata +6 -7
- data/db/migrate/20120202104549_add_links_foreign_key.rb +0 -9
- data/db/migrate/20120208143739_linkser_group_title_and_description_in_activity_object.rb +0 -30
@@ -1,3 +1,11 @@
|
|
1
1
|
class LinksController < ApplicationController
|
2
2
|
include SocialStream::Controllers::Objects
|
3
|
+
|
4
|
+
def create
|
5
|
+
super do |format|
|
6
|
+
format.json { render :json => resource }
|
7
|
+
format.js { render }
|
8
|
+
format.all {redirect_to link_path(resource) || home_path}
|
9
|
+
end
|
10
|
+
end
|
3
11
|
end
|
@@ -6,13 +6,13 @@ class CreateSocialStreamLinkser < ActiveRecord::Migration
|
|
6
6
|
t.datetime "updated_at"
|
7
7
|
t.string "url"
|
8
8
|
t.string "callback_url"
|
9
|
-
t.string "title"
|
10
9
|
t.string "image"
|
11
|
-
t.text "description"
|
12
10
|
t.integer "width", :default => 470
|
13
11
|
t.integer "height", :default => 353
|
14
12
|
end
|
15
13
|
|
16
14
|
add_index "links", ["activity_object_id"], :name => "index_links_on_activity_object_id"
|
15
|
+
|
16
|
+
add_foreign_key "links", "activity_objects", :name => "links_on_activity_object_id"
|
17
17
|
end
|
18
18
|
end
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.files = `git ls-files`.split("\n")
|
13
13
|
|
14
14
|
# Gem dependencies
|
15
|
-
s.add_runtime_dependency('social_stream-base', '~> 0.
|
15
|
+
s.add_runtime_dependency('social_stream-base', '~> 0.24.0')
|
16
16
|
s.add_runtime_dependency('linkser', '~> 0.0.12')
|
17
17
|
# Development Gem dependencies
|
18
18
|
s.add_development_dependency('sqlite3-ruby')
|
@@ -72,10 +72,6 @@ Devise.setup do |config|
|
|
72
72
|
# If true, extends the user's remember period when remembered via cookie.
|
73
73
|
# config.extend_remember_period = false
|
74
74
|
|
75
|
-
# If true, uses the password salt as remember token. This should be turned
|
76
|
-
# to false if you are not using database authenticatable.
|
77
|
-
config.use_salt_as_remember_token = true
|
78
|
-
|
79
75
|
# ==> Configuration for :validatable
|
80
76
|
# Range for password length. Default is 6..20.
|
81
77
|
# config.password_length = 6..20
|
@@ -122,11 +118,7 @@ Devise.setup do |config|
|
|
122
118
|
# ==> Configuration for :token_authenticatable
|
123
119
|
# Defines name of the authentication token params key
|
124
120
|
# config.token_authentication_key = :auth_token
|
125
|
-
|
126
|
-
# If true, authentication through token does not store user in session and needs
|
127
|
-
# to be supplied on each request. Useful if you are using the token as API token.
|
128
|
-
# config.stateless_token = false
|
129
|
-
|
121
|
+
|
130
122
|
# ==> Scopes configuration
|
131
123
|
# Turn scoped views on. Before rendering "sessions/new", it will first check for
|
132
124
|
# "users/sessions/new". It's turned off by default because it's slower if you
|
@@ -163,6 +155,10 @@ Devise.setup do |config|
|
|
163
155
|
config.omniauth :linkedin, "ekxfXU8nueVSMQ9fc5KJAryBkyztUlCBYMW3DoQPzbE79WhivvzhQloRNHCHgPeB", "WYiHFT-KKFgjd45W3-pEAficmXRHmN6_6DGwj1C_ZILJlSO1gBvv6VNYXU9tybGY"
|
164
156
|
|
165
157
|
config.omniauth :facebook, "129571360447856","eef39dce5e20e76f77495c59623bdb38"
|
158
|
+
|
159
|
+
#re state_less token removal
|
160
|
+
#https://github.com/plataformatec/devise/issues/1499
|
161
|
+
config.skip_session_storage << :token_auth
|
166
162
|
|
167
163
|
# ==> Warden configuration
|
168
164
|
# If you want to use other strategies, that are not supported by Devise, or
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_stream-linkser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-10-
|
13
|
+
date: 2012-10-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: social_stream-base
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.24.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - ~>
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: 0.
|
30
|
+
version: 0.24.0
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
32
|
name: linkser
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
@@ -153,9 +153,7 @@ files:
|
|
153
153
|
- config/locales/en.yml
|
154
154
|
- config/locales/es.yml
|
155
155
|
- config/routes.rb
|
156
|
-
- db/migrate/
|
157
|
-
- db/migrate/20120202104549_add_links_foreign_key.rb
|
158
|
-
- db/migrate/20120208143739_linkser_group_title_and_description_in_activity_object.rb
|
156
|
+
- db/migrate/20120208143739_create_social_stream_linkser.rb
|
159
157
|
- lib/generators/social_stream/linkser/install_generator.rb
|
160
158
|
- lib/social_stream-linkser.rb
|
161
159
|
- lib/social_stream/linkser/engine.rb
|
@@ -277,3 +275,4 @@ signing_key:
|
|
277
275
|
specification_version: 3
|
278
276
|
summary: Social Stream Linkser provides Linkser support in Social Stream.
|
279
277
|
test_files: []
|
278
|
+
has_rdoc:
|
@@ -1,30 +0,0 @@
|
|
1
|
-
class LinkserGroupTitleAndDescriptionInActivityObject < ActiveRecord::Migration
|
2
|
-
def up
|
3
|
-
ao_ts = ActivityObject.record_timestamps
|
4
|
-
ActivityObject.record_timestamps = false
|
5
|
-
|
6
|
-
# Fix 'links' table
|
7
|
-
l_ts = Link.record_timestamps
|
8
|
-
Link.record_timestamps = false
|
9
|
-
|
10
|
-
Link.all.each do |l|
|
11
|
-
l.activity_object.title = l.read_attribute(:title)
|
12
|
-
l.activity_object.description = l.read_attribute(:description)
|
13
|
-
l.save!
|
14
|
-
end
|
15
|
-
|
16
|
-
change_table :links do |t|
|
17
|
-
t.remove :title
|
18
|
-
t.remove :description
|
19
|
-
end
|
20
|
-
|
21
|
-
Link.reset_column_information
|
22
|
-
Link.record_timestamps = l_ts
|
23
|
-
|
24
|
-
ActivityObject.record_timestamps = ao_ts
|
25
|
-
end
|
26
|
-
|
27
|
-
def down
|
28
|
-
raise ActiveRecord::IrreversibleMigration # Due to trans-gem oddities
|
29
|
-
end
|
30
|
-
end
|