cartoonist-twitter 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,4 @@
1
- class Admin::TweetsController < CartoonistController
2
- before_filter :ensure_ssl!
3
- before_filter :check_admin!
4
-
1
+ class Admin::TweetsController < AdminCartoonistController
5
2
  def index
6
3
  @untweeted = Tweet.untweeted.created_chronological.not_disabled
7
4
  @tweeted = Tweet.tweeted.reverse_chronological
@@ -99,6 +99,13 @@ class Tweet < ActiveRecord::Base
99
99
  logger.info "Fake Tweet: #{tweet}"
100
100
  end
101
101
 
102
+ rescue => e
103
+ logger.error "Error while sending tweet, will mark sent anyways (just in case):
104
+ #{e.class} (#{e.message})
105
+ #{e.backtrace.join "\n "}
106
+
107
+ "
108
+ ensure
102
109
  self.tweeted_at = Time.now
103
110
  save!
104
111
  end
@@ -12,5 +12,5 @@ Gem::Specification.new do |s|
12
12
  s.require_paths = ["lib"]
13
13
  s.homepage = "http://reasonnumber.com/cartoonist"
14
14
  s.add_dependency "cartoonist", cartoonist_version
15
- s.add_dependency "twitter", "~> 2.2.0"
15
+ s.add_dependency "twitter", "~> 4.2.0"
16
16
  end
@@ -2,4 +2,5 @@ require "twitter"
2
2
 
3
3
  module CartoonistTwitter
4
4
  require "cartoonist-twitter/engine"
5
+ require "cartoonist-twitter/version"
5
6
  end
@@ -60,7 +60,7 @@ module CartoonistTwitter
60
60
 
61
61
  Cartoonist::Routes.add do
62
62
  namespace :admin do
63
- resources :tweets
63
+ resources :tweets, :only => [:create, :edit, :index, :update]
64
64
  end
65
65
  end
66
66
  end
@@ -0,0 +1,9 @@
1
+ module CartoonistTwitter
2
+ class Version
3
+ class << self
4
+ def to_s
5
+ "0.0.13"
6
+ end
7
+ end
8
+ end
9
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cartoonist-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,30 +9,30 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-05 00:00:00.000000000 Z
12
+ date: 2012-11-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cartoonist
16
- requirement: &16266180 !ruby/object:Gem::Requirement
16
+ requirement: &12076320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
20
20
  - !ruby/object:Gem::Version
21
- version: 0.0.12
21
+ version: 0.0.13
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *16266180
24
+ version_requirements: *12076320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: twitter
27
- requirement: &16265460 !ruby/object:Gem::Requirement
27
+ requirement: &12075120 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: 2.2.0
32
+ version: 4.2.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *16265460
35
+ version_requirements: *12075120
36
36
  description: Plugin to allow tweeting of cartoonist entities.
37
37
  email: reasonnumber@gmail.com
38
38
  executables: []
@@ -50,6 +50,7 @@ files:
50
50
  - db/migrate/20120501083235_create_tweets.rb
51
51
  - lib/cartoonist-twitter.rb
52
52
  - lib/cartoonist-twitter/engine.rb
53
+ - lib/cartoonist-twitter/version.rb
53
54
  homepage: http://reasonnumber.com/cartoonist
54
55
  licenses: []
55
56
  post_install_message: