pod 'Swifternalization', '~> 1.0.2'
+pod 'Swifternalization', '~> 1.0.2.1'
Without CocoaPods:
If you want to integrate it with your project just import files from Swifternalization/Swifternalization directory.
Documentation
-Swifternalization documentation covers 100% of the code, Yay! Two types of documentation have been generated. One covers only public API which is great for those who only wants to use the framework without looking inside. The second one covers all the API public, internal and private. (The best for now is to download repository since I’m working on making it easily browsable).
+Swifternalization documentation covers 100% of the code, Yay! There are two types of documentation. First covers only public API which is great for those who only want to use the framework without looking inside. The second one covers all the API - public, internal and private.
-
+You can find Public API and Full documentation with docset here in docs directory.
+
+It is also hosted on my blog:
+- Public API documentation
+- Full API documentation
+
+Docsets:
+- Public API docset
+- Full API docset
Real Example
Let’s take a look on practical usage of Swifternalization. App supports both English and Polish languages. Naturally app contains two Localizable.strings files - one is Base for English (or English for English) and one is Polish… for Polish, obviously :)
@@ -350,25 +347,25 @@
There are 3 types:
-- inequality - this type of expression handles simple ineuqalities like: %d<3, %d>10, %d=5, %d<=3, and so on.
-- inequality extended - this is extended version of inequality with syntax like this: 2<%d<10, 4<=%d<6.
+- inequality - this type of expression handles simple inequalities like: x<3, x>10, x=5, x<=3, and so on.
+- inequality extended - this is extended version of inequality with syntax like this: 2<x<10, 4<=x<6.
- regex - this types of expression uses regular expression. This is the most powerful ;)
Inequality
-It supports numbers for now (probably there will be only supports for numbers)). It is composed of several elements:
+It is composed of several elements:
- ie: - prefix of inequality expression
-- %d - you have to always pass it, this means that Int will be used for this expression
+- x - you have to always pass it, this means here is the place for a number that will be matched. Works with Ints and floating point numbers.
- <, <=, =, >=, > - use one of inequality signs
- 1, 3, 5, 6, … - value to match is the last one in this expression
Example:
-"cars{ie:%d=1}" = "1 car";
-"cars{ie:%d=0}" = "no cars";
-"cars{ie:%d>1}" = "%d cars";
+"cars{ie:x=1}" = "1 car";
+"cars{ie:x=0}" = "no cars";
+"cars{ie:x>1}" = "%d cars";
Inequality Extended
@@ -376,12 +373,12 @@
- iex: - prefix of inequality extended expression
-- %d - it also works only with Int*s for now so just pass *%d in the place of the value to be matched
-- Inequality signs and possible values are the same like with inequality expression
+- x - place for number that will be matched. Works with Ints and floating point numbers.
+- Only < and <= are accepted.
Expample:
-"tomatos{iex:2<%d<10}" = "%d tomatos is between 2 and 10";
+"tomatos{iex:2<x<10}" = "%d tomatos is between 2 and 10";
Regex
@@ -435,13 +432,13 @@
Expressions.strings (Base)
--------------------------
-"custom-1" = "ie:%d=1";
+"custom-1" = "ie:x=1";
"custom-2" = "exp:(^[^1])|(^\\d{2,})";
Expressions.strings (Polish)
---------------------------
-"custom-1" = "ie:%d=1";
+"custom-1" = "ie:x=1";
"custom-2" = "exp:(((?!1).[2-4]{1})$)|(^[2-4]$)";
"custom-3" = "exp:(.*(?=1).[0-9]$)|(^[05-9]$)|(.*(?!1).[0156789])";
@@ -503,7 +500,7 @@
diff --git a/docs/public/Classes.html b/docs/public/Classes.html
index d3e2ba9..91516ba 100644
--- a/docs/public/Classes.html
+++ b/docs/public/Classes.html
@@ -108,7 +108,7 @@ Declaration
diff --git a/docs/public/Classes/Swifternalization.html b/docs/public/Classes/Swifternalization.html
index c8e2f1f..6565127 100644
--- a/docs/public/Classes/Swifternalization.html
+++ b/docs/public/Classes/Swifternalization.html
@@ -358,7 +358,7 @@ Declaration
diff --git a/docs/public/Typealiases.html b/docs/public/Typealiases.html
index aa0ebcb..9de94b2 100644
--- a/docs/public/Typealiases.html
+++ b/docs/public/Typealiases.html
@@ -86,7 +86,7 @@ Declaration
diff --git a/docs/public/docsets/Swifternalization Public API.docset/Contents/Resources/Documents/Classes.html b/docs/public/docsets/Swifternalization Public API.docset/Contents/Resources/Documents/Classes.html
index d3e2ba9..91516ba 100644
--- a/docs/public/docsets/Swifternalization Public API.docset/Contents/Resources/Documents/Classes.html
+++ b/docs/public/docsets/Swifternalization Public API.docset/Contents/Resources/Documents/Classes.html
@@ -108,7 +108,7 @@ Declaration
diff --git a/docs/public/docsets/Swifternalization Public API.docset/Contents/Resources/Documents/Classes/Swifternalization.html b/docs/public/docsets/Swifternalization Public API.docset/Contents/Resources/Documents/Classes/Swifternalization.html
index c8e2f1f..6565127 100644
--- a/docs/public/docsets/Swifternalization Public API.docset/Contents/Resources/Documents/Classes/Swifternalization.html
+++ b/docs/public/docsets/Swifternalization Public API.docset/Contents/Resources/Documents/Classes/Swifternalization.html
@@ -358,7 +358,7 @@ Declaration
diff --git a/docs/public/docsets/Swifternalization Public API.docset/Contents/Resources/Documents/Typealiases.html b/docs/public/docsets/Swifternalization Public API.docset/Contents/Resources/Documents/Typealiases.html
index aa0ebcb..9de94b2 100644
--- a/docs/public/docsets/Swifternalization Public API.docset/Contents/Resources/Documents/Typealiases.html
+++ b/docs/public/docsets/Swifternalization Public API.docset/Contents/Resources/Documents/Typealiases.html
@@ -86,7 +86,7 @@ Declaration
diff --git a/docs/public/docsets/Swifternalization Public API.docset/Contents/Resources/Documents/index.html b/docs/public/docsets/Swifternalization Public API.docset/Contents/Resources/Documents/index.html
index cccaaf1..f20cac4 100644
--- a/docs/public/docsets/Swifternalization Public API.docset/Contents/Resources/Documents/index.html
+++ b/docs/public/docsets/Swifternalization Public API.docset/Contents/Resources/Documents/index.html
@@ -50,9 +50,7 @@
-
-
-
+
Swifternalization is library that helps in localizing apps. It is written in Swift.
Features
@@ -70,25 +68,27 @@
Swifternalization
Swifternalization helps in localizing apps in a smarter way. It has been created because of necessary to solve Polish language internalization problems but it is universal and works with every language.
-Failing builds (temporary section)
-
-I noticed that Travis CI sometimes reports that build failed. I don’t know why, it can pass and fail on the same commit so this is very weird. Framework is of course working and it is covered by many unit tests. I think this is some issue with wrong Travis configuration. #4 Failing Travis CI builds
Installation
With CocoaPods:
-pod 'Swifternalization', '~> 1.0.2'
+pod 'Swifternalization', '~> 1.0.2.1'
Without CocoaPods:
If you want to integrate it with your project just import files from Swifternalization/Swifternalization directory.
Documentation
-Swifternalization documentation covers 100% of the code, Yay! Two types of documentation have been generated. One covers only public API which is great for those who only wants to use the framework without looking inside. The second one covers all the API public, internal and private. (The best for now is to download repository since I’m working on making it easily browsable).
+Swifternalization documentation covers 100% of the code, Yay! There are two types of documentation. First covers only public API which is great for those who only want to use the framework without looking inside. The second one covers all the API - public, internal and private.
-
+You can find Public API and Full documentation with docset here in docs directory.
+
+It is also hosted on my blog:
+- Public API documentation
+- Full API documentation
+
+Docsets:
+- Public API docset
+- Full API docset
Real Example
Let’s take a look on practical usage of Swifternalization. App supports both English and Polish languages. Naturally app contains two Localizable.strings files - one is Base for English (or English for English) and one is Polish… for Polish, obviously :)
@@ -245,25 +245,25 @@
There are 3 types:
-- inequality - this type of expression handles simple ineuqalities like: %d<3, %d>10, %d=5, %d<=3, and so on.
-- inequality extended - this is extended version of inequality with syntax like this: 2<%d<10, 4<=%d<6.
+- inequality - this type of expression handles simple inequalities like: x<3, x>10, x=5, x<=3, and so on.
+- inequality extended - this is extended version of inequality with syntax like this: 2<x<10, 4<=x<6.
- regex - this types of expression uses regular expression. This is the most powerful ;)
Inequality
-It supports numbers for now (probably there will be only supports for numbers)). It is composed of several elements:
+It is composed of several elements:
- ie: - prefix of inequality expression
-- %d - you have to always pass it, this means that Int will be used for this expression
+- x - you have to always pass it, this means here is the place for a number that will be matched. Works with Ints and floating point numbers.
- <, <=, =, >=, > - use one of inequality signs
- 1, 3, 5, 6, … - value to match is the last one in this expression
Example:
-"cars{ie:%d=1}" = "1 car";
-"cars{ie:%d=0}" = "no cars";
-"cars{ie:%d>1}" = "%d cars";
+"cars{ie:x=1}" = "1 car";
+"cars{ie:x=0}" = "no cars";
+"cars{ie:x>1}" = "%d cars";
Inequality Extended
@@ -271,12 +271,12 @@
- iex: - prefix of inequality extended expression
-- %d - it also works only with Int*s for now so just pass *%d in the place of the value to be matched
-- Inequality signs and possible values are the same like with inequality expression
+- x - place for number that will be matched. Works with Ints and floating point numbers.
+- Only < and <= are accepted.
Expample:
-"tomatos{iex:2<%d<10}" = "%d tomatos is between 2 and 10";
+"tomatos{iex:2<x<10}" = "%d tomatos is between 2 and 10";
Regex
@@ -330,13 +330,13 @@
Expressions.strings (Base)
--------------------------
-"custom-1" = "ie:%d=1";
+"custom-1" = "ie:x=1";
"custom-2" = "exp:(^[^1])|(^\\d{2,})";
Expressions.strings (Polish)
---------------------------
-"custom-1" = "ie:%d=1";
+"custom-1" = "ie:x=1";
"custom-2" = "exp:(((?!1).[2-4]{1})$)|(^[2-4]$)";
"custom-3" = "exp:(.*(?=1).[0-9]$)|(^[05-9]$)|(.*(?!1).[0156789])";
@@ -398,7 +398,7 @@
diff --git a/docs/public/docsets/Swifternalization Public API.tgz b/docs/public/docsets/Swifternalization Public API.tgz
index 6561ae1..b756f39 100644
Binary files a/docs/public/docsets/Swifternalization Public API.tgz and b/docs/public/docsets/Swifternalization Public API.tgz differ
diff --git a/docs/public/index.html b/docs/public/index.html
index cccaaf1..f20cac4 100644
--- a/docs/public/index.html
+++ b/docs/public/index.html
@@ -50,9 +50,7 @@
-
-
-
+
Swifternalization is library that helps in localizing apps. It is written in Swift.
Features
@@ -70,25 +68,27 @@
Swifternalization
Swifternalization helps in localizing apps in a smarter way. It has been created because of necessary to solve Polish language internalization problems but it is universal and works with every language.
-Failing builds (temporary section)
-
-I noticed that Travis CI sometimes reports that build failed. I don’t know why, it can pass and fail on the same commit so this is very weird. Framework is of course working and it is covered by many unit tests. I think this is some issue with wrong Travis configuration. #4 Failing Travis CI builds
Installation
With CocoaPods:
-pod 'Swifternalization', '~> 1.0.2'
+pod 'Swifternalization', '~> 1.0.2.1'
Without CocoaPods:
If you want to integrate it with your project just import files from Swifternalization/Swifternalization directory.
Documentation
-Swifternalization documentation covers 100% of the code, Yay! Two types of documentation have been generated. One covers only public API which is great for those who only wants to use the framework without looking inside. The second one covers all the API public, internal and private. (The best for now is to download repository since I’m working on making it easily browsable).
+Swifternalization documentation covers 100% of the code, Yay! There are two types of documentation. First covers only public API which is great for those who only want to use the framework without looking inside. The second one covers all the API - public, internal and private.
-
+You can find Public API and Full documentation with docset here in docs directory.
+
+It is also hosted on my blog:
+- Public API documentation
+- Full API documentation
+
+Docsets:
+- Public API docset
+- Full API docset
Real Example
Let’s take a look on practical usage of Swifternalization. App supports both English and Polish languages. Naturally app contains two Localizable.strings files - one is Base for English (or English for English) and one is Polish… for Polish, obviously :)
@@ -245,25 +245,25 @@
There are 3 types:
-- inequality - this type of expression handles simple ineuqalities like: %d<3, %d>10, %d=5, %d<=3, and so on.
-- inequality extended - this is extended version of inequality with syntax like this: 2<%d<10, 4<=%d<6.
+- inequality - this type of expression handles simple inequalities like: x<3, x>10, x=5, x<=3, and so on.
+- inequality extended - this is extended version of inequality with syntax like this: 2<x<10, 4<=x<6.
- regex - this types of expression uses regular expression. This is the most powerful ;)
Inequality
-It supports numbers for now (probably there will be only supports for numbers)). It is composed of several elements:
+It is composed of several elements:
- ie: - prefix of inequality expression
-- %d - you have to always pass it, this means that Int will be used for this expression
+- x - you have to always pass it, this means here is the place for a number that will be matched. Works with Ints and floating point numbers.
- <, <=, =, >=, > - use one of inequality signs
- 1, 3, 5, 6, … - value to match is the last one in this expression
Example:
-"cars{ie:%d=1}" = "1 car";
-"cars{ie:%d=0}" = "no cars";
-"cars{ie:%d>1}" = "%d cars";
+"cars{ie:x=1}" = "1 car";
+"cars{ie:x=0}" = "no cars";
+"cars{ie:x>1}" = "%d cars";
Inequality Extended
@@ -271,12 +271,12 @@
- iex: - prefix of inequality extended expression
-- %d - it also works only with Int*s for now so just pass *%d in the place of the value to be matched
-- Inequality signs and possible values are the same like with inequality expression
+- x - place for number that will be matched. Works with Ints and floating point numbers.
+- Only < and <= are accepted.
Expample:
-"tomatos{iex:2<%d<10}" = "%d tomatos is between 2 and 10";
+"tomatos{iex:2<x<10}" = "%d tomatos is between 2 and 10";
Regex
@@ -330,13 +330,13 @@
Expressions.strings (Base)
--------------------------
-"custom-1" = "ie:%d=1";
+"custom-1" = "ie:x=1";
"custom-2" = "exp:(^[^1])|(^\\d{2,})";
Expressions.strings (Polish)
---------------------------
-"custom-1" = "ie:%d=1";
+"custom-1" = "ie:x=1";
"custom-2" = "exp:(((?!1).[2-4]{1})$)|(^[2-4]$)";
"custom-3" = "exp:(.*(?=1).[0-9]$)|(^[05-9]$)|(.*(?!1).[0156789])";
@@ -398,7 +398,7 @@
diff --git a/gendocs.sh b/gendocs.sh
old mode 100644
new mode 100755