commentbox 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/commentbox.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c9924ff53c559dcf315eb35ecc7587b702a1a7bd561a126910f9b1d51a073b1
4
- data.tar.gz: aa7434f90f115cecdca5a6b1f1735c82622127ac47343bb052c59f3b7a760373
3
+ metadata.gz: 8d885fdd08fd18ac60202587ef33d6fc5dc34927c41b3b21b9e29b9c3ad5942b
4
+ data.tar.gz: 437d8fc15c5e66942db4b88cab58df28b6659653a7748f4044bab06efb2625ec
5
5
  SHA512:
6
- metadata.gz: b38c2d5f76c2554890d9fc309e313d8339ec9d4b150817d275b23ef16d3e50dc5841b9d77d3724048f3f4fc91ceaaa2b313dc52171d6ecda2cdf0554622a7187
7
- data.tar.gz: d888803e4c6a6a53ca7896d4f3fce2664f7109f5ae877e1bc00858789583ae0e4981ed7cd0e53ddd13a5c6e3c966e09e68f25b15169d8017682efe616e3ec0d2
6
+ metadata.gz: cb9910ad5f48e6122c282e6fd8547516b285d820776ab98105f4b2c4220ad6ed03044229034c590997997cbdccef3d1af9d35e6efae4fecba3c836d1e76da618
7
+ data.tar.gz: dd9301199657470d285fddca65d7b908904b965ec69e99d04e331efb1ecf634270d545919135d7f1d788ec32bd291ef1c8b814d338a4744bef77b565dee0b4e4
data/lib/commentbox.rb CHANGED
@@ -124,8 +124,8 @@ class CommentBox
124
124
  if params.is_a? String then params = {text: params} end
125
125
 
126
126
  # fill in a bunch of instance variables from params or default values
127
- @padding = params[:padding].to_i || @@default_params[:padding]
128
- @offset = params[:offset].to_i || @@default_params[:offset]
127
+ @padding = (params[:padding] || @@default_params[:padding]).to_i
128
+ @offset = (params[:offset] || @@default_params[:offset]).to_i
129
129
  # one of the options for this is false, so it's not gonna play nice with ||
130
130
  @spacelines = (params[:spacelines] != nil) ? params[:spacelines] : @@default_params[:spacelines]
131
131
  @stretch = (params[:stretch] || @@default_params[:stretch]).to_i
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commentbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonard H. Phelan IV