weather_jp 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.2
4
+ - 1.9.3
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://secure.travis-ci.org/Taiki45/weather_jp.png?branch=master)](http://travis-ci.org/Taiki45/weather_jp)
2
+
1
3
  ## About
2
4
 
3
5
  Fetch Japan weather info as Ruby object easily.
@@ -34,9 +34,11 @@ module WeatherJp
34
34
  def to_s
35
35
  word = "#{city_name}の"
36
36
  word << "#{day}の天気は"
37
- word << "#{forecast}"
38
- word << "最高気温#{max_temp}度、"
39
- word << "降水確率は#{rain}%です。"
37
+ word << "#{forecast} "
38
+ word << "最高気温#{max_temp}" if max_temp
39
+ word << "最低気温#{min_temp}" if min_temp
40
+ word << "降水確率は#{rain}% " if rain
41
+ word << "です。"
40
42
  word
41
43
  end
42
44
 
@@ -1,3 +1,3 @@
1
1
  module WeatherJp
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weather_jp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -83,6 +83,7 @@ extensions: []
83
83
  extra_rdoc_files: []
84
84
  files:
85
85
  - .gitignore
86
+ - .travis.yml
86
87
  - Gemfile
87
88
  - LICENSE
88
89
  - README.md
@@ -108,7 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
109
  version: '0'
109
110
  segments:
110
111
  - 0
111
- hash: -3045644943114962078
112
+ hash: -197537754625782512
112
113
  required_rubygems_version: !ruby/object:Gem::Requirement
113
114
  none: false
114
115
  requirements:
@@ -117,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
118
  version: '0'
118
119
  segments:
119
120
  - 0
120
- hash: -3045644943114962078
121
+ hash: -197537754625782512
121
122
  requirements: []
122
123
  rubyforge_project:
123
124
  rubygems_version: 1.8.23