accern 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d98bb97d1e447d5ab00d4543d233a81c79320976
4
- data.tar.gz: dbb9c2da127d6da30b59406b1cee447be57c5767
3
+ metadata.gz: b71dbccab144e1126f232b4bd18e4ac1136801bb
4
+ data.tar.gz: 43b466633f0d7e88a75317d8c9034af036c8a156
5
5
  SHA512:
6
- metadata.gz: 9ae51b0a920b3fd85d90ac62226055232daa7598dbe19292670e39206356ff519788cccdc1c6dee2d1e56879ef3381f7093450e548153d6dfb25496a0c7fad33
7
- data.tar.gz: f8a5b856fe9aaa653c46022646697d9a8ab40a603b853f5fdbc6535996a0f04abf9698776371b59d4d647d395134341259985a406c9b8f738e9655db4808785a
6
+ metadata.gz: 738ca4043781655d3654aad5d80ccdd1a856826fcd9349e4f220ceced8294bfe54eb65482cb41921a9607db106fc42782444c77d77aa2664f43f6910751efe36
7
+ data.tar.gz: eb4d52e4f735b0d420699a836f69178f961f3e49f8ca9ab701694473af35c0f1b895706968b13baf24668a06e4bdbd7840e3352ab6bd6ae953482ffbb908d1cf
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency 'rake', '~> 10.0'
25
25
  spec.add_development_dependency 'rspec', '~> 3.0'
26
26
  spec.add_development_dependency 'pry', '~> 0.10'
27
- spec.add_development_dependency 'guard-rspec', '~> 4.7'
27
+ # spec.add_development_dependency 'guard-rspec', '~> 4.7'
28
28
  end
data/exe/accern CHANGED
@@ -1,4 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'accern'
3
3
 
4
+ trap 'SIGINT' do
5
+ puts "\nExiting"
6
+ exit 130
7
+ end
8
+
9
+ puts "Press CTRL + C to Exit\n\n"
10
+
4
11
  Accern::Cli.new(args: ARGV).start
@@ -3,7 +3,7 @@ module Accern
3
3
  attr_reader :token, :base_url, :uri, :last_id, :new_id, :docs,
4
4
  :format, :flat, :params, :ticker, :index
5
5
 
6
- def initialize(token:, ticker:, index:, format: :json)
6
+ def initialize(token: nil, ticker: nil, index: nil, format: :json)
7
7
  @token = token
8
8
  @ticker = ticker
9
9
  @index = index
@@ -42,7 +42,7 @@ module Accern
42
42
  puts e.backtrace
43
43
  end
44
44
 
45
- def download_loop(path:)
45
+ def download_loop(path: nil)
46
46
  loop do
47
47
  download(path)
48
48
  sleep 8
@@ -1,3 +1,3 @@
1
1
  module Accern
2
- VERSION = '3.2.0'.freeze
2
+ VERSION = '3.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: accern
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Espejo
@@ -9,78 +9,64 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-03-17 00:00:00.000000000 Z
12
+ date: 2017-06-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ~>
19
19
  - !ruby/object:Gem::Version
20
20
  version: '1.14'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ~>
26
26
  - !ruby/object:Gem::Version
27
27
  version: '1.14'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ~>
33
33
  - !ruby/object:Gem::Version
34
34
  version: '10.0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ~>
40
40
  - !ruby/object:Gem::Version
41
41
  version: '10.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ~>
47
47
  - !ruby/object:Gem::Version
48
48
  version: '3.0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - ~>
54
54
  - !ruby/object:Gem::Version
55
55
  version: '3.0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: pry
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "~>"
60
+ - - ~>
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0.10'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
67
+ - - ~>
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0.10'
70
- - !ruby/object:Gem::Dependency
71
- name: guard-rspec
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - "~>"
75
- - !ruby/object:Gem::Version
76
- version: '4.7'
77
- type: :development
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - "~>"
82
- - !ruby/object:Gem::Version
83
- version: '4.7'
84
70
  description:
85
71
  email:
86
72
  - vendors@accern.com
@@ -89,9 +75,9 @@ executables:
89
75
  extensions: []
90
76
  extra_rdoc_files: []
91
77
  files:
92
- - ".gitignore"
93
- - ".rspec"
94
- - ".travis.yml"
78
+ - .gitignore
79
+ - .rspec
80
+ - .travis.yml
95
81
  - Gemfile
96
82
  - Guardfile
97
83
  - LICENSE.txt
@@ -116,17 +102,17 @@ require_paths:
116
102
  - lib
117
103
  required_ruby_version: !ruby/object:Gem::Requirement
118
104
  requirements:
119
- - - ">="
105
+ - - '>='
120
106
  - !ruby/object:Gem::Version
121
107
  version: '2.0'
122
108
  required_rubygems_version: !ruby/object:Gem::Requirement
123
109
  requirements:
124
- - - ">="
110
+ - - '>='
125
111
  - !ruby/object:Gem::Version
126
112
  version: '0'
127
113
  requirements: []
128
114
  rubyforge_project:
129
- rubygems_version: 2.5.2
115
+ rubygems_version: 2.0.14.1
130
116
  signing_key:
131
117
  specification_version: 4
132
118
  summary: A command line interface for the Accern API.