e_m_typographer 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/lib/e_m_typographer.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4666bde3cbf8dc86d065346f399152c0abd418f9
|
4
|
+
data.tar.gz: 86b2aa8053df5a5873eababe64a358423b1fb789
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faedd8da0ad5f8b7ef9eb70811aa5b03ecf3bdd810bd776ba1e291c4bf1dd13a9a2bf8799f87b9fffeded80385305f371bc84e146e7763270ae93539a7441b7a
|
7
|
+
data.tar.gz: d09ad0d6592f148117dc64e454b6099a6e81ed82e3453f525d62c358e4d605f6e1ad6d95c4cb5a5a564d5d07df86b3d96aeecda4b78dcdf100af2caf197d0e37
|
data/lib/e_m_typographer.rb
CHANGED
@@ -14,7 +14,7 @@ class EMTypographer
|
|
14
14
|
private
|
15
15
|
|
16
16
|
def self.send_typographer_post_request(text)
|
17
|
-
return
|
17
|
+
return unless text.is_a?(String) && text[0]
|
18
18
|
|
19
19
|
request = Net::HTTP.new(TYPOGRAPHER_REQUEST_URI.host, TYPOGRAPHER_REQUEST_URI.port)
|
20
20
|
request.post(TYPOGRAPHER_REQUEST_URI.path, "text=#{text}")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: e_m_typographer
|
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
|
- Anton Kolmakov
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.2.
|
83
|
+
rubygems_version: 2.2.2
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: Allows you to format your text using http://mdash.ru API.
|