mina-skype 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa78b1d2fa2cd7a27d282a9ecd0083e483e5a815
4
- data.tar.gz: b26cb247c52ad7353c4fa351429d51d104eeae32
3
+ metadata.gz: a94c41081e3b52bfaafb773bfb200abfdd66125e
4
+ data.tar.gz: b2242a89254738324d82bf1ba1cfcce1d841419a
5
5
  SHA512:
6
- metadata.gz: cceabda3d43d46b4a40da8069ea5eff136b19cf30751bfd30fa236c2fa70075f1fa0d6ca1d43e8a45e2a91302c402c69d9dd291147239288173d67832b85bb03
7
- data.tar.gz: e11b5606e4c37e4dd956b4994efcca754feae884eef726407b5ad9a000e39d80fd4f648fe5ebd106d4a23055a3e4be092649df2b423e2e33ab8627e02dd2c910
6
+ metadata.gz: fd22c03e68eeee9771dbc121fb59f0dba059d5d6dfa8c892a18bfe4bd473b499c901fd791a9931abd9fa704ec8bdb34af1210466fc1955a756efec196768c453
7
+ data.tar.gz: 67d14a32b73cf7578dc6d5f2e0fad8caac1b6eda4dcdcdaf6e57f19270fcf20d711bcdc0acb3e85138fccf3022f67db17b0a6430ac19a6de06fac33cdcee6bd6
@@ -29,7 +29,7 @@ namespace :skype do
29
29
  end
30
30
 
31
31
  def ready_to_run
32
- skype_app_id and skype_app_secret and skype_conversation_id
32
+ fetch(:skype_app_id) and fetch(:skype_app_secret) and fetch(:skype_conversation_id)
33
33
  end
34
34
 
35
35
  def print_error_message
@@ -37,31 +37,31 @@ namespace :skype do
37
37
  end
38
38
 
39
39
  def announced_stage
40
- ENV['to'] || rails_env || 'production'
40
+ ENV['to'] || fetch(:rails_env) || 'production'
41
41
  end
42
42
 
43
43
  def announced_deployer
44
- deployer
44
+ fetch(:deployer)
45
45
  end
46
46
 
47
47
  def short_revision
48
- deployed_revision[0..7] if deployed_revision
48
+ fetch(:deployed_revision)[0..7] if fetch(:deployed_revision)
49
49
  end
50
50
 
51
51
  def announced_application_name
52
52
  "".tap do |output|
53
- output << skype_application if skype_application
54
- output << " #{branch}" if branch
53
+ output << fetch(:skype_application) if fetch(:skype_application)
54
+ output << " #{fetch(:branch)}" if fetch(:branch)
55
55
  output << " (#{short_revision})" if short_revision
56
56
  end
57
57
  end
58
58
 
59
59
  def config_skype
60
- SkypeBot::Config.app_id = skype_app_id
61
- SkypeBot::Config.app_secret = skype_app_secret
60
+ SkypeBot::Config.app_id = fetch(:skype_app_id)
61
+ SkypeBot::Config.app_secret = fetch(:skype_app_secret)
62
62
 
63
63
  @event = {'service_url' => 'https://smba.trafficmanager.net/apis',
64
- 'conversation_id' => skype_conversation_id}
64
+ 'conversation_id' => fetch(:skype_conversation_id)}
65
65
  @skype_is_configured = true
66
66
  end
67
67
 
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Skype
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-skype
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Star Chow