sinja 0.2.0.beta1 → 0.2.0.beta2

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: 3a2a92548635cd6db938186715c337d3d19bec29
4
- data.tar.gz: c31184c7f6c8c33698096846a986dce1e4ec53cc
3
+ metadata.gz: 888cd268dead23fb968c04f789e45ba33530f859
4
+ data.tar.gz: ec062d1583793fa03f88338eec33f2f3883f754d
5
5
  SHA512:
6
- metadata.gz: 5e0ec4ee3a7b6bf7fa0ffb66fc0cde0cb736be5a16ba3ef1dcba40bd0d6b1bd8b378aa640c3dc21df7d439f5b0d78a9e0ea8ba05c6b0ecd4621ff9b0ac2f1c82
7
- data.tar.gz: 1db8dcd6991dc3f89540a8e5e3a3230d42a210d1951a7fadbdb13b561a38727231575f36ad4b7351f78b4b78644bbdff66f74ba58d6ce2f8c163ed7fc3798c8a
6
+ metadata.gz: e78db5f95b48107ac6fcd3442c99fbd9662d8ea63cdea41d89bd5507474afeb84e45384f2ad1a6c4eecb802182e2d3fde40a71060361c7a621f5393255011520
7
+ data.tar.gz: c40082498c163ad4dfe297b405109546fe1de879716ca2c2fab754e4c17f649aa807354ad6c8fbacd8dc1339d85c1e45ed7582d8d7f77bd5f1c9e341b369a8fc
data/README.md CHANGED
@@ -695,7 +695,7 @@ class App < Sinatra::Base
695
695
  end
696
696
  ```
697
697
 
698
- Can also be written like this:
698
+ Can also be written like this ("modular"-style applications only):
699
699
 
700
700
  ```ruby
701
701
  require 'sinja'
data/lib/sinja.rb CHANGED
@@ -15,7 +15,7 @@ module Sinja
15
15
 
16
16
  def resource(resource_name, konst=nil, &block)
17
17
  abort "Must supply proc constant or block for `resource'" \
18
- unless block = (konst and konst.is_a?(Proc) or block)
18
+ unless block = (konst if konst.is_a?(Proc)) || block
19
19
 
20
20
  _sinja.resource_roles[resource_name.to_sym] # trigger default proc
21
21
 
data/lib/sinja/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: false
2
2
  module Sinja
3
- VERSION = '0.2.0.beta1'.freeze
3
+ VERSION = '0.2.0.beta2'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinja
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.beta1
4
+ version: 0.2.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Pastore