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 +4 -4
- data/lib/mina/skype/tasks.rb +9 -9
- data/lib/mina/skype/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a94c41081e3b52bfaafb773bfb200abfdd66125e
|
4
|
+
data.tar.gz: b2242a89254738324d82bf1ba1cfcce1d841419a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd22c03e68eeee9771dbc121fb59f0dba059d5d6dfa8c892a18bfe4bd473b499c901fd791a9931abd9fa704ec8bdb34af1210466fc1955a756efec196768c453
|
7
|
+
data.tar.gz: 67d14a32b73cf7578dc6d5f2e0fad8caac1b6eda4dcdcdaf6e57f19270fcf20d711bcdc0acb3e85138fccf3022f67db17b0a6430ac19a6de06fac33cdcee6bd6
|
data/lib/mina/skype/tasks.rb
CHANGED
@@ -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
|
|
data/lib/mina/skype/version.rb
CHANGED