sixarm_ruby_fab 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -1
- data/README.md +2 -1
- data/VERSION +1 -1
- data/lib/sixarm_ruby_fab/date.rb +2 -2
- data/lib/sixarm_ruby_fab/datetime.rb +2 -2
- data/lib/sixarm_ruby_fab/time.rb +2 -2
- data/lib/sixarm_ruby_fab/twitter.rb +9 -9
- data/test/sixarm_ruby_fab_test/twitter_test.rb +12 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dec74d4f76df2a6375691617d31a5c6580f4365
|
4
|
+
data.tar.gz: ffa1905599eb14107716fbcc5c5f2d570bb461f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1b448af09ce63143911d96ecc2c66132a4dd0077a692423c03cd92b48a0a1a56eee64ff84cb3ef428c142faa74870b533a19b32537f30deb52a952390df478e
|
7
|
+
data.tar.gz: 2ef91747b4dae337c05c267b8d4f3cc951e6503e90520b0ac2f23b760b868f359eef5d24e8dd759f5892f0067eaf668dff0d3a23b20687a951638202353fc6ba
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
�!�!���R��a�����[j�7��YaR�)��VN��d�h
|
2
|
+
�x���/m#�%�� �(� ����]A˚=|��Z:���J�tZ�wX��@_@&�cF�����D�i!�г�^�𨤹�2�
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ Install:
|
|
24
24
|
|
25
25
|
Bundler:
|
26
26
|
|
27
|
-
gem "sixarm_ruby_fab", "~>1.0.
|
27
|
+
gem "sixarm_ruby_fab", "~>1.0.2"
|
28
28
|
|
29
29
|
Require:
|
30
30
|
|
@@ -59,6 +59,7 @@ Use it:
|
|
59
59
|
|
60
60
|
## Changes
|
61
61
|
|
62
|
+
* 2013-08-07 1.0.2 Fix bug with Twitter hash
|
62
63
|
* 2013-08-02 1.0.1 Add min & max to date, datetime, time.
|
63
64
|
* 2013-08-01 1.0.0 Publish.
|
64
65
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/lib/sixarm_ruby_fab/date.rb
CHANGED
data/lib/sixarm_ruby_fab/time.rb
CHANGED
@@ -90,12 +90,12 @@ class Fab
|
|
90
90
|
# @return [Hash] a tweet hash
|
91
91
|
#
|
92
92
|
def twitter_tweet_hash(options={})
|
93
|
-
id = options[:id] || options["id"] ||
|
93
|
+
id = options[:id] || options["id"] || twitter_tweet_id
|
94
94
|
{
|
95
|
-
"created_at" =>
|
95
|
+
"created_at" => time.httpdate,
|
96
96
|
"id" => id.to_i,
|
97
97
|
"id_str" => id.to_s,
|
98
|
-
"text" =>
|
98
|
+
"text" => lorem,
|
99
99
|
"source" => "web",
|
100
100
|
"truncated" => false,
|
101
101
|
"in_reply_to_status_id" => nil,
|
@@ -103,16 +103,16 @@ class Fab
|
|
103
103
|
"in_reply_to_user_id" => nil,
|
104
104
|
"in_reply_to_user_id_str" => nil,
|
105
105
|
"in_reply_to_screen_name" => nil,
|
106
|
-
"user" =>
|
106
|
+
"user" => twitter_user_hash,
|
107
107
|
"geo" => nil,
|
108
108
|
"coordinates" => nil,
|
109
109
|
"place" => nil,
|
110
110
|
"contributors" => nil,
|
111
|
-
"retweet_count" =>
|
112
|
-
"favorite_count" =>
|
113
|
-
"favorited" =>
|
114
|
-
"retweeted" =>
|
115
|
-
"lang" =>
|
111
|
+
"retweet_count" => twitter_retweet_count,
|
112
|
+
"favorite_count" => twitter_favorite_count,
|
113
|
+
"favorited" => boolean,
|
114
|
+
"retweeted" => boolean,
|
115
|
+
"lang" => language_code
|
116
116
|
}.merge(options)
|
117
117
|
end
|
118
118
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sixarm_ruby_fab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SixArm
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
ZDRQYMqru9TEMna6HD9zpcstF7vwThGovlOQ+3Y6plQ4nMzipXcZ9THqs65PIL0q
|
29
29
|
eabwpCbAopo=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2013-08-
|
31
|
+
date: 2013-08-07 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: forgery
|
metadata.gz.sig
CHANGED
Binary file
|