smartwatch 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +0 -0
- data/MIT-LICENSE +21 -0
- data/README.md +21 -0
- data/README.rdoc +1 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/smartwatch +4 -0
- data/lib/smart_watch.rb +14 -0
- data/lib/smart_watch/base.rb +11 -0
- data/lib/smart_watch/commands.rb +4 -0
- data/lib/smart_watch/commands/cli.rb +11 -0
- data/lib/smart_watch/logger.rb +35 -0
- data/lib/smart_watch/version.rb +34 -0
- metadata +151 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 31f44620383af6c57c32e3e46dc36d0602be4989ff18317799904fbffd049fd5
|
4
|
+
data.tar.gz: 7966693b98b05ec060bec4660e34f6dece8963f8f553d5b3dd919d250a1160dd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4fe9fd330adfab0b9df01672d5cb60ca05f318bf43f615c19a702a674da4c67bab1049b73014faca702d7bf95e9fe3d159280c044508452371d10f465b62fc51
|
7
|
+
data.tar.gz: 333580d43b6dd613ab6ce23aa90a1714d7fe04f43b441aa79f4274760cfa4878b834811b842d58ce1766c97d08a74e62ab8cad984cc502de2164f83f582db94b
|
data/CHANGELOG.md
ADDED
File without changes
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020-2021 Gaurav Goel
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# SmartWatch
|
2
|
+
|
3
|
+
SmartWatch is a wrapper API for stock market investments.
|
4
|
+
|
5
|
+
## Development
|
6
|
+
|
7
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
8
|
+
|
9
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
10
|
+
|
11
|
+
## Contributing
|
12
|
+
|
13
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/timeboardcode/smartwatch. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/timeboardcode/smartwatch/blob/master/CODE_OF_CONDUCT.md).
|
14
|
+
|
15
|
+
## License
|
16
|
+
|
17
|
+
SmartWatch is released under the [MIT License](https://opensource.org/licenses/MIT).
|
18
|
+
|
19
|
+
## Code of Conduct
|
20
|
+
|
21
|
+
Everyone interacting in the SmartWatch project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/timeboardcode/smartwatch/blob/master/CODE_OF_CONDUCT.md).
|
data/README.rdoc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
= Documentation ReadMe
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "smart_watch"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/exe/smartwatch
ADDED
data/lib/smart_watch.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
require "logger"
|
2
|
+
|
3
|
+
$stdout.sync = true
|
4
|
+
|
5
|
+
module SmartWatch
|
6
|
+
module Logger
|
7
|
+
def logger
|
8
|
+
@logger ||= SmartWatch::Logger.logger_for(self.class.name)
|
9
|
+
end
|
10
|
+
|
11
|
+
# Use a hash class-ivar to cache a unique Logger per class:
|
12
|
+
@loggers = {}
|
13
|
+
|
14
|
+
def self.included(base)
|
15
|
+
class << base
|
16
|
+
def logger
|
17
|
+
@logger ||= SmartWatch::Logger.logger_for(self.name)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
class << self
|
23
|
+
def logger_for(classname)
|
24
|
+
@loggers[classname] ||= configure_logger_for(classname)
|
25
|
+
end
|
26
|
+
|
27
|
+
def configure_logger_for(classname)
|
28
|
+
logger = ::Logger.new($stdout)
|
29
|
+
logger.level = ::Logger.const_get("#{SmartWatch.config.logger_level}".upcase)
|
30
|
+
logger.progname = classname
|
31
|
+
logger
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module SmartWatch
|
4
|
+
# Returns the version of the currently loaded SmartWatch as a <tt>Gem::Version</tt>.
|
5
|
+
def self.gem_version
|
6
|
+
Gem::Version.new VERSION::STRING
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.version
|
10
|
+
self.gem_version.to_s
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.ruby_version
|
14
|
+
RUBY_VERSION::STRING
|
15
|
+
end
|
16
|
+
|
17
|
+
module VERSION
|
18
|
+
MAJOR = 0
|
19
|
+
MINOR = 0
|
20
|
+
TINY = 0
|
21
|
+
PRE = nil
|
22
|
+
|
23
|
+
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
|
24
|
+
end
|
25
|
+
|
26
|
+
module RUBY_VERSION
|
27
|
+
MAJOR = 2
|
28
|
+
MINOR = 7
|
29
|
+
TINY = 0
|
30
|
+
PRE = nil
|
31
|
+
|
32
|
+
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
|
33
|
+
end
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,151 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: smartwatch
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Gaurav Goel
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-04-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: net-ssh
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '5.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bcrypt
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.1'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 3.1.13
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '3.1'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 3.1.13
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: activesupport
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '6.0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '6.0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: thor
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '1.0'
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 1.0.1
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '1.0'
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 1.0.1
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: bundler
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 2.1.4
|
88
|
+
- - "<"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 3.0.0
|
91
|
+
type: :runtime
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 2.1.4
|
98
|
+
- - "<"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 3.0.0
|
101
|
+
description: SmartWatch is a wrapper API for stock market investments.
|
102
|
+
email: gaurav@timeboard.me
|
103
|
+
executables:
|
104
|
+
- smartwatch
|
105
|
+
extensions: []
|
106
|
+
extra_rdoc_files:
|
107
|
+
- README.rdoc
|
108
|
+
files:
|
109
|
+
- CHANGELOG.md
|
110
|
+
- MIT-LICENSE
|
111
|
+
- README.md
|
112
|
+
- README.rdoc
|
113
|
+
- bin/console
|
114
|
+
- bin/setup
|
115
|
+
- exe/smartwatch
|
116
|
+
- lib/smart_watch.rb
|
117
|
+
- lib/smart_watch/base.rb
|
118
|
+
- lib/smart_watch/commands.rb
|
119
|
+
- lib/smart_watch/commands/cli.rb
|
120
|
+
- lib/smart_watch/logger.rb
|
121
|
+
- lib/smart_watch/version.rb
|
122
|
+
homepage: https://github.com/timeboardcode/smartwatch
|
123
|
+
licenses:
|
124
|
+
- MIT
|
125
|
+
metadata:
|
126
|
+
homepage_uri: https://github.com/timeboardcode/smartwatch
|
127
|
+
bug_tracker_uri: https://github.com/timeboardcode/smartwatch/issues
|
128
|
+
changelog_uri: https://github.com/timeboardcode/smartwatch/releases/tag/v0.0.0
|
129
|
+
source_code_uri: https://github.com/timeboardcode/smartwatch/tree/v0.0.0
|
130
|
+
post_install_message:
|
131
|
+
rdoc_options:
|
132
|
+
- "--main"
|
133
|
+
- README.rdoc
|
134
|
+
require_paths:
|
135
|
+
- lib
|
136
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: 2.7.0
|
141
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 1.8.11
|
146
|
+
requirements: []
|
147
|
+
rubygems_version: 3.1.2
|
148
|
+
signing_key:
|
149
|
+
specification_version: 4
|
150
|
+
summary: Full-stack deployment framework for Rails.
|
151
|
+
test_files: []
|