openlab_ruby 0.0.3 → 0.0.7
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 +5 -5
- data/README.md +14 -0
- data/lib/openlab/client.rb +3 -2
- data/lib/openlab/version.rb +1 -1
- data/lib/openlab_ruby.rb +4 -2
- data/test/dummy/app/assets/config/manifest.js +3 -0
- data/test/dummy/config/application.rb +4 -4
- data/test/dummy/config/environments/development.rb +0 -3
- data/test/dummy/config/environments/production.rb +0 -2
- data/test/dummy/log/test.log +3 -0
- data/test/test_helper.rb +0 -1
- metadata +74 -32
- data/README.rdoc +0 -1
- data/test/dummy/config/database.yml +0 -25
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 70b093131cc5e44eb9ad113976135b67d856926872a5078b02b1735893decf71
|
|
4
|
+
data.tar.gz: cdf89892920cda85796c9f766de04ebc59e8eba730e17047b7f5fa1abc02d241
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c6260ab1c9d7e8aae50db300ece9589fc41b74916cf28e85c903051c5cc7bcb8c3394b7dd4646644facf1095a58606eafa453eb96c82fa90d759b323c60cdc18
|
|
7
|
+
data.tar.gz: '09648f6f2a2ad98d840cc4cce1b5047843e52fc1f4fbd50f7001a06a1eced6b7f9d3f2ee7f7eed0a270efef5f92eefbb8c550b90ee784dd7c69191fcb1d490d4'
|
data/README.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
This is a ruby gem wrapping around the [OpenLab-Projects](https://github.com/sleede/openlab-projects/) API.
|
|
2
|
+
|
|
3
|
+
To use OpenLab-Projects for your Fab-manager, please refer to the [Fab-manager documentation](https://github.com/sleede/fab-manager/blob/master/README.md#open-projects).
|
|
4
|
+
|
|
5
|
+
To use this gem in your ruby project, run `gem install openlab_ruby`, or add the following line in your `Gemfile`:
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
gem 'openlab_ruby'
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
To run the tests :
|
|
12
|
+
```
|
|
13
|
+
rake
|
|
14
|
+
```
|
data/lib/openlab/client.rb
CHANGED
|
@@ -9,10 +9,11 @@ module Openlab
|
|
|
9
9
|
|
|
10
10
|
def initialize(app_secret: nil)
|
|
11
11
|
@app_secret = app_secret || Openlab.config.app_secret
|
|
12
|
-
app_secret = @app_secret
|
|
13
12
|
|
|
13
|
+
self.class.default_options[:verify] = Openlab.config.httparty_verify
|
|
14
|
+
self.class.default_options[:verify_peer] = Openlab.config.httparty_verify_peer
|
|
14
15
|
self.class.base_uri Openlab.config.base_uri
|
|
15
|
-
self.class.headers 'Accept' => 'application/json', 'Authorization' => "Token token=#{app_secret}"
|
|
16
|
+
self.class.headers 'Accept' => 'application/json', 'Authorization' => "Token token=#{@app_secret}"
|
|
16
17
|
end
|
|
17
18
|
|
|
18
19
|
def projects
|
data/lib/openlab/version.rb
CHANGED
data/lib/openlab_ruby.rb
CHANGED
|
@@ -16,12 +16,14 @@ module Openlab
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
class Config
|
|
19
|
-
attr_accessor :app_secret, :base_uri
|
|
19
|
+
attr_accessor :app_secret, :base_uri, :httparty_verify, :httparty_verify_peer
|
|
20
20
|
attr_reader :api_version_path
|
|
21
21
|
|
|
22
22
|
def initialize
|
|
23
|
-
@base_uri =
|
|
23
|
+
@base_uri = 'https://openprojects.fab-manager.com'
|
|
24
24
|
@api_version_path = '/api/v1'
|
|
25
|
+
@httparty_verify = true
|
|
26
|
+
@httparty_verify_peer = true
|
|
25
27
|
end
|
|
26
28
|
end
|
|
27
29
|
end
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
require File.expand_path('../boot', __FILE__)
|
|
2
2
|
|
|
3
|
-
require '
|
|
3
|
+
require 'action_controller/railtie'
|
|
4
|
+
require 'action_mailer/railtie'
|
|
5
|
+
require 'sprockets/railtie'
|
|
6
|
+
require 'rails/test_unit/railtie'
|
|
4
7
|
|
|
5
8
|
Bundler.require(*Rails.groups)
|
|
6
9
|
require "openlab_ruby"
|
|
@@ -18,9 +21,6 @@ module Dummy
|
|
|
18
21
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
|
19
22
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
|
20
23
|
# config.i18n.default_locale = :de
|
|
21
|
-
|
|
22
|
-
# Do not swallow errors in after_commit/after_rollback callbacks.
|
|
23
|
-
config.active_record.raise_in_transactional_callbacks = true
|
|
24
24
|
end
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -19,9 +19,6 @@ Rails.application.configure do
|
|
|
19
19
|
# Print deprecation notices to the Rails logger.
|
|
20
20
|
config.active_support.deprecation = :log
|
|
21
21
|
|
|
22
|
-
# Raise an error on page load if there are pending migrations.
|
|
23
|
-
config.active_record.migration_error = :page_load
|
|
24
|
-
|
|
25
22
|
# Debug mode disables concatenation and preprocessing of assets.
|
|
26
23
|
# This option may cause significant delays in view rendering with a large
|
|
27
24
|
# number of complex assets.
|
|
@@ -74,6 +74,4 @@ Rails.application.configure do
|
|
|
74
74
|
# Use default logging formatter so that PID and timestamp are not suppressed.
|
|
75
75
|
config.log_formatter = ::Logger::Formatter.new
|
|
76
76
|
|
|
77
|
-
# Do not dump schema after migrations.
|
|
78
|
-
config.active_record.dump_schema_after_migration = false
|
|
79
77
|
end
|
data/test/test_helper.rb
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
ENV["RAILS_ENV"] = "test"
|
|
3
3
|
|
|
4
4
|
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
|
5
|
-
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
|
|
6
5
|
require "rails/test_help"
|
|
7
6
|
|
|
8
7
|
# Filter out Minitest backtrace while allowing backtrace from other libraries
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openlab_ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nicolas Florentin
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-03-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -16,14 +16,56 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0.
|
|
19
|
+
version: '0.20'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0.
|
|
26
|
+
version: '0.20'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rails
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '5'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '5'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rdoc
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '5'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '5'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rake
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
27
69
|
description: Openlab is an api wrapper for Openlab api
|
|
28
70
|
email:
|
|
29
71
|
- nicolas@sleede.com
|
|
@@ -32,7 +74,7 @@ extensions: []
|
|
|
32
74
|
extra_rdoc_files: []
|
|
33
75
|
files:
|
|
34
76
|
- MIT-LICENSE
|
|
35
|
-
- README.
|
|
77
|
+
- README.md
|
|
36
78
|
- Rakefile
|
|
37
79
|
- lib/openlab/client.rb
|
|
38
80
|
- lib/openlab/projects.rb
|
|
@@ -41,6 +83,7 @@ files:
|
|
|
41
83
|
- lib/tasks/openlab_ruby_tasks.rake
|
|
42
84
|
- test/dummy/README.rdoc
|
|
43
85
|
- test/dummy/Rakefile
|
|
86
|
+
- test/dummy/app/assets/config/manifest.js
|
|
44
87
|
- test/dummy/app/assets/javascripts/application.js
|
|
45
88
|
- test/dummy/app/assets/stylesheets/application.css
|
|
46
89
|
- test/dummy/app/controllers/application_controller.rb
|
|
@@ -53,7 +96,6 @@ files:
|
|
|
53
96
|
- test/dummy/config.ru
|
|
54
97
|
- test/dummy/config/application.rb
|
|
55
98
|
- test/dummy/config/boot.rb
|
|
56
|
-
- test/dummy/config/database.yml
|
|
57
99
|
- test/dummy/config/environment.rb
|
|
58
100
|
- test/dummy/config/environments/development.rb
|
|
59
101
|
- test/dummy/config/environments/production.rb
|
|
@@ -69,6 +111,7 @@ files:
|
|
|
69
111
|
- test/dummy/config/locales/en.yml
|
|
70
112
|
- test/dummy/config/routes.rb
|
|
71
113
|
- test/dummy/config/secrets.yml
|
|
114
|
+
- test/dummy/log/test.log
|
|
72
115
|
- test/dummy/public/404.html
|
|
73
116
|
- test/dummy/public/422.html
|
|
74
117
|
- test/dummy/public/500.html
|
|
@@ -79,7 +122,7 @@ homepage: ''
|
|
|
79
122
|
licenses:
|
|
80
123
|
- MIT
|
|
81
124
|
metadata: {}
|
|
82
|
-
post_install_message:
|
|
125
|
+
post_install_message:
|
|
83
126
|
rdoc_options: []
|
|
84
127
|
require_paths:
|
|
85
128
|
- lib
|
|
@@ -94,46 +137,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
94
137
|
- !ruby/object:Gem::Version
|
|
95
138
|
version: '0'
|
|
96
139
|
requirements: []
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
signing_key:
|
|
140
|
+
rubygems_version: 3.2.29
|
|
141
|
+
signing_key:
|
|
100
142
|
specification_version: 4
|
|
101
143
|
summary: Openlab is an api wrapper for Openlab api
|
|
102
144
|
test_files:
|
|
145
|
+
- test/openlab_ruby_test.rb
|
|
146
|
+
- test/dummy/app/controllers/application_controller.rb
|
|
147
|
+
- test/dummy/app/views/layouts/application.html.erb
|
|
148
|
+
- test/dummy/app/assets/config/manifest.js
|
|
103
149
|
- test/dummy/app/assets/javascripts/application.js
|
|
104
150
|
- test/dummy/app/assets/stylesheets/application.css
|
|
105
|
-
- test/dummy/app/controllers/application_controller.rb
|
|
106
151
|
- test/dummy/app/helpers/application_helper.rb
|
|
107
|
-
- test/dummy/app/views/layouts/application.html.erb
|
|
108
|
-
- test/dummy/bin/bundle
|
|
109
|
-
- test/dummy/bin/rails
|
|
110
152
|
- test/dummy/bin/rake
|
|
111
153
|
- test/dummy/bin/setup
|
|
112
|
-
- test/dummy/
|
|
113
|
-
- test/dummy/
|
|
114
|
-
- test/dummy/config/
|
|
115
|
-
- test/dummy/config/
|
|
116
|
-
- test/dummy/config/
|
|
154
|
+
- test/dummy/bin/bundle
|
|
155
|
+
- test/dummy/bin/rails
|
|
156
|
+
- test/dummy/config/secrets.yml
|
|
157
|
+
- test/dummy/config/routes.rb
|
|
158
|
+
- test/dummy/config/locales/en.yml
|
|
117
159
|
- test/dummy/config/environments/production.rb
|
|
160
|
+
- test/dummy/config/environments/development.rb
|
|
118
161
|
- test/dummy/config/environments/test.rb
|
|
119
|
-
- test/dummy/config/
|
|
162
|
+
- test/dummy/config/environment.rb
|
|
163
|
+
- test/dummy/config/application.rb
|
|
164
|
+
- test/dummy/config/boot.rb
|
|
120
165
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
|
121
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
|
122
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
|
123
|
-
- test/dummy/config/initializers/inflections.rb
|
|
124
166
|
- test/dummy/config/initializers/mime_types.rb
|
|
167
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
|
125
168
|
- test/dummy/config/initializers/session_store.rb
|
|
126
169
|
- test/dummy/config/initializers/wrap_parameters.rb
|
|
127
|
-
- test/dummy/config/
|
|
128
|
-
- test/dummy/config/
|
|
129
|
-
- test/dummy/config/
|
|
170
|
+
- test/dummy/config/initializers/assets.rb
|
|
171
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
|
172
|
+
- test/dummy/config/initializers/inflections.rb
|
|
130
173
|
- test/dummy/config.ru
|
|
131
|
-
- test/dummy/
|
|
174
|
+
- test/dummy/Rakefile
|
|
175
|
+
- test/dummy/public/favicon.ico
|
|
132
176
|
- test/dummy/public/422.html
|
|
133
177
|
- test/dummy/public/500.html
|
|
134
|
-
- test/dummy/public/
|
|
135
|
-
- test/dummy/
|
|
178
|
+
- test/dummy/public/404.html
|
|
179
|
+
- test/dummy/log/test.log
|
|
136
180
|
- test/dummy/README.rdoc
|
|
137
|
-
- test/openlab_ruby_test.rb
|
|
138
181
|
- test/test_helper.rb
|
|
139
|
-
has_rdoc:
|
data/README.rdoc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This project rocks and uses MIT-LICENSE.
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# SQLite version 3.x
|
|
2
|
-
# gem install sqlite3
|
|
3
|
-
#
|
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
|
5
|
-
# gem 'sqlite3'
|
|
6
|
-
#
|
|
7
|
-
default: &default
|
|
8
|
-
adapter: sqlite3
|
|
9
|
-
pool: 5
|
|
10
|
-
timeout: 5000
|
|
11
|
-
|
|
12
|
-
development:
|
|
13
|
-
<<: *default
|
|
14
|
-
database: db/development.sqlite3
|
|
15
|
-
|
|
16
|
-
# Warning: The database defined as "test" will be erased and
|
|
17
|
-
# re-generated from your development database when you run "rake".
|
|
18
|
-
# Do not set this db to the same as development or production.
|
|
19
|
-
test:
|
|
20
|
-
<<: *default
|
|
21
|
-
database: db/test.sqlite3
|
|
22
|
-
|
|
23
|
-
production:
|
|
24
|
-
<<: *default
|
|
25
|
-
database: db/production.sqlite3
|