capistrano-lingr 0.0.2 → 0.0.4

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.
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 1.9.2
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Capistrano::Lingr
1
+ # Capistrano::Lingr [![Build Status](https://secure.travis-ci.org/rochefort/gem-search.png)](http://travis-ci.org/rochefort/gem-search)
2
2
 
3
3
  Notify to Lingr after deploy by Capistrano
4
4
 
@@ -14,15 +14,19 @@ And then execute: `bundle install`
14
14
 
15
15
  ## Usage
16
16
 
17
+ before using gem, need to make bot of Lingr.
18
+ [Lingr/developer](http://lingr.com/developer)
19
+
17
20
  In `config/deploy.rb`
18
21
 
19
22
  ```rb
20
23
  require 'capistrano/lingr'
21
24
 
22
25
  set :lingr_config, {
23
- :room_id => "hoge",
24
- :bot_id => "huga",
25
- :secret => "piyo"
26
+ room_id: "hoge",
27
+ bot_id: "huga",
28
+ secret: "piyo",
29
+ text: "DEPROY DONE!!!" # You can specify the string you want. but not required.
26
30
  }
27
31
 
28
32
  after :deploy, 'notify:lingr'
data/Rakefile CHANGED
@@ -1,2 +1,10 @@
1
1
  #!/usr/bin/env rake
2
- require "bundler/gem_tasks"
2
+ require 'bundler/gem_tasks'
3
+ require 'rspec/core/rake_task'
4
+
5
+ task default: :spec
6
+ desc 'Run rspec'
7
+ Rspec::Core::RakeTask.new(:spec) do |spec|
8
+ spec.pattern = 'spec/**/*_spec.rb'
9
+ spec.rspec_opts = ['-cfs']
10
+ end
@@ -47,7 +47,11 @@ class Capistrano::Lingr
47
47
  end
48
48
 
49
49
  def text
50
- "#{application} is deployed by #{git_user}"
50
+ if @cap.lingr_config[:text]
51
+ @cap.lingr_config[:text]
52
+ else
53
+ "#{application} is deployed by #{git_user}"
54
+ end
51
55
  end
52
56
 
53
57
  def git_user
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  class Lingr
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-lingr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-03 00:00:00.000000000 Z
12
+ date: 2012-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -67,6 +67,7 @@ extensions: []
67
67
  extra_rdoc_files: []
68
68
  files:
69
69
  - .gitignore
70
+ - .travis.yml
70
71
  - Gemfile
71
72
  - LICENSE
72
73
  - README.md