social_stream-linkser 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  //Display the new post
2
2
  $("#wall").prepend("<%= escape_javascript(render @link.post_activity) %>");
3
3
 
4
- SocialStream.Timeline.newActivity("<%= escape_javascript dom_id(@link.post_activity) %>");
4
+ SocialStream.Timeline.create("<%= escape_javascript dom_id(@link.post_activity) %>");
5
5
 
6
6
  $("#link_preview").hide();
7
7
  $("#link_preview").html("");
@@ -1,5 +1,5 @@
1
1
  class CreateSocialStreamLinkser < ActiveRecord::Migration
2
- def self.up
2
+ def change
3
3
  create_table "links", :force => true do |t|
4
4
  t.integer "activity_object_id"
5
5
  t.datetime "created_at"
@@ -9,13 +9,10 @@ class CreateSocialStreamLinkser < ActiveRecord::Migration
9
9
  t.string "title"
10
10
  t.string "image"
11
11
  t.text "description"
12
+ t.integer "width", :default => 470
13
+ t.integer "height", :default => 353
12
14
  end
13
15
 
14
- add_index "links", "activity_object_id"
15
- end
16
-
17
- def self.down
18
- remove_foreign_key "links", :name => "links_on_activity_object_id"
19
- drop_table :links
16
+ add_index "links", ["activity_object_id"], :name => "index_links_on_activity_object_id"
20
17
  end
21
18
  end
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Linkser
3
- VERSION = "0.8.0".freeze
3
+ VERSION = "0.9.0".freeze
4
4
  end
5
5
  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.18.0')
15
+ s.add_runtime_dependency('social_stream-base', '~> 0.19.0')
16
16
  s.add_runtime_dependency('linkser', '~> 0.0.10')
17
17
  # Development Gem dependencies
18
18
  s.add_development_dependency('sqlite3-ruby')
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.8.0
4
+ version: 0.9.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,22 +10,22 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-03-21 00:00:00.000000000Z
13
+ date: 2012-04-02 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: social_stream-base
17
- requirement: &87856070 !ruby/object:Gem::Requirement
17
+ requirement: &79043400 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 0.18.0
22
+ version: 0.19.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *87856070
25
+ version_requirements: *79043400
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: linkser
28
- requirement: &87855780 !ruby/object:Gem::Requirement
28
+ requirement: &79042480 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 0.0.10
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *87855780
36
+ version_requirements: *79042480
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: sqlite3-ruby
39
- requirement: &87855490 !ruby/object:Gem::Requirement
39
+ requirement: &79041960 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *87855490
47
+ version_requirements: *79041960
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rspec-rails
50
- requirement: &87854830 !ruby/object:Gem::Requirement
50
+ requirement: &79023440 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: 2.6.0
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *87854830
58
+ version_requirements: *79023440
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: factory_girl
61
- requirement: &87854050 !ruby/object:Gem::Requirement
61
+ requirement: &79022880 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ~>
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 1.3.2
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *87854050
69
+ version_requirements: *79022880
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: forgery
72
- requirement: &87853530 !ruby/object:Gem::Requirement
72
+ requirement: &79022410 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ~>
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: 0.3.6
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *87853530
80
+ version_requirements: *79022410
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: capybara
83
- requirement: &87852770 !ruby/object:Gem::Requirement
83
+ requirement: &79021770 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ~>
@@ -88,7 +88,7 @@ dependencies:
88
88
  version: 0.3.9
89
89
  type: :development
90
90
  prerelease: false
91
- version_requirements: *87852770
91
+ version_requirements: *79021770
92
92
  description: Social Stream Linkser provides Linkser support in Social Stream, the
93
93
  core for building social network websites.
94
94
  email: ecasanovac@gmail.com
@@ -118,8 +118,7 @@ files:
118
118
  - config/locales/en.yml
119
119
  - config/locales/es.yml
120
120
  - config/routes.rb
121
- - db/migrate/20111129100618_create_social_stream_linkser.rb
122
- - db/migrate/20111219122952_add_width_height_to_link.rb
121
+ - db/migrate/20111219122952_create_social_stream_linkser.rb
123
122
  - db/migrate/20120202104549_add_links_foreign_key.rb
124
123
  - db/migrate/20120208143739_linkser_group_title_and_description_in_activity_object.rb
125
124
  - lib/generators/social_stream/linkser/install_generator.rb
@@ -1,15 +0,0 @@
1
- class AddWidthHeightToLink < ActiveRecord::Migration
2
- def self.up
3
- change_table "links" do |t|
4
- t.integer "width", :default => 470
5
- t.integer "height", :default => 353
6
- end
7
- end
8
-
9
- def self.down
10
- change_table :links do |t|
11
- t.remove "width"
12
- t.remove "height"
13
- end
14
- end
15
- end