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 +4 -0
- data/README.md +2 -0
- data/lib/weather_jp/day_weather.rb +5 -3
- data/lib/weather_jp/version.rb +1 -1
- metadata +4 -3
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -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 << "
|
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
|
|
data/lib/weather_jp/version.rb
CHANGED
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.
|
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: -
|
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: -
|
121
|
+
hash: -197537754625782512
|
121
122
|
requirements: []
|
122
123
|
rubyforge_project:
|
123
124
|
rubygems_version: 1.8.23
|