chino_ruby 1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5b37ae4002f445ce65df53a19ad02e1b631aefff
4
+ data.tar.gz: 8c9812ab48e638b690e5ed585352edce05224c95
5
+ SHA512:
6
+ metadata.gz: f9b8c01c5a35a6c0fae52bafb7785458d419750f87326237cba8d733145f6bb15e7b789aaf54872da91e59f52e0611e5b5eef206cfa56ea44ebd383c56167b8e
7
+ data.tar.gz: 1870cd364ca7eaf663829d28ed16d9926965178d351bcae735429e5100714247d92087965eb77502ce856b351594fbec74374baa004183f64fd0ff23bd36b955
data/.gitignore ADDED
@@ -0,0 +1,24 @@
1
+ # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile '~/.gitignore_global'
6
+
7
+ # Ignore bundler config.
8
+ /.bundle
9
+
10
+ # Ignore the default SQLite database.
11
+ /db/*.sqlite3
12
+ /db/*.sqlite3-journal
13
+
14
+ # Ignore all logfiles and tempfiles.
15
+ /log/*
16
+ /tmp/*
17
+ !/log/.keep
18
+ !/tmp/.keep
19
+
20
+ /node_modules
21
+ /yarn-error.log
22
+
23
+ .byebug_history
24
+ .DS_Store
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
4
+
data/Gemfile.lock ADDED
@@ -0,0 +1,135 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ chino_ruby (0.1.0)
5
+ listen (~> 3.0)
6
+ rails (~> 5.1.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (5.1.1)
12
+ actionpack (= 5.1.1)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (~> 0.6.1)
15
+ actionmailer (5.1.1)
16
+ actionpack (= 5.1.1)
17
+ actionview (= 5.1.1)
18
+ activejob (= 5.1.1)
19
+ mail (~> 2.5, >= 2.5.4)
20
+ rails-dom-testing (~> 2.0)
21
+ actionpack (5.1.1)
22
+ actionview (= 5.1.1)
23
+ activesupport (= 5.1.1)
24
+ rack (~> 2.0)
25
+ rack-test (~> 0.6.3)
26
+ rails-dom-testing (~> 2.0)
27
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
+ actionview (5.1.1)
29
+ activesupport (= 5.1.1)
30
+ builder (~> 3.1)
31
+ erubi (~> 1.4)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
+ activejob (5.1.1)
35
+ activesupport (= 5.1.1)
36
+ globalid (>= 0.3.6)
37
+ activemodel (5.1.1)
38
+ activesupport (= 5.1.1)
39
+ activerecord (5.1.1)
40
+ activemodel (= 5.1.1)
41
+ activesupport (= 5.1.1)
42
+ arel (~> 8.0)
43
+ activesupport (5.1.1)
44
+ concurrent-ruby (~> 1.0, >= 1.0.2)
45
+ i18n (~> 0.7)
46
+ minitest (~> 5.1)
47
+ tzinfo (~> 1.1)
48
+ arel (8.0.0)
49
+ builder (3.2.3)
50
+ concurrent-ruby (1.0.5)
51
+ erubi (1.6.0)
52
+ ffi (1.9.18)
53
+ globalid (0.4.0)
54
+ activesupport (>= 4.2.0)
55
+ i18n (0.8.1)
56
+ listen (3.1.5)
57
+ rb-fsevent (~> 0.9, >= 0.9.4)
58
+ rb-inotify (~> 0.9, >= 0.9.7)
59
+ ruby_dep (~> 1.2)
60
+ loofah (2.0.3)
61
+ nokogiri (>= 1.5.9)
62
+ mail (2.6.6)
63
+ mime-types (>= 1.16, < 4)
64
+ method_source (0.8.2)
65
+ mime-types (3.1)
66
+ mime-types-data (~> 3.2015)
67
+ mime-types-data (3.2016.0521)
68
+ mini_portile2 (2.2.0)
69
+ minitest (5.10.2)
70
+ nio4r (2.1.0)
71
+ nokogiri (1.8.0)
72
+ mini_portile2 (~> 2.2.0)
73
+ power_assert (1.0.2)
74
+ rack (2.0.3)
75
+ rack-test (0.6.3)
76
+ rack (>= 1.0)
77
+ rails (5.1.1)
78
+ actioncable (= 5.1.1)
79
+ actionmailer (= 5.1.1)
80
+ actionpack (= 5.1.1)
81
+ actionview (= 5.1.1)
82
+ activejob (= 5.1.1)
83
+ activemodel (= 5.1.1)
84
+ activerecord (= 5.1.1)
85
+ activesupport (= 5.1.1)
86
+ bundler (>= 1.3.0, < 2.0)
87
+ railties (= 5.1.1)
88
+ sprockets-rails (>= 2.0.0)
89
+ rails-dom-testing (2.0.3)
90
+ activesupport (>= 4.2.0)
91
+ nokogiri (>= 1.6)
92
+ rails-html-sanitizer (1.0.3)
93
+ loofah (~> 2.0)
94
+ railties (5.1.1)
95
+ actionpack (= 5.1.1)
96
+ activesupport (= 5.1.1)
97
+ method_source
98
+ rake (>= 0.8.7)
99
+ thor (>= 0.18.1, < 2.0)
100
+ rake (10.5.0)
101
+ rb-fsevent (0.9.8)
102
+ rb-inotify (0.9.10)
103
+ ffi (>= 0.5.0, < 2)
104
+ ruby_dep (1.5.0)
105
+ spring (2.0.2)
106
+ activesupport (>= 4.2)
107
+ sprockets (3.7.1)
108
+ concurrent-ruby (~> 1.0)
109
+ rack (> 1, < 3)
110
+ sprockets-rails (3.2.0)
111
+ actionpack (>= 4.0)
112
+ activesupport (>= 4.0)
113
+ sprockets (>= 3.0.0)
114
+ test-unit (3.2.5)
115
+ power_assert
116
+ thor (0.19.4)
117
+ thread_safe (0.3.6)
118
+ tzinfo (1.2.3)
119
+ thread_safe (~> 0.1)
120
+ websocket-driver (0.6.5)
121
+ websocket-extensions (>= 0.1.0)
122
+ websocket-extensions (0.1.2)
123
+
124
+ PLATFORMS
125
+ ruby
126
+
127
+ DEPENDENCIES
128
+ bundler (~> 1.15)
129
+ chino_ruby!
130
+ rake (~> 10.0)
131
+ spring
132
+ test-unit
133
+
134
+ BUNDLED WITH
135
+ 1.15.0
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 TODO: Write your name
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,38 @@
1
+ # ChinoRuby
2
+
3
+ Official Ruby wrapper of the Chino.io
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'chino_ruby'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install chino_ruby
20
+
21
+ ## Usage
22
+
23
+ Initialize a Chino.io client variable as follow
24
+
25
+ ```ruby
26
+ @client = ChinoAPI.new(<your-customer-id>, <your-customer-key>, <server-url>)
27
+ ```
28
+ The server-url parameter must be `https://api.test.chino.io/v1` or `https://api.chino.io/v1`.
29
+
30
+ ## Development
31
+
32
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
33
+
34
+ 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).
35
+
36
+ ## License
37
+
38
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "chino_ruby"
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
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
Binary file
@@ -0,0 +1,42 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "chino_ruby/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "chino_ruby"
8
+ spec.version = '1.0'
9
+ spec.authors = ["Paolo Prem"]
10
+ spec.email = ["prempaolo@gmail.com"]
11
+
12
+ spec.summary = "Chino.io REST API Client."
13
+ spec.description = <<-EOF
14
+ A library that provides a plain function-call interface to the
15
+ Chino.io API web endpoints.
16
+ EOF
17
+ spec.homepage = "https://chino.io/"
18
+ spec.license = "MIT"
19
+
20
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
21
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
22
+ # if spec.respond_to?(:metadata)
23
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
24
+ # else
25
+ # raise "RubyGems 2.0 or newer is required to protect against " \
26
+ # "public gem pushes."
27
+ # end
28
+
29
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
30
+ f.match(%r{^(test|spec|features)/})
31
+ end
32
+ spec.bindir = "exe"
33
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
34
+ spec.require_paths = ["lib"]
35
+
36
+ spec.add_development_dependency "bundler", '~> 1.15'
37
+ spec.add_development_dependency "rake", '~> 10.0'
38
+ spec.add_dependency "listen", '~> 3.0'
39
+ spec.add_runtime_dependency 'rails', '~> 5.1', '>= 5.1.1'
40
+ spec.add_development_dependency 'test-unit', '~> 0'
41
+ spec.add_development_dependency 'spring', '~> 0'
42
+ end
data/config-chino.yml ADDED
@@ -0,0 +1,9 @@
1
+ development:
2
+ url: https://kube.chino.io/v1
3
+ customer_id: 8ce0030c-d5f5-43cf-9e63-c654507bbfea
4
+ customer_key: c40274f3-e8e4-4ff3-8c71-34e0bce3fc9b
5
+
6
+ development_old:
7
+ url: https://api.test.chino.io/v1
8
+ customer_id: 9e4ed528-4c14-4691-9108-31e173ed7dd7
9
+ customer_key: a53d3ece-af44-449c-99fd-af5472d10675
data/lib/.DS_Store ADDED
Binary file
@@ -0,0 +1,3 @@
1
+ module ChinoRuby
2
+ VERSION = "0.1.0"
3
+ end