magma_cli 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/magma/version.rb +1 -1
- metadata +4 -23
- data/.dockerignore +0 -15
- data/.github/CODE_OF_CONDUCT.md +0 -74
- data/.github/ISSUE_TEMPLATE/BUG_REPORT.md +0 -26
- data/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md +0 -17
- data/.gitignore +0 -11
- data/.rspec +0 -3
- data/.rubocop.yml +0 -53
- data/.ruby-version +0 -1
- data/.travis.yml +0 -14
- data/Dockerfile +0 -36
- data/Gemfile +0 -8
- data/Gemfile.lock +0 -62
- data/Makefile +0 -40
- data/Rakefile +0 -20
- data/bin/console +0 -13
- data/bin/dmagma +0 -4
- data/bin/setup +0 -8
- data/entrypoint.sh +0 -7
- data/magma.gemspec +0 -30
- /data/{bin → exe}/magma +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0d8d4b3d34fe69982a6090c0a357645fca18c3f15361e0134383cf5125df322
|
4
|
+
data.tar.gz: 5527aa6625286aa29fd707cda710148aa322de595d497c212c7db0c76849afe0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff9e3ac15490e7e27e4ca59d58787828525e8104ea3126097e4039ad9bfdd89b6ae39fcdd4eda8fc33c284d6ed0330fe3f55f5a3066e2b20b6cd4da0136c7e22
|
7
|
+
data.tar.gz: 24fa8a2f18f1f73a090d39b671de045d139c68edd13a561f959dd47e550d29da0cb6e22c8d42afb81fcd08e1c80d4dddc22156e2012c280725735fb7638dca95
|
data/README.md
CHANGED
@@ -48,7 +48,8 @@ conduct.
|
|
48
48
|
|
49
49
|
## License
|
50
50
|
|
51
|
-
The gem is available as open source under the terms of the [
|
51
|
+
The gem is available as open source under the terms of the [LGPL-2.1
|
52
|
+
License](https://opensource.org/licenses/LGPL-2.1).
|
52
53
|
|
53
54
|
## Code of Conduct
|
54
55
|
|
data/lib/magma/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magma_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Allan Reyes
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -116,27 +116,9 @@ executables:
|
|
116
116
|
extensions: []
|
117
117
|
extra_rdoc_files: []
|
118
118
|
files:
|
119
|
-
- ".dockerignore"
|
120
|
-
- ".github/CODE_OF_CONDUCT.md"
|
121
|
-
- ".github/ISSUE_TEMPLATE/BUG_REPORT.md"
|
122
|
-
- ".github/ISSUE_TEMPLATE/FEATURE_REQUEST.md"
|
123
|
-
- ".gitignore"
|
124
|
-
- ".rspec"
|
125
|
-
- ".rubocop.yml"
|
126
|
-
- ".ruby-version"
|
127
|
-
- ".travis.yml"
|
128
|
-
- Dockerfile
|
129
|
-
- Gemfile
|
130
|
-
- Gemfile.lock
|
131
119
|
- LICENSE
|
132
|
-
- Makefile
|
133
120
|
- README.md
|
134
|
-
-
|
135
|
-
- bin/console
|
136
|
-
- bin/dmagma
|
137
|
-
- bin/magma
|
138
|
-
- bin/setup
|
139
|
-
- entrypoint.sh
|
121
|
+
- exe/magma
|
140
122
|
- lib/magma.rb
|
141
123
|
- lib/magma/app.rb
|
142
124
|
- lib/magma/common.rb
|
@@ -147,7 +129,6 @@ files:
|
|
147
129
|
- lib/magma/templater.rb
|
148
130
|
- lib/magma/utils.rb
|
149
131
|
- lib/magma/version.rb
|
150
|
-
- magma.gemspec
|
151
132
|
homepage: https://github.com/darbylabs/magma
|
152
133
|
licenses:
|
153
134
|
- LGPL-2.1
|
data/.dockerignore
DELETED
data/.github/CODE_OF_CONDUCT.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at allanbreyes@users.noreply.github.com. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: http://contributor-covenant.org
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
@@ -1,26 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Bug report
|
3
|
-
about: Create a report to help us improve
|
4
|
-
|
5
|
-
---
|
6
|
-
|
7
|
-
**Describe the bug**
|
8
|
-
A clear and concise description of what the bug is.
|
9
|
-
|
10
|
-
**To Reproduce**
|
11
|
-
Steps to reproduce the behavior:
|
12
|
-
|
13
|
-
**Expected behavior**
|
14
|
-
A clear and concise description of what you expected to happen.
|
15
|
-
|
16
|
-
**Screenshots**
|
17
|
-
If applicable, add screenshots to help explain your problem.
|
18
|
-
|
19
|
-
**Desktop (please complete the following information):**
|
20
|
-
- MLT/melt: [e.g. v6.6.0]
|
21
|
-
- OS: [e.g. iOS]
|
22
|
-
- Browser [e.g. chrome, safari]
|
23
|
-
- Version [e.g. 22]
|
24
|
-
|
25
|
-
**Additional context**
|
26
|
-
Add any other context about the problem here.
|
@@ -1,17 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Feature request
|
3
|
-
about: Suggest an idea for this project
|
4
|
-
|
5
|
-
---
|
6
|
-
|
7
|
-
**Is your feature request related to a problem? Please describe.**
|
8
|
-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
9
|
-
|
10
|
-
**Describe the solution you'd like**
|
11
|
-
A clear and concise description of what you want to happen.
|
12
|
-
|
13
|
-
**Describe alternatives you've considered**
|
14
|
-
A clear and concise description of any alternative solutions or features you've considered.
|
15
|
-
|
16
|
-
**Additional context**
|
17
|
-
Add any other context or screenshots about the feature request here.
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
Layout/IndentArray:
|
2
|
-
Enabled: false
|
3
|
-
|
4
|
-
Metrics/AbcSize:
|
5
|
-
Enabled: true
|
6
|
-
Max: 30
|
7
|
-
|
8
|
-
Metrics/BlockLength:
|
9
|
-
Enabled: true
|
10
|
-
Exclude:
|
11
|
-
- 'spec/**/*.rb'
|
12
|
-
|
13
|
-
Metrics/CyclomaticComplexity:
|
14
|
-
Enabled: true
|
15
|
-
Max: 12
|
16
|
-
|
17
|
-
Metrics/LineLength:
|
18
|
-
Enabled: true
|
19
|
-
Max: 120
|
20
|
-
|
21
|
-
Metrics/MethodLength:
|
22
|
-
Enabled: true
|
23
|
-
Max: 30
|
24
|
-
|
25
|
-
Metrics/PerceivedComplexity:
|
26
|
-
Enabled: true
|
27
|
-
Max: 10
|
28
|
-
|
29
|
-
Style/ClassAndModuleChildren:
|
30
|
-
Enabled: false
|
31
|
-
|
32
|
-
Style/Documentation:
|
33
|
-
Enabled: false
|
34
|
-
|
35
|
-
Style/EachWithObject:
|
36
|
-
Enabled: false
|
37
|
-
|
38
|
-
Style/FrozenStringLiteralComment:
|
39
|
-
Enabled: false
|
40
|
-
|
41
|
-
Style/MultilineBlockChain:
|
42
|
-
Enabled: false
|
43
|
-
|
44
|
-
Style/MultilineIfModifier:
|
45
|
-
Enabled: false
|
46
|
-
|
47
|
-
Style/TrailingCommaInArrayLiteral:
|
48
|
-
Enabled: true
|
49
|
-
EnforcedStyleForMultiline: comma
|
50
|
-
|
51
|
-
Style/TrailingCommaInHashLiteral:
|
52
|
-
Enabled: true
|
53
|
-
EnforcedStyleForMultiline: comma
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.5.1
|
data/.travis.yml
DELETED
data/Dockerfile
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
ARG RUBY_VERSION
|
2
|
-
FROM ruby:$RUBY_VERSION-slim
|
3
|
-
|
4
|
-
# Install OS dependencies
|
5
|
-
RUN apt-get update -qq && apt-get install -yq \
|
6
|
-
bash \
|
7
|
-
build-essential \
|
8
|
-
ffmpeg \
|
9
|
-
frei0r-plugins \
|
10
|
-
git \
|
11
|
-
ladspa-sdk \
|
12
|
-
libxml2 \
|
13
|
-
melt \
|
14
|
-
ruby-nokogiri \
|
15
|
-
swh-plugins \
|
16
|
-
xvfb \
|
17
|
-
&& printf "\n=== FFmpeg ===\n" && ffmpeg -version \
|
18
|
-
&& printf "\n=== MLT Framework ===\n" && melt -version
|
19
|
-
|
20
|
-
# Set up work directory
|
21
|
-
RUN mkdir /app
|
22
|
-
WORKDIR /app
|
23
|
-
|
24
|
-
# Install dependencies
|
25
|
-
COPY Gemfile Gemfile.lock magma.gemspec ./
|
26
|
-
COPY /lib/magma/version.rb ./lib/magma/version.rb
|
27
|
-
RUN bundle install
|
28
|
-
|
29
|
-
# Add files
|
30
|
-
ADD . .
|
31
|
-
RUN bundle exec rake install
|
32
|
-
|
33
|
-
# Entry point
|
34
|
-
WORKDIR /root
|
35
|
-
ENTRYPOINT ["/app/entrypoint.sh"]
|
36
|
-
CMD ["help"]
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
magma_cli (0.0.9)
|
5
|
-
activesupport (~> 5.2)
|
6
|
-
liquid (~> 4.0)
|
7
|
-
nokogiri (~> 1.8)
|
8
|
-
thor (~> 0.20)
|
9
|
-
|
10
|
-
GEM
|
11
|
-
remote: https://rubygems.org/
|
12
|
-
specs:
|
13
|
-
activesupport (5.2.0)
|
14
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
|
-
i18n (>= 0.7, < 2)
|
16
|
-
minitest (~> 5.1)
|
17
|
-
tzinfo (~> 1.1)
|
18
|
-
coderay (1.1.2)
|
19
|
-
concurrent-ruby (1.0.5)
|
20
|
-
diff-lcs (1.3)
|
21
|
-
i18n (1.0.1)
|
22
|
-
concurrent-ruby (~> 1.0)
|
23
|
-
liquid (4.0.0)
|
24
|
-
method_source (0.9.0)
|
25
|
-
mini_portile2 (2.3.0)
|
26
|
-
minitest (5.11.3)
|
27
|
-
nokogiri (1.8.2)
|
28
|
-
mini_portile2 (~> 2.3.0)
|
29
|
-
pry (0.11.3)
|
30
|
-
coderay (~> 1.1.0)
|
31
|
-
method_source (~> 0.9.0)
|
32
|
-
rake (10.5.0)
|
33
|
-
rspec (3.7.0)
|
34
|
-
rspec-core (~> 3.7.0)
|
35
|
-
rspec-expectations (~> 3.7.0)
|
36
|
-
rspec-mocks (~> 3.7.0)
|
37
|
-
rspec-core (3.7.1)
|
38
|
-
rspec-support (~> 3.7.0)
|
39
|
-
rspec-expectations (3.7.0)
|
40
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
-
rspec-support (~> 3.7.0)
|
42
|
-
rspec-mocks (3.7.0)
|
43
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
44
|
-
rspec-support (~> 3.7.0)
|
45
|
-
rspec-support (3.7.1)
|
46
|
-
thor (0.20.0)
|
47
|
-
thread_safe (0.3.6)
|
48
|
-
tzinfo (1.2.5)
|
49
|
-
thread_safe (~> 0.1)
|
50
|
-
|
51
|
-
PLATFORMS
|
52
|
-
ruby
|
53
|
-
|
54
|
-
DEPENDENCIES
|
55
|
-
bundler (~> 1.16)
|
56
|
-
magma_cli!
|
57
|
-
pry
|
58
|
-
rake (~> 10.0)
|
59
|
-
rspec (~> 3.0)
|
60
|
-
|
61
|
-
BUNDLED WITH
|
62
|
-
1.16.1
|
data/Makefile
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
APP_NAME := magma
|
2
|
-
ORG_NAME := darbylabs
|
3
|
-
|
4
|
-
RUBY_VERSION := $(shell cat .ruby-version | tr -d " \t\n\r" | grep -Po "[\d\.]+$$")
|
5
|
-
VERSION := $(shell git describe --tags)
|
6
|
-
export
|
7
|
-
|
8
|
-
.PHONY: check image info release test
|
9
|
-
|
10
|
-
image: info
|
11
|
-
docker build \
|
12
|
-
-t $(ORG_NAME)/$(APP_NAME):$(VERSION) \
|
13
|
-
-t $(ORG_NAME)/$(APP_NAME):latest \
|
14
|
-
--build-arg RUBY_VERSION="$(RUBY_VERSION)" \
|
15
|
-
.
|
16
|
-
|
17
|
-
check:
|
18
|
-
@if [ "`bundle exec $(APP_NAME) version`" != "$(VERSION)" ]; then \
|
19
|
-
echo "Version mismatch"; \
|
20
|
-
exit 1; \
|
21
|
-
fi
|
22
|
-
@rake release:guard_clean
|
23
|
-
|
24
|
-
info:
|
25
|
-
@echo "App: $(APP_NAME) ($(VERSION))"
|
26
|
-
@echo "Ruby: $(RUBY_VERSION)"
|
27
|
-
@echo "Image: $(ORG_NAME)/$(APP_NAME):$(VERSION)"
|
28
|
-
@echo
|
29
|
-
|
30
|
-
release: info
|
31
|
-
release: check
|
32
|
-
release: test
|
33
|
-
release: image
|
34
|
-
rake build
|
35
|
-
git push --follow-tags
|
36
|
-
gem push pkg/$(APP_NAME)_cli-$(VERSION).gem
|
37
|
-
docker push $(ORG_NAME)/$(APP_NAME):$(VERSION)
|
38
|
-
|
39
|
-
test:
|
40
|
-
rake spec
|
data/Rakefile
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
require 'bundler/gem_tasks'
|
2
|
-
require 'json'
|
3
|
-
require 'rspec/core/rake_task'
|
4
|
-
require 'yaml'
|
5
|
-
|
6
|
-
RSpec::Core::RakeTask.new(:spec)
|
7
|
-
|
8
|
-
task default: :spec
|
9
|
-
|
10
|
-
namespace :examples do
|
11
|
-
desc 'Converts the YAML sample to JSON'
|
12
|
-
task :json do
|
13
|
-
sample = File.read(File.join(__dir__, 'examples', 'sample.yml'))
|
14
|
-
yaml = YAML.safe_load(sample, [], [], true) # allow aliases
|
15
|
-
File.open(File.join(__dir__, 'examples', 'sample.json'), 'w') do |out|
|
16
|
-
out.write JSON.pretty_generate(yaml)
|
17
|
-
out.write "\n"
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
data/bin/console
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'bundler/setup'
|
3
|
-
require 'magma'
|
4
|
-
|
5
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
6
|
-
# with your gem easier. You can also use a different console, if you like.
|
7
|
-
|
8
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
9
|
-
# require "pry"
|
10
|
-
# Pry.start
|
11
|
-
|
12
|
-
require 'irb'
|
13
|
-
IRB.start(__FILE__)
|
data/bin/dmagma
DELETED
data/bin/setup
DELETED
data/entrypoint.sh
DELETED
data/magma.gemspec
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
lib = File.expand_path('lib', __dir__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require 'magma/version'
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = 'magma_cli'
|
7
|
-
spec.version = Magma::VERSION
|
8
|
-
spec.authors = ['Allan Reyes']
|
9
|
-
spec.email = ['allanbreyes@users.noreply.github.com']
|
10
|
-
|
11
|
-
spec.summary = 'Magma CLI'
|
12
|
-
spec.description = 'Command-line interface for MLT templating and rendering'
|
13
|
-
spec.homepage = 'https://github.com/darbylabs/magma'
|
14
|
-
spec.license = 'LGPL-2.1'
|
15
|
-
|
16
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
|
-
f.match(%r{^(examples|features|spec|test)/})
|
18
|
-
end
|
19
|
-
spec.executables = ['magma']
|
20
|
-
spec.require_paths = ['lib']
|
21
|
-
|
22
|
-
spec.add_dependency 'activesupport', '~> 5.2'
|
23
|
-
spec.add_dependency 'liquid', '~> 4.0'
|
24
|
-
spec.add_dependency 'nokogiri', '~> 1.8'
|
25
|
-
spec.add_dependency 'thor', '~> 0.20'
|
26
|
-
|
27
|
-
spec.add_development_dependency 'bundler', '~> 1.16'
|
28
|
-
spec.add_development_dependency 'rake', '~> 10.0'
|
29
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
30
|
-
end
|
/data/{bin → exe}/magma
RENAMED
File without changes
|