cinch-weatherman 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
23
23
  gem.add_development_dependency 'cinch-test'
24
24
 
25
25
  gem.add_dependency 'cinch', '~> 2.0.5'
26
- gem.add_dependency 'weather-underground', '>= 1.1.1'
26
+ gem.add_dependency 'weather-underground', '~> 1.1.1'
27
27
  gem.add_dependency 'time-lord', '~> 1.0.1'
28
- gem.add_dependency 'cinch-cooldown'
29
- end
28
+ gem.add_dependency 'cinch-cooldown', '~> 1.0.1'
29
+ end
@@ -1,5 +1,5 @@
1
1
  module Cinch
2
2
  module Weatherman
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  require 'cinch'
3
- require 'cinch-cooldown'
3
+ require 'cinch/cooldown'
4
4
  require 'time-lord'
5
5
  require 'weather-underground'
6
6
 
@@ -5,30 +5,30 @@ describe Cinch::Plugins::Weatherman do
5
5
  include Cinch::Test
6
6
 
7
7
  before(:each) do
8
- @bot = make_bot(Cinch::Plugins::Weatherman, {})
8
+ @bot = make_bot(Cinch::Plugins::Weatherman)
9
9
  end
10
10
 
11
11
  it 'should allow users to ask for weather by zip' do
12
12
  msg = make_message(@bot, '!weather 94062')
13
- get_replies(msg).last.chomp.
13
+ get_replies(msg).last.text.
14
14
  should include('In Redwood City, CA it is')
15
15
  end
16
16
 
17
17
  it 'should allow users to ask for weather by city, state' do
18
18
  msg = make_message(@bot, '!weather redwood city, ca')
19
- get_replies(msg).last.chomp.
19
+ get_replies(msg).last.text.
20
20
  should include('In Redwood City, CA it is')
21
21
  end
22
22
 
23
23
  it 'should allow users to ask for weather by airport code' do
24
24
  msg = make_message(@bot, '!weather SFO')
25
- get_replies(msg).last.chomp.
25
+ get_replies(msg).last.text.
26
26
  should include('In San Francisco International, CA it is')
27
27
  end
28
28
 
29
29
  it 'should return an error when location not found' do
30
30
  msg = make_message(@bot, '!weather 34')
31
- get_replies(msg).last.chomp.
31
+ get_replies(msg).last.text.
32
32
  should include('Sorry, couldn\'t find 34.')
33
33
  end
34
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinch-weatherman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-26 00:00:00.000000000 Z
13
+ date: 2013-07-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -97,7 +97,7 @@ dependencies:
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  none: false
99
99
  requirements:
100
- - - ! '>='
100
+ - - ~>
101
101
  - !ruby/object:Gem::Version
102
102
  version: 1.1.1
103
103
  type: :runtime
@@ -105,7 +105,7 @@ dependencies:
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
- - - ! '>='
108
+ - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.1.1
111
111
  - !ruby/object:Gem::Dependency
@@ -129,17 +129,17 @@ dependencies:
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  none: false
131
131
  requirements:
132
- - - ! '>='
132
+ - - ~>
133
133
  - !ruby/object:Gem::Version
134
- version: '0'
134
+ version: 1.0.1
135
135
  type: :runtime
136
136
  prerelease: false
137
137
  version_requirements: !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
- - - ! '>='
140
+ - - ~>
141
141
  - !ruby/object:Gem::Version
142
- version: '0'
142
+ version: 1.0.1
143
143
  description: Cinch Plugin to get Weather data using the Weather-Underground gem
144
144
  email:
145
145
  - bhaberer@gmail.com
@@ -179,11 +179,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  version: '0'
180
180
  requirements: []
181
181
  rubyforge_project:
182
- rubygems_version: 1.8.24
182
+ rubygems_version: 1.8.25
183
183
  signing_key:
184
184
  specification_version: 3
185
185
  summary: Cinch Plugin to get Weather data
186
186
  test_files:
187
187
  - spec/cinch-weatherman_spec.rb
188
188
  - spec/spec_helper.rb
189
- has_rdoc: