env_sync 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abb7d5673dd06b8c84a6baff2826edcc6e0eb83e039adc7583d7ca91a06304b1
4
- data.tar.gz: 51fd34fcd544eadcd5568a7b47d82807954a6c8b3af477243384d49ca4bc7d6d
3
+ metadata.gz: 69ee904bb756c4c15d50974773f3405a03c3c520eba9f69a0a0a8bd48a521843
4
+ data.tar.gz: 9fedb745f6922c841fac8d0978bd4810e62c6a7400c87493b4128e8e15417bd5
5
5
  SHA512:
6
- metadata.gz: 6091f678dbf338b77eeafc838a1a35d4f6b34bcb943d56d1b2b03c6c222567fce08cc2443e320acc75a66fb6b99c0accb4a53b5ed6a079fa2f3d5a3dcad747de
7
- data.tar.gz: 1fe285925447e00a5399c420c97c0bc160a2b32bf98c91a0038c211a490a9b063f712941156c23cc6eb0cf0dd7574fd67e677d3a855b2662de6f81d4ec8ff8a3
6
+ metadata.gz: 28d76bfbddd38b41f11034e68ca1d75b09138f9f7c71744cf009cb79611e56d8d1c2e5b588d0ba24bc8a44861671711717834cf996b3b93f7e344f8aa420cb04
7
+ data.tar.gz: e4af16b85f7384acc981310529fc31ff91c24ec02182519e3d098a9ed8a4da076bf673f8eba71929f65ddffe45f9ee6e5b8435bff600417da44a0efd2d043f40
@@ -0,0 +1,26 @@
1
+ name: CI
2
+ on: [push]
3
+
4
+ jobs:
5
+ test:
6
+ name: run test
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ ruby: [ '2.5.x', '2.6.x' ]
11
+
12
+ steps:
13
+ - uses: actions/checkout@master
14
+ - name: Set up Ruby version
15
+ uses: actions/setup-ruby@master
16
+ with:
17
+ ruby-version: ${{ matrix.ruby }}
18
+
19
+ - name: Set up bundler
20
+ run: gem install bundler:1.17.3
21
+
22
+ - name: bundle install
23
+ run: bundle install --jobs 4 --retry 3
24
+
25
+ - name: test
26
+ run: bundle exec rake
@@ -0,0 +1,22 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ env_sync (1.0.2)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ minitest (5.13.0)
10
+ rake (10.5.0)
11
+
12
+ PLATFORMS
13
+ ruby
14
+
15
+ DEPENDENCIES
16
+ bundler (~> 1.16)
17
+ env_sync!
18
+ minitest (~> 5.0)
19
+ rake (~> 10.0)
20
+
21
+ BUNDLED WITH
22
+ 1.16.1
data/README.md CHANGED
@@ -1,4 +1,34 @@
1
- # EnvSync
1
+ # env_sync
2
+
3
+ env_sync helps to manage `.env` files of some repositories.
4
+
5
+ Setup `env.yaml` and just apply! env_sync creates `.env` files each of your related repositories.
6
+
7
+ ```yaml
8
+ - dir: "/hoge"
9
+ content: |
10
+ HOGE=fuga
11
+ FOO=bar
12
+ - dir: "~/User/code"
13
+ content: |
14
+ PIYO=piyo
15
+ file: .env.development
16
+ - dir: "fuga"
17
+ content: |
18
+ PIYO=piyo
19
+ ```
20
+
21
+ ```console
22
+ $ env_sync env.yaml
23
+ ```
24
+
25
+ You will find `/hoge/.env` , `~/User/code/.env.development`, `./fuga/.env`
26
+
27
+ ### options
28
+
29
+ - `dir`: copy destination directory
30
+ - `content`: contents of .env file
31
+ - `file` (optional): name of .env file (sometimes prefer `.env.development`)
2
32
 
3
33
  ## Installation
4
34
 
@@ -18,14 +48,6 @@ $ env_sync path/to/env.yaml
18
48
  $ rake
19
49
  ```
20
50
 
21
- ## Contributing
22
-
23
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/env_sync. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
24
-
25
51
  ## License
26
52
 
27
53
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
28
-
29
- ## Code of Conduct
30
-
31
- Everyone interacting in the EnvSync project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/env_sync/blob/master/CODE_OF_CONDUCT.md).
@@ -1,3 +1,3 @@
1
1
  module EnvSync
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: env_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yukito Ito
@@ -60,10 +60,10 @@ executables:
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
+ - ".github/workflows/main.yml"
63
64
  - ".gitignore"
64
- - ".travis.yml"
65
- - CODE_OF_CONDUCT.md
66
65
  - Gemfile
66
+ - Gemfile.lock
67
67
  - LICENSE.txt
68
68
  - README.md
69
69
  - Rakefile
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.5.0
5
- before_install: gem install bundler -v 1.16.1
@@ -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 yukibukiyou@gmail.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/