shorten_string_by_sinan 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +55 -0
- data/README.md +6 -12
- data/lib/shorten_string_by_sinan/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b9fe049f51623af58fa3c186edf8334af05647e49ed4151be81820aa7477519
|
|
4
|
+
data.tar.gz: 8d2d37b620bd746d24d8b6e3a0c875c8ad5646c9fc9b4ce55f7a536144115f0f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 470e58564581b70953f86cdc2778c4c98f68d07c656887783980d2c421bf5cf92f0aa8efacb3d400a348ec14bce87ed144335f1baf55c18b5945a42334904a76
|
|
7
|
+
data.tar.gz: 49c2b7f18ff902f4bf27d7b9f575383d567398747feb4ccc8cb1886d9d3b17a3138e5eea1ee07a589a48636cc259b10d42045a70bb9acf178b44ec8017a878e8
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
shorten_string_by_sinan (0.1.0)
|
|
5
|
+
|
|
6
|
+
GEM
|
|
7
|
+
remote: https://rubygems.org/
|
|
8
|
+
specs:
|
|
9
|
+
ast (2.4.2)
|
|
10
|
+
diff-lcs (1.4.4)
|
|
11
|
+
parallel (1.20.1)
|
|
12
|
+
parser (3.0.1.0)
|
|
13
|
+
ast (~> 2.4.1)
|
|
14
|
+
rainbow (3.0.0)
|
|
15
|
+
rake (13.0.3)
|
|
16
|
+
regexp_parser (2.1.1)
|
|
17
|
+
rexml (3.2.5)
|
|
18
|
+
rspec (3.10.0)
|
|
19
|
+
rspec-core (~> 3.10.0)
|
|
20
|
+
rspec-expectations (~> 3.10.0)
|
|
21
|
+
rspec-mocks (~> 3.10.0)
|
|
22
|
+
rspec-core (3.10.1)
|
|
23
|
+
rspec-support (~> 3.10.0)
|
|
24
|
+
rspec-expectations (3.10.1)
|
|
25
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
26
|
+
rspec-support (~> 3.10.0)
|
|
27
|
+
rspec-mocks (3.10.2)
|
|
28
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
29
|
+
rspec-support (~> 3.10.0)
|
|
30
|
+
rspec-support (3.10.2)
|
|
31
|
+
rubocop (1.12.1)
|
|
32
|
+
parallel (~> 1.10)
|
|
33
|
+
parser (>= 3.0.0.0)
|
|
34
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
35
|
+
regexp_parser (>= 1.8, < 3.0)
|
|
36
|
+
rexml
|
|
37
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
|
38
|
+
ruby-progressbar (~> 1.7)
|
|
39
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
|
40
|
+
rubocop-ast (1.4.1)
|
|
41
|
+
parser (>= 2.7.1.5)
|
|
42
|
+
ruby-progressbar (1.11.0)
|
|
43
|
+
unicode-display_width (2.0.0)
|
|
44
|
+
|
|
45
|
+
PLATFORMS
|
|
46
|
+
x86_64-linux
|
|
47
|
+
|
|
48
|
+
DEPENDENCIES
|
|
49
|
+
rake (~> 13.0)
|
|
50
|
+
rspec (~> 3.0)
|
|
51
|
+
rubocop (~> 1.7)
|
|
52
|
+
shorten_string_by_sinan!
|
|
53
|
+
|
|
54
|
+
BUNDLED WITH
|
|
55
|
+
2.2.15
|
data/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# ShortenStringBySinan
|
|
1
|
+
# Welcome to ShortenStringBySinan
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# What's ShortenStringBySinan?
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This is a gem helps you to shorten your string values to specifiyed length and adds three dots "..." to the end of the string.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -22,17 +22,11 @@ Or install it yourself as:
|
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
## Development
|
|
28
|
-
|
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
30
|
-
|
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
25
|
+
Simple calling ShortenStringBySinan::ShortenString.shorten_string("String to be get shorted is goind here",5) will return "String..." as shortend version of the string.
|
|
32
26
|
|
|
33
27
|
## Contributing
|
|
34
28
|
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
29
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/sinancengiz/shorten_string_by_sinan. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the (https://github.com/sinancengiz/shorten_string_by_sinan/blob/master/CODE_OF_CONDUCT.md).
|
|
36
30
|
|
|
37
31
|
## License
|
|
38
32
|
|
|
@@ -40,4 +34,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
|
40
34
|
|
|
41
35
|
## Code of Conduct
|
|
42
36
|
|
|
43
|
-
Everyone interacting in the ShortenStringBySinan project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the
|
|
37
|
+
Everyone interacting in the ShortenStringBySinan project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the(https://github.com/sinancengiz/shorten_string_by_sinan/blob/master/CODE_OF_CONDUCT.md).
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shorten_string_by_sinan
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sinancengiz
|
|
@@ -24,6 +24,7 @@ files:
|
|
|
24
24
|
- CHANGELOG.md
|
|
25
25
|
- CODE_OF_CONDUCT.md
|
|
26
26
|
- Gemfile
|
|
27
|
+
- Gemfile.lock
|
|
27
28
|
- LICENSE.txt
|
|
28
29
|
- README.md
|
|
29
30
|
- Rakefile
|