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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 928df2312ff8a41a06835e0cd4f85d2e54144abb
4
- data.tar.gz: 72519949a884dd6a82e7b06c1a79edca256644cc
3
+ metadata.gz: 4dec74d4f76df2a6375691617d31a5c6580f4365
4
+ data.tar.gz: ffa1905599eb14107716fbcc5c5f2d570bb461f5
5
5
  SHA512:
6
- metadata.gz: 9eeae5c0abd20644e0e67c29fa5880e57aed4326ef61f32ada4eb23e4d45dc04d7d3261560ff1bedcd1a2cafc1b530c3a47ef70794134feb17d7af27b94bf400
7
- data.tar.gz: ab221a63c2879ffd4d500e6af4c10c528378f3ebddc7ea983323b1219bb5a77344fb6772200ae7e13547f1755be475af8269a357f9ac2cb9b56154462728461d
6
+ metadata.gz: a1b448af09ce63143911d96ecc2c66132a4dd0077a692423c03cd92b48a0a1a56eee64ff84cb3ef428c142faa74870b533a19b32537f30deb52a952390df478e
7
+ data.tar.gz: 2ef91747b4dae337c05c267b8d4f3cc951e6503e90520b0ac2f23b760b868f359eef5d24e8dd759f5892f0067eaf668dff0d3a23b20687a951638202353fc6ba
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- v7nu��{V�.�q
1
+ �!�!���R��a�����[j7��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.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.0
1
+ 1.0.1
@@ -19,7 +19,7 @@ class Fab
19
19
  end
20
20
 
21
21
  # Set.
22
- def date_min=x
22
+ def date_min=(x)
23
23
  @date_min=x
24
24
  end
25
25
 
@@ -29,7 +29,7 @@ class Fab
29
29
  end
30
30
 
31
31
  # Set.
32
- def date_max=x
32
+ def date_max=(x)
33
33
  @date_max=x
34
34
  end
35
35
 
@@ -19,7 +19,7 @@ class Fab
19
19
  end
20
20
 
21
21
  # Set.
22
- def datetime_min=x
22
+ def datetime_min=(x)
23
23
  @datetime_min=x
24
24
  end
25
25
 
@@ -29,7 +29,7 @@ class Fab
29
29
  end
30
30
 
31
31
  # Set.
32
- def datetime_max=x
32
+ def datetime_max=(x)
33
33
  @datetime_max=x
34
34
  end
35
35
 
@@ -19,7 +19,7 @@ class Fab
19
19
  end
20
20
 
21
21
  # Set.
22
- def time_min=x
22
+ def time_min=(x)
23
23
  @time_min=x
24
24
  end
25
25
 
@@ -29,7 +29,7 @@ class Fab
29
29
  end
30
30
 
31
31
  # Set.
32
- def time_max=x
32
+ def time_max=(x)
33
33
  @time_max=x
34
34
  end
35
35
 
@@ -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"] || Fab.twitter_tweet_id
93
+ id = options[:id] || options["id"] || twitter_tweet_id
94
94
  {
95
- "created_at" => Fab.time.httpdate,
95
+ "created_at" => time.httpdate,
96
96
  "id" => id.to_i,
97
97
  "id_str" => id.to_s,
98
- "text" => Fab.lorem,
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" => Fab.twitter_user_hash,
106
+ "user" => twitter_user_hash,
107
107
  "geo" => nil,
108
108
  "coordinates" => nil,
109
109
  "place" => nil,
110
110
  "contributors" => nil,
111
- "retweet_count" => Fab.twitter_retweet_count,
112
- "favorite_count" => Fab.twitter_favorite_count,
113
- "favorited" => Fab.boolean,
114
- "retweeted" => Fab.boolean,
115
- "lang" => Fab.language_code
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
 
@@ -95,4 +95,16 @@ describe Fab do
95
95
 
96
96
  end
97
97
 
98
+ describe "#twitter_tweet_hash" do
99
+
100
+ before do
101
+ @x = fab.twitter_tweet_hash
102
+ end
103
+
104
+ it "is a hash" do
105
+ @x.must_be_kind_of Hash
106
+ end
107
+
108
+ end
109
+
98
110
  end
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.1
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-01 00:00:00.000000000 Z
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