meteo_pl 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f0af1121139a606c58aa303fae1ea1f5d5fdf8b4a9bf41981f0e1fa4b27d9c4
4
- data.tar.gz: 6c7770bca0c36d7c9c433ba668365f97eb6c590619d29f62757ef39b7cfe7adf
3
+ metadata.gz: 65d9e29e9723318f5b9da3be4f126f1930a1bf14610d6d955717cbcd9aaca085
4
+ data.tar.gz: 7744ff3ce746bdc5cadb47fcc4eab60c506476728c5a54178d158a08a6578c99
5
5
  SHA512:
6
- metadata.gz: 98562aff6d31337ec1c1d05a69ec675a8f016afc02059f8fb2cc8be4b41c829434aa31f4f734c0d8ca6cdb1300a95033d050eb0723af8e54c0bdf12fb644d2ad
7
- data.tar.gz: 15ab3440eeb8292991fc893a2d580d2c4b3919b5c8c3e1f74667169f36cdb8c311594a57192d47ff68a006627bfa8cbb69eed734a73670016134841b90b4301d
6
+ metadata.gz: 28d38ec4d392daf93a55778a0238aa63775176ea4817764c0ee74c52391a06ee97bada73e6d8f07986d7ddd6d069fa84c30461dff488cc62f1a8bcaca9a588fc
7
+ data.tar.gz: 18d8dca54f5a75b426cfd879985487c21dd764ef6cbd07adba03e9572143c8eed1b871e0213738db6768bb8df35c600d1fc39946a792037fe81692fcc15b3657
data/README.md CHANGED
@@ -10,7 +10,7 @@ It allows to fetch coamps and um diagrams separately and open open them in your
10
10
  **Architecture**
11
11
 
12
12
  *lib/meteo_pl/exec* directory contains usage examples (as MeteoPl::Exec::Shell class),
13
- you should use provided compontents to prepare similar classi (or script) that meets your requirements.
13
+ you should use provided compontents to prepare similar class (or script) that meets your requirements.
14
14
 
15
15
  **Usage example:**
16
16
 
@@ -21,7 +21,7 @@ Install gem in system-wide context, than create executable `meteo` named script:
21
21
 
22
22
  require 'meteo_pl'
23
23
 
24
- MeteoPl::Exec::Shell.call
24
+ MeteoPl::Exec::Shell.call(ARGV)
25
25
  ```
26
26
 
27
27
  Than you'll be able to generate the weather forecast diagram from your command line:
@@ -39,6 +39,7 @@ To check all available options just run a script w/o arguments or with -h flag.
39
39
 
40
40
  ### Versions
41
41
 
42
+ * 2.0.4 MeteoPl::Exec::Shell class fix
42
43
  * 2.0.3 Adding *Exec* namespece containing example classes
43
44
  * 2.0.2 Increased code quality
44
45
  * 2.0.1 Minor code improvements, add TravisCI
@@ -1,8 +1,8 @@
1
1
  module MeteoPl
2
2
  module Exec
3
3
  module Shell
4
- def call
5
- command_line = MeteoPl::Utility::Command.new(ARGV)
4
+ def call(args)
5
+ command_line = MeteoPl::Utility::Command.new(args)
6
6
  return unless command_line.call
7
7
 
8
8
  location = command_line.location,
@@ -1,3 +1,3 @@
1
1
  module MeteoPl
2
- VERSION = '2.0.3'.freeze
2
+ VERSION = '2.0.4'.freeze
3
3
  end
@@ -14,7 +14,7 @@ describe MeteoPl::Exec::Shell do
14
14
  )
15
15
  expect_any_instance_of(MeteoPl::Utility::Presenter).not_to receive(:show)
16
16
 
17
- described_class.call
17
+ described_class.call(['Warszawa', '-p', 'long'])
18
18
  end
19
19
  end
20
20
 
@@ -30,7 +30,7 @@ describe MeteoPl::Exec::Shell do
30
30
  expect($stdout).not_to receive(:puts)
31
31
  expect_any_instance_of(MeteoPl::Utility::Presenter).to receive(:show)
32
32
 
33
- described_class.call
33
+ described_class.call(['Warszawa', '-p', 'long'])
34
34
  end
35
35
  end
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meteo_pl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Kot