squawk 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +2 -2
  2. data/Rakefile +1 -1
  3. data/lib/squawk.rb +2 -0
  4. metadata +2 -2
data/README.md CHANGED
@@ -13,9 +13,9 @@ Installation
13
13
  ============
14
14
  Because Squawk talks to Twitter, it has to run in the background. At least for now, Squawk assumes that you're using delayed_job.
15
15
 
16
- Install Squawk like a typical Rails plugin:
16
+ Add Squawk to your Gemfile:
17
17
 
18
- script/plugin install git://github.com/avand/squawk.git
18
+ gem 'squawk'
19
19
 
20
20
  Then create your the initializer config/initializers/squawk.rb:
21
21
 
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ Jeweler::Tasks.new do |gem|
7
7
  gem.homepage = "http://github.com/avand/squawk"
8
8
  gem.authors = ["Avand Amiri"]
9
9
  gem.files = FileList["[A-Z]*", "{lib}/**/*"]
10
- gem.version = '1.0.0'
10
+ gem.version = '1.0.1'
11
11
 
12
12
  gem.add_dependency("twitter", "0.9.8")
13
13
  end
@@ -42,6 +42,8 @@ class Squawk < Struct.new(:status)
42
42
  private
43
43
 
44
44
  def update(status)
45
+ return unless status.is_a?(String)
46
+
45
47
  status = status[0...140] # trim status to min Twitter length
46
48
 
47
49
  Rails.logger.info("Squawk (@#{@@twitter_handle}): #{status}")
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.0
8
+ - 1
9
+ version: 1.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Avand Amiri