Commit Graph

45 Commits

Author SHA1 Message Date
8e062ff114 Add comment to unit test skip condition 2023-01-12 15:07:12 +09:00
225e3e7929 Unit test fixes with permissions
- in case the unit test is run as root, skip test for cannot read (0000)
- set read (0664) for all must read files
- write .env file int all folders for test so that __DIR__ base will
  always find one
2023-01-12 11:42:15 +09:00
44bcb39e51 Delete .gitlab-ci.yml 2023-01-11 08:53:12 +00:00
5729a0c977 Update .gitlab-ci.yml file 2023-01-11 08:49:23 +00:00
9af7790b61 Fix Readme file 2023-01-11 17:15:37 +09:00
0579a075dc Remove bitbucket pipeline, update readme with test tools 2023-01-11 17:14:47 +09:00
58a6d994ca bitbucket pipeline test 2023-01-11 17:06:24 +09:00
233f9fbf81 Dev install phpstan, phan and phplint 2023-01-11 17:00:57 +09:00
8ae06efe4e Remove symlinked .env files 2023-01-11 16:48:28 +09:00
4079d7c66e Merge bitbucket.org:egplusww/code-blocks-dotenv 2023-01-11 16:31:30 +09:00
dd2274f3b1 Auto create .env files 2023-01-11 16:30:51 +09:00
5742314581 Initial Bitbucket Pipelines configuration 2023-01-11 06:46:28 +00:00
3668e6552c Extra check to make sure _ENV array is inited before appending to it v2.0.6 2023-01-06 10:13:20 +09:00
404f6713f8 Remove vendor and composer.lock from main 2022-06-14 07:23:10 +09:00
97b5a669aa Merge branch 'master' of github.com:gullevek/dotEnv
Merge split git repositories back again
2022-06-14 07:20:48 +09:00
899586ac83 Update phpdoc info for error 1 2022-06-09 12:56:32 +09:00
e95e0db218 Update phpdoc info for error 1 v2.0.5 2022-06-09 12:56:11 +09:00
74b0d02a7c Ignore comments at the end of line
If the variable value had no quotes a comment at the end of the
line was added to the variable.
 Spaces between text and comment mark will be removed too

Old:
FOO=Test # Comment -> $_ENV['FOO'] = "Test # Comment"

New:
FOO=Test # Comment -> $_ENV['FOO'] = "Test"
2022-06-09 09:20:29 +09:00
0d3e10fe26 Ignore comments at the end of line
If the variable value had no quotes a comment at the end of the line was
added to the variable.
Spaces between text and comment mark will be removed too

Old:
FOO=Test # Comment -> $_ENV['FOO'] = "Test # Comment"

New:
FOO=Test # Comment -> $_ENV['FOO'] = "Test"
v2.0.4
2022-06-09 09:17:21 +09:00
f8e5cb64ad Add git attributes file 2022-06-08 18:20:11 +09:00
1389d5c768 Add git attributes file v2.0.3 2022-06-08 18:19:38 +09:00
2ec6650c99 Readme file update 2022-06-08 15:37:43 +09:00
df23a7a1b1 Update documentation v2.0.2 2022-06-08 15:37:10 +09:00
a7bca09bf4 Comment fix in phpunit test file 2022-06-08 15:32:41 +09:00
652c3554f8 Fix comment in phpunit test file 2022-06-08 15:31:48 +09:00
2c592f0289 Add back vendor folders for development v2.0.1 2022-06-08 14:28:56 +09:00
6ee4358579 Merge branch 'development' 2022-06-08 14:27:20 +09:00
135d3d2dd4 Add gitignore file for phpunit cache 2022-06-08 14:26:58 +09:00
c0f1d9daf7 Merge git.tokyo.tequila.jp:CodeBlocks/dotenv 2022-06-08 14:25:56 +09:00
1f3ec93fb9 Revert to development git ignore file 2022-06-08 14:23:42 +09:00
2c7931b7a5 Add static checker, phpunit config file 2022-06-08 14:12:35 +09:00
914b6c1da8 Clean out files that should not be pushed to git for composer publish 2022-06-08 14:08:55 +09:00
69a386d00f Add gitingore file for vendor, composer.lock, etc files 2022-06-08 14:07:58 +09:00
cdb275ef87 Added back psalm.xml config file v2.0.0 2022-06-08 13:46:16 +09:00
c1e35c910c Set pslam tests to level 8 2022-06-08 13:45:11 +09:00
c6d4c8d3d0 Fixes for merge of development 2022-06-08 13:43:09 +09:00
ad59120f52 Update phpunit config for cache result target 2022-06-08 13:37:58 +09:00
06479cadea phpunit test update, update all static testers, add psalm tester
Add Readme file update for install via composer

psalm static checker added
phan and phpstan update with ignoring vendor and test files as they are
not needed in final system
2022-06-08 13:34:48 +09:00
b73a24b447 Class rename, composer add, phpUnit tests add
Rename the class from ReadEnvFile to DotEnv.
Add everything to a composer json file so it can be published to
composer repository.
Add phpUnit tests for system
2022-06-08 11:24:23 +09:00
784788e035 Add psalm checks 1.0.2 2021-10-21 15:13:59 +09:00
bded6105ad Add phpstan and phan 1.0.1 2021-10-21 13:43:05 +09:00
6cc09fb089 Allow . in variables 2021-10-14 13:36:50 +09:00
75367b2724 Fix next line read with double quote blocks in one line
If there was this
FOO="bar"

Then the # comment block was attached to bar because FOO was seen as a
multiline block although the quotes are in one line only
1.0.0
2021-10-11 09:30:36 +09:00
c5c40a1780 Add example .env file and update readme 2021-10-11 09:10:52 +09:00
de80a9c061 Create dotenv readEnvFile single function 2021-10-11 08:58:36 +09:00