jekyll-twitter-plugin 1.1.0 → 1.1.1

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: d5cd33cbcbe9db1fff312ba25adb0dafa82b34d4
4
- data.tar.gz: 6a1be3c2d7cab837a8b9a6a78575189f6ec2b423
3
+ metadata.gz: 6bc4b29e2c5e02dc8a97a086e7e6c1415de44a6a
4
+ data.tar.gz: ac9904cc1514de2397acbd7701d5bb597eabf877
5
5
  SHA512:
6
- metadata.gz: ca3b17df94b100230807ae6efcf4c3d0983d63c68d3c629bb2cc2e2edac3452acfa9134ad92695f121ce1b3843fe5767cbbf20699dc589e7c687bba9ace263b6
7
- data.tar.gz: ee194ec61bc5519e307789e095aa41618e213f4151792b2eff6d98c3d3fba9cc0fb11a275dbc136742dfb06b1f2a01b962b151629fea49d65c9983a08a4dff8b
6
+ metadata.gz: ce5bbf44ff966518bac79cc55f1fd60c4a1833cf9412c894228a6e1da3eb8ef6886c921bf98fee4487f67edae1c5db4c1660b81270f7ad92d218829da54a9cd3
7
+ data.tar.gz: ac27faf62b5faaf825e4c955c4eb2be53c81c06a925731b1373c2b63e6e6921f5e1ac8f6dfeae12487cd1db7517979a6dc32833dc2bd62e6b144f02ab274ea2d
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'jekyll-twitter-plugin'
7
- spec.version = '1.1.0'
7
+ spec.version = '1.1.1'
8
8
  spec.authors = ['Rob Murray']
9
9
  spec.email = ['robmurray17@gmail.com']
10
10
  spec.summary = 'A Liquid tag plugin for Jekyll that renders Tweets from Twitter API'
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
17
17
 
18
18
  spec.add_development_dependency 'bundler', '~> 1.6'
19
19
  spec.add_development_dependency 'rake'
20
+ spec.add_development_dependency 'pry-byebug'
20
21
 
21
22
  spec.add_dependency 'twitter', '~> 5.11'
22
23
  end
@@ -119,16 +119,16 @@ module TwitterJekyll
119
119
 
120
120
  def initialize(_name, params, _tokens)
121
121
  super
122
- @params = params.split(/\s+/).map(&:strip)
123
- @cache = FileCache.new('./.tweet-cache')
122
+ @cache = FileCache.new('./.tweet-cache')
123
+ args = params.split(/\s+/).map(&:strip)
124
+ @api_type = args.shift
125
+ @params = args
124
126
 
125
127
  create_twitter_rest_client
126
128
  end
127
129
 
128
130
  def render(_context)
129
- api_type = @params.dup.shift
130
-
131
- api_client = create_api_client(api_type, @params)
131
+ api_client = create_api_client(@api_type, @params)
132
132
  response = cached_response(api_client) || live_response(api_client)
133
133
  html_output_for(response)
134
134
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-twitter-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Murray
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-11 00:00:00.000000000 Z
11
+ date: 2014-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry-byebug
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: twitter
43
57
  requirement: !ruby/object:Gem::Requirement