enfcli 3.3.2.pre.alpha

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a951559fe54c801146be2c17e70ea4b9f5670da39b65f0c13ae107c8cc371a92
4
+ data.tar.gz: 4bc2c37098d5349ab7b42636cf12472dd6caf4d0c64236f317f5bba4f28ba80a
5
+ SHA512:
6
+ metadata.gz: 5285878f1c81050b85b4c4be54f0f381e5af983f169177adb91cf3e0d1027e09d15df0f1ddae350bd572f7b1e5ca87b7bf0a06896aa93990a2914e928039de80
7
+ data.tar.gz: 6cb15d266857da2b399a216f5170da84672d3999b5cd81a2e50298fdee0afc4514cbce28097e98d192adf0241ac7d78efe509b7cbca5ecb458515b66cec9f7bc
@@ -0,0 +1,11 @@
1
+ FROM circleci/ruby
2
+ MAINTAINER Xaptum
3
+
4
+
5
+ LABEL version="1.0"
6
+ LABEL description="Base image for encli build"
7
+
8
+ RUN gem install bundler
9
+ RUN gem install bump
10
+ RUN gem install geminabox
11
+
@@ -0,0 +1,74 @@
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ RELEASE_VSN_REGEX=[0-9]+.[0-9]+.[0-9]+$
6
+ PRE_VSN_REGEX=[0-9]+.[0-9]+.[0-9]+-[a-z]+$
7
+
8
+ branch() {
9
+ # Check if branch name comes for drone
10
+ local BRANCH=${CIRCLE_BRANCH}
11
+
12
+ # Finally take from git
13
+ if [ "X$BRANCH" == X ]; then
14
+ BRANCH=$(git rev-parse --abbrev-ref HEAD)
15
+ fi
16
+ echo -n "${BRANCH}"
17
+ }
18
+
19
+ version() {
20
+ local VERSION=$(make version | sed -e 's/[cC]urrent [vV]ersion:\s*//')
21
+ echo -n "${VERSION}"
22
+ }
23
+
24
+ match() {
25
+ if [[ ! $1 =~ $2 ]]; then
26
+ exit -1
27
+ else
28
+ exit 0
29
+ fi
30
+ }
31
+
32
+
33
+
34
+ validate_version() {
35
+ local vsn=$(version)
36
+
37
+ if [ "X${CIRCLE_TAG}" == X ]; then
38
+ # Tag is empty. Ensure pre-relase
39
+ match ${vsn} ${PRE_VSN_REGEX}
40
+ else
41
+ match ${vsn} ${RELEASE_VSN_REGEX}
42
+ fi
43
+ }
44
+
45
+ deploy_gem() {
46
+ local vsn=$(version | sed -e 's/-/\.pre\./')
47
+
48
+ if [ "X${CIRCLE_PROJECT_USERNAME}" == Xxaptum ]; then
49
+ gem push pkg/enfcli-${vsn}.gem
50
+ else
51
+ echo "Cannot deploy gem for ${CIRCLE_PROJECT_USERNAME}"
52
+ fi
53
+ }
54
+
55
+ main() {
56
+ case $1 in
57
+ validate)
58
+ validate_version
59
+ ;;
60
+
61
+ deploy)
62
+ deploy_gem
63
+ ;;
64
+
65
+ *)
66
+ # Fail build
67
+ exit -1
68
+ ;;
69
+ esac
70
+ }
71
+
72
+ main $@
73
+
74
+
@@ -0,0 +1,108 @@
1
+ # Ruby CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
+ #
5
+ version: 2
6
+ jobs:
7
+ build:
8
+ docker:
9
+ # specify the version you desire here
10
+ - image: xaptumeng/enfcli-build
11
+
12
+ working_directory: ~/enfcli
13
+
14
+ steps:
15
+ - checkout
16
+
17
+ # Download and cache dependencies
18
+ - restore_cache:
19
+ keys:
20
+ - v1-dependencies-{{ checksum "Gemfile.lock" }}
21
+
22
+ - run:
23
+ name: install dependencies
24
+ command: |
25
+ make bundle
26
+
27
+ - save_cache:
28
+ paths:
29
+ - ./vendor/bundle
30
+ key: v1-dependencies-{{ checksum "Gemfile.lock" }}
31
+
32
+ # Validate version
33
+ - run:
34
+ name: validate enfcli gem version
35
+ command: |
36
+ .circleci/build.sh validate
37
+
38
+ # run tests!
39
+ - run:
40
+ name: run tests
41
+ command: |
42
+ mkdir /tmp/test-results
43
+ TEST_FILES="$(circleci tests glob \"spec/**/*_spec.rb\" | circleci tests split --split-by=timings)"
44
+
45
+ bundle exec rspec --format progress \
46
+ --format RspecJunitFormatter \
47
+ --out /tmp/test-results/rspec.xml \
48
+ --format progress \
49
+ $TEST_FILES
50
+
51
+ # collect reports
52
+ - store_test_results:
53
+ path: /tmp/test-results
54
+ - store_artifacts:
55
+ path: /tmp/test-results
56
+ destination: test-results
57
+
58
+ - run:
59
+ name: build package
60
+ command: |
61
+ make build
62
+
63
+ # Perisist the gem to workspace
64
+ - persist_to_workspace:
65
+ root: ~/enfcli
66
+ paths:
67
+ - pkg
68
+
69
+ # Deploy job
70
+ deploy:
71
+ docker:
72
+ - image: xaptumeng/enfcli-build
73
+
74
+ working_directory: ~/enfcli
75
+
76
+ steps:
77
+ - checkout
78
+
79
+ - run:
80
+ name: Setup Rubygems
81
+ command: |
82
+ .circleci/setup-rubygems.sh
83
+
84
+ - attach_workspace:
85
+ at: ~/enfcli
86
+
87
+ - run:
88
+ name: deploy to rubygems
89
+ command: |
90
+ .circleci/build.sh deploy
91
+
92
+ # Workflows
93
+ workflows:
94
+ version: 2
95
+ enfcli-workflow:
96
+ jobs:
97
+ - build:
98
+ context: gems.xaptum.xyz
99
+
100
+ - deploy:
101
+ context: gems.xaptum.xyz
102
+ requires:
103
+ - build
104
+ filters:
105
+ tags:
106
+ only: /.*/
107
+ branches:
108
+ only: master
@@ -0,0 +1,3 @@
1
+ mkdir ~/.gem
2
+ echo -e "---\r\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
3
+ chmod 0600 /home/circleci/.gem/credentials
data/.gitignore ADDED
@@ -0,0 +1,51 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+ .DS_store
13
+
14
+ # Used by dotenv library to load environment variables.
15
+ # .env
16
+
17
+ ## Specific to RubyMotion:
18
+ .dat*
19
+ .repl_history
20
+ build/
21
+ *.bridgesupport
22
+ build-iPhoneOS/
23
+ build-iPhoneSimulator/
24
+
25
+ ## Specific to RubyMotion (use of CocoaPods):
26
+ #
27
+ # We recommend against adding the Pods directory to your .gitignore. However
28
+ # you should judge for yourself, the pros and cons are mentioned at:
29
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
30
+ #
31
+ # vendor/Pods/
32
+
33
+ ## Documentation cache and generated files:
34
+ /.yardoc/
35
+ /_yardoc/
36
+ /doc/
37
+ /rdoc/
38
+
39
+ ## Environment normalization:
40
+ /.bundle/
41
+ /vendor/bundle
42
+ /lib/bundler/man/
43
+
44
+ # for a library or gem, you might want to ignore these files since the code is
45
+ # intended to run in multiple environments; otherwise, check them in:
46
+ # Gemfile.lock
47
+ # .ruby-version
48
+ # .ruby-gemset
49
+
50
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
51
+ .rvmrc
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in enfcli.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,81 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ enfcli (3.3.2.pre.alpha)
5
+ rest-client (~> 2.0)
6
+ terminal-table
7
+ thor (~> 0.20.0)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ addressable (2.5.2)
13
+ public_suffix (>= 2.0.2, < 4.0)
14
+ bump (0.6.1)
15
+ crack (0.4.3)
16
+ safe_yaml (~> 1.0.0)
17
+ diff-lcs (1.3)
18
+ domain_name (0.5.20180417)
19
+ unf (>= 0.0.5, < 1.0.0)
20
+ fuubar (2.3.2)
21
+ rspec-core (~> 3.0)
22
+ ruby-progressbar (~> 1.4)
23
+ hashdiff (0.3.7)
24
+ http-cookie (1.0.3)
25
+ domain_name (~> 0.5)
26
+ mime-types (3.2.2)
27
+ mime-types-data (~> 3.2015)
28
+ mime-types-data (3.2018.0812)
29
+ netrc (0.11.0)
30
+ public_suffix (3.0.3)
31
+ rake (10.5.0)
32
+ rest-client (2.0.2)
33
+ http-cookie (>= 1.0.2, < 2.0)
34
+ mime-types (>= 1.16, < 4.0)
35
+ netrc (~> 0.8)
36
+ rspec (3.8.0)
37
+ rspec-core (~> 3.8.0)
38
+ rspec-expectations (~> 3.8.0)
39
+ rspec-mocks (~> 3.8.0)
40
+ rspec-core (3.8.0)
41
+ rspec-support (~> 3.8.0)
42
+ rspec-expectations (3.8.1)
43
+ diff-lcs (>= 1.2.0, < 2.0)
44
+ rspec-support (~> 3.8.0)
45
+ rspec-mocks (3.8.0)
46
+ diff-lcs (>= 1.2.0, < 2.0)
47
+ rspec-support (~> 3.8.0)
48
+ rspec-support (3.8.0)
49
+ rspec_junit_formatter (0.4.1)
50
+ rspec-core (>= 2, < 4, != 2.12.0)
51
+ ruby-progressbar (1.10.0)
52
+ safe_yaml (1.0.4)
53
+ terminal-table (1.8.0)
54
+ unicode-display_width (~> 1.1, >= 1.1.1)
55
+ thor (0.20.3)
56
+ unf (0.1.4)
57
+ unf_ext
58
+ unf_ext (0.0.7.5)
59
+ unicode-display_width (1.4.0)
60
+ vcr (4.0.0)
61
+ webmock (3.4.2)
62
+ addressable (>= 2.3.6)
63
+ crack (>= 0.3.2)
64
+ hashdiff
65
+
66
+ PLATFORMS
67
+ ruby
68
+
69
+ DEPENDENCIES
70
+ bump
71
+ bundler
72
+ enfcli!
73
+ fuubar
74
+ rake (~> 10.0)
75
+ rspec
76
+ rspec_junit_formatter
77
+ vcr
78
+ webmock
79
+
80
+ BUNDLED WITH
81
+ 2.0.1
data/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2018 Xaptum, Inc
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
data/Makefile ADDED
@@ -0,0 +1,28 @@
1
+ .PHONY: bundle bump-patch bump-minor bump-major deploy test
2
+
3
+ build:
4
+ rake build
5
+
6
+ bundle:
7
+ bundle install --jobs=4 --retry=3 --path vendor/bundle
8
+
9
+ bump-patch:
10
+ @rake bump:patch TAG=false BUNDLE=false COMMIT=false
11
+
12
+ bump-minor:
13
+ @rake bump:minor TAG=false BUNDLE=false COMMIT=false
14
+
15
+ bump-major:
16
+ @rake bump:major TAG=false BUNDLE=false COMMIT=false
17
+
18
+ bump-pre:
19
+ @rake bump:pre TAG=false BUNDLE=false COMMIT=false
20
+
21
+ version:
22
+ @rake bump:current TAG=false BUNDLE=false COMMIT=false
23
+
24
+ test:
25
+ bundle exec rspec --format Fuubar --color spec/**/*_spec.rb
26
+
27
+ clean:
28
+ rm -rf pkg
data/README.md ADDED
@@ -0,0 +1,67 @@
1
+ # enfcli
2
+
3
+
4
+
5
+ ## Installation
6
+
7
+ To install `enfcli` release versions of the gem run
8
+
9
+ ```bash
10
+ $ gem install enfcli
11
+ ```
12
+
13
+ To update existing `enfcli` installation to latest release version
14
+
15
+ ```bash
16
+ $ gem update enfcli
17
+ ```
18
+
19
+ To install `enfcli` pre-release verions
20
+
21
+ ```bash
22
+ $ gem install enfcli --pre
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ - Connect to ENF
28
+ ```bash
29
+ $ enfcli --host <host> --user <user>
30
+ ```
31
+ Once authenticated, type `help` in `enfcli` prompt to list all available `enfcli` commands
32
+
33
+ ```bash
34
+ enfcli-user@domain> help
35
+ ```
36
+
37
+ ## Release
38
+ `enfcli` pre-release and release versions are automatically published to [RubyGems](https://rubygems.org) by the build process. Each commit to `master` branch publishes a pre-release version of the gem.
39
+
40
+ ### Publishing Pre-Release version
41
+ - Open a pull request to merge the feature branch into `master`
42
+ - After review and approval merge feature branch into `master`
43
+ - The build process publishes a pre-release version if gem version matches one of the following patterns:
44
+ - `MAJOR.MINOR.PATCH-alpha`
45
+ - `MAJOR.MINOR.PATCH-beta`
46
+ - `MAJOR.MINOR.PATCH-rc`
47
+
48
+ ### Publishing a Release version
49
+ - Update `enfcli` version to `MAJOR.MINOR.PATCH` in `lib/enfcli/version.rb` and commit the change to `master`
50
+ - Create and push a tag with the same name as the version
51
+ - The build process publishes a release version of the gem
52
+
53
+ # License
54
+ Copyright 2018 Xaptum, Inc.
55
+
56
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
57
+ use this work except in compliance with the License. You may obtain a copy of
58
+ the License from the LICENSE.txt file or at
59
+
60
+ [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
61
+
62
+ Unless required by applicable law or agreed to in writing, software
63
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
64
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
65
+ License for the specific language governing permissions and limitations under
66
+ the License.
67
+
data/Rakefile ADDED
@@ -0,0 +1,14 @@
1
+ require "bundler/gem_tasks"
2
+ require "bump/tasks"
3
+ require "rake/testtask"
4
+
5
+ Rake::TestTask.new do |t|
6
+ t.libs << "test"
7
+ t.libs << "lib"
8
+ t.test_files = FileList['test/**/*_test.rb']
9
+ end
10
+
11
+ desc "Run tests"
12
+
13
+ #task :default => :spec
14
+ task :default => :test
data/bin/enfcli ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'enfcli'
4
+
5
+ EnfCli::CLI.start(ARGV)