SassyStrings 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. data/CHANGELOG.md +1 -0
  2. data/README.md +4 -4
  3. data/lib/SassyStrings.rb +2 -2
  4. data/stylesheets/private/_all.scss +2 -2
  5. data/stylesheets/private/_char-at.scss +7 -15
  6. data/stylesheets/private/_levenshtein.scss +63 -84
  7. data/stylesheets/private/_str-count.scss +15 -23
  8. data/stylesheets/private/_str-ends-with.scss +6 -14
  9. data/stylesheets/private/_str-explode.scss +28 -35
  10. data/stylesheets/private/_str-implode.scss +10 -18
  11. data/stylesheets/private/_str-last-index.scss +6 -14
  12. data/stylesheets/private/_str-lcfirst.scss +5 -13
  13. data/stylesheets/private/_str-pad.scss +10 -19
  14. data/stylesheets/private/_str-printf.scss +9 -18
  15. data/stylesheets/private/_str-repeat.scss +6 -14
  16. data/stylesheets/private/_str-replace.scss +11 -29
  17. data/stylesheets/private/_str-reverse.scss +7 -15
  18. data/stylesheets/private/_str-rot.scss +9 -18
  19. data/stylesheets/private/_str-shuffle.scss +17 -31
  20. data/stylesheets/private/_str-starts-with.scss +5 -13
  21. data/stylesheets/private/_str-trim.scss +5 -13
  22. data/stylesheets/private/_str-ucfirst.scss +5 -13
  23. data/stylesheets/private/_str-word-count.scss +6 -14
  24. data/stylesheets/private/_stringify.scss +13 -22
  25. data/stylesheets/public/_all.scss +3 -2
  26. data/stylesheets/public/_char-at.scss +12 -28
  27. data/stylesheets/public/_levenshtein.scss +3 -18
  28. data/stylesheets/public/_str-count.scss +8 -23
  29. data/stylesheets/public/_str-ends-with.scss +2 -17
  30. data/stylesheets/public/_str-explode.scss +3 -18
  31. data/stylesheets/public/_str-implode.scss +5 -17
  32. data/stylesheets/public/_str-last-index.scss +3 -18
  33. data/stylesheets/public/_str-lcfirst.scss +2 -15
  34. data/stylesheets/public/_str-pad.scss +8 -22
  35. data/stylesheets/public/_str-printf.scss +2 -16
  36. data/stylesheets/public/_str-repeat.scss +3 -18
  37. data/stylesheets/public/_str-replace.scss +7 -30
  38. data/stylesheets/public/_str-reverse.scss +2 -15
  39. data/stylesheets/public/_str-rot.scss +3 -18
  40. data/stylesheets/public/_str-shuffle.scss +6 -17
  41. data/stylesheets/public/_str-starts-with.scss +2 -17
  42. data/stylesheets/public/_str-trim.scss +2 -15
  43. data/stylesheets/public/_str-ucfirst.scss +2 -15
  44. data/stylesheets/public/_str-word-count.scss +6 -19
  45. data/stylesheets/public/_stringify.scss +2 -14
  46. metadata +45 -39
  47. checksums.yaml +0 -7
@@ -1,18 +1,7 @@
1
- /*
2
- * Shuffle characters from $string
3
- * ---
4
- * @access public
5
- * ---
6
- * @since 1.0.0
7
- * ---
8
- * @param {string} $string - string to shuffle
9
- * ---
10
- * @return {string}
11
- */
12
-
13
1
  @function str-shuffle($string) {
14
- @if type-of($string) != string {
15
- @error '$string of str-shuffle must be a string';
16
- }
17
- @return _ss-str-shuffle($string);
18
- }
2
+ @if type-of($string) != string {
3
+ @error '$string of str-shuffle must be a string';
4
+ }
5
+
6
+ @return _ss-str-shuffle($string);
7
+ }
@@ -1,25 +1,10 @@
1
- /*
2
- * Check whether $string stars with $needle
3
- * ---
4
- * @access public
5
- * ---
6
- * @since 1.0.0
7
- * ---
8
- * @param {string} $string - string to check
9
- * @param {string} $needle - substring to check
10
- * ---
11
- * @return {bool|false}
12
- */
13
-
14
1
  @function str-starts-with($string, $needle) {
15
2
  @if type-of($string) != "string" {
16
- @warn "`str-starts-with` function expecting a string for $string; #{type-of($string)} given.";
17
- @return false;
3
+ @error "`str-starts-with` function expecting a string for $string; #{type-of($string)} given.";
18
4
  }
19
5
 
20
6
  @if type-of($needle) != "string" {
21
- @warn "`str-starts-with` function expecting a string for $needle; #{type-of($needle)} given.";
22
- @return false;
7
+ @error "`str-starts-with` function expecting a string for $needle; #{type-of($needle)} given.";
23
8
  }
24
9
 
25
10
  @return _ss-str-starts-with($string, $needle);
@@ -1,20 +1,7 @@
1
- /*
2
- * Remove all trailing and leading whitespaces from $string
3
- * ---
4
- * @access public
5
- * ---
6
- * @since 1.0.0
7
- * ---
8
- * @param {string} $string - string
9
- * ---
10
- * @return {string|false}
11
- */
12
-
13
1
  @function str-trim($string) {
14
2
  @if type-of($string) != "string" {
15
- @warn "`str-trim` function expecting a string for $string; #{type-of($string)} given.";
16
- @return false;
3
+ @error "`str-trim` function expecting a string for $string; #{type-of($string)} given.";
17
4
  }
18
5
 
19
6
  @return _ss-str-trim($string);
20
- }
7
+ }
@@ -1,20 +1,7 @@
1
- /*
2
- * Capitalize first letter from $string
3
- * ---
4
- * @access public
5
- * ---
6
- * @since 1.0.0
7
- * ---
8
- * @param {string} $string - string to capitalize first letter from
9
- * ---
10
- * @return {string | false}
11
- */
12
-
13
1
  @function str-ucfirst($string) {
14
2
  @if type-of($string) != "string" {
15
- @warn "`str-ucfirst` function expecting a string for $string; #{type-of($string)} given.";
16
- @return false;
3
+ @error "`str-ucfirst` function expecting a string for $string; #{type-of($string)} given.";
17
4
  }
18
5
 
19
6
  @return _ss-str-ucfirst($string);
20
- }
7
+ }
@@ -1,20 +1,7 @@
1
- /*
2
- * Count number of words in $string
3
- * ---
4
- * @access public
5
- * ---
6
- * @since 1.0.0
7
- * ---
8
- * @param {string} $string - string to check
9
- * ---
10
- * @return {string|false}
11
- */
12
-
13
1
  @function str-word-count($string) {
14
- @if type-of($string) != "string" {
15
- @warn "`str-word-count` function expecting a string for $string; #{type-of($string)} given.";
16
- @return false;
17
- }
18
-
19
- @return _ss-str-word-count($string);
20
- }
2
+ @if type-of($string) != "string" {
3
+ @error "`str-word-count` function expecting a string for $string; #{type-of($string)} given.";
4
+ }
5
+
6
+ @return _ss-str-word-count($string);
7
+ }
@@ -1,15 +1,3 @@
1
- /*
2
- * Cast anything to string
3
- * ---
4
- * @access public
5
- * ---
6
- * @since 1.0.0
7
- * ---
8
- * @param {literal} $literal: number to cast to string
9
- * ---
10
- * @return {string}
11
- */
12
-
13
1
  @function stringify($literal) {
14
- @return _ss-stringify($literal);
15
- }
2
+ @return _ss-stringify($literal);
3
+ }
metadata CHANGED
@@ -1,41 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SassyStrings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Hugo Giraudel
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-11-27 00:00:00.000000000 Z
12
+ date: 2014-12-31 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: sass
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '3.4'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '3.4'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: compass
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: 1.0.0.alpha.18
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: 1.0.0.alpha.18
41
46
  description: A collection of Sass functions to manipulate strings.
@@ -49,69 +54,70 @@ files:
49
54
  - CHANGELOG.md
50
55
  - lib/SassyStrings.rb
51
56
  - stylesheets/_SassyStrings.scss
52
- - stylesheets/private/_all.scss
53
- - stylesheets/private/_char-at.scss
54
- - stylesheets/private/_levenshtein.scss
55
- - stylesheets/private/_str-count.scss
56
- - stylesheets/private/_str-ends-with.scss
57
- - stylesheets/private/_str-explode.scss
58
- - stylesheets/private/_str-implode.scss
57
+ - stylesheets/private/_str-word-count.scss
59
58
  - stylesheets/private/_str-last-index.scss
60
- - stylesheets/private/_str-lcfirst.scss
61
- - stylesheets/private/_str-pad.scss
59
+ - stylesheets/private/_str-shuffle.scss
60
+ - stylesheets/private/_str-explode.scss
62
61
  - stylesheets/private/_str-printf.scss
62
+ - stylesheets/private/_str-ends-with.scss
63
+ - stylesheets/private/_char-at.scss
63
64
  - stylesheets/private/_str-repeat.scss
64
- - stylesheets/private/_str-replace.scss
65
- - stylesheets/private/_str-reverse.scss
65
+ - stylesheets/private/_str-lcfirst.scss
66
+ - stylesheets/private/_all.scss
67
+ - stylesheets/private/_str-implode.scss
66
68
  - stylesheets/private/_str-rot.scss
67
- - stylesheets/private/_str-shuffle.scss
69
+ - stylesheets/private/_str-reverse.scss
70
+ - stylesheets/private/_str-pad.scss
71
+ - stylesheets/private/_str-count.scss
68
72
  - stylesheets/private/_str-starts-with.scss
73
+ - stylesheets/private/_stringify.scss
74
+ - stylesheets/private/_str-replace.scss
75
+ - stylesheets/private/_levenshtein.scss
69
76
  - stylesheets/private/_str-trim.scss
70
77
  - stylesheets/private/_str-ucfirst.scss
71
- - stylesheets/private/_str-word-count.scss
72
- - stylesheets/private/_stringify.scss
73
- - stylesheets/public/_all.scss
74
- - stylesheets/public/_char-at.scss
75
- - stylesheets/public/_levenshtein.scss
76
- - stylesheets/public/_str-count.scss
77
- - stylesheets/public/_str-ends-with.scss
78
- - stylesheets/public/_str-explode.scss
79
- - stylesheets/public/_str-implode.scss
78
+ - stylesheets/public/_str-word-count.scss
80
79
  - stylesheets/public/_str-last-index.scss
81
- - stylesheets/public/_str-lcfirst.scss
82
- - stylesheets/public/_str-pad.scss
80
+ - stylesheets/public/_str-shuffle.scss
81
+ - stylesheets/public/_str-explode.scss
83
82
  - stylesheets/public/_str-printf.scss
83
+ - stylesheets/public/_str-ends-with.scss
84
+ - stylesheets/public/_char-at.scss
84
85
  - stylesheets/public/_str-repeat.scss
85
- - stylesheets/public/_str-replace.scss
86
- - stylesheets/public/_str-reverse.scss
86
+ - stylesheets/public/_str-lcfirst.scss
87
+ - stylesheets/public/_all.scss
88
+ - stylesheets/public/_str-implode.scss
87
89
  - stylesheets/public/_str-rot.scss
88
- - stylesheets/public/_str-shuffle.scss
90
+ - stylesheets/public/_str-reverse.scss
91
+ - stylesheets/public/_str-pad.scss
92
+ - stylesheets/public/_str-count.scss
89
93
  - stylesheets/public/_str-starts-with.scss
94
+ - stylesheets/public/_stringify.scss
95
+ - stylesheets/public/_str-replace.scss
96
+ - stylesheets/public/_levenshtein.scss
90
97
  - stylesheets/public/_str-trim.scss
91
98
  - stylesheets/public/_str-ucfirst.scss
92
- - stylesheets/public/_str-word-count.scss
93
- - stylesheets/public/_stringify.scss
94
99
  homepage: https://github.com/HugoGiraudel/SassyStrings
95
100
  licenses: []
96
- metadata: {}
97
101
  post_install_message:
98
102
  rdoc_options: []
99
103
  require_paths:
100
104
  - lib
101
105
  required_ruby_version: !ruby/object:Gem::Requirement
106
+ none: false
102
107
  requirements:
103
- - - '>='
108
+ - - ! '>='
104
109
  - !ruby/object:Gem::Version
105
110
  version: '0'
106
111
  required_rubygems_version: !ruby/object:Gem::Requirement
112
+ none: false
107
113
  requirements:
108
- - - '>='
114
+ - - ! '>='
109
115
  - !ruby/object:Gem::Version
110
116
  version: '1.2'
111
117
  requirements: []
112
118
  rubyforge_project: SassyStrings
113
- rubygems_version: 2.0.14
119
+ rubygems_version: 1.8.23
114
120
  signing_key:
115
- specification_version: 4
121
+ specification_version: 3
116
122
  summary: Advanced String handling for Sass
117
123
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: cd30de9907af13c3f83748a43a2b53b54999344d
4
- data.tar.gz: 2f4b55aaa86d6823b6789857368b587844440444
5
- SHA512:
6
- metadata.gz: 0ef4015d8dbe20a3c626c7d3488a3be1de33336bbf2fa9270be380c0989bb2191e9c5983d8f7785ab3c6e4d762a27db85bb8a12ec87833ad6e3a3451f04d5126
7
- data.tar.gz: 4b606931ecbdc74aba490d4a13c649db68befc8cedb8f9137c29af105a3af6688c21d666634d4d059941129c958b28ac10069186b2a9c3931e49a2eb3e9c8a3a