Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ securenative = SecureNative.init_with_api_key("YOUR_API_KEY")
from securenative.securenative import SecureNative


securenative = SecureNative.init_with_options(SecureNative.config_builder().with_api_key("API_KEY").with_max_events(10).with_log_level("ERROR"))
securenative = SecureNative.init_with_options(SecureNative.config_builder().with_api_key("API_KEY").with_max_events(10).with_log_level("ERROR").build())
```

## Getting SecureNative instance
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.2
0.2.3
3 changes: 3 additions & 0 deletions securenative/config/configuration_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def with_fail_over_strategy(self, fail_over_strategy):
self.fail_over_strategy = fail_over_strategy
return self

def build(self):
return self

@staticmethod
def get_default_securenative_options():
return SecureNativeOptions()
8 changes: 1 addition & 7 deletions securenative/utils/version_utils.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import os


class VersionUtils(object):

@staticmethod
def get_version():
root_dir = os.path.dirname(os.path.abspath(__file__)).replace("/securenative/utils", "")
path = os.path.join(root_dir, "VERSION")
with open(path) as f:
return f.read()
return "0.2.3"
11 changes: 11 additions & 0 deletions tests/version_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import unittest

from securenative.utils.version_utils import VersionUtils


class VersionTest(unittest.TestCase):

def test_version(self):
version = VersionUtils.get_version()

self.assertIsNotNone(version)