google_reviews 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +8 -4
- data/lib/google_reviews/utils.rb +9 -2
- data/lib/google_reviews/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a2390398990045326e6bb2fb15d1554cc4584828cb7eaa9c718f15cf4bc5963
|
4
|
+
data.tar.gz: 18c7d38928b7e37b0e42496459460e6c8fcef006afb7269eac28e31ab52c05e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55110b305862e5b54dd11298cfaa1828353de938cedb9eed84faf959d02343c497a811082911914d9cc0ff7ed816a374131fc9ae50bb04f73ec33bcd1d897638
|
7
|
+
data.tar.gz: c88bbdb138bda9198b0ecbdaff8e4399d15be666510eb2ed17cacdb7007f4f733321f728cde5470f1b3f67d313fa42fa8f031103362bdf8169468025dff0898b
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -54,9 +54,13 @@ You can rescue and handle these errors to provide appropriate error handling in
|
|
54
54
|
## Configuration
|
55
55
|
The gem doesn't require any additional configuration. However, it's recommended to configure the locale for translations. By default, the gem uses English (`:en`) as the locale. If you want to use a different locale, you can modify the `lib/google_reviews/translations.rb file`.
|
56
56
|
|
57
|
-
##
|
58
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
57
|
+
## Submitting a Pull Request
|
59
58
|
|
60
|
-
|
59
|
+
[Fork](https://help.github.com/articles/fork-a-repo/) the [official repository](https://github.com/TheArtOfCoding/google_reviews).
|
60
|
+
[Create a topic branch.](https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/)
|
61
|
+
Implement your feature or bug fix.
|
62
|
+
Add, commit, and push your changes.
|
63
|
+
[Submit a pull request.](https://help.github.com/articles/using-pull-requests/)
|
61
64
|
|
62
|
-
|
65
|
+
## License
|
66
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/lib/google_reviews/utils.rb
CHANGED
@@ -15,9 +15,16 @@ module GoogleReviews
|
|
15
15
|
def formatted_reviews_data(reviews)
|
16
16
|
reviews.map do |review|
|
17
17
|
{
|
18
|
-
|
18
|
+
text: review["text"],
|
19
|
+
time: review["time"],
|
19
20
|
rating: review["rating"],
|
20
|
-
|
21
|
+
language: review["language"],
|
22
|
+
author_url: review["author_url"],
|
23
|
+
translated: review["translated"],
|
24
|
+
author_name: review["author_name"],
|
25
|
+
original_language: review["original_language"],
|
26
|
+
profile_photo_url: review["profile_photo_url"],
|
27
|
+
relative_time_description: review["relative_time_description"],
|
21
28
|
}
|
22
29
|
end
|
23
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_reviews
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gullariz12
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|